Why remmina on Ubuntu refused to connect to Windows 7 (Service Pack 1)?

Your problem is that you don't have Remote Desktop on your Windows machine.  You only have Remote Assistance, which is not the same thing.  Here's an image of what that box looks like on a computer that is equipped with Remote Desktop.

The Windows RDC FAQ page states

  You can't use Remote Desktop Connection to connect to computers
  running Windows 7 Starter, Windows 7 Home Basic, or Windows 7 Home
  Premium

Your best bet, IMHO, is to download tightVNC onto this windows machine and connect to it using Remmina and the VNC protocol.


VirtualBox: Increase Storage SATA port size

If you are fine with adding another Virtual Hard Disk to the VM, then do this.

Right click on the VM and go into Settings > Storage
Inside Storage, Go into Storage Tree and click on the Hard Disk Icon next to 'Controller : SATA'
Choose 'Create new disk' and Set the name, File Size and everything else to suit your needs.
After that is done, Click on 'Create' and then boot into the VM.
The disk you just created will be treated as an additional mount, so you will have to configure the space accordingly.

This is my first answer, I hope it helps. Please do ignore it if you already knew about this and chose not to do it.


How to mount directory from vagrant box on local FS using SSHFS?

If you're on Ubuntu your keys are stored in

/home/<user>/.ssh/

you will need your public key id_rsa.pub.

If you don't have it then do

mkdir ~/.ssh
chmod 700 ~/.ssh
ssh-keygen -t rsa

On your remote server you'll need to copy your public key into

/root/.ssh/authorized_keys

either manually copy/paste or using commands like

ssh-copy-id <username>@<host>

or if you need to copy someone else's public key do

scp id_rsa.pub <username>@<host>:/root/.ssh/ #copies file to remote server
ssh <username>@<host> # login to remote server
cd /root/.ssh/ # go to copied file
cat id_rsa.pub >> authorized_keys # concatenate it onto the authorized_keys

Source: help.ubuntu.com


Configure SSSD Package against Microsoft Patch (inforce LDAPS/tls)

If you are on something like Red Hat 8 and are trying to use ldaps, verify the TLS on the back end is 2048-bit or higher and supports modern DH Ciphers.  If not, set opensslcnf.config from SECLEVEL=2 to 1.
Alternatively, if you have joined the domains and have a working keytab, you can use GSSAPI encryption over ldap.  This negates the need to have bind credentials in the clear.
You'll need to choose one type of authentication for each domain section and verify all settings are compatible.  Pay close attention to the man pages for these as some are completely incompatible with other settings.
These are just the variables I flip in automation based on auth type.  There are many more but these are most relevant based on what you provided.
auth_provider (ldap or ad most likely based on your use case)
ldap_id_mapping (false is mostly used for the old unix tab attributes)
id_provider (ad will use GSSAPI.  start_tls will most likely fail though)
ldap_user_name (uid for rfc2307, rfc2307bis, and IPA.  sAMAccountName for AD)
ldap_group_name (cn for rfc2307, rfc2307bis, and IPA.  sAMAccountName for AD)


Black screen after login. Partition with Windows 7 + Ubuntu 17.04

This was solved very easily. I was not using nvideas proprietary, tested drivers. To fix the issue, if you can plug in another graphics card, for me I just used my CPU’s inbuilt graphics and changed these settings under devices and drivers.


game audio not working in Wine Ubuntu 14.04 lts

For NBA 2K14 According to this report:

you have to install

vcrun2010
dxfullsetup

This post will help you do that.


Trying to get wifi working in Lubuntu 14.04 on Inspiron B120

To get wlan0 up try:

sudo modprobe b44

and then type

sudo iwconfig

to see if wlan0 is listed in the output

You may need to use

sudo ifconfig wlan0 up

to get it going after it is recognized.


You need to install legacy firmware/drivers for the older wireless and graphics cards in the iDea 510.  This should fix the USB port enumeration errors.

For the graphics card, if you have drivers currently installed, remove them:

sudo apt-get purge xserver-xorg-video-nouveau
sudo apt-get purge xserver-xorg-video-vesa

Next, edit sources.list to add a non free repository:

sudo gedit /etc/apt/sources.list

Add the following line to the end of the file:

deb http://ftp.us.debian.org/debian testing main contrib non-free

Save and close.

Now update and add the legacy nVidia drivers:

sudo apt-get update
sudo apt-get install nvidia-kernel-legacy-173xx-dkms nvidia-glx-legacy-173xx build-essential nvidia-settings nvidia-xconfig

After it's downloaded, execute the Xconfig file:

sudo nvidia-xconfig
sudo reboot

When you reboot, it should load back up normally.

For the wireless card, download the firmware-b43-installer and it should automatically extract and install everything for you (Source):

sudo apt-get install firmware-b43-installer

You will be asked to automatically fetch and install the firmware into the correct location.


how to find the ppa of a package found in launchpad?

-dbg packages provide debug symbols for programs and libraries provided by the packages that are named like them but without -dbg. (Sometimes they provide debug symbols for a whole group packages, typically whose names start like them without -dbg and then contain more text.)

In this case, you have libc6 installed (that's a core package without which no Ubuntu system can run), and you want to install libc6-dbg. This must correspond exactly to the installed version of libc6. Getting a separate version of libc6-dbg from a PPA that didn't correspond to the installed version of libc6 would be very bad--it would not be usable.

As this page indicates, on a Lucid system both libc6 and (if it is installed) libc6-dbg should be at version 2.11.1-0ubuntu7.10. So it looks like you have an old version of libc6 installed (which is possibly vulnerable to well-known security bugs!), for which libc6-dbg may no longer be available.

Not only do you have an old version of libc6, but your information about what the latest versions of libc6 and libc6-dbg is out of date. Try this to correct it:

sudo apt-get update

If you're installing packages on the command-line, you should always run that first (unless you've run it just recently).

Then run this to upgrade your system's packages (including libc6):

sudo apt-get upgrade

Then try again:

sudo apt-get install libc6-dbg

If that still doesn't work, check your Software Sources (by going to the Update Manager and clicking the Settings... button at the lower-left corner). Click on the Updates Tab. Make sure that Important security updates (lucid-security) and Recommended updates (lucid-updates) are enabled (checked).

That image is taken from these instructions, written by Contributors to the Ubuntu documentation wiki and licensed under CC-BY-SA 3.0. Content on Ask Ubuntu including this post is also licensed that way. Thus my incorporation of that image is permitted here.

Then after enabling those software sources, run these commands again:

sudo apt-get update
sudo apt-get upgrade

And then try again:

sudo apt-get install libc6-dbg


How to specify a port number for DNS servers with netplan

As indicated by the error message, netplan does not support specifying a non-default port for DNS servers; it will only use port 53.  I see that systemd-resolved does support non-default ports, so this is a valid feature request for netplan, best reported at https://bugs.launchpad.net/netplan.
I have personally never heard before of providers offering DNSSEC on an alternate port.  You might check with your provider if they have a DNSSEC endpoint running on port 53 but a different IP address.


Why does Ubuntu force users to create a password upon installation?

Perhaps the real question should be why is it that Windows or Mac OS X (if that's actually the case, never used it) don't require you to have and use passwords.

You will probably find once you have set your system set up to your satisfaction that the amount of time you have to enter your password decreases substantially, I've been running the development version for months and still only use the password once or twice a day.

The password is there for a reason - so that people accessing your system when you are not aware being unable to damage it.

If you find that you are using it a lot in a terminal run

sudo -i

do what you need to and then exit.

Read up on root and sudo - it's there and won't be going anywhere.

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

At the end of the day Linux of any sort is not Windows nor Mac.

http://linux.oneandoneis2.org/LNW.htm


How to debug slow session start of Gnome 3?

I know this question is ancient, but it shows up near the top of the Google results, so I thought I'd throw up an answer to the question in the title —

One way to identify the problem works like this:

Start to log in to your session, but, also have another session (as another user, or on a "tty" session (Control+Alt+[F2…]), or via ssh, or …) already open, with a text shell (bash) prompt ready.

Key in (but don't hit Return yet) this command:

you may need to sudo this command if your other shell is a different user account
This is one, long line

gdb attach /usr/bin/gnome-shell $(pgrep -u your login gnome-shell) -ex 'call gjs_dumpstack ()'

e.g. gdb attach /usr/bin/gnome-shell $(pgrep -u jdoe gnome-shell) -ex 'call gjs_dumpstack ()'

As soon as the shell is "too busy," i.e. "catch it in the act," in your other shell, hit Return to trap it. It will freeze up the shell and might kill your login attempt, but you'll have your backtrace.

You'll get a welcome banner from the debugger. (You may also be told that you need to install some debuginfo packages, on Fedora at least, I'm not sure if Ubuntu will do the same, but I presume it's similar. You shouldn't actually need these to debug the JavaScript side of things; that only applies to debugging the C part of the code.)

This will show the stack of active JavaScript functions, which will almost certainly show the culprit.

You can find more detailed information here: https://wiki.gnome.org/Projects/GnomeShell/Debugging


I stumbled across an Arch Linux BBS post where the same issue is described. Once I thought that this was an issue with multiple distributions and just Ubuntu I was looking at more stuff. There is a helpful url which directs to the configuration of Qt 5 using no desktop environment which is exactly the case that I have here with Awesome WM.

Since there is no qt5cf package in Fedora 23, I just faked the environment variable XDG_CURRENT_DESKTOP=KDE and got the icons back.

The strange error with the home directory is easily cured by manually setting the standard directory to /home/USER.

Dolphin now works for me again I think. The problem was the transition to Qt 5 and had nothing to do with Ubuntu in particular.


Wacom Graphics table shown but is not installed

The Wacom Graphic Card appears in Ubuntu installed or not. The options to access to this device are enabled for default.

Not only happens with Wacom but the same happens with the Printer and Bluetooth. Basically with the most popular devices. In no OS of a PC will show a option like Airbus's Devices I think.

This topic reminds me the main functions of the OS, the abstracting of the user from the complexity of the hardware and manage the physical resources. This one is an example. You can see if the Wacom is plugged or not right there, and connect it via bluetooth.


$HOME is an environment variable that contains the location of your home directory, usually /home/$USER. The $ tells us it's a variable. So assuming your user is called DevRobot the .desktop files are placed in /home/DevRobot/Desktop/.

If you want to know where $HOME points to, you can run the following in a terminal.

[ajefferiss@localhost ~]$ echo "$HOME"
/home/ajefferiss

You can use it to move around the filesystem, for example cd $HOME but generally you won't see that because you can use ~/ to represent the current users home directory. Or just run cd by itself to move to the home directory.


How do I change my desktop theme from grey bars to black bars?

Right click on your desktop --> Change Desktop Background --> Theme --> Ambiance. The white panel comes with the Radiance theme.


How do I install wallpapers from previous versions of Lubuntu?

You can get the wallpapers, amongst other assets and artwork, from the Ubuntu wiki for every Lubuntu version ever.

Scroll down and find the released artwork section and click the version you want, then you will find a downloads section at the bottom of the next page.


I accidentally put grub on my hard drive MBR while trying to install Ubuntu on an external hard drive

If you see entries in your firmware's boot manager called ubuntu and Windows Boot Manager, then both Ubuntu and Windows are installed in EFI mode, not in BIOS mode. In EFI mode, boot loaders reside on the EFI System Partition (ESP), not on the MBR of the hard disk. To be sure of this, look for a directory called /sys/firmware/efi in Ubuntu. If it's present, Ubuntu is installed in EFI mode; if it's absent, then Ubuntu is installed in BIOS mode. Windows ties its boot mode to the partition table type, so if the internal disk uses GPT, Windows is installed in EFI mode.

If I'm right about this, then moving GRUB to your external disk will require creating an ESP on that disk and copying the boot files over. You'll probably need to use GParted from a live CD to shrink one of your external-disk partitions enough to create an ESP. Make it FAT32 and give it a "boot flag" in GParted.

Chances are the ESP on your internal disk is currently mounted at /boot/efi, so if you create an ESP on the external disk and mount it at /mnt, you'd do something like:

sudo mkdir -p /mnt/EFI
sudo cp -r /boot/efi/EFI/ubuntu /mnt/EFI/BOOT
sudo mv /mnt/EFI/BOOT/shimx64.efi /mnt/EFI/BOOT/bootx64.efi

This should render the external disk bootable on any EFI-based computer. You should test this on another computer or by using the built-in boot manager to launch from the external disk before continuing. If you have problems at this point, post back with details.

Once GRUB is copied, you can adjust the boot order by using efibootmgr in Ubuntu. First, type sudo efibootmgr alone to see the entries. You can then adjust the boot order with the -o option, as in sudo efibootmgr -o 2,3 to make Boot0002 the first (default) item and Boot0003 the second (non-default entry). The correct boot order for you depends on the entries you see on your system.

You can also delete the GRUB files from the ESP -- in /boot/efi/EFI/ubuntu, assuming the internal disk's ESP is still mounted at /boot/efi. Do this only if you're 100% sure that you can boot from the boot loader on the external disk. Speaking of which, you should edit your /etc/fstab file to have it mount the ESP on the external disk rather than the internal one.

Note that GRUB updates will tend to reset GRUB as the default boot loader, so you may need to fix this again. Alternatively, you could uninstall GRUB, but that can be a pain, since Ubuntu will try to re-install it. There are ways around this, but I don't recall the details. (I use a dummy GRUB package, but that's rather inelegant.)


ssh: connect to host [ip] port 22: No route to host

thanks for the reply!

$ ip route
default dev ppp0 proto static
192.168.1.145 dev ppp0 proto kernel scope link src 192.168.1.153
192.168.10.0/24 dev wlan0 proto kernel scope link src 192.168.10.106 metric 9
193.228.153.48 via 192.168.10.1 dev wlan0 proto static
193.228.153.48 via 192.168.10.1 dev wlan0 src 192.168.10.106

However, at the suggestion of a friend, I previously changed my IP in the LAN settings of my router (192.168.10.1, instead of 192.168.1.1) and now everything works just fine.


System displays "File system maintenance error, press ctrl+d" while booting

This happens when the root (/) filesystem gets corrupt and needs to be fixed. At the point during the boot where it finds that the root filesystem is corrupt, the root filesystem is already mounted, and Ubuntu won't do a fsck on a filesystem that is mounted since that is unsafe.

The best way to recover from this is to boot the liveCD and run a filesystem check on it from there, when it is not mounted. You can use fsck from a terminal, or run gparted (in System -> Administration) where you can right-click the filesystem and choose "check".

Also, please note that Ubuntu 8.10 Desktop is no longer supported. You should upgrade to a supported version. See https://help.ubuntu.com/community/EOLUpgrades for help on how to do that.


Nginx shows error page from time to time

Reduce ssl_session_timeout and ssl_session_cache values. Please check the link http://nginx.org/en/docs/http/configuring_https_servers.html#optimization for nginx https server configuration and server optimization.


GPG keys error while installing sublime text editor and Oracle java

Taking the question as it currently stands, I assume you're referring to this line as your problem
gpg: no ultimately trusted keys found

This is actually not a problem at all. It's just informing us about the key's authenticity level. Not every keys are ultimately trusted keys and it's not required at all!
It seems the keys are found and valid.
You should just proceed with the installation instruction.
Check this question to know about this message.

Can libreoffice ppa be trusted if it has "no ultimately trusted keys"?

The answer there says, quoting from Debian Wiki about SecureApt

What does the "gpg: no ultimately trusted keys found" warning mean?
The Warning: "no ultimately trusted keys found" means that gpg was not configured to ultimately trust a specific key. Trust settings are part of OpenPGPs Web-of-Trust which does not apply here. So there is no problem with this warning. In usual setups the users own key is ultimately trusted.


This game is available from the Software Centre under the For Purchase section.

Simply go to Applications->Ubuntu Software Centre and search vendetta.

From there you can click 'More Info' to get the page for this package. It is available to 'buy' (it is a subscription game I think) for $0.00 US.


downloaded a file without wget using browser can this be resumed it is broken download

This ain't really a Ubuntu specific question.

Manual:http://www.gnu.org/software/wget/manual/wget.html#index-resume-download-33

However you should check the that your files got the correct checksums when finished.

Just a snippet from the manual:

Continue getting a partially-downloaded file. This is useful when you want to finish up a download started by a previous instance of Wget, or by another program. For instance:

      wget -c ftp://sunsite.doc.ic.ac.uk/ls-lR.Z

So for your case try:

wget -c http://kent.dl.sourceforge.net/project/opsi/opsi/4.0.3/opsi4.0.3-2-servervm.zip


How to change fontsize for the panel text with gnome 3.2?

Download "Gnome-tweak" from the Ubuntu Software Center.  If you don't add the launcher during the installation you can find it in the dash by typing "advanced settings". Once you open gnome-tweak the rest should be self-explanatory.


You would need to be a developer to answer such a question ... I would think. Why did you have to remove v11 in the first place? Besides it doesn't sound like its an applet issue, more like your NIC drivers need updating or need installation. The wireless is sort of automatic for a normal Ubuntu install. Back into Windows and make sure ...
1. NIC is turned on.
2. There is an IP address present.
3. Cable is sucurely connected to LAN port.
If there is no IP staus or  IP address avalible -- it is a driver issue, go to machines manufacture and download latest network card drivers and install with windows, run Windows updates. The great thing about linux is that it can handle multiple installation on the same machine. REINSTALL V11.


The files are in the libfl-dev package, which is a dependency of flex. The package is Multi-Arch enabled, so the files are under the /usr/lib/i386-linux-gnu/ or /usr/lib/x86_64-linux-gnu/ directory, depending on whether you are on 32 or 64 bit. Or possibly under /usr/lib/armhf-linux-gnu/ if you are on ARM.


VirtualBox rcvboxdrv setup error "Bad argument setup"

From a comment on the ticket, run the following command:

sudo /usr/lib/virtualbox/vboxdrv.sh setup

instead of the command given by VirtualBox.


nvidia-settings makes one of my dual monitors grey and useless, disables network

After such a struggle with settings here and settings this with the Nvidia graphics GUI  I clicked on dash, typed in driver, selected additional driver. Here you should see 2 options after opening addition drivers

NVIDIA accelerated graphics dirver (version current)[Recommended]
NVIDIA accelerated graphics dirver (post-release updates)(version current-updates)

I had 1 selected as this is how I installed my Nvidia driver initially (Had trouble downloading directly from the site and installing it). This then broke and after a struggle as mentioned above I selected 2 and clicked on activate, restarted my machine and boom. Up and working np. Here is my xorg.conf file output

Edit:
Oh and how to get rid of the mouse getting stuck between the 2 screens:

Dash - Displays
Sticky Edges - Slide to off (this is on by default)


remmia keyboard issues: AltGr not recognized for German 105-key keyboard

The problem still exists on Xubuntu 20.04 with XRDP. Accessed using a German Standard Keyboard from Windows 10. I can confirm that the Workaround by Regis May works: Reduce the RDP Window from full screen to window. Characters such as @ and \ now work with the Alt Gr key as expected.

cat /etc/default/keyboard
# KEYBOARD CONFIGURATION FILE
# Consult the keyboard(5) manual page.
XKBMODEL="pc105"
XKBLAYOUT="de"
XKBVARIANT=""
XKBOPTIONS=""
BACKSPACE="guess"


Which parts of Ubuntu would you place on SSD and not HDD? (to leverage better system responsiveness without excessive write cycles to the SSD)

I have the following on my notebook

ssd. Holds "/" and "/home/"
hdd. Holds all directories in "/home/$USER/".

My own files are what are written to disk most whilst downloading so I keep those on my hdd. I tend to watch series and download them so it is often: download, watch, delete.

If you look at the "root" system and want to lower the amounts of writes Ubuntu (/Debian/Linux) is heading towards a system where all files that are written to often are moved towards a "run" directory (aka "ramdisk"s) . See What are "/run/lock" and "/run/shm" used for? for an explanation on those.  That in itself has lowered the amount of writes a lot without you doing anything for it. But you can take advantage of this yourself...

Put /tmp into a ramdisk. /etc/fstab:

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

Firefox puts its cache in your home partition. By moving this cache in RAM you can speed up Firefox and reduce disk writes. Open about:config, add i a new string value called browser.cache.disk.parent_directory and set the value to /tmp and it will be added to the ramdisk (as explained above). There is a generic tool for this called Profile sync daemon.


Persistent partitions are still not working with syslinux type installs with 17.04, including UNetbootin's .

Mkusb boots using grub2, it has worked for me using persistent partitions with 17.04. With a bit of work the casper-rw partition can be replaced by a casper-rw file.

Using gparted, change the casper-rw partition to FAT32 and leave the label blank. Copy a casper-rw file, (made using UNetbootin), to the partition.
Max size for a FAT32 casper-rw file is 4GB.

If you wish you can make multiple persistent files with this method, put each casper-rw file in it's own uniquely named folder on the partition. Then the path to that  folder is given in the menuentry in grub.


Installed Ubuntu on a machine with Windows 8.1. Failed to create dual-booting. Is my data on another partition permanently lost?

If you let the Ubuntu installer use the entire disk, then at least your bootloader is messed up with the Linux GRUB best case scenario, however your files may be gone. The easiest way to know for sure would be to use your Ubuntu USB drive and run in live mode, do not attempt to install, then search your HDD for leftover windows directories. If they are there, you can backup important files to the USB, an external drive, or upload them to cloud storage.

There should be a volume option on the under the basic directories in the file navigator (assuming you are using desktop ubuntu, if not, Id recommend to get desktop ubuntu for easier searching of your drive) that will give you root to any leftover data that may be intact.


ubuntu guest system can't ping Window 8.1 host

I believe its because its 2 different networks and you should go to your vm properties where u can put number of cpu and memory ...etc and find network and change it from nat to bridge this way ubuntu on ur vm will take ip address strait from ur router same sequence as ur host machine and its important to do that to easy share files between host and vm, even if it was another windows on vm, so u will have ur vm ip same thing like 192.168.1.xxx and xxx is any other number will be assigned automatically


Is there a link that I can use to link fitbit to pc

Ignore any compatibility messages and download it anyway.
Download this software: Wine

After you do, it should allow you to run .exe files like you ran windows. Run the installer normally. Make sure to create a shortcut on the desktop, it'll make your life easier. Open the software and it should work.


/usr/bin/nmcli is part of the network-manager package.

w3@aardvark:~(0)$ type -p nmcli
/usr/bin/nmcli
w3@aardvark:~(0)$ dpkg -S /usr/bin/nmcli
network-manager: /usr/bin/nmcli
                # Read `man apt-cache`. What depends on network-manager?
w3@aardvark:~(0)$ apt-cache rdepends network-manager
network-manager
Reverse Depends:
  nplan
  network-manager-gnome
  gce-startup-scripts
  gce-daemon
  cockpit-networkmanager
  ubuntu-mate-desktop
  ubuntu-mate-core
  ubuntu-mate-cloudtop
  ubuntu-gnome-desktop
 |nplan
  network-manager-openconnect
  network-manager-openconnect
  libpurple0
  evolution
  connman
  resolvconf
  network-manager-gnome
  wader-core
  ubuntu-touch
  ubuntu-push-client
  ubuntu-mate-desktop
  ubuntu-mate-core
  ubuntu-mate-cloudtop
  ubuntu-gnome-desktop
  tlp-rdw
  sugar-session
  sugar-presence-service-0.88
  sugar-presence-service
 |sugar-presence-service
  python-networkmanager
  python-jarabe
  plinth
  plasma-nm
  network-manager-strongswan
 |modem-manager-gui
  ppp
  mate-gnome-main-menu-applet
  mailnag
  liferea
  libpurple0
  indicator-network-tools
  indicator-network
  gajim
  freedombox-setup
  evolution
  connman
  resolvconf
  modemmanager
  plainbox-provider-resource-generic
  network-manager-gnome
                # Read `man apt-cache`. What does network-manager depend on?
w3@aardvark:~(0)$ apt-cache depends network-manager
network-manager
  Depends: libbluetooth3
  Depends: libc6
  Depends: libglib2.0-0
  Depends: libgnutls30
  Depends: libgudev-1.0-0
  Depends: libmm-glib0
  Depends: libndp0
  Depends: libnewt0.52
  Depends: libnl-3-200
  Depends: libnm0
  Depends: libpolkit-agent-1-0
  Depends: libpolkit-gobject-1-0
  Depends: libreadline6
  Depends: libsoup2.4-1
  Depends: libsystemd0
  Depends: libuuid1
  Depends: init-system-helpers
  Depends: lsb-base
  Depends: dnsmasq-base
  Depends: wpasupplicant
    wpasupplicant:i386
  Depends: dbus
    dbus:i386
  Depends: udev
    udev:i386
  Depends: adduser
  Depends: isc-dhcp-client
  Depends: libpam-systemd
  Depends: policykit-1
    policykit-1:i386
  Conflicts: connman
  Breaks: network-manager-gnome
  Breaks: <network-manager-kde>
  Breaks: network-manager-openconnect
  Breaks: network-manager-openvpn
  Breaks: network-manager-pptp
  Breaks: network-manager-vpnc
  Breaks: <plasma-widget-networkmanagement>
  Breaks: ppp
  Recommends: ppp
  Recommends: iptables
  Recommends: modemmanager
    wader-core
  Recommends: crda
    crda:i386
  Recommends: iputils-arping
  Recommends: network-manager-pptp
 |Recommends: network-manager-gnome
 |Recommends: <plasma-widget-networkmanagement>
  Recommends: plasma-nm
  Suggests: avahi-autoipd
  Suggests: python


Unexpected results from setfacl on Ubuntu 18.04

Finally i found some complete doc explaining the details.
I used the setfacl command in the wrong way: when setting acls for owing user and owing group the command is:
setfacl -R -m u::rwX,g::rwX dir

The syntax with an explicit user and/or group is when acls are being used for non-owing principals. Most examples on the internet handles about these cases, not very instructive.
This acl mechanism is apparently based on a Posix draft that never made it.
I think this mechanism does not fit very wel in the existing unix permissions system.


How to backup/restore full-disk encryption?

I have never done it myself but I imagine if you are wanted to make an exact copy of the encrypted disk then it would be easiest to back up the entire partition using ddrescue, clonezilla or something similar. Then restoring to a new HD.


Unity is developed using C, C++ and Vala. This Link will provide all information about Unity Development. Check out
 Gnome Developer Center for Gnome Development. You will get tutorials for Gnome development and platform related information.


Will windows 10 screw up windows 8 Ubuntu dual boot?

It shouldn't screw your your dual boot, but in my case it did. However, I was able to restore everything without data loss.

My report about it can be found here (look down at the comments)

Here is a copy/paste of my issues

Let me write about some of problems to help other people who might encounter the same issues.

My computer came with Windows 8 pre-installed so I shrunk the Windows partition to make room for Ubuntu. That it how it works for the last year.

After the second reboot in Windows 10 upgrade the computer did not boot any more. The grub only displayed a grub rescue command prompt. I found out later that the problem occurred because windows somehow changed the partition scheme. The boot partition was no longer where grub expected it. I don't know how and why this happened.

First what you can do is to see the partitions in grub rescue with "ls". Mine were (hd0,gpt1), (hd0,gpt2), etc. Try to find out which partition is your boot partition. I tried the following commands until i found the right partition:

ls (hd0,gpt1)/

ls (hd0,gpt1)/boot

ls (hd0,gpt2)/

etc.

Then type set in grub rescue prompt. It will display where the grub looks for its files. In my case (hd0,gpt6) has moved to (hd0,gpt7). The set command displayed:

prefix=(hd0,gpt6)/boot/grub

root=hd0,gpt6

Change the prefix and root settings to point to the right partition. In my case commands were:

set prefix=(hd0,gpt7)/boot/grub

set root=(hd0,gpt7)

Then switch from rescue to normal mode:

insmod normal

normal

You should get the normal grub menu. From now on you can boot Windows and finish your Windows upgrade. The problem is that you have to tell grub rescue about the right partitions on every reboot. That is how I did it. I left the problem of grub for later because I was not sure whether Windows will do some more changes to the partitions or boot.

When Windows finished I started to solve grub problems. Press "e" to edit boot options for Ubuntu. I changed all (hd0,gpt6) to (hd0,gpt7) and Ubuntu booted. However, I use encrypted partition and cryptswap. At the boot Ubuntu asked me for the passphrase. Fortunately I saved it at the installation of Ubuntu and entered it at the boot. Ubuntu booted without problems. I corrected the /boot/grub/grub.cfg where I replaced (hd0,gpt6) with (hd0,gpt7) and performed sudo grub-install.

Now it was only the encryption. Since the root Ubuntu partition was raised for one (7 from 6), the swap partition suffered a similar change. I had to change the /etc/crypttab file to point to /dev/sda8 instead of /dev/sda7.

I am using only two partitions for Ubuntu (root and swap). If other operating systems coexisting with windows use more partitions there might be more changes required. Especially if partitions are mounted according to their numbers and not by their UUIDs. Take a look at your /etc/fstab. If the partitions are identified by UUID there should be no problems. But if there are /dev/... lines the number should be corrected if they were changed.


How can I protect a file from user changes?

Ubuntu uses the EXT4 file-system format by default (I am assuming that we are not talking about anything else here).

If you do not want to take ownership of the file without removing the ability for the user to read that file you can start by allowing them to read, but not write to that file with:

chmod a-w,ug+r foo_file

description: change file permissions, all cannot write, user+group can read

Then can make files immutable so that even users with root permission cannot change then by using the following:

sudo chattr +i foo_file

To be able to delete or even modify this file you would need to use the command:

sudo chattr -i foo_file

and then you will be able to do something with it.

The plus point of using this is that most users (and admins) never have experienced immutable files in Linux.

That was the user will see this when trying to remove (or alter) the file:

~> sudo chmod a-w,ug+r asd
~> ll asd
-r--r--r-- 1 bruno bruno 156 feb 21 20:46 asd
~> sudo chattr +i asd
~> chmod +w asd
chmod: changing permissions of ‘asd’: Operation not permitted
~> rm asd
rm: remove write-protected regular file ‘asd’? y
rm: cannot remove ‘asd’: Operation not permitted
~> sudo rm asd
rm: cannot remove ‘asd’: Operation not permitted

while still being able to read it:

~> cat asd
asd
...
Videos

After you issue chattr +i the file is "locked", no changes can be made until a user with root permissions sets it off with chattr -i.


Where does gnome-power-statistics get its data from?

I've just answered a simular question here, but here is the summary:

UPower's historical information is stored in four files in /var/lib/upower/, yours will be different but mine are named:

./var/lib/upower/history-time-empty-DELL_KP4377-57-22096.dat
./var/lib/upower/history-time-full-DELL_KP4377-57-22096.dat
./var/lib/upower/history-charge-DELL_KP4377-57-22096.dat
./var/lib/upower/history-rate-DELL_KP4377-57-22096.dat

It appears to compile this data from the information in /sys/devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT0 which I'm guessing is in turn directly taken from acpi's information on the current battery state at /proc/acpi/battery/BAT0/info.

Hope this helps.


Problem with Wi-Fi (Ubuntu 16.04 LTS) of Please me

Please note:

  ./libkmod/libkmod-config.c:635 kmod_config_parse:
  /etc/modprobe.d/bcm4313.conf line 1: ignoring bad line starting with
  ''

As yours is not a bcm4313 device, I'm certain the file is not needed. Please remove it:

sudo rm /etc/modprobe.d/bcm4313.conf

It appears that you compiled a driver for your device that will probably bot solve the problem, as you've seen. Let's blacklist it:

sudo -i
echo "blacklist rt3290sta"  >>  /etc/modprobe.d/blacklist.conf
modprobe -r rt3290sta
exit

Now load the correct driver for your device:

sudo modprobe rt2800pci

If there are any errors, please report them.

In many cases, this driver does not work well with 802.11N. Please change the settings in your router to auto B and G and not auto B, G and N. Now do you connect?

It may take a reboot.


Why is the Ubuntu Software Center being replaced by GNOME Software?

From OMG UBUNTU!

  The decisions were taken at a recent desktop Sprint held at Canonical HQ in London.

  “We are more confident in our ability to add support for Snaps to
  GNOME Software Centre (sic) than we are to Ubuntu Software Centre. And
  so, right now, it looks like we will be replacing [the USC] with GNOME
  Software Centre”, explains Ubuntu desktop manager Will Cooke at the
  Ubuntu Online Summit.

More from PCWorld

  This isn’t huge news if you’ve been keeping track of the increasing deterioration of the Ubuntu Software Center. This summer, I chronicled how Canonical was slowly letting the Ubuntu Software Center wither and die. The paid “app store” side of it was axed with no warning to developers. Ubuntu MATE 15.10 already dropped the Software Center for something better.

  The Software Center was great when it was released, offering a more user-friendly “app store”-like interface for installing Linux software. But it has stagnated and is rather slow. Other applications—particularly GNOME’s Software app—have caught up. Ubuntu’s developers haven’t really been working much on the Ubuntu Software Center, after all. They’ve been working on the next-generation app store for Unity 8, which works on Ubuntu for phones and will eventually arrive on the desktop with the converged Unity 8 desktop.

GNOME Software to the rescue

  If you’ve ever used Fedora—or just seen screenshots of it—you’ve
  probably seen GNOME’s Software application in action. Fedora, a fairly
  GNOME-centric Linux distribution, was the first to adopt it.

  This will give the traditional Unity 7 desktop on Ubuntu 16.04 LTS a
  stable software center that other people are working on and
  maintaining, freeing up development time. It’s also more modern, and
  Ubuntu’s developers feel it would be easier to add support for those
  new container-like Snappy packages to GNOME Software than to the old
  Ubuntu Software Center

Hope it helps!


First try installing (if You didn't do it) drivers. For example in case if these are nVidia drivers You will have to configure Your monitor trough

sudo nvidia-settings

and not trough system->preferencs->monitors.

If that fails delete Your xorg.conf file and create a new one.


YouTube shows "Missing Plug-in" in window after installing Flash

The file should be located in /usr/lib/flashplugin-installer/.  For my Flash problem, the only solution that worked was downgrading.  I wrote a script as I became tired of downgrading.  Here is the code below:

wget http://fpdownload.macromedia.com/get/flashplayer/installers/archive/fp_11.1.102.63_archive.zip
unzip fp_11.1.102.63_archive.zip tar -xzvf
fp_11.1.102.63_archive/11_1r102_63_32bit/flashplayer11_1r102_63_linux.i386.tar.gz
-C fp_11.1.102.63_archive/ sudo cp -f fp_11.1.102.63_archive/libflashplayer.so
/usr/lib/flashplugin-installer


Script running from terminal but not in crontab

The script runs, there is just one problem: use an absolute path in your script:

cp /path/to/*.cfg /usr/local/myfiles/

cron knows nothing about the location of your .cfg files and therefore copies nothing.

To improve your crontab, simply replace your line with the line below. You don't need a script for that.

*/1 * * * * cp /path/to/*.cfg /usr/local/myfiles >/dev/null 2>&1

Warning the command will be started every minute!


Try to boot via "Try Ubuntu" instead of "Install Ubuntu" and run the command:

sudo swapoff --all

From the terminal. (ctrl+alt+t)

Then run the Install Ubuntu from the desktop. The error should stop appearing.

See also this related Lubuntu/ubuntu bug report


Apt-Get Update keeps getting the same package

I narrowed it down to two files:

http://nz.archive.ubuntu.com/ubuntu/dists/trusty-updates/Release
http://nz.archive.ubuntu.com/ubuntu/dists/trusty-updates/Release.gpg

When I started an apt-get-update, a number of files would appear in /var/lib/apt/lists/partial, including these two.

The list would quickly become shorter and eventually only these two files would be left.

I had a look at http://nz.archive.ubuntu.com/ubuntu/dists/trusty-updates and noticed that Release.gpg in partial had the same size, but file Release was too short.
I also noticed that these files were updated last night on the server.

The funny thing was that I could view and download file Release.gpg in my browser, but I could only view file Release in my browser: when I tried to download it ("Save File As.."), Firefox responded that it couldn't read file /tmp/Xu4f... and file Release on disk would be empty.

Suddenly, everything started working again: apt-get update ran to completion within a few seconds and I could download file Release without a problem.

The only explanation I can think of is that there was a caching issue somewhere, because these files were updated last night.


Google+ hangout application not getting installed

Yes you need to install google video chat plugin. Just download it from google website and install it with sudo dpkg -i PATH/TO/DOWNLOADED_PACKAGE.DEB from terminal or You can use package like gdebi as well. This plugin will install google talk plugin repository and give you upgrades from update manager as well.


Is there software to automatically add subtitles to the videos?

VLSub - A VLC extension for adding subtitles to videos

VLC has an extension called VLSub which allows you to download and add subtitles to your videos.

The package is called vlc-plugin-sub which you can find either in Software Manager or you can install the package from the command line (Ctrl+Alt+t) with the command: sudo apt install vlc-plugin-sub.

Optionally, you could install it manually, either from the above VideoLan link, or from the developer's repository on GitHub:

Click on the download link (located on the files tab on the VideoLan site).
Save the file, extract vlsub.lua and save it in either of the two following directories:

(all users): /usr/lib/vlc/lua/extensions/

(current user): ~/.local/share/vlc/lua/extensions/

This plugin downloads subtitles from the site opensubtitles.org. These are user-submitted files. So, subtitles for a particular video may sometimes not be available or out of sync with the particular version of your video.

VLSub usage:

Once the extension is installed, Select View-->VLSub-->Research from the VLC menu.
You will be presented will a dialog box like the following:

Search by Name, hash or any additional details you may want to add.
Select Download Selection. This will download your selection(usually an .srt file) to the same directory as the video and start using the subtitle.


open tty1 ctrl+alt+f1

Login with your username and password

Now

sudo chown root /usr

Return back to your GUI tty ctrl+alt+f7

and try to login


Why is sssd an unrecognized service, even though it is installed and can be restarted?

When you run service, if there's a sysv init script, it will call that script (or call Upstart, if it's an Upstart job):

$ service ssh
 * Usage: /etc/init.d/ssh {start|stop|reload|force-reload|restart|try-restart|status}
$ service gdm
/etc/init.d/gdm: 79: /etc/init.d/gdm: Syntax error: "fi" unexpected (expecting "}")

Naturally if you don't pass a command (restart, status, etc.), only these scripts will be able to respond. If the init file for a service is Upstart-only, this will fail:

$ service tty1
tty1: unrecognized service

SSSD only offers an Upstart init script, as you can see from the list of files in sssd-common.

This behaviour is not exactly well documented in the manpage. However, if you examine the service command, which is a shell script:

118 if [ -r "/etc/init/${SERVICE}.conf" ] && which initctl >/dev/null \
119    && initctl version | grep -q upstart
120 then
121    # Upstart configuration exists for this job and we're running on upstart
122    case "${ACTION}" in

The actions in this case consists of exec calls of initctl (via its symlinked versions - start, stop, etc.). Since the ACTION variable is empty and doesn't match any case, it falls through to:

138
139 # Otherwise, use the traditional sysvinit
140 if [ -x "${SERVICEDIR}/${SERVICE}" ]; then
141    exec env -i LANG="$LANG" PATH="$PATH" TERM="$TERM" "$SERVICEDIR/$SERVICE" ${ACTION} ${OPTIONS}
142 else
143    echo "${SERVICE}: unrecognized service" >&2
144    exit 1
145 fi

Here you can see why it produces that error.


Plasma-Discover not starting on Kubuntu 20.04

After further investigations I see that the problem only exists when I
use the taksbar of type "icons with running programms". When I use the
taskbar type "only icons" then Discover starts properly. It seems to be a bug in Plasma Discover in Kubuntu 20.04.


How do I use multiple laptops as external display over network?

Basic way.
If sshd is installed on your laptops you can connect with them with ssh -X from the central one. Once you have done you can run each graphic program and the graphical output will be redirected to your main one.

More complex one.
With NoMachine e.g., server and client, you can connect to a remote computer as if you where connected directly. It's a remote desktop as many other. So from your central computer you can connect to all your laptop, maybe one for desktop.

To exchange windows from one computer to another... I suppose for this you need to create a something like a grid with all cloned machine (probably you can realize with virtual machines...). I see it a little bit more challenging.


Meizu Pro 5 ubuntu - forgotten passphrase

In my case, my pro5 was stuck in logo screen, maybe by upgrading failed, and I follow the solution from this, then my phone is come back to working now. Hope it can help you as well.


Toshiba Satellite P850 FN-Keys not working

This has fixed it:

1) Edit /etc/default/grub and change this variable:

GRUB_CMDLINE_LINUX="pcie_aspm=force acpi_osi=Linux acpi_backlight=legacy"

2) Edit /etc/modprobe.d/blacklist.conf and add this line at the end of the file:

blacklist toshiba_acpi

3) Update the grub config file:

sudo update-grub

4.) Reboot.


How to disable Nvidia GPU in ubuntu 14.04?

Try to disable your NVIDIA GPU by using the bbswitch command. Please follow the guide at https://github.com/Bumblebee-Project/bbswitch (too complex to post here)


Check the sha of the the downloaded iso.


Problems with headphones since the last update of Pulseaudio

Okey, I find a solution/the problem. I tried with the steps of the first answer:
Ubuntu 20.04 bluetooth not working
It's not necessary install any version of python.
Apparently it was the Bluetooth config. Now my headphones are working.
PS: This happens when you change the user without reboot. If you're connected to your machine with the bluetooth headphones connected, in the second user you can't use the headphones, it doesn't detect them like output devices of sound.


how to list groups along with its users using terminal in ubuntu 14.04.5?

Several options are available:

getent group <group_name> | cut -d":" -f4-

or

grep -iE "^adm" /etc/group | cut -d":" -f4-

Note you have to add the group name where I have "^adm, this will present members of that group.

See: man getent


How can I apply different fonts to different scripts across Ubuntu?

You need to install the fonts-noto package, if you haven't already done so. If that's not sufficient, you can create a file along these lines:

$ cat /etc/fonts/conf.d/65-fonts-noto-devanagari.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
    <alias>
        <family>sans-serif</family>
        <prefer>
            <family>Noto Sans Devanagari</family>
        </prefer>
    </alias>
    <alias>
        <family>monospace</family>
        <prefer>
            <family>Noto Sans Devanagari</family>
        </prefer>
    </alias>
</fontconfig>


Setting up wireless hotspot to be on at boot

Press CtrlAltT to open a terminal window and type

sudo -H gedit /etc/NetworkManager/system-connections/Hotspot

Find the string:

autoconnect=false

and change it to true


How to disable window move with alt + left mouse button?

It’s a Compiz plugin.

Install Compiz Config Settings Manager (sudo apt-get install compizconfig-settings-manager in a terminal) and open it.

Once opened, search for a “Move Window” plugin. Select it, and disable or change the first option, “Initiate Window Move”.

For Unity 2d:

How to disable alt+click from moving windows in Unity 2D?


Ubuntu 16.04: No "Network" tab in Nautilus

Maybe some of Nautilus extensions or itself became corrupted.

Usually the best option to do is to reinstall it. So:

sudo apt remove --purge nautilus | sudo apt install --reinstall nautilus

It will correct some misconfiguration about it.


Calling and SMS won't work, but you can flash the "regular" GSM image to run the software; I've tested a little with my Verizon-based Galaxy Nexus.

You have to force the device type when running phablet-flash:

phablet-flash -b -l -d maguro

Be warned: Ubuntu Phone is at a really early stage of development and isn't suitable for daily use (especially as a phone, since you won't be able to make calls or send texts).


Can I install Unity 2D and 3D at the same time?

Yes it should be easy to install both without breakage (unlike GNOME Shell).

Whilst the 2D version is itself programmed in QT, then the underlying applications for both Unity 2D and 3D, can be QT or GTK. It makes no difference.


Why doesn't ubuntu show the latest Nvidia drivers?

First, sorry for your troubles. Things don't always work as expected, and software isn't perfect.

Most of the packages in the Ubuntu repositories are somewhat outdated. Like it or not, this is the way it has been since the beginning. The next version of Ubutnu, due in October, should have the 319 driver in the repositories, tested and ready to use.

You can remove the manually installed Nvidia driver if it causes problems. No need to reformat anything.


Chromebook: Map Search Key to ctrl, ubuntu

I have Acer C720 Chromebook, here is what I did to map search key to control

You can use xev to check the keycode for your search key, and which key it is mapped to. For my chromebook, search key is mapped to Super_L by default.

First, create file .Xmodmap at your $HOME directory with content below

clear control
clear mod4
keycode 133 = Super_L
add control  = Control_L Control_R Super_L
add mod4 = Super_L Super_R

Next, need to make sure xmodmap load ~/.Xmodmap file when you start you linux using sudo startxfce4 in chromebook terminal. Create file ~/.xinitrc with content below

if [ -s ~/.Xmodmap ]; then
    xmodmap ~/.Xmodmap
fi

Last step is to logout your xfce environment and restart it from chromebook terminal.

For reference, you can look at Section Special keys/signals from Here
And another reference from crouton: Here


What are "drag-and-drop-####.txt" files?

The line in your file supplies some information. DSAPI is probably a hint to the Domino Web Server Application Interface, which is an interface for the Domino Web Server. Do you remember installing something that makes use of this web server? Do you have an application running this web server? Can you find it running in some task manager such as htop?

If so, do you need it? Do you know how to set it up?

It seems like the domino web server used to be owned by IBM who seem to have sold it to HCL Technologies. Maybe some older IBM software is still using it.

DragAndDropHelper::AcceptDrop looks lik the Java function AcceptDrop of Class DragAndRopHelper does something here. This is in line with the Domino web server using Java internally.

I believe you will need someone with knowledge of the Domino Web Server to help you.

I hope that helps in narrowing down what goes wrong.

Have a nice day.


Virtual Machine best practices, and RAW vs QCOW2

you have combined a few questions, let me try to answer them one by one.
The guest uses the default network and dhcp in there with your latter command.
I assume you have set up a user on install.
The easiest way to know how to connect would be virsh domifaddr like:

$ virsh domifaddr xenial-kvm
 Name       MAC address          Protocol     Address
-------------------------------------------------------------------------------
 vnet0      52:54:00:fe:2c:1f    ipv4         192.168.122.232/24

Note: I'd personally always prefer the much sleeker (no install, but using cloud images) uvtool-libvirt - see this info if you are interested

Then for the good old raw vs qcow2 discussion. I have done KVM performance for some years - are there differences yes. But the answer isn't that easy.
You trade quite some features of qcow2 for that (sparse allocation, snapshots, ...).

And if you are really concerned about performance then raw isn't what you want to use either - at least free up a partition or better a full device and pass
 (type='block' device='disk', driver type='raw' is different to a .raw type='file') that device to the guest - that skips much more of the host stack and allows detection of the device characteristics in the guest which usually ends up being much faster.

You can spin that thought further depending on your setup, IMHO one of the best solution for somewhat normal setups (there always is some >10k$ enterprise alternative, lets ignore that) to optimize speed at the moment is an extra PCIe nvme controller which you PCI-passthrough to the guest - but that requires the hardware to do so.

So the question IMHO is never "raw file vs qcow2 file", it is "qcow2 for features, or some pass-through for speed" - raw files are somewhere in between and rarely useful for either of above trade-off decision.


Install packages on a Ubuntu Virtual Machine that has no Internet connection nor GUI?

Using apt or dpkg command will help you install the package.
How to install with apt
Open terminal and run
apt update
apt install package_name

NB: apt  requires internet connection.
How to install with dpkg
Download the .deb from a safe source, change to the directory of your .deb files using cd command, run
dpkg -i package_name.deb

If there is more than one .deb file, your can make the installation with a regular expression by running
dpkg -i *.deb


Broken icons, Wifi, and login screen after upgrade

check the ubuntu documentation for downgrading..
https://help.ubuntu.com/community/DowngradeHowto


I'm trying to get the darned thing working with crypto too...
However, to address this one, it looks like there is a "feature" that "in_vg{ vg00 }" needs a space before the opening brace, ie. "in_vg { vg00 }".
Just in case anybody happens across this thread whilst banging their head against wall/laptop/whatever...


Set a specific theme for root launched applications

You are right when you found out that applications launched as root adopt the theme of the user that invokes them.

However there are few applications only that make sense to be launched as root. Fortunately for me these are three applications only:

Gedit
Nautilus
Terminal

All these three applications can at least partly be themed independent of the desktop theme. Once they are issued as root changes to the theme can be applied and will be kept:

Left: default themes | right: root themes


Ubuntu server drop ping for specified interface

Why not use iptables?  It can differentiate per interface.  Something like this:

iptables -A INPUT -i ppp0 -p icmp --icmp-type echo-request -j REJECT

That works like a champ for me.


Leave the packages listed in the terminal message alone for now until you're sure that you know what you're doing.

Your terminal message says The following packages were automatically installed and are no longer required: You can remove these packages automatically by running sudo apt autoremove but it's not a good idea to remove these packages until you're sure that you don't need to reinstall packages that were removed as a consequence of accidentally removing the system Python from Ubuntu 18.04. If the packages listed after The following packages were automatically installed and are no longer required: are dependencies of any packages that you subsequently reinstalled, these packages will stop generating package management messages in the terminal.


Media Keys not working in Ubuntu 19.10 with Kodi

Fixed! :-)

Was a gnome feature blocking the keys. Found it after ages of searching ask.ubuntu and trial en error:

Check the keys with: sudo showkey -k
Then you need to change the keys in gnome:
Install the visual key editor: dconf-editor
Navigate to org/gnome/settings-daemon/plugins/media-keys
Remove the default values and replace with ['']
Then you need to change it in one more place:
Find the keys that you need that have default values: gsettings list-recursively org.gnome.settings-daemon.plugins.media-keys | grep thekey
Blank the keys with: conf write /org/gnome/settings-daemon/plugins/media-keys/thekey "''"
Check which keys have been set: /etc/systemd/system/cockpit.socket.d/listen.conf
reboot

Media Keys not working on Ubuntu 17.10
Add a custom keybinding with gsettings in ubuntu


How do I run the latest version of "Ubuntu Software Center" on 10.04?

No AND YES
,You cant install it without compiling
source-code is available here
you can compile and install it ,BTW support for 1.10 is ended .so upgrade to 12.04 LTS when it releases


CMAKE Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)


Dual boot problem with ubuntu 12.04 and Vista

IF you are attempting to install Ubuntu "within" Ubuntu, you ran into the same problem I did.  I then did the installation withing WINDOWS and everything worked perfectly.
Try that.


Unity session closes when press Alt-Tab, Super, Super-F, Super-A

While switching off compiz plugins I realized that actually crashes compiz, not unitty itself. Then I started in a terminal a new compiz instance: compiz --replace which somehow prevented session termination when compiz crashed.

In the compiz log which was outputted to the terminal I've seen the error of absent file /usr/share/unity/icons/dash_bottom_right_corner.png

As soon as I copied to it dash_bottom_left_corner.png and restarted compiz it had stopped crashing.

I guess I lost that file when several times rebooted hardly my notebook and fsck-ed it.


How to change firefox startpage from Ubuntu's to Firefox's?

about:home

in your URL bar is the page you're looking for.


Your cron syntax is incorrect. * means every, so between 5 and 6AM, it will run every minute. E.g. 5:23 matches, because 5 matches 5 and 23 matches *.

You want a zero in the minutes field, so it runs only once at exactly 5AM.

Corrected line:

  0 5 * * * /root/Scripts/Misc/disk_space.sh


How do you install a package in the official backports repository using synaptic?

Go to System Settings > Software & Updates, select Updates tab and Unsuported Updates:

Now go in terminal and run the following command to update your repositories:

sudo apt-get update

After the update is complete, open Synaptic and search for "hedgewars" package:

Tick the packages that were found and install them

Note:

Make sure that you comment Backports repositories in /etc/apt/sources.list, once done.  Reason: if you try to use synaptic to install gaim-encryption for example, you can find it in the backports repositories, but to install it, you would have to remove packages mozilla-firefox-gnome-support and ubuntu-desktop.

So go into /etc/apt/sources.list and comment out the backports repositories, and reload synaptic package manager.  There is an official version of gaim-encryption that did NOT conflict with the mozilla-firefox-gnome support and ubuntu-desktop packages.

Source:UF


This worked for me:

sudo dpkg --remove linux-server
sudo dpkg --remove linux-image-server linux-headers-server
# purge unused kernels, but could do more so your mileage may vary
sudo apt-get autoremove
sudo apt-get install linux-server linux-image-generic linux-headers-generic


Fatal error : grub installation /dev/SDA failed

You have to install grub into /dev/sda2 as it is the ESP where bootloder belong in UEFI boot.

Why? on preinstalled windows 10 there is following partion created befor installing linux for the firtst time:

300 MiB restore
100 MiB ESP (needs the mount point /boot/EFI in the system later)
most of the disk windows C
optional windows D for data, videos programs, document stiff like that

so to install grub rigt you have to install it on sda2.

sudo grub-install [options] /dev/sda2

see grub-install --help for details for options. Also man 8 grub for more details on grub or the grub Manual online here.


I have a list of files, how can I open and copy the contents of each file to a new one using bash?

Take the echo out of your command. I don't know why you had it there in the first place.

find "../../../Single conical/IV/" -name "current-tot.dat" > IVfilenames.dat

Then IVfilenames.dat will be a list of files like this:

../../../Single conical/IV/Dir1/current-tot.dat
../../../Single conical/IV/Dir2/current-tot.dat

You can use the below code to compile all the current-tot.dat files from the list into one results.dat file:

while read -r filename; do
    cat "$filename"
done < IVfilenames.dat > results.dat

But that said, it's easier to cut out the middleman, and not create the list of files at all:

find "../../../Single conical/IV/" -name "current-tot.dat" -exec cat -- {} + > results.dat


The changes in the menu are temporary. Use Edit > Profile Preferences and change the settings in the dialog:


If you install the tzdata source package, you will find all your answers:

sudo apt-get install apt-src
mkdir tzdata && cd tzdata
apt-src install tzdata

Specifically:

posix and right:

  Two different versions are provided:
  - The "posix" version is based on the Coordinated Universal Time (UTC).
  - The "right" version is based on the International Atomic Time (TAI),
    and it includes the leap seconds.

Etc:

  These entries are mostly present for historical reasons, so that
  people in areas not otherwise covered by the tz files could "zic -l"
  to a time zone that was right for their area.  These days, the
  tz files cover almost all the inhabited world, and the only practical
  need now for the entries that are not on UTC are for ships at sea
  that cannot use POSIX TZ settings.

EST5EDT, ...:

GB, GB-Eire, GMT, GMT+0, GMT-0, GMT0, NZ, NZ-CHAT, PRC, ROC, ROK, UCT, UTC are there because the time zone names changed:

  This file provides links between current names for time zones
  and their old names.  Many names changed in late 1993.

CET, CST6CDT, EET, EST, EST5EDT, HST, MET, MST, MST7MDT, PST8PDT, WET are there for backwards compatibility.

  From Arthur David Olson, 2005-12-19
  We generate the files specified below to guard against old files with
  obsolete information being left in the time zone binary directory.
  We limit the list to names that have appeared in previous versions of
  this time zone package.
  We do these as separate Zones rather than as Links to avoid problems if
  a particular place changes whether it observes DST.
  We put these specifications here in the northamerica file both to
  increase the chances that they'll actually get compiled and to
  avoid the need to duplicate the US rules in another file.


I realise this is resolved now but just picking on your comment:

  I want to launch root commands from a GUI application, if there is a better way to prompt graphically for the sudo password I would like to know

pkexec is a relatively modern alternative that works slightly out of band compared to sudo/gksu. It should be available on all the Ubuntu desktops.


João Carlos,

I'm testing Kubuntu 15.04 beta 2 and I had the same problem when trying to install Kodi.

Downloading Kodi deb package and editing the control file manually worked. I Think this is not recommended as it coud break the system, but it might work if you can't wait until the package is updated.

1) Add Kodi repositories as usual.
2) Install kodi's dependencies using apt, (all the required packages, but don't install "kodi" package yet).
2) Install libgnutls-deb0-28 using apt.
3) Download Kodi's deb package from ppa

https://launchpad.net/~team-xbmc/+archive/ubuntu/ppa/+files/kodi_14.2%7Egit20150327.1058-final-0vivid_all.deb

4) Uncompress the deb package
mkdir common
dpkg -x kodi_14.2~git20150327.1058-final-0vivid_all.deb common
dpkg --control kodi_14.2~git20150327.1058-final-0vivid_all.deb

5) Edit DEBIAN/control and "fix" the broken dependencies.

Edit the "DEBIAN/control" file with vi or any text editor, and search for "libgnutls26 | libgnutls28" (in the "Depends:" section of the file).
Replace them with "libgnutls-deb0-28".

vi DEBIAN/control
cp -a DEBIAN/ common/

6) Build the fixed package.

dpkg -b common kodi_14.2~git20150327.1058-final-0vivid_all.deb

7) Install it using dpkg.

dpkg -i kodi_14.2~git20150327.1058-final-0vivid_all.deb

Hope it helps!


Where Can I Download the Apt Package if apt-get is Missing?

Navigate to the aptitude package page on the Ubuntu website (replace ubuntu.com by debian.org if you're on Debian). Pick the right version (lucid) for you. You either need matching, working aptitude and libapt-pkg-* (provided by apt) packages. Follow the download link for your architecture and download the .deb file(s) that you need.

You can also navigate to the package archive on a Ubuntu mirror (Debian mirror) near you. You can find out precisely which package sources your system normally uses by looking in /etc/apt/sources.list and /etc/apt/sources.list.d/*.list on your system. The packages are organized by distribution component (main/restricted/universe/multiverse for Ubuntu, main/contrib/non-free for Debian) and then by source package. For example, look in http://us.archive.ubuntu.com/ubuntu/pool/main/a/apt/ . All the versions carried by the mirror are in the same directory, so make sure you pick the right one for your system. Note that security upgrades live on a separate server.

Once you've downloaded the .deb files, install them by running the dpkg command as root:

sudo dpkg -i /path/to/package.deb


How can I set a second screen (DISPLAY=:0.1) as the default gnome display?

Maybe the following thread is a partial solution (at least for the panels): http://www.uluga.ubuntuforums.org/showthread.php?t=1114767


AeroAdmin crashs in Wine under 64-bit Linux

AeroAdmin Tech Support informed me:

yes, you are correct. It works only in 32-bit version of the debian
distribution.


Asking all remaining processes to terminate... fail

I had the same problem with Ubuntu 13.04 running virtual in VMware player. I tried Ctrl + Alt + T (I didn't expect a console and it doesn't show any), and all the sudden the installation continues!

I already tried Esc, Ctrl + C, Ctrl + break, but this had no effect.


Ubuntu 18.04 screen goes black after connecting external monitors

Problem and solution confirmed on a Lenovo T460s, running Ubuntu 18.04 from an LUKS encrypted volume with a dock/external monitor setup. After updating to kernel 4.15.0-44, I was able to have a visible login screen only when disconnected from the dock/external monitor. When connected to the dock using kernel -44, everything went black after applying the encryption key.
Upgrading to kernel 4.15.0-45 solved the problem. Now the login screen displays also when the computer is docked with an external monitor. Thanks, sg2!


Black screen when trying to install ubuntu 13.10

This may sound stupid, but I think I may have (had) similar problem with my new Windows 8 preinstalled Lenovo G710 laptop. Here it is simply that after booting Ubuntu or - for example - GParted Live CD, the screen brightness is automatically set to zero. On this particular laptop I use I can control brightness by F11/F12 (or Fn+F11/Fn+F12 depending on BIOS setup's switch). I'm sorry if I misunderstood your problem.

Edit: not "set to zero brightness" but screen set off and therefore not F12 but F9 here ;).


I had the same problem, I've submitted a bug and I'd appreciate you click the 'this bug affects' me button:

https://bugs.launchpad.net/ubuntu/+source/lubuntu-default-settings/+bug/1241958

So here's a workaround:

First if you cant get /usr/bin/lxsession or /usr/bin/lxsession to work through the LATEST x2go client try this:

1) uninstall the latest x2go client and reinstall (I'm using the latest preview version)
2) purge your x2go install: 'apt-get remove purge x2go*'  (check what x2go packages are installed with 'dpkg -l | grep x2go' and remove them such as libx2go*)
3) Follow the instructions here to get the latest server:

http://wiki.x2go.org/doku.php/doc:installation:x2goserver

I installed python-software-properties, x2goserver, x2goserver-xsession and x2golxdebindings

make sure you are using that ppa repository so you get the latest versions

4) kill all running x2go server sessions on the server and restart
5) reconnect with x2go client and use 'custom' session type with /usr/bin/startlxde (or try /usr/bin/lxsession).  If this doesn't work, then something is still wrong with your setup
6) If you want to use startlubuntu you can still download the deb from here:

http://packages.ubuntu.com/raring/all/lubuntu-default-settings/download

and extract it with

sudo depkg-deb -x lubuntu-default-settings_0.31_all.deb ./temp

go into temp/usr/bin/ and copy 'startlubuntu' to /usr/bin/ on your server.  This script should still work with 13.10 until we can find out the proper way to make this work with lxsession (you should subscribe to that bug so you can be part of the discussion to find out the right way to do this).


If you have to use a password for every single thing you do then I would suspect that you have a problem.

If though you mean you have to supply a password when doing things that impact on the system files then this is good.

Just because you had windows set up to run without something as basic as a password doesn't mean you should transfer the behaviour ;)

If you find that you are running a lot of commands in one go try

sudo -i

Run the commands and then exit.

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


AMD Unsupported Hardware now a blank but not black screen not broken pipes 13.04

Enter the console (Ctrl+alt+F1) and backup your documents. (External USB Drive)

Reinstall

and you are saved.

And next time don't do that...

OR
once you are in console, try to

create a new user

login as a new user - most probably new profile will take a new setup.


Is it possible to change the Skype indicator icon?

It seems to be hard-coded in the binary. As long as it is not an open source program, you are not allowed to change it. The discussion regarding this topic dates back to 2008!


How can I recover from deleting the /usr/share/themes directory?

Run dpkg -S /usr/share/themes to see what packages you have installed that install files into that directory. Then, run sudo apt-get install --reinstall packages, replacing packages with the list of packages returned by the previous command.


How can I make QSSTV recognise my sound device

In January 2012 QSSTV received an update (including an updated interface) that fixed the sound problem. It can be downloaded from here


How do I force a shutdown even when there are other open sessions?

Assuming your account is an administrator on the computer (i.e. you have "root" or sudo privileges) this is very simple. Just open a terminal with Ctrl+Alt+T, and type:

sudo reboot

Enter your password when prompted, and the computer will shut down, regardless of what other sessions are open. Unsaved data in any applications open in the other sessions (or in yours) will be lost.

If you wish to only shutdown and not restart, the alternative is:

sudo shutdown -P now

  Note: if you do not have sudo privileges, then you cannot do this. You can only shutdown when no other sessions are open; if they are, "shut down" will simply log you out.


How to get EMU 1212m, EMU 1616m, or EMU 1010 to work with Ubuntu?

Update Jul 3, 2014

As of Ubuntu 14.04, the ALSA driver is natively supported in the kernel, so the download-compile-install process for the driver should be skipped. The remaining of the instructions remains the same.

Instructions

In order to get this card to work, you need to set up ALSA (Advanced Linux Sound Architecture). Download the latest stable releases of alsa-driver, alsa-lib, alsa-utils, and alsa-firmware from their wiki page here and extract them.

0. Pre-reqs

To make sure you have all the pre-requisites for compiling code, run the following command:

sudo apt-get install build-essential linux-headers-$(uname -r)

1. Configure ALSA driver (skip this step if you are in Ubuntu 13.10+)

Now you need to configure which sound devices should be used with ALSA. I'll explain the instruction for having two sound devices, Intel HD Audio, and the E-MU 1212m. If you need ALSA to include another, you need to find the name of the ALSA driver that supports this device. In order to do that, check ALSA's sound card matrix here. If your sound card is supported, you should find a driver for it in the list of drivers. For Intel HD Audio, the driver is hda-intel, and for E-MU 1212m, the driver is emu10k1.

To configure the driver, go to the folder where you extracted alsa-driver in a terminal, and run the following command.

./configure --with-cards=hda-intel,emu10k1 --with-sequencer=yes --with-isapnp=no  --with-oss=no --with-kernel=/lib/modules/$(uname -r)/build

--with-cards specifies a comma-separated list of the drivers that you need. As for the other options, I have the driver include a sequencer, specified the that the device is not plug and play, specified that OSS is not used, and specified the kernel. Although you shouldn't need to, but you can add additional configuration options for the ALSA driver as necessary. You can learn more about configuring ALSA driver by running the command ./configure --help.

Note: If you are not sure which card you have, try running lshw -c sound in the terminal. It will list all the sound hardware. If it is a PCI, it should also show up when you run lspci | grep audio.

2. Patch the emu10k1 driver (skip this step if you are in Ubuntu 13.10+)

Next we need to apply a small patch to one of the files.

In the same folder, open the file ./alsa-kernel/pci/emu10k1/emu10k1_main.c with a text editor of your choice. Find the line with

static struct snd_emu_chip_details emu_chip_details[] = {

Right below it, insert the following:

{.vendor = 0x1102, .device = 0x0008, .subsystem = 0x40071102,
  .driver = "Audigy2", .name = "E-mu 1010 PCIe",
  .id = "EMU1010",
  .emu10k2_chip = 1,
  .ca0108_chip = 1,
  .spk71 = 1,
  .emu_model = EMU_MODEL_EMU1010B},

Save this file, and close.

3. Compile and install

Go to each of the folders where you extracted driver* (skip if version of Ubuntu is 13.10+), firmware, lib, and utils, and for each of them run this command

./configure && make && sudo make install

Do the same for lib and utils.

4. Copy the firmware files to emu folder

Go to the folder where you extracted alsa-firmware in the terminal. Browse to the folder /emu/ there, and run the following command:

sudo cp *fw /lib/firmware/emu

Note:/lib/firmware/emu should exist, but if doesn't create it.

5. Configure the Linux sound base to use ALSA

Run this command:

sudo dpkg-reconfigure linux-sound-base

and choose ALSA.

6. Reboot!

This should be all. Once the system boots up, you should see SB0400 Audigy2 Value Analog Stereo in the sound settings of Ubuntu.

After you are done

This is enough for you to get started and get a sound output from your card. For more advanced ways to tweak the input/outputs of the cards see the following links:

emutrix : matrix-style mixer for this card. This will need to be compiled with Qt. It's relatively straightforward to build with qt4 and slightly more tricky with Qt5. The compilation command is simply qmake && make.

Here's how to compile this project with Qt5 (you can install Qt5 using sudo apt install qt5-default). Download and extract emutrix0.3.1 and open the file emutrix.pro with a text editor. After the line TEMPLATE = app, insert the following:

 greaterThan(QT_MAJOR_VERSION, 4): QT += widgets gui

Then save this file, and at the root of the project run the command

 qmake

Next, open a text editor and open the file emutrix0.3.1/src/main.cc. At the top, delete the line #include <QtGui/QApplication> and replace it with #include <QtWidgets/QApplication>

Then open the file src/mainwindow.h and similarly delete the line #include <QtGui/QApplication> and this time replace it with

#include <QtWidgets/QMainWindow>
#include <QMainWindow>

And save these two files. Now we can compile the project by running

make

This might take a while. Note that you can run make -j 4 for example to use 4 threads if you have a machine with more available threads so that it compiles faster. If you do run into issues during the compilation, do a quick Google search of the compile error, usually the first one or two hits will resolve it.

Once everything is compiled, we are ready to launch it with ./emutrix. You can further create a .desktop file in /usr/share/applications so that you can launch emutrix from the start menu.

Additional Audio Tools

alsamixer: this is the main mixer that I often use to mute/adjust io levels. All you have to do to start it is to run in the terminal alsamixer.

gnome-alsa-mixer : or the gui version of it if you prefer (sudo apt-get install gnome-alsa-mixer)

qjackctl This is installed with sudo apt-get install jack qjackctl. Read more about jack on wiki. Some applications in Ubuntu may use this to have low latency and high resolution sound.


How to do emergency upgrade to kernel 4.14.13?

The command line to install the kernel image has an empty space before the ".deb", enter the following line instead:

sudo dpkg -i linux-headers-4.14.13-* linux-image-4.14.13-*.deb


Ubuntu won't boot (dual boot Windows/Ubuntu)

Please follow recovery instructions: https://help.ubuntu.com/community/RecoveringUbuntuAfterInstallingWindows


This is Debian bug #695225 - No support for mp4 container in Handbrake. There is a PPA with a fixed version of Handbrake, see Handbrake Releases PPA. To enable it do:

sudo apt-get purge handbrake # remove any old versions
sudo add-apt-repository ppa:stebbins/handbrake-releases
sudo apt-get update
sudo apt-get install handbrake-gtk

To get the mp4 format to work you must go into preferences and disable the "ipod friendly mkv format" checkbox.

handbrake-gtk also available in apps.ubuntu


How to add the ncurses.h to a C++ program compiled on gcc?

on ubuntu:

install ncurses library (packages for developers has "-dev" postfix)

sudo apt-get install libncurses5-dev

for each package, in /usr/share/doc/{package name}/ you can find documentation.

Open this URL file:///usr/share/doc/libncurses5-dev/html/index.html in your browser.

Have fun.


Unable to login to my account using terminal

Other alternatives as suggested to sudo su command are sudo -i and sudo -H.

I'm still wondering what caused the sudo su command to stop working.


This has been a known issue with fish for a while, but there is actually a fix now at its Github site. The developer commented when discussing the issue that

  Actually I think it's something else - we just didn't set the parent group ID in posix_spawn.

He has committed the fix now, but I think you will have to build it from source until that fix is incorporated in the beta builds at the official site. The instructions to build from source are straightforward and are on the beta page: (install git and build-essential if you don't have them already). There are no extra dependencies to install.

First, run

git clone git://github.com/fish-shell/fish-shell.git

Then cd to the fish-shell folder and run:

autoconf
./configure
make
sudo make install

You can use checkinstall instead of make install if you wish.

I just tried this method and it all worked fine- it took less than 3 minutes altogether.

Note: some good extensive documentation on fish is available here.


How to extract out specific information from files within a directory?

With GNU awk:
gawk '
  BEGIN {print "SampleID","Read_counts"}
  BEGINFILE {sum = 0}
  /final pair[12] : Total reads after merging results from multiple database/ {sum += $NF}
  ENDFILE {print substr(FILENAME,1,length(FILENAME)-4), sum}
' *.log

With standard (POSIX) awk, you can easily fake the BEGINFILE using FNR==1 but the ENDFILE pattern is harder; in that case I'd suggest using an array for the sum, keyed on the current filename, and printing everything at the END
awk '
  BEGIN {print "SampleID","Read_counts"}
  FNR==1 {k = substr(FILENAME,1,length(FILENAME)-4)}
  /final pair[12] : Total reads after merging results from multiple database/ {sum[k] += $NF}
  END {for(k in sum) print k, sum[k]}
' *.log

Note that with this approach, the output order is not guaranteed to be in the same order as the glob expansion of the filenames *.log.


You now disabled system-wide automatic launching of mpd. However, next to that, an automatic per-user startup is also automatically enabled in Ubuntu. Thus, if you disable the system wide mpd service, an autostart process will start a user-specific instance as soon as you log in.

To safely disable autostart:

Copy /etc/xdg/autostart/mpd.desktop to ~/.config/autostart/mpd.desktop
Edit ~/.config/autostart/mpd.desktop to change X-GNOME-Autostart-enabled=true to X-GNOME-Autostart-enabled=false, or delete the line
Edit or add a line `Hidden=true'

A local .desktop file takes priority over a system wide launcher. Instead of editing the system wide launcher, creating and changing a private copy is better practice because 1) you only affect your current user, 2) you do not need root permissions to customize the starter, and 3) your changes will not be overwritten by possible system updates.


How do I get my PIXMA MP250 printer to work on 14.10

If you have downloaded the cnijfilter...gz package from Canon's website, you should have what you need to get your printer working.

Assuming that you downloaded it to the Downloads folder, execute these steps:

Open the Downloads folder in a file manager
Find the cnijfilter...gz package and extract it into the Downloads folder.  Depending on how your system is set up, this may be as simple as right-clicking it and selecting "Extract now" or similar.
Open a terminal window.  Go to the Downloads folder by typing cd Downloads.  List the contents of the folder by typing ls.  Then cd to the cnij.....deb folder that you created by extracting the files.
List the contents of the new folder by typing ls.  If everything has worked so far, you will see two directories and a script called install.sh.
Execute the install script by typing sudo ./install.sh.  You will be prompted for a password.  Enter your login password.  Nothing will be displayed as you type.
Answer the questions in the install script.

If this process completes properly, you should now be able to print.


I had exactly the same problem today. Turned off my laptop after finishing with my job and than turning it back on when I got home. Ubuntu wasn't able to find any wi-fi. I know that this might sound stupid, but try turning off (not restarting) your pc, leave it for a few seconds or a minute and then turn it back on. This, no matter how stupid it sounds, just solved my problem and I'm able to use wifi again (I also ran sudo apt-get update and sudo apt-get upgrade, which I don't think helped solving this issue, but updating can't be bad).
Just for the record, I was also restarting my laptop few times but it didn't helped.

Hope this helps you.


Ubuntu 16.04 how to use ping in a bash script to decide whether to skip a block of code

It seems you are only interested in the exit status of ping i.e. whether you are getting ICMP ECHO_RESPONSE from the host to your ECHO_REQUEST; you can just do ping -c 1 ... and ping would exit with status 0 if the host is sending response, 1 if no response and 2 for unknown host.

You can easily use this with if construct; you don't need to count response, just use ping as if's condition as if would evaluate the exit status of ping to proceed to any defined branch:

if ping -c 1 SOLAR &>/dev/null; then
    ## Reachable -- do stuffs
else
    ## Unreachable -- do other stuffs
fi

I am redirecting ping's STDOUT and STDERR streams to /dev/null as we are not interested in those.


Instructions to mount an internal hard drive?

The Windows partition should be visible in the left panel of Ubuntu file browser. Clicking on it should mount the drive and show you the files.

If you prefer to mount the partition from command line, something like this would work:

mount -t ntfs /dev/your-partition-device /some/folder/to/serve/as/mountpoint

It's not clear why you're asking about fdisk and gparted - you definitely don't need those to access your files.


CVE-2015-0235 How to update eglibc to 2.15-0ubuntu10.10

If you're on 12.04 or 10.04, you don't need to do anything special to upgrade. The usual procedure applies:

sudo apt-get update
sudo apt-get upgrade

Or, specifically:

sudo apt-get install libc6

To verify, run apt-cache policy:

$ apt-cache policy libc6
libc6:
  Installed: 2.15-0ubuntu10.10
  Candidate: 2.15-0ubuntu10.10
  Version table:
 *** 2.15-0ubuntu10.10 0
        500 http://security.ubuntu.com/ubuntu/ precise-security/main amd64 Packages
        100 /var/lib/dpkg/status
     2.15-0ubuntu10.9 0
        500 http://in.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages

The USN notice is more cautious, and given the core nature of libc, I second it:

  After a standard system update you need to reboot your computer to make
  all the necessary changes.


How do I send personalized notify-send about custom events?

What you need is a short bash script, like:

#!/bin/sh
while [ 1 ]
do
  if [ "PARAMETER" = "SOMETHING" ]; then
     notify-send "Attention" "There is a new connection."
  else
     echo "Nothing Found"
  fi
  sleep 5
done

Basically, this would listen for a PARAMETER (How, I don't know...), and when it equals SOMETHING, then it will send a notification. If the PARAMETER is not equal to SOMETHING, it will print Nothing Found (This is not necessary, it just shows that it is working), wait for 5 seconds, and start again.

The problem is getting it find when it has connected... None of these...

netstat -n -A inet
cat /proc/net/ip_conntrack - apparently deprecated anyway, see here
ss -n

...seem to produce the parameters required...

Any corrections welcome, especially with the bash script


As mentioned at VirtualBox Forums the owner and group of /usr and / or /usr/lib may have been incorrectly set.

Check the two directories with ls -ld /usr && ls -ld /usr/lib - both the user and group of the directories should be root.  If not, they can be set with:

sudo chown root:root /usr /usr/lib


apt tells me I have "held broken packages": please help me reinstall skype

One thing I always try if I have problems with skype is to install a debian package from their site. If I remember correctly, it doesn't have the skype-bin dependency, but rather comes as a bundle.

Regarding your libqtwebkit4 problem, I think that you have the 64-bit version installed when skype requires the 32-bit version.


Installing wxPython and 'getting gpg: no valid OpenPGP data found' error

The hostname apt.wxwidgets.org is an invalid host.

$ host ping http://apt.wxwidgets.org/
host: couldn't get address for 'http://apt.wxwidgets.org/': not found

The latest supported Ubuntu version was Ubuntu 11.04.

Depending on your Ubuntu version, install python-wxgtk2.8 or python-wxgtk2.6 from the Ubuntu repositories:

sudo apt-get install python-wxgtk2.6

or

sudo apt-get install python-wxgtk2.8


Where do I fill the App Showdown Participation Details?

When you submit your application via https://myapps.developer.ubuntu.com/dev/ you can add the contents of the text file there.


Is there a program that tells ram usage?

I think htop is the best solution, this way you will be able to see what program is using the most amount of RAM.

sudo apt-get install htop


The keyboard strokes to achieve that in moving the window is as follows:

Alt+Space, then M for Move, then you can use your arrow keys to move the window where ever you want.  Press Esc to stop the move.

Hope this helps!


The perl based rename command's s operator takes regular expressions not shell wildcards. The regular expression for any character zero or more times is .*, not *. In addition, [ and ] have special meanings and must be escaped if you want them to match literally. So:
$ rename -n 's/ \[.*\]//' file*.txt
rename(file 1 [EN MR RE EF SF DS DE].txt, file 1.txt)
rename(file 2 [EN MR].txt, file 2.txt)
rename(file 3 [EN MR RE EF].txt, file 3.txt)

Remove the -n once you are happy with the proposed substitutions.


Need System Settings Icon back on Launcher

You can lock any app to Launcher by dragging its icon from Dash and releasing it somewhere on Launcher, or by opening it from Dash, right clicking on its Launcher icon and selecting Lock to Launcher.


Why didn't Sublime install as other application?

It seems you downloaded a tarball of sublime text, which was provided for non-debian Linux distributions.

To install it as deb package use these commands in a Terminal (Open by pressing Ctrl-Alt-T)

wget -c https://download.sublimetext.com/sublime-text_build-3114_amd64.deb
sudo dpkg -i sublime-text.deb

Note: If you're using 32-bit Ubuntu, first command will be

https://download.sublimetext.com/sublime-text_build-3114_i386.deb

You should now be able to use it like other regular packages without having to open it from extracted folder.


Ubuntu comes with a built-in back-up system but I've had really good results using Clonezilla.

Clonezilla is a free and open-source utility that has the ability to create and restore image backups of your full hard-disk or partitions. It can be downloaded and run as a LiveCD which makes creating and restoring backups really easy - even when your OS is not functional, or completely missing - as would be the case when your hard-drive crashes.


Download the libpng12 package from here, then install it with your package manager, or with sudo dpkg -i <package>

I only had to install this package for it to work.


How can I change my bluetooth speaker default passkey in Ubuntu

Firstly, I don't think you can change the PIN of a bluetooth device. It is certainly hard-coded and you can't do anything about it.

Secondly, the right question to ask for your problem is: How do I specify a different PIN than 0000 when pairing a bluetooth device on android ?

So you better ask /your favortie search engine/ about that:


Weak Wireless Signal - Atheros ar5008x drops connection

In your router settings, probably the "Advanced" tab, you can set the Beacon Interval. The default is 100, you could reduce it to like 25 and hopefully the connection will not be dropped.


xgamma -display parameter for dual monitor setup

I have same problem with xgamma, you can use xrandr to do that

my first monitor:

xrandr --output VGA1 --mode 1360x768 --pos 0x0 --rotate normal --gamma 1.000:1.000:1.000

my second monitor:

xrandr --output LVDS1 --mode 1024x600 --pos 0x768 --rotate normal --gamma 1.100:1.000:1.000

the --gamma parameter works in same way that xgamma

--gamma R:G:B
xrandr --output (some monitor) --gamma 1:1:1


"Unmet dependencies" When trying to install KDE Plasma 5.3 on Ubuntu 15.04

Fixed it by:

sudo dpkg -P unity-scope-gdrive account-plugin-google account-plugin-facebook
sudo apt-get install -f

This removes the packages listed in the first command and thus resolves the package conflict.


Every attempts of installation returns error code (1)

First enable all of the repositories , such as main, universe and also the updates and security-updates. Take a look at these questions

Try executing these commands:

sudo apt-get purge capiutils drdsl
sudo apt-get autoremove

and then

sudo apt-get -f install
sudo dpkg --configure --pending
sudo apt-get update
sudo apt-get upgrade

Credit goes to this page

I'am quoting an important line from there

  If you are coming from Windows, it is important for you to know the role of a package manager. The package manager manages all installations, updates, upgrades and deinstallations. This way, you have a central place to manage your programs and their dependencies. If you stick to the official (default) repositories, you can be sure that every program you install has been tested, is virus-free (not that any Linux viruses are known, at the moment, to be in the wild), and is compatible with your system.


How can I adjust the sensitivity of the touchpad

For my Thinkpad T520, and Ubuntu 17.10. I use:

sudo -i gedit /etc/udev/rules.d/10-trackpoint.rules

and then add the following content,  save it,  then restart. The value settings will be kept.

ACTION=="add",
SUBSYSTEM=="input",
ATTR{name}=="TPPS/2 IBM TrackPoint",
ATTR{device/sensitivity}="190",
ATTR{device/speed}="180",
ATTR{device/inertia}="6",
ATTR{device/press_to_select}="0"


Other Linux Distros deleting Ubuntu from GRUB

If you want to keep the Linux distributions as separate as possible, I would suggest only installing one distro's boot loader to the MBR (e.g. /dev/sda), and install the other distros' boot loaders into their respective partitions (e.g. /dev/sda1).  For whichever boot loader you've installed to the MBR, add entries that chain load to the partitions holding the other boot loaders.

If you use Ubuntu's grub as the main boot loader, you can add extra entries by editing /etc/grub.d/40_custom and adding entries like:

menuentry "Other Linux" {
    # The partition holding the boot loader in Grub's syntax.
    set root=(hd0,2)
    chainloader +1
}

After saving the file, run sudo update-grub to assemble the Grub configuration file.

This should give each Linux distro its own boot loader configuration to play with and reduce the chance of them stepping on each others feet.  It will even handle the case of different distros expecting different boot loaders.


One of the many options for front ends for MAME is AdvanceMenu which has several features that make it seem an  attractive choice for a cabinet project such as yours.

It runs on Linux, Raspbian, Mac OS X, DOS, Windows and on all the
other platforms supported by the SDL library.

With the Linux FrameBuffer, (fb driver) you can use custom video hardware like
Arcade monitors or TVs, programming the video board with the right
resolution and frequency.

The package has an adequately commented install script, all the sources to build on supported platforms and contains :

advmame - The AdvanceMAME emulator.
advmess - The AdvanceMESS emulator.
advmenu - The AdvanceMENU frontend.
advcfg - The automatic video configurator.
advv - The manual video configurator and tester.
advm - The mouse tester.
advk - The keyboard tester.
advs - The sound tester.
advj - The joystick tester.

Here's a snapshot:

Note: I have not tested this personally as I don't have a similar project. Be that as it may, the research indicates that this could be a good choice for you.

If it's not quite what you are looking for there are several other options listed here.

Sources:

http://www.koenigs.dk/mame/eng/mamefrontends.htm

http://www.advancemame.it/menu-readme

The content of the aforementioned package


Awk-compare 2 files using multiple columns and print lines from both files

You will need to loop over the fields $2 onward in File1.txt:

$ awk 'NR==FNR {a[$1]=$2; next} {for (i=2;i<=NF;i++) $i = $i in a ? a[$i] : $i} 1' File2.txt File1.txt
Customer1 aol.com google.com gmail.com space.com
Customer2 yahoo.com outlook.com

The $i = $i in a ? a[$i] : $i may be simplified to $i = a[$i] if you're certain there will be a match, or if you want to replace non-matches with empty fields.


How to SOLVE system errors at startup, not just report them

I have the same problem, and I think its a bug on the Ubuntu error reporting system (which is called "apport"). Apport notifies the problem to Ubuntu developers, in view of having it solved by them in the next Ubuntu update or release.

Unfortunately seems that in the last Ubuntu releases, some error reports are not registered as submitted, so the system loops the task every time the computer starts up.

Go to the Terminal and type:

  sudo rm /var/crash/*

That will manually delete all the old crashes in stored memory, and you'll stop receive these notifications. Until a new report will loop again though...


How to download Wine (wine1.5-i386 Broken Package Error)?

When I got that problem  (Which appears on either the 32 Bit or 64 Bit) the first thing I need to do is:

Get easier tools

To do some of the jobs I will mention below, first download aptitude and synaptic. This is because both of them deal better with broken packages, specially synaptic. so do a sudo apt-get install aptitude synaptic. You can skip this step but I really recommend this one to avoid some very rare package problems like yours.
Eliminate Wine -

(If this step does not let you eliminate wine, go to Step 3 then back to 2)

If you open synaptic, look for ALL wine packages and purge them. Do not just delete them. If you delete them, the downloaded package will stay. Purge them which shows as Mark for Complete Removal if you right click the package inside Synaptic.

If you use aptitude then do a sudo aptitude search wine. For each package that has an i in the beginning column (Which means installed), do a sudo aptitude purge PACKAGE_NAME.
For example sudo aptitude purge wine1.5. After that do:

sudo apt-get autoremove
sudo apt-get autoclean
Update & Upgrade -

After you are sure they are completely removed do an update and afterwards an upgrade:

sudo apt-get update
sudo apt-get upgrade
If steps 2 & 3 do not give any error and you finished them perfectly then (assuming you already added the PPA for Wine as you mentioned in your question, install Wine in one of the following ways:

With Aptitude: sudo aptitude install wine1.5

With Synaptic: Open Synaptic and look for the wine1.5 package. It will also install it's dependencies and solve any problems. In there you will see the i386 package also. If this is not selected automatically, select the package manually. Remember to also select winetricks which is needed to install additional packages for wine (.NET, DirectX...)

With Apt: sudo apt-get install wine1.5

With Software Center: Just search for Wine. Verify that it is the 1.5 version.

Of the 4 I recommend first Synaptic, followed by aptitude and apt. Last is Software Center. Not because there is a package problem in general, but because, for this particular case, Software Center for example, gives little put error if something happens, does not show what package dependencies are being installed and one does not know until the end if everything worked or not.
Verify that everything is correct by either running winetricks from the Dash or the terminal. Either way, the Wine Configuration Window should appear. This means everything is ok.


Gnome on Ubuntu 14.04 crashes after starting Progress DB

Most likely processor overload. Oracle VB Has troubles like this because you're running two operating systems at the same time. it all depends on your specs, if I could get those. Running two OSes at the same time on a (no offense, if applies) crap computer can make the VM crash like a drunk driver. You might just need to actually install Ubuntu on the computer as a real OS. That or install the KDE Version of Ubuntu. It looks and may work better anyway. No new programs needed.