Error mounting USB drive on Ubuntu 14.04

I found the solution to my problem.
At address How to fix ‘$MFTMirr does not match $MFT (record 0)’
I followed the instruction :
sudo ntfsfix /dev/sdk1
which gave me the following result :
Attempting to correct errors...
Processing $MFT and $MFTMirr...
Reading $MFT... OK
Reading $MFTMirr... OK
Comparing $MFTMirr to $MFT... FAILED
Correcting differences in $MFTMirr record 0...OK
Processing of $MFT and $MFTMirr completed successfully.
Setting required flags on partition... OK
Going to empty the journal ($LogFile)... OK

But stopped after this line and seemed to start an infinite loop.
I then closed the terminal which told me that a process was running.
When I tried to mount the USB drive it told me that the ressource was busy (certainly because of the still running process)
I then disconnected and reconnected the USB drive physically but failed again with the message :
Error mounting /dev/sdk1 at /media/laurent06000/Large: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sdk1" "/media/laurent06000/Large"' exited with non-zero exit status 13: $MFTMirr does not match $MFT (record 0).
Failed to mount '/dev/sdk1': Input/output error
NTFS is either inconsistent, or there is a hardware fault, or it's a
SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows
then reboot into Windows twice. The usage of the /f parameter is very
important! If the device is a SoftRAID/FakeRAID then first activate
it and mount a different device under the /dev/mapper/ directory, (e.g.
/dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentation
for more details.

I then came back to my Windows 8.1 PC and re-issue a "chkdsk [drive:] /f" command.
That time chkdsk managed to correct the problem by saying :
Correcting errors in the master file table (MFT) mirror.
Correcting errors in the Volume Bitmap.

Now the USB drive automount itself properly.
Hope this can be of any help.
Laurent


How to install IRSTLM (automake warning during the build)?

This is just a warning, no error. The reason is that autoconf deprecated the use of configure.in and in 2012, there was the proposal to drop it alltogether (see here).

There are no errors in the code you posted, so your software either compiled correctly or failed elsewhere.


Low-level 10-finger multi-touch data on the Nexus 7?

The touchscreen driver emits multitouch input events.

These tools give me x/y position, touch ID and I think pressure when running them with the appropriate device node name

xinput --test
evtest

I am not sure there are libs or APIs besides talking to dev directly though.


I want to install Cvode on ubuntu 14.04 LTS

The file you downloaded, cvode-2.8.2.tar.gz is a GZip-compressed tar archive. It contains the package you wish to install. Here is how you can get started:

Create a directory for unpacking the archive. I'm using cvode_install, you could use something else.

mkdir $HOME/cvode_install
 cd $HOME/cvode_install
Inspect the archive. replace /path/to/tarfile with the actual path on your system. Pipe the output to less to display it a page at a time (hit Space for the next page)

tar tzvf /path/to/tarfile/cvode-2.8.2.tar.gz | less -Mers
If the archive is OK, extract the archive into the current directoru ($HOME/cvode_install):

tar xzvf tzvf /path/to/tarfile/cvode-2.8.2.tar.gz
Look for, and read, files with names in upper case, e.g. README, INSTALL, they will help you find the next step.
If all there is is a large .run or .sh file, you can read it with less, or, if you trust the provider, run it with:

chmod +x thefile
./thefile


Read the error messages! They clearly indicate that an XRDP instance is already running, and has grabbed the TCP port that is a requirement.
You must find, and shutdown that XRDP instance.
sudo lsof -i tcp:3389

will find it.
Read man lsof kill pkill xrdp.


Why is resolvectl no longer included in Bionic and what's the alternative

resolvectl was never part of the systemd package in Bionic. Per the systemd changelog, systemd-resolve was renamed to resolvectl in systemd 239, but Bionic has systemd 237. Thus in Bionic it is systemd-resolve.


Can't startup as login screen requests a name and password - but I have not set one up yet?

With TRY you are booting Ubuntu from the LiveCD.  The Ubuntu Help site indicates, under the "Logging In" section:

  Sometimes a LiveCD might ask you for a user-name or password. Just leave these blank and press enter (or allow it to time-out).


My Bluetooth stopped working for seemingly no reason

I guess the solution is always in the last place you check, because the way I fixed it was by powering my laptop off, shaking it, and powering it back on. Huh.
(to be clear, I had already tried restarting)


How do I get gcc installed without a network connection?

I think you should try with newer version of (K)ubuntu, because there is very high chance, that your NIC's driver included in kernel. In fact driver — just kernel module.

By the way, you should verify, that you installed 10.04.3 (not just 10.04), because it includes many updates, including new kernel modules.


Which software controls the fan on Dell Sputnik?

I answered a similar question here on askubuntu, but it concerned Dell inspiron models so I can't flag your question as a duplicate, since it's not. I don't own your notebook model, but you can try and see if this guide will help you anyway.

I partially solved Dell fans and heating issues using i8kutils, a collection of utilities for Dell laptops. In this collection there is i8kmon, which is the utility I'm actually using right now.

How To solve Dell laptops fan issues in Ubuntu

First of all, let's download and install i8kutils. Open your terminal and write:

sudo apt-get install i8kutils
Now you've got to add i8k to your modules. Open the modules file:

sudo gedit /etc/modules

and add the string "i8k" (without quotes) to the file. Save and exit.
Create an i8k.conf file

sudo vim /etc/modprobe.d/i8k.conf

and fill it with this code:

options i8k force=1

Note: Some older guides will tell you to create a /modprobe.d/options file. The "options" file isn't used anymore on Ubuntu. What does matter is that you create a file with a .conf extension (the filename isn't important, but I decided to name it i8k.conf for clarity). So beware of older i8kmon configuration guides.
Now restart your computer, or run this code to make i8k run:

sudo modprobe i8k force=1
We will now create a i8kmon.conf file which will tell the i8kmon utility how to behave.

sudo gedit /etc/i8kmon.conf

Paste the following code in it:

# Run as daemon, override with --daemon option
set config(daemon)      0

# Automatic fan control, override with --auto option
set config(auto)        1

# Report status on stdout, override with --verbose option
set config(verbose) 1

# Status check timeout (seconds), override with --timeout option
set config(timeout) 20

# Temperature thresholds: {fan_speeds low_ac high_ac low_batt high_batt}
set config(0)   {{-1 0}  -1  40  -1  40}
set config(1)   {{-1 1}  30  60  30  60}
set config(2)   {{-1 2}  53  128  53  128}

# For computer with 2 fans, use a variant of this instead:
# Temperature thresholds: {fan_speeds low_ac high_ac low_batt high_batt}
# set config(0) {{-1 0}  -1  52  -1  65}
# set config(1) {{-1 1}  41  66  55  75}
# set config(2) {{-1 1}  55  80  65  85}
# set config(3) {{-1 2}  70 128  75 128}

# end of file

This has been edited to match my Dell Inspiron 15r 5521 fan configuration, but you should be able to change these settings for your particular needs. If you want more informations take a look at the documentation on Ubuntu Manuals: http://manpages.ubuntu.com/manpages/gutsy/man1/i8kmon.1.html
Now you should be able to run i8kmon from your terminal and see if (and how) it's working. Simply run:

i8kmon

Finished!

Sources:

Keenformatics -  How to solve Dell laptops fan issues in Ubuntu (my blog)


You can set the boot flag on the first partition of your USB drive by typing in the following from a terminal window:

sudo parted /dev/sdc set 1 boot on

Also try installing extlinux and the syslinux-common for putting the boot files on the USB drive.  From the terminal, type in:

sudo apt install extlinux syslinux-common

After those are installed, have your USB drive in and type in:

sudo mkdir -p /mnt/USB/boot/extlinux
sudo extlinux --install /mnt/USB/boot/extlinux

or whatever the mount point is to your USB drive like /media/username/1001-BAAB/boot/extlinux

Then you should install the mbr code to the USB drive with the following command:  Don't worry, this will not overwrite the USB drive.

dd if=/usr/lib/EXTLINUX/mbr.bin of=/dev/sdc bs=440 count=1

Make sure that /dev/sdc is your USB drive.

More info can be found here:  http://shallowsky.com/linux/extlinux.html

From the manpage for extlinux:

NAME
       extlinux  -  install  the SYSLINUX bootloader on a ext2/ext3/ext4/btrfs
       filesystem

Hope this helps!


I found the solution to get the paper icon theme on Ubuntu MATE 16.04

Install paper theme by copying and pasting in the commands from the developers website here

sudo add-apt-repository ppa:snwh/pulp
sudo apt-get update
sudo apt-get install paper-icon-theme
sudo apt-get install paper-cursor-theme
sudo apt-get install paper-gtk-theme

Go to System in the menu bar and click on Control Center
Click on Appearance under the Look and Feel section
After that click on a button called Customize then you will be in a window called Customize Theme
There will be 5 tabs at the top. Controls, Colors, Window Border, Icons, and Pointer. Click on Icons
Now scroll down till you see the paper theme called Paper and Paper-Mono-Dark.


How to create a shell script to transfer file from a CD to documents?

Your CD should be mounted in /media/$USER/ directory, so the source directory becomes /media/$USER/label_on_CD/CompFiles/ and your destination directory is /home/$USER/Documents/. To copy the files, either execute the command:

cp /media/$USER/label_on_CD/CompFiles/ /home/$USER/Documents/ -r

or write this command to a file and execute the command bash file_name where file_name is the name of the script.


You will need to click on the word Disabled which should then become:

And all you will need to do then is to press the key combination you want to execute the command you assigned to this keyboard shortcut. So for instance if I then typed (without the + or any spacing):

CTRL + A

I would get this and the keyboard shortcut would be assigned:


How to remap Back and Forward key on a Lenovo ThinkPad T420?

It can be made just typing the following command

xmodmap -e 'keycode 166=Prior' && xmodmap -e 'keycode 167=Next'


The behaviour doesn't seem right to me anyway.

To identify the bottleneck, you can:

install bootchart http://www.bootchart.org (boot process)
use htop/iotop/vmstat to identify system performance bottleneck
check your HDD and see if it has problems
Disable unnecessary services
Search and see if you hit any Ubuntu 12.10 bugs (I think all Ubuntu users have been hit by bugs after each upgrade lol)

BTW: Why gedit? Sublime Text 2 (you don't have to register) is cool;-)


How do I fix "'module' object has no attribute 'required_version'" for "gi.require_version('Gtk', '3.0')"?

The gi module you are importing isn't the one from Ubuntu's GI package python-gi but something you installed manually in /usr/local/. It's either a very old version or something different that just happened to be called gi, too.

Remove it and make sure the package python-gi is installed.


System wide environmental variables are set in /etc/environment and, for locales /etc/default/locale

/etc/environment - This file is specifically meant for system-wide environment variable settings. It is not a script file, but rather consists of assignment expressions, one per line. Specifically, this file stores the system-wide path settings.
/etc/default/locale - This file is specifically meant for system-wide locale (LC_*) environment variable settings. It is not a script file, but rather consists of assignment expressions, one per line.

For additional information, see https://help.ubuntu.com/community/EnvironmentVariables#System-wide_environment_variables and https://help.ubuntu.com/community/Locale
As to "why LC_CTYPE and LC_MESSAGES NOT set?", I could not find a discussion, I suggest you might have better luck filing a bug report, feature request, or perhaps IRC. That part of your question may be considered off topic and speculative.


sudo dpkg-reconfigure kdm

there should be a menu popping up, asking you which the default display manager should be.

Then restart your PC.


How can you access a folder you want quickly?

Nautilus Bookmarks
To add a directory to our bookmarks for quick access we open the directory with the file browser Nautilus and select Bookmarks -> Add Bookmark from the panel menu.

After that we will find this directory in the list of bookmarked directories in the left side panel, and also in the launcher right-click quicklist.


Restore warnings for file system (boot volume full)

Open the dconf-editor (you may need to install this first). Open the key called org.gnome.settings-daemon.plugins.housekeeping  (or search for "Disk Space").

Check the "active" box if it is not already active; or, if relevant, remove the path or partition from the ignore-paths parameter.

Another (non-GUI) way to turn warnings back on is to enter the equivalent command

gsettings set org.gnome.settings-daemon.plugins.housekeeping active true


How can I set up a php script to run via cron?

You can use crontab to add/remove/edit cronjobs.

Hit Alt+Ctrl+T to open terminal.

First make sure the script is executable by running:

chmod +x YOURSCRIPT

Then run the following command to add your cronjob:

crontab -e

Add your cronjob like this:

0,30 * * * * /usr/local/bin/php /home/username/public_html/cron.php

That's it!

Your can check the current user's crontab entries by running:

crontab -l

For more information about crontab run:

crontab --help

OR

man crontab


glassfish: Authorization has been refused for credentials [user: admin] given in this request

It's in the doc, see 1st page of Chapter 1 of the Administration Guide

  Note: For the zip bundle of GlassFish Server 4.0, the default
  administrator login is admin, with no password, which means that no
  login is required.


Type this into a Terminal (Dash->Terminal) window:

sudo apt-get install gconf-editor
gconftool-2 -s /desktop/gnome/sound/theme_name "ubuntustudio" -t string
sudo gconftool-2 -s /desktop/gnome/sound/theme_name "ubuntustudio" -t string

Then reboot, and the ubuntustudio sound theme will be on!


Macbook starts with the screen on minimum brightness

The following worked for me:

Find your ACPI interface: grep acpi_video /var/log/Xorg.0.log
Get the desired brightness level: set brightness to desired level then run cat /sys/class/backlight/acpi_videoX/brightness, substituting X for the ACPI number found on step 1
Create a fixbrightness.conf file: run gksu gedit /etc/init/fixbrightness.conf and paste the following, replacing BRIGHTNESS_VALUE with the number gotten from the previous step and X for your ACPI interface number:

description "Sets brightness after graphics device is loaded"

start on graphics-device-added`
task
exec /bin/echo BRIGHTNESS_VALUE > /sys/class/backlight/acpi_videoX/brightness

Save and reboot.

Source: http://www.webupd8.org/2014/10/fix-brightness-getting-reset-to-very.html


Ubuntu 18.04.1 LTS freezes after login screen

I'm guessing that because you mention Windows 7, that you've got an older computer.

You may have a problem with an older computer, with an older GPU. Try this...

boot to recovery mode
choose root access

type:

sudo mount -o remount,rw /      # to remount the disk r/w

sudo pico /etc/gdm3/custom.conf # edit this file

change:

#WaylandEnable=false

to:

WaylandEnable=false

Then reboot.

Update #1:

If this is a work computer, your IT folks would probably have a problem with you tinkering on "their" system. Contact them. If however, this is your work computer, let try some simple things...

Lets first check your file system for errors.

To check the file system on your Ubuntu partition...

boot to the GRUB menu
choose Advanced Options
choose Recovery mode
choose Root access
at the # prompt, type sudo fsck -f /
repeat the fsck command if there were errors
type reboot

If for some reason you can't do the above...

boot to a Ubuntu Live DVD/USB
start gparted and determine which /dev/sdaX is your Ubuntu EXT4 partition
quit gparted
open a terminal window
type sudo fsck -f /dev/sdaX # replacing X with the number you found earlier
repeat the fsck command if there were errors
type reboot


Is there a way to force Lubuntu to recognize my touchpad although I am using the boot option “acpi=off”?

general tips
For problems such as this, it is worth looking at the common boot options you can use to boot Ubuntu.
acpi=off turns off all power management features and/does interfere with valuable functionality such as track-pad as well as the expected power-management of your battery and fans etc.
Most often, problems such as this can be traced back to a BIOS that is old, buggy and needs updating to the latest available.
Sometimes, even with the latest BIOS, Ubuntu will need some help.
A valuable resource is the Community Boot options wiki.
For example, try acpi.power_nocheck=1 OR acpi_osi=linux etc.


Trouble working on wordpress development locally due to file permissions

If those files are NOT in /var/www/ and are part of the system then yes you should use command line and something like nano or vi with sudo in front.

If part of the LAMP, for instance they are in /var/www/ I would advice changing those files to the default apache user (or www-data) and add yourself to the group this user is part of. There is no need to use user root for this.

And then the group permission is what you are looking for. If you add users to a group then they can edit files as if they where the user. We have a group "develope(r)" where "apache" and all users in our company are part of. We can edit from Windows over the network files that are on an Ubuntu server with no problems.

More info on groups:

https://stackoverflow.com/questions/14116708/adding-apache-to-a-user-group-file-upload-permission
https://serverfault.com/questions/6895/whats-the-best-way-of-handling-permissions-for-apache2s-user-www-data-in-var
https://superuser.com/questions/355220/group-permissions-for-apache


How to convert .pcapng files to .pcap/.tcpdump files?

Ok, found the tool called editcap. You only have to call editcap i.pcapng o.pcap into a loop:

# Recursively convert all *.pcapng files to *.pcap
cd /path/to/folders   # the path to folder where your folders containing '*.pcapng' files are in
find . -type f -name '*.pcapng' -print0 | while IFS= read -r -d '' f; do editcap -F libpcap "$f" "${f%.pcapng}.pcap"; done

(since I'm lazy, I mostly used Radu's script, aside from adding double quotes for ${f%.pcapng}.pcap)

You can check the editcap manual for more options.

Here a example:

braiam@bt:~/lab$ ls
something.pcapng
braiam@bt:~/lab$ find . -type f -name '*.pcapng' -print0 | while IFS= read -r -d '' f; do editcap -F libpcap "$f" "${f%.pcapng}.pcap"; done
braiam@bt:~/lab$ file something.pcap something.pcapng
something.pcap:   tcpdump capture file (little-endian) - version 2.4 (Ethernet, capture length 65535)
something.pcapng: pcap-ng capture file - version 1.0
braiam@bt:~/lab$

As you can see I converted the pcapng format into pcap/tcpdump format. The change of extension is an extra.


Why opening apps in Ubuntu Touch takes so long?

When an application is loaded there's a sequence of processes which get loaded before and during the application startup. Ideally we'd like to have applications start from a partially started state (as happens on Android) which would be faster. Unfortunately at the moment we can't do that due to limitations in upstart & apparmor, but we hope to in the near future.


HDMI Output not working on 2019 Acer Helios 300 Predator PH315-52 laptop

I upgraded to ubuntu 18.04, installed the latest nvidia drivers, and did sudo apt upgrade and reboot. This solved the issue


The screenshot below show the problem: you have an invisible char ^M after the python in the shebang line. This is probably a remnant of having edited the file on a non-Unix machine (typically, Windows); so the interpreter looked for is python^M which is not found.

If you haven't edited this file on a alien os, maybe it's a problem with the line-ending setting on your editor. Anyway, rewriting the shebang line in a sane editor should fix the thing up.


What files should I clean up before creating a disk snapshot?

Not sure what cruft there should be on a fresh installation apart from  the apt cache. I'd rather concentrate on uninstalling unneeded packages. In synaptic you can sort them by install size.


Tortoisehg keyring extension configuration

The Mercurial system uses a set of configuration files to control aspects of its behaviour.

(Unix) /etc/mercurial/hgrc.d/*.rc, (Unix) /etc/mercurial/hgrc

  Per-installation configuration files, searched for in the directory
  where Mercurial is installed.  is the parent directory
  of the hg executable (or symlink) being run. For example, if installed
  in /shared/tools/bin/hg, Mercurial will look in
  /shared/tools/etc/mercurial/hgrc. Options in these files apply to all
  Mercurial commands executed by any user in any directory.

(Unix) /etc/mercurial/hgrc.d/*.rc, (Unix) /etc/mercurial/hgrc

  Per-system configuration files, for the system on which Mercurial is
  running. Options in these files apply to all Mercurial commands
  executed by any user in any directory. Options in these files override
  per-installation options.

(Unix) $HOME/.hgrc

  Per-user configuration file(s), for the user running Mercurial. On
  Windows 9x, %HOME% is replaced by %APPDATA%. Options in these files
  apply to all Mercurial commands executed by this user in any
  directory. Options in thes files override per-installation and
  per-system options.


Cannot install ia32-libs-gtk on Ubuntu 14.04

The package ia32-libs-gtk is not available in Ubuntu 14.04. Open the terminal and type:

sudo apt-get install ia32-libs-multiarch

This package depends on i386 versions of packages that were removed from ia32-libs and transitioned to multi-arch. This allows applications using ia32-libs in previous Ubuntu releases to continue functioning without missing libraries.

Also there should not be a blank space in : i386 instead it should be :i386. For additional information see this question: How to install ia32-libs in Ubuntu 14.04 LTS (Trusty Tahr).


Cannot recognize wired or wireless connection

Go to this link, the driver is in post 8. b43.zip

Download the b43 zip file to a flash drive then drag and drop the file to your ubuntu desktop. Right-click it and select Extract Here. Open a terminal and do:

sudo mkdir /lib/firmware/b43

sudo cp Desktop/b43/* /lib/firmware/b43

sudo rmmod -f b43

sudo rmmod -f ssb

sudo modprobe b43

if you have not installed any other wireless driver your wireless should now be working.

These directions are for installing the driver without internet connection

You have another driver installed so we need to remove it.

sudo apt-get purge --remove bcmwl-kernel-source

Then:

sudo modprobe b43


I accidentally executed the following command, what did I lose and how do I recover it?

* is a wildcard which selects all files with the same name/pattern. In my opinion these things will get removed:

libboost-date-time
libboost-filesystem
libboost-iostreams
libboost-locale
libboost-system
libboost-thread

To recover them simply run
sudo apt-get install <package name>

Note: I have assumed that there were not many things installed in your system, i.e. it was a clean install.


Based on the clarifications, let me first note that there are three possibly different usernames involved here:

The username for example.com, say user1.
The username registered on Gitlab, which may or may not be the same as the one above, say user2. This is the Gitlab account for which you added the public key, for example.
The username for Gitlab's SSH access, which is probably git, and almost certainly not the username registered inside Gitlab. This depends on Gitlab's configuration.

Given that, I think this is how your ssh config should look:

Host  zoltan
  Port 9049
  ProxyCommand ssh -W %h:%p -p 2222 user1@example.com

And for cloning, you should do:

 git clone git@zoltan:user2/project.git

The IdentityFile you're specifying is used by default anyway, so that can be omitted unless there are other conflicting settings in your SSH config.


How do I downgrade libglib2? (from glib 2.31 to 2.30?)

In Synaptic, I elected to downgrade:

libglib2.0-doc
libglib2.0-dev
libglib2.0-cil
libglib2.0-0
libglib2.0-bin
libglib2.0-data

It told me it would automatically uninstall unity, totem, and ubuntu-desktop.  I clicked, "OK."

Then back at the package management screen, I selected ubuntu-desktop and unity for reinstallation.

Then I applied the changes.

The moral of the story is that yes, these are important things that produce warning messages that it is scary to downgrade and reinstall, but it didn't seem to break.


A problem with graphic function of 13.10 unity desktop

I am having the exact same problem. Does everything else work ok though? What I tried and found very funny that it worked, is create a new userID and then log out of your normal ID and into this new userID. Does the problem go away? For me, it does.

https://askubuntu.com/questions/376026/ubuntu-13-13-ubuntu-desktop-and-only-desktop-freezes-apps-work-mouse-works

Desktop - no worky: http://www.udonet.com/laura/files/trying-to-get-to-desktop-no-worky.png

Also try in your normal userID to add a Wallpaper to your desktop. Or do you just get a black screen? Can you add a Wallpaper to your desktop in the new test userID?


It seems to be trying to show you a changelog of the updates.  To get past it, run:

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

If it tries to show the changelog again, press space repeatedly until you get to the end of the changelog.


If you click on the date column as shown you can change the sort order.

Clicking again will change it back.  The sort column and order is remembered when you close Thuderbird so it should be the same the next time you open it.


It's not a very elegant solution, but I found if I run pavucontrol and go to the config tab, I see two entries with pulldown menus set to 'digital stereo (hdmi) output' and 'analog stereo output' respectively. If I set the top menu to 'off' the sound starts coming through my headphones. If I set it back to the original setting and set the second one to 'off', sound starts coming through the external monitor. Something like that might work for you.


Your alias is "ll" not "ls", use:
alias ls='ls --color=auto'


What to do when Ctrl-C won't kill running job?

Send the SIGQUIT signal with Ctrl+\.

.. $ sleep 10
^\Quit

→ This is equivalent to kill -3 pid. Programs run in user-space don't ignore sigquit.

There is also a set of Magic SysRq keyboard shortcuts. One of the more interesting ones is this: Alt+SysRq+k. It kills every process on the current virtual console. If one of your ttys is completely and utterly broken, this can be used to go back. On the tty running X.org, it can be used to kill X without mercy.

The SysRq key is, on most keyboards, the same as the Print Key. On my notebook, it can be invoked using the Fn key; I.e. Alt→Fn→Print→k in that order.

Here are some of the basic process management shortcuts:

Ctrl+Z: pause a
process (plus bg to resume in the background, fg to raise to foreground)
Ctrl+C: politely ask the process to
shut down now
Ctrl+\: mercilessly kill the process that is
currently in the foreground
Alt+SysRq+s: Write data to disk (always do this before killing anything important)
Alt+SysRq+s, k: mercilessly kill all current
processes on a given virtual console
Alt+SysRq+s, b: mercilessly reboot without unmounting,
Alt+SysRq+r, e, i, s, u, b: Safely reboot even if the system is utterly broken,

Note: Ctrl+Z, in contrast to Ctrl+C and Ctrl+\, also works for man, vi, less, and the like.

When in doubt, the follwing procedure will almost always work:

~$ sleep 10
^Z
[5]+  Stopped              sleep 10
~$ ps
  PID TTY          TIME CMD
 4804 pts/0    00:00:00 bash
 6207 pts/0    00:00:00 sleep
 6208 pts/0    00:00:00 ps
~$ kill -9 6207
[5]+  Killed                  sleep 10
~$

^Z of course indicates that Ctrl+Z has been pressed.

For a more in-depth look at Shells and Terminals, also see my answers on:

What are shells?
Why is a virtual terminal "virtual", and what/why/where is the "real" terminal?


Ubuntu Desktop login password does not work after OS reinstall

Your old account is likely gone. I wouldn't expect reinstalling an OS to preserve the accounts (although your data may still be there in /home/YourOldUsername/. You can confirm this yourself from the terminal by issuing the command cut -d: -f1 /etc/passwd |grep "YourOldUSername" where YourOldUsername is, you guessed it, your old username. The absence of YourOldUSername confirms that the account is gone and you can check to see if you still have data in /home/YourOldUsername/ by starting nautilus or your favorite file manager with elevated privileges (as your new account may not have access to those files) or simply take a look via the command line with something like sudo ls /home/YourOldUsername/ If you see Desktop, Document folders, etc. you can drill down and find your files. If the problem is a forgotten password see this

Sources:
How do I reset a lost administrative password?

A command to list all users? And how to add, delete, modify users?


See compiz wiki plugins to learn about all plugins, including ones not added by default in CCSM and other compiz configuration tools.

Also look at wiki entrance under "Installing Compiz" for installation information and to understand differences in core compiz.


Can't update on 18.04 - repository change

Try using apt instead of apt-get.

sudo apt update
sudo apt upgrade

Alternatively, apt-get can accept the changes with

sudo apt-get --allow-releaseinfo-change update


I struggled with the same error message (Ubuntu 15.10). I found some information about it on a different web page:

http://resolvinghere.com/sof/30229535.shtml

According to that answer, there seems to be a bug in the repository used. To fix this partcular issue, it is advised to add the latest platform release directly (after removing the old one):

$ cordova platform remove ubuntu
$ cordova platform add https://github.com/apache/cordova-ubuntu

This actually solved the compiling error for me. It even suggests to build a debian package:

$ cordova build ubuntu
Building...
Note: to build a debian package, run:
[...]

I hope that this approach fixes the issue for most people. Personally, I cannot run the empty application. The window shows up, but remains white and the application hangs.


Try:
apt install lightdm lightdm-settings
Then try again:
systemct enable --now lightdm


If you have an Android phone you can set the preferred USB connection type: for charging or for data access. Look somewhere in the USB options (depending on Android version and flavour). For iPhones I don't know.

example for Android 6.0


How to install Oracle 11 Release 2 on Ubuntu 15.04?

Here we Go !

1- Download the Oracle 11g R2 Database for Linux:
Oracle 11g R2 .zip for Linux

The Link Contains the List of Oracle 11g r2 Database Releases.

2- Open a Shell Session or Terminal Emulator Window
Ctrl+Alt+t
(Press “Enter” to Execute Commands)

3- Login as SuperUser

sudo su

If Got “User is Not in Sudoers file” then Look at the Solution here.

4- Make Network Configuration

Get hostname:

hostname
Get IP:

/sbin/ifconfig

(You will Find It Under the lo >> inet Section.)

Check if Hostname is Already into the Enabled Hosts File.

cat /etc/hosts

If It’s Not Present then Insert it with:

nano /etc/hosts

Insert:

[myIP] [myHostname]

Example: ‘127.0.0.1 localhost.localdomain’

Ctrl+Shift+v to Paste Content into nano

Ctrl+x to Save and Exit from nano Editor

Grant Connection to , Server

xhost +myIP

Example: # xhost +127.0.0.1

5- Install Prerequisite Packages

apt-get update

And

apt-get install alien autoconf automake autotools-dev binutils doxygen \
elfutils expat gawk gcc gcc-multilib g++-multilib libstdc++6:i386 ksh less libtiff4 \
libtiff4-dev lib32z1 libaio1 libaio-dev libc6-dev libc6-dev-i386 libc6-i386 \
libelf-dev libltdl-dev libmotif4 libodbcinstq4-1 libodbcinstq4-1:i386 \
libpthread-stubs0 libpth-dev libstdc++5 lsb-cxx make \
pdksh openssh-server rlwrap rpm sysstat unixodbc unixodbc-dev x11-utils \
zlibc libglapi-mesa:i386 libglu1-mesa:i386 libqt4-opengl:i386 \
libpthread-workqueue0 libpthread-workqueue-dev libzthread-2.3-2 libzthread-dev \
libpthread-stubs0-dev

6- Make Symlinks to Binaries and Libraries

Linking Binaries

ln -s /usr/bin/awk /bin/awk

ln -s /usr/bin/rpm /bin/rpm

ln -s /usr/bin/basename /bin/basename

Linking Libraries

ln -s /usr/lib/x8664-linux-gnu /usr/lib64

cd /lib64

ln -s /lib/x8664-linux-gnu/libgcc_s.so.1 .

7- Add Groups and User

groupadd -g 502 oinstall

groupadd -g 503 dba

groupadd -g 504 oper

groupadd -g 505 asmadmin

useradd -u 502 -g oinstall -G dba,asmadmin,oper -s /bin/bash -m oracle

passwd oracle

Take Note of the oracle User Pass :)

8- Make Target Directories

mkdir -p /u01/app/oracle/product/11.2.0/

chown -R oracle:oinstall /u01

chmod -R 775 /u01

9- Parameters Configuration SetUp

Edit /etc/sysctl.conf file.

nano /etc/sysctl.conf

Then hit Ctrl+x to Save and Exit from nano Editor

Add or amend the following lines

#### Oracle 11g Kernel Parameters ####
fs.suid_dumpable = 1
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
# semaphores: semmsl, semmns, semopm, semmni
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default=4194304
net.core.rmem_max=4194304
net.core.wmem_default=262144
net.core.wmem_max=1048586

Edit /etc/security/limits.conf file.

nano /etc/security/limits.conf

Add the following lines

#### oracle User Settings 4 Oracle 11g ####
oracle       soft  nproc  2047
oracle       hard  nproc  16384
oracle       soft  nofile 1024
oracle       hard  nofile 65536
oracle       soft  stack  10240

Load the New Kernel Parameters.

sysctl -p

10- Unzip, Set Ownership and Relocate database

On Desktop Double-Click on Archive to Extract:

Or from Command Line:

cd /home/[myUser]/Downloads

unzip linux_11gR2_database_1of2.zip

unzip linux_11gR2_database_2of2.zip

Then Set Ownership:

chown -R oracle:oinstall database

mv database /tmp

11- Set Env. Variables & Paths for oracle’s User

Login as Oracle

su oracle

Edit .bashrc file

nano ~/.bashrc

Append:

# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_HOSTNAME=[HOSTNAME]; export ORACLE_HOSTNAME
ORACLE_UNQNAME=DB11G; export ORACLE_UNQNAME
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1; export ORACLE_HOME
ORACLE_SID=[DBSID]; export ORACLE_SID
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/lib64; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH

Replace [HOSTNAME] with IP and [DBSID] with SID Name

In this Example Respectively:

HOSTNAME = 127.0.0.1
DBSID = SID

Load New .bashrc Settings

source ~/.bashrc

12- Install the Oracle 11g Software

cd /tmp/database

./runInstaller

If Got Display Not Set Look:

GetOracle 12c DB Troubleshooting.

On the first screen Just Leave eMail Blank and Un-Check the Demand of Security Update Support then Click on Next

Then Confirm on Warning and Follow.

On “Select Installation Option” Select “Install database software only” and Click on Next

On Step 3 Leave Default “Single instance database installation” and Click on Next

On Step 4 Select your Language and Click on Next

On Step 5 Leave Default Enterprise Edition and Click on Next

On “Installation Location” Set All As Here Below and Click on Next

Oracle Base: /u01/app/oracle
Software Location: /u01/app/oracle/product/11.2.0/dbhome_1

These are the Same Settings Inserted into the .bash_profile File…

On “Create Inventory” if you Setup the Path on .bash_profile Like Here Leave Default and Click on Next

On “Operating System Groups” if you Setup the Path on .bash_profile Like Here Leave Default and Click on **Next

On “Prerequisite Checks” you will Get Easily a “Warning Message” about some Missing Requirements

Just Check: “Ignore All” and Follow Up with Installation…

Check Ignore All and Follow…

On the “Summary” Click on “Save Response File” to Take Note of Settings and then Click on Finish

The Installation Product Procedure should Start…

13- Execute Scripts

Right Before the End of Process a Pop-Up Window will Show the Path to Two Configuration Scripts you Need to Execute on Terminal !

Next Oracle Should Confirm you of the Successful Installation Achivement.

After you Should Access the “Enterprise Manager” on Browser by the URL shown on the Latest Screen.

On a Localhost for Example you Should Access the Enterprise Manager by the Address:

https://127.0.0.1:1158/em

And you can Login with:
User Name: SYS

Password: oracleDatabasePassword

From the Drop-down below Select >> Connect as SYSDBA

You Should be Able to Access the Database by the Enterprise Manager!

(The Source Source)


Blurry fonts after upgrading to 10.04, Nvidia issue?

You might be using wrong settings for subpixel hinting - it might be turned on when it shouldn't be, depending on your monitor. I've found that 10.04 defaults to having it turned on with LCD panels (haven't tested a CRT in a while.)

Your panel might be also returning the wrong information about the color order.

Check the Appearance settings. nvidia-settings may override the Free Software stack - there's a lot of points where nvidia driver does odd things. Try temporarily removing the nvidia driver to let nouveau drive the hardware and see if the situation improves.

As of note nouveau in Ubuntu 10.04 does not have 3D acceleration, but is quite fine in 2D.


Problem installing Ubuntu On Mbr disk Scheme not GPT

The main problem seems to be that you are installing Linux using UEFI mode, which will automatically convert the partition scheme to GPT, which is necessarry for UEFI.

If you want to keep Windows and Linux on legacy BIOS, simply make sure you are booting into the non-UEFI mode. Exactly how you do that depends on your motherboard. Normally when you get to select boot options, there will be listings that show UEFI options with UEFI: and non-UEFI options without.


Choosing what partition to install ubuntu

Everything you need is in the Something else option when you reach the partitioning menu during the installation process.  In there you can select the existing partition you want to use, erase the current contents and instruct the installer to mount it as root partition.

This is not the only thing you need to do though since you probably need to create a swap partition too and select a place to install grub.  If you are not familiar with these tasks, this may help you.

Backup all your data before you start this process since there is a great chance you might make unrecoverable mistakes.  Be very careful.


Diagnostics are not infallible, and errors during use are your best clue.

Make sure to make a backup, nightly, and verify the backup is accurate, until either the failures fade away, or you can replace that drive.


Just installed and 1st time user needs link to novice site?

You might find the official forums to be helpful:

http://ubuntuforums.org/index.php

Particularly the New to Ubuntu and General Help subforums for asking questions if you need help with something.

Just mention that you're using Lubuntu (the official website is lubuntu . net)

Depending on what tasks you use your computer for you may find Linux (specifically Lubuntu) very similar, or surprisingly different. One of the first things you might notice is that the method for installing software that you need is quite unlike windows. Here's a quick guide on some differences:

https://help.ubuntu.com/community/Lubuntu/Setup#Coming_from_Windows

Hope some of that helps. As someone who uses Linux for both work and home uses, for the majority of the time it's just Windows with fewer fiddly bits (no antivirus, no defragging, no crap cleaning, sane networking and configuration, unbelievably fewer crashes etc).


Chromium/Chrome not working in Ubuntu 14.04

I had the exact same problem, and still do. I just installed chrome beta and it fixed it, that's what I'm using right now. There really isn't much difference, and the current version seems perfectly stable


Global Dark Theme option is not working in Gnome Tweak Tools?

Global Dark theme option will only work if the theme in question supports it. In other word, the theme supplies alternative assets and css for this. But Your theme "MacBuntu OS" doesn't provide any such files. That's why it won't work.


You said the answer, the hard drive will always work (you can try with any OS on the other drive). Just open the PC and detach it. Some BIOSes may have the option to remove the drive.


Trying to configure a wifi bssid on netplan (need some examplesthat works)

"You can find many templates in /usr/share/doc/netplan/examples/" according to the posting I just read in the link below. It is near the bottom where they give the address to the netplan.io site.
How to configure wpa_supplicant in Ubuntu server 20.04


The default is just a directory in the root filesystem.

That's fine but I have a desktop, a ton of RAM and reboot very infrequently... Which is the perfect description of somebody who could be using RAM instead of SSD for caching temporary stuff... So mine is mounted as a tmpfs RAMdisk, defined in fstab as:

tmpfs    /tmp    tmpfs    defaults,noatime,mode=1777   0  0

If you power cycle lots, this obviously isn't going to be a good idea for you.

You asked on another —now deleted— answer what the two zeroes were on the end, that's handled by another answer but they basically mean the system doesn't care about what happens to this filesystem if things crash. It won't dump out or check it for errors on boot.

noatime is just there as a tiny performance thing. Nothing I know of needs to audit access times of /tmp so I don't bother storing them. There's nothing inherently dangerous about allowing SUID, exec or character devices in /tmp and some things might need them.

In terms of security, while anything can write into /tmp it doesn't mean anything can overwrite or even read existing files. If you have a go-rw permission file, other people won't be able to mess around with it. The various systems that write into /tmp already do things to make sure that they're not clashing over filenames (typically by appending the $USER variable to the filename).


This appears to be a bug and you may have to wait until it is fixed: Launchpad bug report


Clear .cache Tracker directory in Ubuntu?

You can "pause" the Gnome Tracker by setting the configuration option org.freedesktop.Tracker.Miner.Files.low-disk-space-limit used by tracker-miner-fs.

Values indicate if we pause indexing at a percentage of low disk space (0-100% or -1 to disable the check entirely, 3 being the default value).

Open a terminal (Ctrl+Alt+t) and type the following command to stop the tracker at 1%:

gsettings set org.freedesktop.Tracker.Miner.Files low-disk-space-limit 1

Source.


I finally done what i've wanted, by using preseed and it works great <3


Steam itself is located in $HOME/.steam. For the games, you can give it a different location during the installation.


Lenovo B570 Ubuntu 13.04 wireless connectivity issues

In your wireless network settings you need to add your wireless IP and DNS.


How to upgrade Firefox on several computers on the network

First of all, not tar files, but debian packages.

I see following solutions:

If one of the computers is connected to the Internet, you can use it as a local cache and point the package managers (apt) from other computers on the LAN to that machine
If there is no other way than to install manually, use pssh or another parallel SSH solution (see here). In essence, you connect to all computers using SSH, type a command, and the command gets executed on all machines.
actually, it can be even achieved with a simple script if you can log in as root and using key-based authentication (this is not recommended in general, but could be OK on a LAN not connected to the Internet)

for host in `cat hosts_to_update` ; do
     scp install_script.sh tar_file_blah.tar.gz root@$host
     ssh root@$host install_script.sh
done

All of that will require some initial setting up, but afterwords you will be able to run the updates more smoothly.


On an HP nc6400 laptop the mute light on the mute button stays on?

Try this: open a terminal and enter the following command:

gksu gedit /etc/modprobe.d/alsa-base.conf

Then add the following line at the end of the file and save it:

amixer set IEC958 off

The command above is to switch it off.

Now just reboot your system.

Source: LED And Low Sound Issue In Macbook Running Ubuntu 11.04


Unless you want to edit the source yourself, no.

It makes no sense that a drop-down is used instead of tabs.

But if you go to "View->List of open files" in the menu, and you make sure the Structure panel is open, a clickable list of open files will appear that is helpful when you have lots of files open.


Press Alt+F2 and type cinnamon --replace. Alternatively, try finding the cinnamon applet in your panel and under troubleshoot, restart.


Firefox 88 error after clicking an external link when already open

This is due to Firefox not properly closing down.It can be due to a range of issues such as custom theming, extensions, graphics acceleration. See the support page of Firefox for troubleshooting.


Remove from start up:

sudo update-rc.d apache2 remove
sudo update-rc.d mysql remove

Start at will:

sudo service mysql start
sudo service apache2 start


sudo add-apt-repository ppa:achadwick/mypaint-testing
sudo apt-get update
sudo apt-get install mypaint mypaint-data-hires

Source: http://www.noobslab.com/2013/01/install-mypaint-110-in-ubuntu.html


I think you are confusing the fading of the screen with the screen not getting locked. The moment you press Ctrl+Alt+L or Super+L, you screen is already locked, even if the screen takes a second to fade as a "cinematic effect". I verified this by repeatedly pressing Ctrl+Alt+T right after Super+L to attempt to open as many terminals as I can but alas, no new terminals ever opened when I later unlocked my screen to check.

Note: It looks like the screen in GNOME Flashback (Metacity) doesn't fade. Instead, after being locked, it stays on for a second and then turns black. However, the screen is still locked even if it lingers around for that one second.


Accessibility bus warning when opening files in Eclipse from command line (Ubuntu 13.10)

Summary of workaround: Add "export NO_AT_BRIDGE=1" to your .bashrc/.bash_profile/etc.

Details: I have this annoying issue too. Obviously, it's a bug that needs to be fixed, but as an end user, I found a workaround at a Fedora bug thread: https://bugzilla.redhat.com/show_bug.cgi?id=1056820. The workaround is to add "export NO_AT_BRIDGE=1" to my environment (via .bashrc/.bash_profile/etc, or similar equivalent command if you're not using bash). Hope that helps.


Could not find gem 'jquery-rails (>= 0)'

You can look at this answer on Stackoverflow: https://stackoverflow.com/questions/10123761/rubymine-could-not-find-gem-jquery-rails. The Google keyword is your own error message: Could not find gem 'jquery-rails (>= 0) ruby'.


Ubuntu 20.04 LTS - llvmpipe (LLVM 10.0.0, 256 bits) used instead of NVIDIA graphic card or INTEL internal graphic shared card

Googling for a solution I come up with this solution Ubuntu 20.04 Intel HD 615: No Brightness control or no Boot
Considering that I also do not have brightness controll I've investigated in my grub settings, in my /etc/default/grub  configuration.
So I found that I had:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX="nomodeset"

I've tried to change with
GRUB_CMDLINE_LINUX_DEFAULT=""
GRUB_CMDLINE_LINUX=""

and then update the GRUB config file with
sudo update-grub

and now finally I 've got my Mesa Intel® UHD Graphics 630 (CFL GT2) in the info gnome panel. Now I've also the possibility to switch to NVIDIA card too. The problem of use of llvmpipe (LLVM 10.0.0, 256 bits) was caused by a wrong setting "nomodeset" in my grub configuration.


Customize fonts in context menus and dialogs

Ok I got it now: the different appearance results from the theme itself. When a non sans-serif font is selected by using unity-tweak-tool, it is displayed consistently throughout the whole desktop. This seems to affect only sans serif fonts, most noticeably with the Ubuntu Light font. I can live with that now ;)


How to make the Device Partitioning Numbers in Order (example: "/dev/sda1 to sda5"}

Use sgdisk from the gdisk package to sort the entries.  This can be done by issuing sgdisk -s /dev/sda.

   -s, --sort
          Sort partition entries. GPT partition numbers need not match the
          order of partitions on the disk. If you want them to match,  you
          can use this option.  Note that some partitioning utilities sort
          partitions whenever they make  changes.  Such  changes  will  be
          reflected  in  your  device  filenames,  so you may need to edit
          /etc/fstab if you use this option.


Ubuntu 11.04 does not detect my tata photon +

Even I use a tata photon plus+ , but it worked seamlessly for me. Though I connect using the gnome-ppp dialer.
To use the gnome-ppp dialer:

Install it by executing sudo apt-get install gnome-ppp

Once it is installed execute it by searching for "gnome ppp" in the dash or executing
sudo gnome-ppp in the terminal\using alt+f2.

Once opened gnome-ppp, click on "Setup"

The setup window shall open, now click on "Detect"

Fortunately, if you haven't messed up anything in your modeswitch file, it shall detect your modem.

After it is detected, click on "close"

Type your username and password  (By default the username is "internet" and the password is "internet" ) and click on "connect".

It shall connect to the Internet, showing a window which shows the time since you have connected.

PS: You must disconnect from all networks before using your Tata Photon +


Only display a range of entries from the bash history

history n prints only n lines of the history. For example:

$ history 4
 2000  type history
 2001  help
 2002  help history
 2003  history 4
$

So we can make an alias in your .bashrc:

alias h="history 100"

From help history:

history: history [-c] [-d offset] [n] or history -anrw [filename] or history -ps arg [arg...]
    Display or manipulate the history list.

    Display the history list with line numbers, prefixing each modified
    entry with a `*'.  An argument of N lists only the last N entries.

This is useful if you want to keep a large history set, maybe even an unlimited one. With HISTCONTROL=ignoreboth:erasedups and reverse incremental search, it's a special occasion when you actually run the history command.


ImageMagick 6.7.7-10 is the current version for Trusty. There is nothing to upgrade as this version was extensively tested with Trusty.

For available upgrades run

sudo apt-get update
sudo apt-get install --only-upgrade imagemagick

Only if you run in into a bug that you desperately need to fix yourself, should you compile a newer version:

mkdir -p ~/src
cd ~/src
wget http://www.imagemagick.org/download/ImageMagick-6.9.3-1.tar.gz
sudo apt-get install build-essential checkinstall
sudo apt-get build-dep imagemagick -y
tar xf ImageMagick-6.9.3-1.tar.gz
cd ~/src/ImageMagick-6.9.3-1
./configure
make
sudo checkinstall


Well... I'd say you can ssh your U machine and then issue the necessary lp or lpr commands. It's a bit of DIYish, but if ssh is already configured there's no need to open any ports.

Maybe this would work, from command line:

cat yourfile.pdf | ssh user@yourubuntumachine lpr

But maybe there's a quicker way... Let's see what others say.


How do I permanently disable notifications about Auto capture keyboard and Mouse pointer integration for a Virtualbox VM?

To remove the message once: click the X button.

To remove the message once and for all: click the crossed-out balloon next to the X.

To reinstate these messages, go to Settings -> User Interface -> File - Reset all warnings (this is my translation, could be slightly different).


Where is the gtk+-quartz-3.0 package located? (Trying to compile webkitgtk)

tl;dr: You're missing libsoup. Run sudo apt install libsoup2.4-dev

It's a red herring. The script looks for quartz (which is mac-only) and uses it only if available.

Looking at

Call Stack (most recent call first):
  /usr/share/cmake-3.13/Modules/FindPkgConfig.cmake:622 (_pkg_check_modules_internal)
  Source/cmake/FindLibSoup.cmake:35 (pkg_check_modules)
  Source/cmake/OptionsGTK.cmake:30 (find_package)
  Source/cmake/WebKitCommon.cmake:56 (include)
  CMakeLists.txt:169 (include)

It looks like the script it actually failing on finding libsoup. You can install libsoup with sudo apt install libsoup2.4-dev

Also, welcome to AskUbuntu!


You missed a space between [[ and $REPLY:

while [[$REPLY != 0 ]]; do

should be

while [[ $REPLY != 0 ]]; do


As I understand it, it only means that as long as you use X11 Snap doesn't provide any additional security over using e.g. apt packages. So you will need to remain just as careful about your software sources as before.

When running on Mir, supposedly Snap provides much better isolation between applications (sandboxing), which could provide more security when using software from less trusted sources.


Ubuntu 14.04.3 LTS on Sony Vaio SVS1513C5E

About the fan being loud. Maybe TLP will fix that: http://www.webupd8.org/2013/04/improve-power-usage-battery-life-in.html

Other than that, Just go with 14.04.3 if its an old laptop. Should be more stable.

Good luck :)


update-manager stuck when trying to update to ubuntu 18.04

Hi there I've run into the same problem , running do-release-upgrade gets up to the line Updating repository information and is where it gets stuck from the terminal.

I've figured out that i'm running the command without sudo, after i used sudo it updated my Ubuntu, with no problems.


Using wine:
Uninstall steam and fix any broken packages that you may have. You can so this by running sudo apt-get -f install then install wine if you do not already have it; dowload steam for Windows.  and install it in wine.
For more on how to install wine.

Other options:

After uninstalling the current steam installed & running

sudo -f install

add the following line to

/etc/apt/sources.list:
deb http://repo.steampowered.com/steam/ precise steam

Then run

sudo apt-get update && sudo apt-get install steam-launcher

or
Get the .deb file from steams official site.


As you mentioned that you are using ubuntu 14.04
so do the following steps to correct the problem:

Open Software & Updates and go to Additional Divers
Install the fitting driver from there.
Restart your system
Now your WiFi will definitely work and it will show the WiFi signals (within its range) also.


Change root mount on raspberry pi from SD card to SSD

Turns out the setting is in /boot/firmware/cmdline.txt. One of the flags was root= and the initial setting was based on the very ambiguous ext4 label which was, I guess, by default LABEL=writable in the base Ubuntu 20.04 raspberry pi server image.
I set it to a more explicit UUID based on blkid and it works after a reboot as per lsblk.


Winetricks showing options in different languages

The OP seems to have solved this and posted the following as an edit to their question. I am reproducing it below so the question can be answered.

EDIT: I fixed it! I did so by completely uninstalling and reinstalling it! (Probably should have tried that first, derp)
I have a picture attached below showing my issue:
Example of what is happening:


When you use you own desktop that adress tends to be "http://localhost" or "https://localhost" if you also activated SSL. Have a look in the hosts file on your system with ...

more /etc/hosts

I would expect you to have only 'localhost' here.  If not read on ...

If you have your desktop open to the world and this is intended for usages by 'others' on the web that visit your desktop this can also be "http://{your_external_ip_adress}" and when you bought a website address it will be "http://{website_address}".

You are suppose to add "/moodle" to the one that applies to you. I would expect "http://localhost/moodle".


Login loop when any Nvidia driver installed (ubuntu 16.04.3 , unity, lightdm)

I am using exactly the same hardware as OP, and I concluded that latest nvidia-384 driver (version 384.69-0ubuntu0~gpu14.04.1) from ppa:graphics-drivers/ppa does not fit the latest 4.4.0-96 kernel.

So I just remove it to downgrade my system to 4.4.0-93:

WARNING: destructive command, make sure you have another bootable kernel !

sudo apt-get purge linux-headers-4.4.0-96 linux-image-4.4.0-96-generic

Note that this may cause the kernel not updating anymore, so sometime after Nvidia fixing this I may decide to install back.

Related Post: Why does nvidia driver 346 work while driver 384 doesn't


I own and use successfully two Intel wireless devices. I have honed a few techniques in several years and thousands of forum posts.

First, check the settings in the router. WPA2-AES is preferred; not any WPA and WPA2 mixed mode and certainly not TKIP. Second, if your router is capable of N speeds, you may have better connectivity with a channel width of 20 MHz in the 2.4 GHz band instead of automatic 20/40 MHz, although it is likely to affect N speeds. I also have better luck with a fixed channel, either 1, 6 or 11, rather than automatic channel selection. Also, be certain the router is not set to use N speeds only; auto B, G and N is preferred. After making these changes, reboot the router.

Next, I recommend that your regulatory domain be set explicitly. Check yours:

sudo iw reg get

If you get 00, that is a one-size-maybe-fits-all setting. Find yours here: http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 Then set it temporarily:

sudo iw reg set IS

Of course, substitute your country code if not Iceland. Set it permanently:

gksudo gedit /etc/default/crda

Use nano or kate or leafpad if you don't have the text editor gedit.

Change the last line to read:

REGDOMAIN=IS

Proofread carefully, save and close the text editor.

Next, I'd set IPv6 to Ignore in Network Manager: http://docs.fedoraproject.org/en-US/Fedora/18/html/Installation_Guide/images/netconfig/network-connections-ipv6-ignore.png  This example is for ethernet, but you want wireless.

If these changes do not help, please try:

sudo modprobe -r iwlwifi
sudo modprobe iwlwifi 11n_disable=8

If it helps, make it permanent:

sudo -i
echo "options iwlwifi 11n_disable=8"  >>  /etc/modprobe.d/iwlwifi.conf
exit

Finally, Network Manager will default to ethernet if it's available. Please make your tests with the ethernet detached.

By the way, I believe the -17 firmware is the latest suitable firmware. Extracting the file that @Elder Geek referenced yields the older -14 firmware.


Have you tried removing Xine and installing Gstreamer codecs for ubuntu?  Personally, I prefer gstreamer over xine as it has always had better/smoother playback in ubuntu.


The Additional Drivers tool showed no proprietary drivers so I opened an XTerm window and entered the command

lspci

The results included the line:

Network controller: Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller (rev 02)

This means that the Dell 1370 card was found on boot but as noted on the Network control panel no firmware was installed.

I ran the following from the XTerm console:

sudo apt-get install firmware-b43-installer

This seemed to do the trick, "Wireless networking" came right up and connected to my WiFi router.


Try to run sudo do-release-upgrade -d in a terminal and it should upgrade to Ubuntu 12,10.


How to add a shutdown shortcut similar to Alt+F4 in windows

You must

Select Custom Shortcuts
Click to + button (Appear a window that have name and command input
box)
Type a name in Name: input box (everything you like) and in the
Command: input box type gnome-session-quit --power-off
Click to Add button
A field created. Click it and press every shortcut (example super + q )

Don't forget you have several seconds to choose or cancel it otherwise it will be shut down automatically.


Difference between 'dir' and 'ls' terminal commands?

dir and ls are part of coreutils and dir is almost the same as ls, just with different default options.

  The GNU Core Utilities are the basic file, shell and text manipulation utilities of the GNU operating system. These are the core utilities which are expected to exist on every operating system.

info dir says:

  dir is equivalent to ls -C -b; that is, by default files are listed
  in columns, sorted vertically, and special characters are represented
  by backslash escape sequences.

Oh and there is also vdir! info vdir says:

  vdir is equivalent to ls -l -b; that is, by default files are
  listed in long format and special characters are represented by
  backslash escape sequences.

Most likely dir exists for backwards compatibility or due to historical reasons.


Since Version 4.3 Google Earth accepts the parameter -style GTK|plastique|cleanlooks.
There is a (rough) way to force Google Earth to use the theme that is set:

Install the getlibs deb package (not available in the repositories)
Rename/Move all libraries related to Qt from Google Earth by deleting all files beginning with libQt within the Google Earth directory: sudo mv /usr/lib/googleearth/libQt* $HOME
Install the 32-bit library of libphonon4: sudo getlibs -p libphonon4


When I've set LC_ALL=C (for English output on the command line) how can I return to my original locale (nl_NL)?

@steeldriver is right, unsurprisingly. All you need to do is

LC_ALL=

to restore all your normal locale settings for the session.

Example:

$ export LC_ALL=C
$ locale
LANG=en_GB.UTF-8
LANGUAGE=en_GB:en
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=C

setting LC_ALL= restores the original locale settings

$ LC_ALL=
$ locale
LANG=en_GB.UTF-8
LANGUAGE=en_GB:en
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC=en_GB.UTF-8
LC_TIME=en_GB.UTF-8
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY=en_GB.UTF-8
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER=en_GB.UTF-8
LC_NAME=en_GB.UTF-8
LC_ADDRESS=en_GB.UTF-8
LC_TELEPHONE=en_GB.UTF-8
LC_MEASUREMENT=en_GB.UTF-8
LC_IDENTIFICATION=en_GB.UTF-8
LC_ALL=


Reopen A Python File Where It Left Off After Restarting

A reboot of the server obviously will also kill all running applications. Therefore we need to create a file on the harddisk that survives this.

This file only needs to flag whether the server is going to reboot or if it was just rebooted like:

rebooted = False
rebooted = True

We then let our application run different paths like:

rebooted = load_bootflag()
if not rebooted:
    do_this()
    rebooted = True
    save_bootflag(rebooted)
    shutdownroutine()
else:
    do_that()
    rebooted = False
    save_bootflag(rebooted)

Where load_bootflag() and save_bootflag() are your routines to create this file.


Which version of Ubuntu on Celeron with 1GB RAM is suitable?

I recommend lubuntu 32 bit because it will be the lightest on resources.
lubuntu


Wine version mismatch after upgrading to 18.04

Wine currently has no Bionic repository. Best it has is Artful. Depending on how you installed Wine before you upgraded, I'd suggest looking at your sources.list in /etc/apt.

If you originally installed Wine by following the Wine guide, you should have a line similar to the following:

deb https://dl.winehq.org/wine-builds/ubuntu/

However, this will not work in Bionic just yet, until the developers for Wine make a Bionic repository available. To work around this, edit the above line to:

deb https://dl.winehq.org/wine-builds/ubuntu/ artful main

If you don't have a line for Wine anywhere in your sources.list file, add it as above.

After an apt update, you should be able to install the proper winehq-stable and winehq-staging versions as reported on the homepage of Wine. When Bionic is available, you should be able to revert to the first line without having "artful main" added to the end.


How Do I Reset my Ubuntu Password on a Laptop That Came with Windows 8 Pre-installed?

If standard UEFI, you should just be able to go into UEFI menu and choose to boot Windows.

Some UEFI systems need escape rather than left shift key to get grub menu.
You can also immediately after UEFI/BIOS press down arrow once. Timing may be important, but grub menu remembers key press after BIOS but before menu appears. Once past menu then it will not matter.

You can run Boot-Repair from your installer, and chroot into your system to make just about any repair.

But is just a new install, it might be easier to just reinstall. Either delete existing partition and use install into unallocated or use manual install Something Else and choose the existing / (root) partition for new /.


You can't boot a linux kernel currently on that processor. The intel atom z2760 does not work with linux period.


As you say that you "wish to scrap what there is earlier" (if I understand you correctly) you seem to have the option to either set up a raid (as it appears to have been as you got it) or use the SSD disks as separate storage devices.

The latter should be the easier option.
In that case I'd suggest you click on "Unallocated space" as shown in the image above, then select Device > Create Partition table (from menus), which leaves you with one pending operation (View > Pending operations shows the list).
To execute the pending operations click on the 'tick' or select Edit > Apply all operations
... Then it should be possible to partition that disk.

Repeat for /dev/sdb and the error message should disappear.
I believe it appears due to gparted not being able to recognize the data on these two disks.


How to create an .iso image from a windows dvd that i can then put on a flash-drive

Although I do not understand what this question has to do with Ubuntu or Linux, I will give you some pointers.

If you are using Ubuntu you can use Brasero which is pre-installed in Ubuntu or you can download dvd-rip. If you are using windows, you can extract boot image from CD/DVD using WinISO or MagicISO (there must be plenty others). You can use the same tools to make copies of bootable CD/DVDs. Once you have the image you can make a live USB with this image using UNetbootin.


Distorted wallpaper upon login after updating to 15.04

A clean install will solve your issue. From the solved thread below it seems it was a driver issue.

Try a clean install and if it doesn't work, let me know. I have a few other suggestions. Good luck!

Source: http://ubuntuforums.org/showthread.php?t=2266382


ssh'ing into my home machine without a static IP address

The usual way is to use a Dynamic DNS service (DDNS).  There are free and paid solutions, and it's really not particularly hard to set up.  Once you set it up, you will always have the same URL no matter what IP address you have.  I use it to access my computer via SSH, and also my router's USB drive via FTP.

I've been using noip.com for years.  They have a free plan if you want to try it out. The enhanced plan ($20/year) gives you more choices for domain names, and doesn't require monthly access.

You usually pick a domain like "ddns.net" (one of the free ones), and prepend any name in front that's available, usually your name, or something unique.  Then, you need to tell noip your ip address, which can be either automated or manual (to test it out).  There is an updater that can run automatically and update it when changed, or many routers can do it for you.


Two error logs you want to check out are:

/var/log/apache2/error.log
/var/log/apache2/graphite-web_error.log    {more useful}

I've found a few reasons that can cause this error screen to get produced. In my case I'm seeing errors with the "/usr/lib/python2.7/dist-packages/django/db/models/query.py" file.


I cannot enable canonical partner and independent, why?

The bug is Ubuntu failing to display an authentication prompt. A potential solution to this is simply to run the software as root:

sudo software-properties-gtk

It's also possible (as @Abdel-Rahman notes) to edit the sources.list file directly. The software-properties-gtk application does just edit that file, commenting or uncommenting the line as needed. Using add-apt-repository will duplicate this line, and have no effect on the authentication bug: it's not actively harmful, but it's not a preferable solution.


How do I set caps to BOTH control and escape in ubuntu/gnome?

Don't use xmodmap. It's a trap!
Install xcape
Use gnome-tweaks to turn capslock into control
Use xcape -d to verify that capslock is key 66
Set xcape -e '#66=Escape' in Startup Applications or ~/.profile

That's it!

No xmodmap. No crazy systemd settings. No dconf. It just works.


How to set memory usage sort in top command as default?

Start it with
top -o %MEM

You can create an alias: alias top='top -o %MEM' in ~/.bashrc) for this.
Easier method:  top can save to a configuration using W.

W :Write-the-Configuration-File This will save all of your options and
toggles plus the current display mode and delay time. By issuing this
command just before quitting top, you will be able to restart later in
exactly that same state.

It saves to ~/.toprc. Going back to default is the same as removing ~/.toprc.


How can I install software without internet?

Well this is rather a tricky situation if both the systems are remotely located from each other and cannot have network sharing (Internet sharing), And I have a tricky solution to your Problem.

Install Ubuntu 11.10 using Wubi installer on your windows 7 Machine. This way you will not alter your system in anyway.

Then install the following Portable Software Center on the Wubi install of Ubuntu.
Here is a way to install it.

http://www.webupd8.org/2011/12/portable-software-center-create-custom.html

Download the software you need for your original Ubuntu PC & transfer the files using a Pen drive or External Hard Disk and Install. :-)


Ubuntu 16.04 is not detecting my Nvidia 820M graphic card, how should I install the drivers

You say "does not detect" but you probably mean "does not install and configure proprietary drivers". I suppose it might not detect the hardware at all, but that unlikely. Run "lspci", for example, to check.

If you need the nvidia drivers, your question was answered here:

Graphics issues after/while installing Ubuntu 16.04/16.10 with NVIDIA graphics

After installation of nvidia-364, don't worry about Optimus and getting automatic mode switching. Stay away from Bumblebee or other magic. That's a chore for advanced users, and perhaps not even them. Be content with running "nvidia-settings" where you can choose to use the nvidia or built-in Intel display, if your computer has both. Then you have to restart and you are stuck with that video card for whole session.

On my system, the Intel is more stable, less likely to crash at random and never shows static or pixelated letters.  I have very poor performance of the Nvidia driver to external monitors. Now that X configuration is mostly automatic, it is also now mostly impossible to fix and adjust (old man talking).  Probably, my monitors are not fast enough to keep up with Nvidia. However, with Intel, there are other drawbacks. The cursor is invisible after suspend and you have to switch to VT1 and back to get it to show again. That's really annoying.


I added a line to the wlan4 stanza of /etc/network/interfaces saying

up /etc/init.d/isc-dhcp-server restart || true

Not sure if this is the "right" way to accomplish this, but it seems to work.  I tested it by unplugging and reconnecting the wifi card, and dhcpd was restarted.


cannot access copied folder in htdocs of lampp in ubuntu?

instead of chmod 777 you should better to change the owner to www:www and keep 644 or 755 security. Under www user the apache is running and will have read-write-execute access, but other users will have just read or read-execute only access. Try this:

sudo chmod -R 755 /opt/lampp/htdocs
sudo chown -R www-data:www-data  /opt/lampp/htdocs


That's not how you install a deb file. You need to use a package manager like gdebi or dpkg.

Try this:

sudo dpkg -i VMware-Wokstation-Full-9.0.2-1031769.x86_64.deb

or

sudo apt-get install gdebi
sudo gdebi VMware-Wokstation-Full-9.0.2-1031769.x86_64.deb


notepad-plus-plus snap does not start on Ubuntu

According to your command-output the plug notepad-plus-plus:wine-platform-plug is connected to the slot wine-platform-i386:wine-base-stable already. But the mandatory plug notepad-plus-plus:process-control is not connected.

You need to run

sudo snap connect notepad-plus-plus:process-control

Source:
https://forum.snapcraft.io/t/call-for-testing-notepad-plus-plus/4498


How to install Norwegian keyboard and spelling?

There is an implementation pending review at https://code.launchpad.net/~ari-kroyer-online/ubuntu-keyboard/add-norwegian-layout/+merge/250814


"Intel Corporation Device 3165" wifi doesn't work


What is needed for the authorized-keys in the environments.yaml file?

It needs to be the exact output of your ~/.ssh/id_rsa.pub, here's mine as an example:

type: openstack
default-series: precise
authorized-keys: |
  ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCuzAhXssdiPaxQ9mEXd6VnRcqhkrJMgt0kQi8FmQgNbO0hKaGfEcdTYbCaA4V37iWwIXSosfkSZ4oglZvbz9dBs6zRC/sObVXGr5DCq58UY7W1LgEF+nSprAGZZs+lJTqs+KNnB8cnJ3Drs2peTNOnlCmCw4zbuAO2ftNuWzaVJRpX5IJae/lxr0B9fbtlQtEcWREUeJRHNi5koQO583TEg0ViyFV6MK+o3SM1FKeXxXaQ/94vJx8Of/CbUnBOyXOUG0p8FK3gyhlsbdsEdRXzYzQ5L1lES+44oujlMHN/+vVw0OMmeMGpnMx2NeFp/tN6y7nvoFjx+Wduzaiwl2RX jorge@lowgirl

Make note of the |, I think you need it.


Can you install Ubuntu on non-uEFI laptop?

It's Dell.  It has UEFI, but the firmware doesn't allow the user access.  I'll venture a guess that you're not using a "Guided" option during the partitioning stage, or if you are Ubuntu is not seeing the UEFI requirement.

In either case, try making a 100MB EFI/GPT/FAT32 partition at the very beginning of the drive.  Ubuntu gives this option in the for of "Do Something Else..."  Then continue the installation.


how to install MPLAB X IDE v3.00 Beta in ubuntu 12.04?

Extract .sh file, open terminal , navigate to where you extrated the .sh file and run that file with ./MPL... I forget what the full name of that .sh file is. Got it installed under Mint this same way


When does Ubuntu 16.04 use /etc/apache2/ssl/apache.crt?

According to some manuals the SSL certificate files must be placed under /etc/apache2/ssl/, but they can be placed in a different folder, depending on your own configuration.

To have HTTPS access to your site, you must enable the SSLEngine and provide a valid SSL certificate.

For this purpose you should use OpenSSL command line tool to generate your own certificate. Then you need to validate the certificate at any provider like as COMODO, StarSSL, your local DNS provider, etc. Usually they offer free certificates for few months. Regarding this way of certificate generation you may look at these guides: for 14.04 and 16.04.

Also you can use the software tool Let's Encrypt. From Let's Encrypt Getting Started page:

  To enable HTTPS on your website, you need to get a certificate (a type
  of file) from a Certificate Authority (CA). Let’s Encrypt is a CA. In
  order to get a certificate for your website’s domain from Let’s
  Encrypt, you have to demonstrate control over the domain. With Let’s
  Encrypt, you do this using software that uses the ACME protocol, which
  typically runs on your web host.

I would suggest you to use Let's Encrypt, at this stage. So let's begin.

1st - install Let's Encrypt:

sudo apt install python-letsencrypt-apache

2nd - generate the certificate. To generate SSL certificate compatible with Apache just type: letsencrypt --apache. This command will start interactive dialogue (where you must fill your site's personal data) and will generate HTTPS.conf file based on your existing HTTP.conf file.

You can use and some additional parameters, for example letsencrypt --apache certonly will do the same as above but will not generate HTTPS.conf file.

Also you can put all necessary parameters to avoid the dialogue. According to the information provided in the question our command should looks like:

sudo letsencrypt --apache certonly --rsa-key-size 4096 --email myemail@mailhoster.xx -d my.domain.name.de

Let's assume you choose the last approach. The command will generate all necessary certificate files and they will be placed in the folder /etc/letsencrypt/archive/my.domain.name.de/. Also these files will be sym-linked into the folder /etc/letsencrypt/live/my.domain.name.de/. These symlinks will be updated automatically in the future, so we will use them.

3rd -  configure (manually) your HTTPS VirtualHost. According to the above the configuration file should looks like:

<IfModule mod_ssl.c>
    <VirtualHost _default_:443>

       ServerAdmin myemail@mailhoster.xx
       ServerName my.domain.name.de
       DocumentRoot /var/www/mysslsite

        SSLEngine on
        SSLCertificateFile /etc/letsencrypt/live/my.domain.name.de/cert.pem
        SSLCertificateKeyFile /etc/letsencrypt/live/my.domain.name.de/privkey.pem
        SSLCertificateChainFile /etc/letsencrypt/live/my.domain.name.de/chain.pem

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

        ErrorLog ${APACHE_LOG_DIR}/mysite.ssl.error.log
        CustomLog ${APACHE_LOG_DIR}/mysite.ssl.access.log combined

    </VirtualHost>
</IfModule>

4th - a2ensite the new VirtualHost, just in case a2enmod ssl and restart Apache. That's it. I hope now you will have HTTPS access to your site.

5th - renew your certificate into the future. For this purpose you can edit root's Crontab and add a job which will try to letsencrypt renew the certificates, every Sunday at 3:00 AM for example. Type sudo crontab -e and add this line at the bottom:

0 3 * * 0 /usr/bin/letsencrypt renew >> /var/log/letsencrypt-renew.log 2>&1

Notes:

letsencrypt / python-letsencrypt-apache is available for Ubuntu 16.04 and above, for previous versions there is certbot which is almost the same - from Ubuntu Manuals.
If you have few VirtualHosts you can use this syntax to generate their certificates (all together):

sudo letsencrypt --apache certonly --rsa-key-size 4096 --email myemail@mailhoster.xx -d my.domain.name-1.de -d my.domain.name-2.de -d my.domain.name-3.de

certbot.eff.org - Automatically enable HTTPS on your website with EFF's Certbot, deploying Let's Encrypt certificates.
The above answer is based on this one, where more details about the Apache's VH configuration are provided.

Read here how and why you should updatete your letsecrypt/certbot until February 13th, 2019: Failed to upgrade certbot on Ubuntu Bionic


Make sure you quote the patterns you provide to find, otherwise the shell may expand them if there are matching files in the current dir.

find /some/dir -name *.jpg   # bad
find /some/dir -name "*.jpg" # good

See http://mywiki.wooledge.org/UsingFind.


Duplicate application icons appear in the system tray of lubuntu 16.04.2 lts. How should I fix it?

I resolved this by:

Right-click on the icon in the tray.
Click "Indicator applets settings"
Uncheck and check back again "Indicator Applications"
Close the "Indicator applets settings" window.


Ubuntu is based on Debian Package Management while Fedora is based on RPM .While installing packages for Particular Os (Ubuntu or Fedora) they are only accessible in the Os you installed. Also different methods are used for Installing packages in both of them.
For Example -You cant Install the IOs app for Android , unless it is made available or created for Android.

Basically You cant use packages from Different Os'es. They are TWO DIFFERENT OS with Different Identities . you have to do little research on both of them , if you are really interested in using them.


Ubuntu MATE 14.04: Skype font, mouse and look bug

I have exactly same problem and this solution worked for me:

sudo apt-get install gtk2-engines-murrine:i386 gtk2-engines-pixbuf:i386

Source


I had a similar issue where it displayed "did not shut down properly" every time after booting up.
For me this was happening due to Google Chrome running in the background even after closing it, as this was the default setup after installation.

I fixed it by going to the Advanced settings in chrome " Settings -> System -> Continue running background apps when Google Chrome is closed" and unchecking the box beside it.


Start Windows automatically unless a key is pressed, then start Ubuntu

For your needs you have to edit the GRUB configuration:

/etc/default/grub from Terminal using sudo

sudo gedit /etc/default/grub

A fresh installation should look like this:

# This file is sourced by update-grub, and its variables are propagated
# to its children in /etc/grub.d/
GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT="3"
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID="true"

# Uncomment to disable generation of recovery mode menu entrys
## Bis GRUB 1.98
#GRUB_DISABLE_LINUX_RECOVERY="true"
## Ab GRUB 1.99
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

To automatically boot Windows, you have to change

GRUB_DEFAULT=0

to the number of the entry for Windows in GRUB. Keep in mind that the menu entries start at 0, not 1.

To disable the menu, you have to enable

#GRUB_HIDDEN_TIMEOUT=0

by removing the '#' and changing the value from '0' to '1' like this: GRUB_HIDDEN_TIMEOUT=1.

You also have to disable

GRUB_TIMEOUT="3"

by placing a '#' at the beginning of the line like this: #GRUB_TIMEOUT="3"

When you are done editing, save the file and then run the following command to apply the changes:

sudo update-grub

If you then want to boot into Ubuntu (or any other OS) you have to hold Shift ⇧ while starting, then the GRUB-Menu will be displayed and you can select Ubuntu.


How to list out all the user created daemon processes

All running processes (daemon and otherwise) can be listed using ps aux, you can filter out the process using grep on its output as follows:

ps aux | grep <process_name>

this would list its PID as well, which you can use to kill the process using:

kill <pid>

For, example, when I execute:

ps aux | grep mysqld

on my system, I get:

mysql     3933  0.0  1.2 418616 46832 ?        Ssl  10:21   0:00 /usr/sbin/mysqld

where 3933 is the pid, which I can kill using:

kill 3933

(I required sudo here, since I am not the owner of the process)

Or if you know the exact process name and it has only one running instance or you want to kill all running instances, you could use:

killall <process_name>

You could also use

pidof <process_name>

to get just the pid of the concerned process, however, you need to know the exact process name.


How do I know if a command needs to be run as root?

I usually tell from reading (properly written) manuals when I see two things attached to the command to be run, these are:

#, and
sudo

these usually indicate that that file will only operate using root privileges. The # usually means the root account is in use, and the other (sudo) means the user should be in the sudoers group so they can use the sudo command.

The other not so obvious indicator is the ownership of the said file, which will only be seen if we run ls -l command on the file, and of course the location of the file in question. This is usually a good give away that it needs to be run as root. Any location outside user home usually needs elevated privileges to run or manipulate.


Problem due to package dependency between `texlive-bibtex-extra` and `biber` in TeXLive 2019 on Ubuntu 18.04 LTS virtual machine

Your problem is probably better handled by the PPA author, as commented by @N0orbert. I offer an alternate option here.

Another possibility is to install a "portable" TeXLive instance in a directory under your home (I have several TeXLive instances installed in my system; I use them to check my package under several version of the main packages --- TeX/LaTeX is a very active community, and 3 years of development is a lot of changes). The advantage is that your installation is in parallel to the system one, the disadvantage is that it is not easily integrated in the desktop (you have to use a lot of command line instruction [note 1]).

Do everything as a normal user, so you will not touch the standard installation.

Basically you follow the instructions to acquire a network TeXLive installation.

download the TeXLive network installer
follow the instruction to install the network version of TeXLive https://tug.org/texlive/acquire-netinstall.html --- be sure to select a "portable installation" under a personal directory, like $HOME/texlive2020 or similar.
You now have to change your PATH to find the new directories before the system ones. I use this script from AlexG to have a shell using the portable one.

Notice that this is a sort-of advanced setup, so you need to understand things as the environment variables, startup scripts, PATH and similar thing, otherwise do not do it.

The downside is that you will need an extra 6-8 Gbyte for every TeXLive version you have (more if you do not disable backups[note 2]) and all of this will need to be downloaded from your internet link.

[note 1] Well, you can change your startup scripts to add the new directories in front of the standard ones. It will be only for your user and I never did it, so I do not guarantee that it will work ok.

[note 2] You have to keep your new repository up-to-date, running tlmgr update --all --self (with the correct PATH!) manually from time to time. That will keep old package versions as backups; you can remove them/avoid them if you want, but by default it will do backups.


sudo apt-get install ppa-purge
sudo ppa-purge ppa:kubuntu-ppa/next


You can find that information with lspci -v. In you case, you could list the information of the storage controller only with the command as follows.

lspci -s 00:1f.2 -v

This contains a line Kernel driver in use which lists the kernel driver used for that device.


You could do:

vim -c "ha > text.ps | q" file.py

-c is used to run commands after the file has been opened.


Ubuntu 14.04.3 installation error (screenshot included)

Somewhere along the boot process, the Live environment is losing connection to the USB stick and thus cannot read the SquashFS image containing the live environment filesystem.

If you have your USB stick plugged into a USB 3.0 port, try connecting it to a USB 2.0 port, otherwise it sounds like something didn't go right with your USB creation, or you have another drive on your Z510 that is interfering with the live boot process.

I would re-make your boot USB stick. If you're a Windows user, download the Rufus for Windows tool and make your boot USB stick from ISO that way, otherwise if you have access to another working Ubuntu system, use the USB Creator Tool there to make it.


Bring up your terminal, then run nvidia-settings as root:

sudo nvidia-settings

After you've configured your settings, click on X Server Display Configuration, then click on the Save to X Configuration File button, enter /etc/X11/xorg.conf in the textbox, make sure Merge with existing file is unchecked, then click the Save button.


Synaptic Manager does not display Descriptions of Packages

not an expert, although since no one answered it, here -- I remember reading that Synaptic and either apt or another popular package aren't compatible, and that leaves the configuration inconsistent, in case it gives you a clue.

Look up apt.  Clean up the lists, and populate them afresh. I wish I could say more than you would find on the web better, except that if all that fails to help, look up dpkg.

There are good answers around. If you don't find them, please comment and I will reread the topic.

[Thanks for the feedback, editors.]


I presume you meant that the power failure happened during upgrades, not during a new installation.

Try the following.

Go into recovery mode.
mount --options remount,rw /
mount --all
sudo apt-get --fix-broken install
sudo dpkg --configure --pending

Reboot, log in and open a terminal. (If you can't log in, reboot to recovery mode with networking, repeating steps 2 and 3 above.)

sudo apt-get update
sudo apt-get upgrade

Let us know if this works.


CPU stuck on minimum frequency after resume from suspend and unplugged (Dell Latitude E6540)

Check this wiki.archlinux.org page:

  Some CPU/BIOS configurations may have difficulties to scale to the
  maximum frequency or scale to higher frequencies at all. This is most
  likely caused by BIOS events telling the OS to limit the frequency
  resulting in /sys/devices/system/cpu/cpu0/cpufreq/bios_limit set to a
  lower value.

Temporal solution:

# echo 1 > /sys/module/processor/parameters/ignore_ppc


FAT32 can be read by Linux, Windows and MacOS. There are drawbacks with it, for example the maximum file size 4 GiB, and there is no journaling, but FAT32 is what I would recommend in this case.
NTFS is a good alternative for sharing between Linux and Windows, but I don't think MacOS likes it.
Linux file systems do not work in Windows. As pointed out by @muru, it is possible to install ext2fsd drivers into Windows and get decent read support for ext file systems (ext2, ext3, ext4).
UDF, Universal Disk Format, might be an alternative, but it lacks important tools, for example repair tools.
EXFAT is a Microsoft proprietary file system, and you must install extra tools in order to use it in Linux. I guess there is a problem with MacOS too.


Xubuntu 16.04 notification area and indicators glitch

Delete Indicators plugin, install xfce4-pulseaudio-plugin with command

sudo apt install xfce4-pulseaudio-plugin

and add it to the panel. You will have your volume controls without messing with the buggy Indicators plugin.

There is also an alternative version of Indicators plugin which uses GTK2 and has a classic tray behavior, it might be free of bugs.


How can I update Ubuntu if the update servers are blocked?

Ubuntu uses HTTP to update, which is the same protocol used to access most websites (including Ask Ubuntu). Therefore, it seems likely that the particular server you're trying to upgrade from is blocked or (perhaps more likely) otherwise inaccessible due to network problems.

If this is the case, then updating normally with the Update Manager could succeed, if you change your mirror.

You can do this in the Ubuntu Software tab of the Software Sources window. Change the selection in the Download from drop-down menu.

One way to open the Software Sources window is by clicking Settings... in the Update Manager.


I suggest you to remove/disable that source (http://dl.google.com/linux/chrome/deb/dists/stable/Release) on your APT configuration.

You can do that at graphical interface of Program Update on Configurations > Another Programs tab, unchecking the respective line.

Or you can do that editing the file /etc/apt/sources.list using your preferred editor (gedit, vim, etc). Considering that you are going to need sudo to do that, you can use the following sequence: Alt-F2 > insert "gksudo gedit /etc/apt/sources.list" > enter your password when asked > edit the file to add a "#" character at the line "deb http://dl.google.com/linux/chrome/deb/dists/stable/Release .. "


Performing a simple search on the "Ubuntu Software center" using the word "translator" you can find some useful tools,

which includes (but not limits to):

Language Translator

From the official site:

  GNOME Translate is a GNOME interface to libtranslate. It can translate
  a text or web page between several natural languages, and it can
  automatically detect the source language as you type.

  GNOME Translate is free software, released under the terms of the GNU
  General Public License.

Somehow, the screenshot provided inside of the description is showing an example of a text in Russian, being translated to English, and several other languages are available to translate in both directions.

I am sure you can find some other useful tools in order to fit your needs.

Good luck!


missing a command during running alien to convert a .rpm - .deb

First, you should use Alien as a last resort, you are better off compiling from source.

Second, your command is off, you have two -- in front of the .rpm, use  sudo alien your.rpm

See https://help.ubuntu.com/community/RPM/AlienHowto for details


Ubuntu 14.04 - crontab @reboot hang my PC

The simplest method to do a programmed reboot (although I can't think of a use case), is to create a simple script file like so:

(shebang)/bin/bash
sudo init 6

And schedule it as a normal cron job using

crontab -e

(back to the old school way)


Please refer to the CloudKitty documentation, and/or the project page.


Weird touchpad behaviour on ubuntu 16.04

So I have a lenovo G50-45 and had suffered the same the exact problem but in my case it still  acted weird when connected to a mouse .So here is what i did .I disabled my touchpad and then attached my mouse .To my surprise it was working flawlessly .So I would suggest you to disable your touchpad (System Settings>Mouse and touchpad) .This was the only thing that helped me and made my experience much better .I guess the issue is with synaptic drivers used for the g50 series which do not act accordingly on linux distros.


How to increase video memory in VirtualBox?

It is possible to assign up to 256 MB of RAM to the virtual graphics driver as shown in my answer to this question:

VirtualBox - how to increase video memory?

Memory above that value may be useful for 3D-applications. These will make use of the host 3D graphics driver and host VRAM which is passed through to the virtual graphics driver in case 3D capability was enabled in the machine's settings.

So you will use all your host's video ram for 3D rendering in a virtual machine.


How to convert existing Ubuntu install to minimal

If you are willing to do some manual work, this may help:

The installation image for ubuntu server is about 800M, and it has fairly minimal installation options:

With ubuntu server 16.04 if you choose only openssh and standard system utilities the resulting system takes about 1.4Gb of space.

You can then try setting up a VM with a minimal installation of the same ubuntu version that your "custom ubuntu" is using. Then and export the list of all the installed packages of this VM, and compare with those of your target system using the command dpkg --get-selections.

You will then be able to identify packages that are not essential (you will need to be careful about not removing the custom drivers that you are trying so hard to preserve).

Related:

Restoring all data and dependencies from dpkg --set-selections '*'

How do I replicate installed package selections from one Debian system to another?

How do I transfer installed packages and settings from one distro to another?


Advanced material. Use at your risk! You will need to modify it for sure. Do not use if you do not understand it.

If you can live with absolute symlinks, you can do that. Suppose you start from this:

[:~/tmp] % ls -l a b c orig

a:
total 0
lrwxrwxrwx 1 rmano rmano 16 Apr  1 16:53 linka -> ../orig/truefile

b:
total 0
lrwxrwxrwx 1 rmano rmano 16 Apr  1 16:53 linkb -> ../orig/truefile

c:
total 0
lrwxrwxrwx 1 rmano rmano 16 Apr  1 16:53 linkc -> ../orig/truefile

orig:
total 0
-rw-rw-r-- 1 rmano rmano 0 Apr  1 16:52 truefile

and you want to move the links under ./dest...

Make the destination dir: mkdir dest

then you can use this script (save it as script.sh, remove the echo in the for loop after checking is doing the correct thing):

#! /bin/bash
#
# $1 is the "true" file name, $2 the dest directory
# note both must exist, no check done! Let as an exrecise!
#
# put absolute path in $absf
absf="$(readlink -f "$1")"
#
# loop over all of the links we found under ".". Avoid the true file.
# Print instructions; remove the echo if you want to execute them
# (after checking, rm is not reversible)
#
for i in $(find -L . -samefile $1 | grep -v $1); do
        echo  ln -s $absf "$2"/"$(basename "$i")"
        echo  rm "$i"
done

...and run it as ./script.sh orig/truefile dest/. It will execute

ln -s /home/rmano/tmp/orig/truefile dest/linkb
rm ./b/linkb
ln -s /home/rmano/tmp/orig/truefile dest/linka
rm ./a/linka
ln -s /home/rmano/tmp/orig/truefile dest/linkc
rm ./c/linkc

and you'll have:

[:~/tmp/dest] % cd dest; ls -l
total 0
lrwxrwxrwx 1 rmano rmano 30 Apr  1 17:19 linka -> /home/rmano/tmp/orig/truefile
lrwxrwxrwx 1 rmano rmano 30 Apr  1 17:18 linkb -> /home/rmano/tmp/orig/truefile
lrwxrwxrwx 1 rmano rmano 30 Apr  1 17:19 linkc -> /home/rmano/tmp/orig/truefile

If you need relative symlink it will be more complex. You can check this link to start coding...