Upgrades do not remove your kernel module, it is just that a new kernel does not have the kernel module you installed. The new kernel is standard, it does not contain modules added by the user. So, every time a new kernel is installed, any non-standard modules have to be added by you.


I had essentially the same issue. By doing the following, I was able to resolve it:
sudo mkdir /usr/lib/virtualbox
sudo touch /usr/lib/virtualbox/postinst-common.sh
sudo touch /usr/lib/virtualbox/prerm-common.sh
sudo chmod +x /usr/lib/virtualbox/postinst-common.sh
sudo chmod +x /usr/lib/virtualbox/prerm-common.sh

Then I was able to install an upgraded Virtualbox.


`mkdir()`: Permission denied to create folders with PHP

The problem is in your mkdir() call, not in Ubuntu.

As per your comment, ls -l /opt/lampp/htdocs/www/my-site/public/uploads doesn't exists, so you should call mkdir() passing the recursive parameter:

$dir = '/uploads/posts';
if (!is_dir($dir)) {
    mkdir($dir, 755, true);
}


You can do this using a simple bash script. Run this in the terminal:

for package_name in $(cat list.txt); do dpkg-repack $package_name; done;

This will iterate each word in list.txt and pass it in package_name variable. It will perform code inside the for loop and will not stop even dpkg-repack fails.


How to get multiple world clocks to display in top bar?

Expanding on vanadium's answer, here's an example file to put multiple clocks up on your top bar:

Just install the argos GNOME extension from here: https://extensions.gnome.org/extension/1176/argos/

create a new text file called timezones.left.1s.sh in the folder ~/.config/argos/
NOTE: (the filename tells argos you want it as far left as possible, and refreshes the script every 1 second - otherwise the time will not refresh!)

Edit that file and paste this sample in:
#!/usr/bin/env bash
echo -n "Denver - " ;
TZ='America/Denver' date +%H:%M\ %Z | tr -d '\n' ;
echo -n "    •    " ;
echo -n "Texas - " ;
TZ='America/Chicago' date +%H:%M\ %Z | tr -d '\n' ;

Modify to your liking.

Here's what mine looks like:


How to add Drives shortcut link to Folder View widget in Kubuntu

In the folder view preferences you can change the default folder
which is presented. Right now I am not using KDE, but depending on
the version of Kubuntu you are using you can set the default folder
to be /media or /media/your-user-name (assuming that it is in one
of these folders your drives are mounted).

If you do this correctly the folder view will show the list of the drives
mounted in /media (or /media/your-user-name).

By the way, you can access the folder view preferences clicking the little wrench
that appears when you hover the pointer around the edges of the folder view.


Internet Timeouts with TP-Link TL-WN821N wireless usb stick - existing solutions dont work

First of all, ensure you have the necessary prerequisites:

sudo apt-get install linux-headers-generic build-essential dkms git

Clone the updated driver with git:

git clone https://github.com/pvaret/rtl8192cu-fixes.git

Set it up as a DKMS module:

sudo dkms add ./rtl8192cu-fixes

Build and install the driver:

sudo dkms install 8192cu/1.9

Refresh the module list:

sudo depmod -a

Ensure the native (and broken) kernel driver is blacklisted:

sudo cp ./rtl8192cu-fixes/blacklist-native-rtl8192.conf /etc/modprobe.d/

Let's not take any chances. Instruct Ubuntu to load the new driver when it starts up.

echo 8192cu | sudo tee -a /etc/modules

Reboot.

You're done.

Thanks to P. Varet for this awesome fix.


Can't start Unity: blank screen with flashing cursor. PCIe Bus Error

Having to manually restart lightdm is not normal. Especially for a new Ubuntu installation.

First I'd recommend checking that you have the latest BIOS installed for your motherboard, and the latest firmware and drivers for your Nvidia/GPU video card.

The PCIe error is your GPU. If you have multiple GPU's, you may need to test one GPU at a time, to eliminate a single failure or seating problem.

If firmware and drivers don't fix the problem, you may need to add kernel boot time options to cure it. Please see https://forums.lime-technology.com/topic/50821-solved-logs-filling-up-with-aerpcie-bus-errors/ for one example.

A Google search for "device id 8086:6F04" will give you more information.


Why Ubuntu 14.04 suddenly freezes sometimes?

I had also this issue with my Dell E6520 with Nvidia NVS 4200M (Graphics issue).

Search for "Additional Drivers" in unity and there changed from "nouveau" driver to "proprietary, tested".


Pushing custom updates to Ubuntu remixes

PPA is a great approach if your packages are suitable for endorsement.

If you're using sub-par packages, but you still want to have a repo I found an interesting article on hosting a repo on Amazon S3 here.


how can I clear wrong typed wireless information?

I suggest you delete all system connection data:

sudo rm /etc/NetworkManager/system-connections/*

And restart Network Manager:

sudo service network-manager restart


How to leave processes created by script executed via desktop shortcut launcher alive after it finishes the execution?

I do a bit of this sort of thing to open temporary NFS connections or Vaults of one sort or another.  I find it easiest to script both the open and close in the same bash script called by the launcher and separate them with a read from the console:
#!/bin/bash
# Perform "Open VPN" functions
read -p "Press return to close VPN..." REPLY
# Perform "Close VPN" functions

You can set the gnome-terminal position and geometry in the launcher so that it is out of the way until you need to close.


Upgrading VirtualBox 3.2.10 breaks my guest Ubuntu screen resolution

Virtualbox 3.2.12 has been out for a while, maybe that will fix your issue


How do I install latest latte-dock development version 0.10?

I find a way to install it and it's work so if you wan't to install it in Kubuntu and KDE Neon Follow this way:
git clone https://github.com/KDE/latte-dock.git

sudo apt install cmake extra-cmake-modules qtdeclarative5-dev libqt5x11extras5-dev libkf5iconthemes-dev libkf5plasma-dev libkf5windowsystem-dev libkf5declarative-dev libkf5xmlgui-dev libkf5activities-dev build-essential libxcb-util-dev libkf5wayland-dev git gettext libkf5archive-dev libkf5notifications-dev libxcb-util0-dev libsm-dev libkf5crash-dev libkf5newstuff-dev libxcb-shape0-dev libxcb-randr0-dev libx11-dev libx11-xcb-dev

export CMAKE_PREFIX_PATH=/opt/xwi

sudo apt install libxcb-randr0-dev

sudo apt install kirigami2-dev

Then go into where you clone the latte dock "By default in the Home folder" and run this command in there:
sh install.sh


might be fixed with additional firmware. try installing linux-firmware-nonfree and any other firmware that sounds like hardware on your system. You can use the terminal command 'apt-cache search firmware' to get a bit longer list than appears in software-center.


What does this icon mean in Pidgin's buddy list?

It means that you are blocking the user.

Source: https://developer.pidgin.im/wiki/Using%20Pidgin#Whatdotheiconsnexttomybuddymean


System running in low graphics mode and Ubuntu is not booting

Deleting the xorg.conf.failsafe file made the system unbootable, so restore it by reinstalling X.Org Window System (xorg). After that you may also need to reinstall the Nvidia graphics driver, but first of all reinstall xorg.

Open a text-only virtual console by using the keyboard shortcut Ctrl+Alt+F3.
At the login: prompt type your username and press Enter.
At the Password: prompt type your user password and press Enter.
Now you are logged in to a virtual console, and you can run terminal commands from the console. Run the following commands.

sudo apt-get install --reinstall xorg xserver-xorg-core xserver-xorg-video-nouveau
sudo reboot

After the system reboots comment if anything is not working properly, especially the Nouveau open source graphics driver, the Nvidia graphics driver or if you get a low graphics mode error screen again. Run the following commands either from the virtual console (accessed by steps 1-3) or from the terminal and comment about any errors you receive.

sudo apt-get update
sudo apt-get upgrade

Run the following commands from the virtual console (accessed by steps 1-3) and comment about any errors you receive.

sudo apt install xserver-xorg-video-all xserver-xorg-video-vesa
sudo reboot

The proprietary NVIDIA drivers are still not supported under Wayland yet in Ubuntu 17.10. When you want to install and use the NVIDIA drivers, you have to select Ubuntu on Xorg on the GDM login screen to enter the X session. Then open the terminal and type:

sudo ubuntu-drivers autoinstall
sudo reboot

The autoinstall command of ubuntu-drivers installs drivers that are appropriate for automatic installation including their dependencies.


Google chrome is not a default Ubuntu repository. Because of this, "apt-get purge" discarded the PPA (which was added automatically by google's .deb installer) from the repositories being managed by apt-get, and there is no way to simply apt-get install the repository again without re-adding the PPA.

The solution is to reinstall chrome from the .deb file, as described here: How do I do a Chrome offline installation?


Terminal TTY Ctrl-Alt-F# not working, only prints junk characters

try Ctrl+Alt+F2 and see if that works for what you're doing. Sometimes it appears like the x-session is using tty1 for some things. so see if you can just do it on 2. or just type in your username and password and after it logs in it should clear all that text on tty1.


How to install Ubuntu 16.04 using iso file?

a friend of mine has written a post on his blog which I feel would be very helpful to you as you are using Ubuntu 10.04. Here is the post.

Also, I feel that if you would have searched it on the internet it would surely have given you many solutions. I also found a software readily available and open-source, namely UNetbootin.

There isn't any hard and fast rule that you have to only use this application, you can use any mentioned here.
Hope this solves your problem.


What's the difference between smbclient and samba?

From apt-cache show samba:

  This package provides the components necessary to use Samba as a
  stand-  alone file and print server or as an NT4 or Active Directory
  domain  controller. For use in an NT4 domain or Active Directory
  realm, you will  also need the winbind package.  .  This package is
  not required for connecting to existing SMB/CIFS servers  (see
  smbclient) or for mounting remote filesystems (see cifs-utils).

whereas, from apt-cache show smbclient:

  This package contains command-line utilities for accessing Microsoft
  Windows and Samba servers, including smbclient, smbtar, and smbspool.
  Utilities for mounting shares locally are found in the package
  cifs-utils.

For completeness, apt-cache show cifs-utils says:

  This package provides utilities for managing mounts of CIFS network
  file  systems.


That menu option is not for databases.  From Linking_to_external_data in OOo3 User Guide:

  You can insert tables from HTML documents, and data located within named ranges from an OpenOffice.org Calc or Microsoft Excel spreadsheet, into a Calc spreadsheet (To use other data sources, including database files in OOo Base, see Linking to registered data sources).

This question was also answered at https://ask.libreoffice.org/en/question/6190/how-to-link-a-calc-spreadsheet-to-a-base-database/ with a link to step-by-step instructions.


What is the user configured as the Guest on the SMB Server?

If you don't know, likely it is the default of nobody, which has no permissions on the share.

Either use the guest account = parameter in the share settings to set the guest account to pitel (if that is how you want to go)...

Or set the permissions via chmod on the share to be more permissive (setting the Other bit to 7 for RW or 5 for RO).

More information is available at the samba.org docs.


How to install PgAdmin3 version 1.20.0 in Ubuntu 14.04

That is because, as mentioned in the PPA page, the PPA is deprecated and will NOT receive ANY UPDATES any more. The 'latest' version available in that PPA is 1.18.1-1.

If you want the latest version, checkout the repository maintained by The PostgreSQL Global Development Group (PGDG). In short,

Create /etc/apt/sources.list.d/pgdg.list and put the following contents:

deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main

Import repository key, update and install the packages:

sudo apt-get install wget ca-certificates
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install postgresql-9.4 pgadmin3

There is also a shell script that will automate repository setup.

Refer documentation for more information.


No Install along Windows option in 12.04 cd

If you mean installing in a separate partition you will have to shrink your windows partition manually as explained here, and then create a new partition and install ubuntu in it.

The other alternative is the Windows UBuntu Installer (WUBI) which will install Ubuntu from within windows. I would definitely recommend this method to someone wanting to just try out Ubuntu for the first time.


I managed to solve this problem by adding the following line to the snapcraft file:
build-packages:
  - qtdeclarative5-dev


Well, not alot of games will run through playonlinux and then with Steam, the only Windows/Mac game that I've seen that ran on linux for play on linux and then steam is "haunted"  And the graphics were great with 760 GTX, everything looked really pretty.  Unfortunately haunted is a game like Myst which really isn't my thing.  But if you like Myst, download haunted through play on linux, and then steam.  If you purchase crossover, you can use that and run some more games that won't run otherwise.  One game you can run with crossover is Rift if you run crossover with steam, and you can play that at max graphics also flawlessly.  If you like free games, you should try World of Warcraft at the molten wow website.  Oddly enough World of Warcraft runs flawlessly with the newest wines, it's really pretty cool.  And it runs like it does in Windows, yay.  Unfortunately the GMs there are a tad unfair, I was permabanned from it after I had 3 accounts that were worth 70 million gold; even though I wasn't running any cheats or exploits bans are not appealable.  But, so far that has been the best gaming experience I've had in Linux, and WoW is a great game.  Just watch the number of auctions you're keeping reposted, and don't have a private guild bank because apparently that looks suspicious and they can get confused and ban you for it.


After some more trying and bootups I figured out that this seems to work for me:

NOTE: REPLACE the X in sdaX with YOUR partition-number! UUIDs did not work for me!

Install necessary packages:

sudo apt-get install cryptsetup

Format your partition to SWAP

sudo swapoff -a
sudo cryptsetup -d /dev/urandom create cryptswap /dev/sdaX
sudo mkswap -f /dev/mapper/cryptswap -v1 -Lhello-swap

Add or edit the following line to /etc/crypttab:

cryptswap /dev/sdaX /dev/urandom swap

Add or edit the line in /etc/fstab:

/dev/mapper/cryptswap none swap sw 0 0

Re-enable swap:

sudo swapon -s

Confirm that swap is enabled:

free -m | grep Swap:

or check your System Monitor app in the Resources tab.


Uninstalling ubuntu-desktop wasn't necessary. The installation was successful.


What is the default root password and how to setup pppoe

There is no default root password in Ubuntu. The root account is locked by design and administrative tasks are done by sudo command.
See the Network Manager - click the Network Manager icon in the upper-right corner and select "Edit Connections".


How to add Windows boot entry to GRUB or Ubuntu boot entry to Windows Boot Manager

You have to update grub's config file:

sudo grub-mkconfig -o /boot/grub/grub.cfg

That should do the trick.

IF grub isn't installed on /dev/sda (or the primary boot device, whatever that is) then run:

sudo grub-install /dev/sda


Ubuntu 12.04 media player does not show video?

This sounds like a codec problem.

Try this command:

sudo apt-get install ubuntu-restricted-extras

Also, you should try a better video player. I recommend VLC.

sudo apt-get install vlc

Have fun!


Unsupported resolution when connected with HDMI

might this help ? even re installing might be simpler incase you want to try some deeper digging. either is good i think

https://www.debian-administration.org/article/201/Changing_X11_resolution_on_the_fly


How can I install tkinter for both python 3.4 and python 3.5?

Try this:

sudo apt-get install python3.5-tk


Why does empathy show a transparent video preview and then crash?

In the latest version of Empathy (11.10) the problem seems to be fixed.


It sounds like your computer is making a new DHCP request every 30 seconds. It's hard to know for sure of course, but you should check your DHCP lease time using the following command:

$ sudo dhclient -v

And you should get a response like this:

Listening on LPF/wlan2/1c:65:9d:ea:a5:47
Sending on   LPF/wlan2/1c:65:9d:ea:a5:47
Sending on   Socket/fallback
DHCPDISCOVER on wlan2 to 255.255.255.255 port 67 interval 3 (xid=0x5fcac5df)
DHCPREQUEST of 192.168.1.208 on wlan2 to 255.255.255.255 port 67 (xid=0x5fcac5df)
DHCPOFFER of 192.168.1.208 from 192.168.1.1
DHCPACK of 192.168.1.208 from 192.168.1.1
RTNETLINK answers: File exists
bound to 192.168.1.208 -- renewal in 19443 seconds.

Check what that last line says about the renewal. If it's not a dhcp problem, then it's got to be a webpage error and your service provider needs to debug the problem further. It's no good if a service is only tested with Windows, they should test it works with other things too.


Ubuntu 16.04 is not providing working suspend or hibernate feature

check if you have installed your proprietory graphics drivers (dash -> software and updates -> additional drivers). if it still doesnt work, check https://wiki.debian.org/Suspend link and troubleshoot to find the problem (kernel testing facility). hope it helps.


Changing a line in /etc/default/grub fixed my problems for me (I'm running Ubuntu 12.04 on a Samsung QX411).  You could try it.

EDIT: To test below without completely updating grub, reboot and hit e when you see the grub menu.  Then just add the acpi_osi= after the quiet splash boot option and execute (cntl+x, I think)

Change:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

to:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi="

Then do sudo update-grub and reboot

Here's a reference for the fix:
What does the kernel boot parameter "set acpi_osi=Linux" do?


How to Remove Ubuntu 10.04/10.10/etc without Replacing It with Another OS?

I'm sure there are several ways to completely wipe a hard disk. But, what you can do is download the GParted Live CD/USB from here. Burn it to a disc or make a bootable USB, then boot it up. In GParted, simply right click and delete all the partitions in the hard disk, and apply. If you can't right click and delete, first try to right click and unmount, and then delete. Just make sure you're performing these operations on your hard disk and not on another external HDD or USB stick. To be on the safe side, remove any other peripheral disks.


I was facing the same problem and It is mostly because of Wayland display server.

So for now, you can just switch to Xorg.

Go through this: How do you switch from Wayland back to Xorg in Ubuntu 17.10?


Driver recognization with ubuntu that windows 10 does not recognize

YES, ubuntu natively supports both those hardware. So yea you won't have any problems in using them in ubuntu.


Why can't I disable IPv6 on Ubuntu 17.04?

IPv6 support is built into the kernel.  I will have to compile my own.


I think you can make use of ZeroConf here to dynamically find your printer. The syntax is like:

hp:/net/Officejet_6500_E710n-z?zc=printer

There, zc stands for ZeroConf, the mDNS implemented by avahi.  On setting that URI, you may see some multicast network traffic to query the printer as can be seen in the partial tcpdump below.

root@ubuntu:/etc/avahi# tcpdump -vvvvvn -i wlan0 host 224.0.0.251
tcpdump: listening on wlan0, link-type EN10MB (Ethernet), capture size 65535 bytes
11:20:49.783337 IP (tos 0x0, ttl 255, id 0, offset 0, flags [DF], proto UDP (17), length 59)
    172.25.197.98.5353 > 224.0.0.251.5353: [udp sum ok] 0 A (QM)? printer.local. (31)
11:20:49.787975 IP (tos 0x0, ttl 255, id 44750, offset 0, flags [none], proto UDP (17), length 69)
    172.25.197.160.5353 > 224.0.0.251.5353: [udp sum ok] 0*- [0q] 1/0/0 printer.local. (Cache flush) [4m] A 172.25.197.160 (41)

DNS A records like printer.anintranet.example can be added to a dynamic zone by the DHCP server.  The original domain name (anintranet.example) is discarded -- possibly because it is in the "search" directive of /etc/resolv.conf?-- and .local is added as part of the mDNS query.


Why redirection to a while loop doesn't print the messages?

There is no need for a while loop. You try to do two times the same. Also the file /var/log/messages is not present in ubuntu anymore.

Just use:

tail -f /var/log/syslog

to track new content that is added at the end of the text file. If something new is written to the end of /var/log/syslog it is printed to your terminal.

Edit: Why the command in the question doesn't work:

First, of course, /var/log/messages does not exist. But if it would exist, the command between backticks is executed and replaced by its output (minus the trailing newline characters). So the output of tail -f ... would be taken as filename for the input redirection <. What you probably want would look as follows (the the <(...) redirection):

while read LINE; do
  echo $LINE
done < <(tail -f /var/log/messages)

The <(...) redirection creates a named pipe, where on one end the command tail -f writes to. On the other end the while loop reads the contents line by line. A named pipe behaves likely to a regular file. It is just a connection piece between two commands. BTW, the | does exactly the same, but those pipe are not named, they are the default channels: 0 -> stdin, 1 -> stdout and 2 -> stderr.

From the bash manpage:

 Process substitution is supported on systems that support named pipes (FIFOs) or the
 /dev/fd method of naming open files. It takes the form of <(list) or >(list).


Starting a guest session from the login screen

1. Never allow any Temporary User without a password to gain Access Control of your computer!
FIRST Make a policy to prevent the single user guest from making system wide changes
open text editor gksu gedit /etc/polkit-1/localauthority/50-local.d/10-desktop-policy.pkla
insert text

[guest-policy]
Identity=unix-user:guest
Action=*
ResultAny=no
ResultInactive=no
ResultActive=no

2. open terminal and start typing

sudo addgroup --system --quiet --gid 126 guest
sudo useradd -c Guest,,, -d /tmp/guest-home.UBUNTU -m -s /bin/bash -g guest guest
sudo usermod --uid 117 --gid 126 guest

to create blank password for this account:

sudo usermod --password U6aMy0wojraho guest

to create Not asked for password on login for this account:

sudo usermod --groups nopasswdlogin guest

Edit /etc/gdm/gdm.schemas
type:

gksu gedit /etc/gdm/gdm.schemas

and add guest to greeter/Include
default

    <schema>
      <key>greeter/Include</key>
      <signature>s</signature>
      <default>guest</default>
    </schema>

now sudo restart gdm

NOTE: you will no longer be abel login to guest sessions from user accounts
this is the new guest session
and you will only be able to login from login screen any changes to this account will remain on logout until the computer restarts.

to restore open terminal and type:

sudo userdel guest

then sudo restart gdm

to copy your settings for guest session

sudo cp -R ~/.gconf/desktop /etc/gconf/gconf.xml.system/
sudo cp -R ~/.gconf/apps /etc/gconf/gconf.xml.system/
sudo chmod 777 -R /etc/gconf/gconf.xml.system/desktop
sudo chmod 777 -R /etc/gconf/gconf.xml.system/apps


Sound quality is good on Ubuntu but great on Windows

I would suggest you to try Direct Sound Processing (DSP) your audio output by using the next pieces of software:

Pulse Audio Volume Control (pavucontrol)

Install it via terminal by simply writing sudo apt-get install pavucontrol, provide your using password and allow the software to get installed, after which you can invoke it by typing pavucontrol & and hit Enter only one time.

Note: The & in the command is used for running the software and leaving the terminal available for other commands. See this: how to run more then one process through terminal

The software will allow to override the volume limit and increase it over 100% as seen in this picture of my pavucontrol in action in which I am topping the volume up to 153%

WARNING: Setting louder volume levels may harm your equipment and/or your health.

Additionally you can enrich your sound experience by using the

Pulse Audio Equalizer (GTK)

Which provides you with a full 15 Bar Equalizer with customizable Sound Presets in which you can manipulate your sound quality. After applying the equalizer configuration you can simply close the EQ in order to continue enjoying the sound quality.

You'll need to add a repository in order to install the EQ by simply writting the next commands in a terminal:

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

Credits to @Orion in the next answer: https://askubuntu.com/a/395553/9598

When installed you can open it via Terminal by using this command pulseaudio-equalizer-gtk &

WARNING: Distortion may occur if you aren't familiar to these controls, that's why YOU SHOULD NEVER EVER use headphones nor high audio levels when manipulating a DSP EQ or any other DSP Plugin.

Remember you can open your favorite software from a Terminal or via whatever you prefer to open your software with, like Unity, Synapse, Dock, etc.

Give this a try and please inform if you feel better with the sound quality after playing with these controls. Oh! Yes, I almost forget to say this is the Professional way to handle audio. Unfortunately most people is used to other Systems in which these settings seems to be automatic for "user comfortability" which in certain cases (like me) doesn't satisfy my needs for audio pleasure.

The obligated question is: Why so? Why on Ubuntu seems to be a lot different? Ok that's a question for Canonical as I see but in my humble opinion, the audio settings seems to follow the rules of providing good sound quality without harming anybody's hears by getting the top level to the 100% but allowing you to manually set a level over that top by DSP'ing your audio.

If you wish to get more toys for audio manipulation you may wish to give a try to Ubuntu Studio in which you can also try Jack Plugins and other components to professionally manipulate your incoming/outgoing audio.

If you need further assistance don't hesitate to drop a comment, open a new question over here or reach the Ubuntu Studio's Community Forums.

Good luck!


Playing steam games on from windows 7 ntfs parttion on ubuntu 12.10?

I can pretty positively say it has nothing to do with your NTFS partition.

The fact of the matter is that Wine can't run everything. Some games just don't function properly with Wine. Wine runs Windows programs, but it hasn't mastered it yet. Sometimes it just...doesn't work.

Your graphics card (although you don't technically have a card, the Intel HD series is integrated graphics) will affect the speed and sometimes compatability of games as well.

In the meantime, you can try running Steam natively on Ubuntu. (TF2 is on here!)


Citrix receiver ssl connection couldn't be established

To resolve this issue, you can refer to the following links:

Secure - Citrix Product Documentation

How to convert .crt to .pem - Stack Overflow

I can get the receiver application to trust the server's certificate by the following steps:

Export server certificate from the web browser. The certificate is exported in the file extension .crt. You may also find them in /usr/share/ca-certificates/mozilla/*
Convert the crt file to a pem file by the following command:

openssl x509 -in mycert.crt -out mycert.pem -outform PEM

where mycert.crt is the exported certificate.
Copy the pem file to $ICAROOT/keystore/cacerts

Normally $ICAROOT=/opt/Citrix/ICAClient
Rehash the certificate by the following command:
$ICAROOT/util/ctx_rehash
Reopen Citrix Receiver. It should trust the certificate now.


Ubuntu Server IP Static error to restart with ifdown and RTNETLINK: file exists

First off you have an illegal gateway.  You can't have a real machine with the address *.*.*.255.  Second thing I notice is that you failed to indent your lines. The contents of /etc/network/interfaces should read (replace 192.168.20.254 with your real gateway address):

auto lo
iface lo inet loopback

# Static IP to eth0
auto eth0
    iface eth0 inet static
    address 192.168.20.2
    netmask 255.255.255.0
    gateway 192.168.20.254
    dns-nameservers 192.168.1.1 8.8.8.8

After you make that change, reboot the system (this will negate any issues with services failing to restart).  You should be good to go then.


Starting with an Xubuntu clean install the answer to using the broadcom wifi was to

use bcmwl-kernel-source and
start the kernel with intremap=off

The bcmwl-kernel-source can be installed as pilot6 mentioned, or (in Xubuntu) via software & updates -> add drivers -> using proprietary, which also will mention the bcmwl-kernel-source.

The kernel switch answer is found in the thread below in post #10: https://ubuntuforums.org/showthread.php?t=2405673. Other switches that worked were pci=noacpi, or acpi=off, or acpi=noirq.

thanks for the help received for this question


PCI bus error on startup while booting into login screen (Kubuntu 16.04)

This issue is related to the wifi adapter and 6th gen intel processors. Several new notebooks have reported such issue.

Use this link ( about the adding paramter to kernel here) to understand about adding kernel boot paramter temporarily and making it permanent.
Then,

Add the parameter ,   pci=nomsi

And reboot.

If the problem is solved then make the change permanent.
If does not work then try,

pci=noaer

same way and make it permanent if this works.

(*Reason for appearance is  related to the recent Intel Skylake architecture CPUs and Realtek rtl8723be wireless adaptor.

The ubuntu team knows about it. Read more here Bug_track_ubuntu_PCIe bus error  )


Bluetooth speaker pairs but sound doesn't work

Copied from Question owner's comments from the question.

  I solved in this way. I have installed pavucontrol. In terminal:

sudoedit /etc/bluetooth/audio.conf

  Add these lines:

[General]
Disable=Socket
Enable=Media,Source,Sink,Gateway

  Save and exit from the editor

  Then:

sudo service bluetooth restart

  Cancel bluetooth speaker setup and set it up again.


After updating kernel to 3.0.0-14 the system does not boot

Go into the old kernel version (the one that still boots), and remove the NVidia drivers, preferably with Jockey (the Additional hardware drivers dialog).
Then reboot into the old kernel again (for safety's sake, I think it does something at the next boot when you remove the NVidia drivers).
Then, boot into the new kernel. If you had the same problem as I had when I updated the kernel then it should boot. You should now also be able to safely install the NVidia drivers again, just make sure you install them when running the newer kernel.


Because you didn't used simple or double quotes when you ran your command:

./command '*'

or:

./command "*"

Or, if you want certainly to use ./command *, then make the following modification in your script:

#!/bin/bash

for f in ./"$@"
do
    echo $f
done

That's because $1 refers to the first argument from your command ans $@ refers to all arguments from your command.

Read also some documentation in this sense: http://tldp.org/LDP/abs/html/internalvariables.html#APPREF


Its possible you have previous documents that are still trying to print, blocking anything new from coming in.

Trying printing something new and then clicking onto the printer icon in the indicator applets at the top right. You might have several print "jobs" waiting to go. Just cancel them all out and print again.


ddrescue gives less error without the -r option(try reading bad sectors multiple times) than with -n option(omit bad sectors)

My experience is that additional sectors are read (and their content recovered) when you run the second time with the option -r3. So use the image after running with the option -r3.

According to the tutorial chapter '9. A small tutorial with examples' in

info ddrescue

I also use -r3 (3 retries).

The number of areas marked as bad may increase, but the total amount of bad sectors will decrease, when new sectors are read during the -r3 run.

In the chapter '4. Algorithm' we find a detailed explanation,

  The total error size is the sum of the sizes of all the bad-sector
  blocks. It increases during the trimming and scraping phases, and may
  decrease during the retrying phase. A sector is not marked as
  bad-sector and considered part of a bad area until it has been tried
  individually instead of as part of a large block read. Non-trimmed and
  non-scraped blocks are not considered bad areas. Note that as ddrescue
  retries the bad-sector blocks, the good data found may divide them
  into smaller blocks, decreasing the total error size but increasing
  the number of bad areas.


Boot into Ubuntu, and run:

$ sudo -i
# grub-install /dev/sda
# update-grub

This should reset GRUB.


How do I fix the configuration for monitors?

Is your Video Card Driver installed correct?

Try to install it with the following package xserver-xorg-video-all.

sudo apt-get install linux-headers-generic xserver-xorg-video-all libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core


Is it risky to download a script with a http://goo.gl/ link?

Extremely risky.

First you need to find what the original link of the shortened link is.

To do that add a + to the end of the goo.gl link like this (do not follow the link straight, because there is no way to know where it leads from just the address):

http://goo.gl/VGYWP+

This shows us the stats of who has clicked on it, and where they are located (it collects extra information, not just "link shortening") and shows that the real link is:

http://www2.ati.com/drivers/linux/amd-driver-installer-12-4-x86.x86_64.run

and the command you should use on that step is:

wget -O amd-driver-installer-12-4-x86.x86_64.run http://www2.ati.com/drivers/linux/amd-driver-installer-12-4-x86.x86_64.run

This also shows that a lot of people are "copy and pasting" same outdated answers from certain sites, and some are not citing where they got the information from.


firefox 86 completely ignoring sound settings

I stumbled across the answer....

Open the sound management app
Click the "hardware" tab
Choose the headphones device
Under profile, change it to something else.  (Mine was set to "A2DP Sink", I changed it to "HSP/HFP".  I could hear some scratch noise through the headphones.)
Change the setting back to "A2DP Sink"

Bingo!


Is it possible to add some disk space to ubuntu installed drive?if then what is the way?

After having deleted stuff from sda7, there's now room to increase the Ubuntu partition sda9.

Backup any important data from Ubuntu first!

You'll need a Ubuntu Live DVD
Review the instructions for Boot Repair and print out the instructions for how to install it in the Ubuntu Live environment, and how to use it, just in case Ubuntu won't boot when you're done. See https://help.ubuntu.com/community/Boot-Repair for detailed info

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

To start the process...

update: boot into Windows
update: shrink the sda7 partition, leaving some free space in the partition, using the Disk Management application
boot to the Ubuntu Live DVD and start gparted
right-click on sda7, in the bottom window pane, choose move/resize, and in the graphic representation, hover the mouse pointer over the right side of sda7 and you'll see an arrow, then drag the right side of sda7 to the left (watching the numeric values shown below), leaving some spare space in the partition, then click OK
right-click on sda8, in the bottom window pane, and issue a swapoff command
right-click on sda8, in the bottom window pane, choose move/resize, and if you hover the mouse pointer over sda8 in the graphic representation, it'll turn into a hand cursor, then move the entire sda8 partition all the way to the left (the size of sda8 should not change), then click OK (if you can't do this step, then STOP here, and let me know)
right-click on sda9, in the bottom window pane, choose move/resize, and in the graphic representation, using the hand cursor, move the entire sda9 partition all the way to the left, then resize the right side of sda9 all the way to the right, then click OK
click the Apply icon to begin the work
right-click on sda8, in the bottom window pane, and issue a swapon command
reboot to Ubuntu


Embedding C++ Objects into QML with Context Properties

I reused your qml file to start a fresh project in QtCreator.

Please find below the files I used to compile and use the application successfully:

the project file: test.pro

# The .cpp file which was generated for your project. Feel free to hack it.
SOURCES += main.cpp

# Please do not modify the following two lines. Required for deployment.
include(qtquick2applicationviewer/qtquick2applicationviewer.pri)
qtcAddDeployment()

HEADERS += myclass.h

myclass.h:

#include <QObject>
#include <qdebug.h>

class MyClass : public QObject
{
    Q_OBJECT

public slots:
    void doStuffFromQmlSlot()
    {
        qDebug() << Q_FUNC_INFO;
    }

public:
    MyClass()
    {
        qDebug() << Q_FUNC_INFO;
    }
};

main.cpp:

#include <QtGui/QGuiApplication>
#include "qtquick2applicationviewer.h"
#include <QQmlContext>
#include "myclass.h"

int main(int argc, char *argv[])
{
    QGuiApplication app(argc, argv);
    MyClass myClass;

    QtQuick2ApplicationViewer viewer;
    viewer.rootContext()->setContextProperty("myclass", &myClass);
    viewer.setMainQmlFile(QStringLiteral("qml/main.qml"));
    viewer.showExpanded();

    return app.exec();
}

and qml/main.qml being exactly the snippet provided in your question

if you start the project using QtCreator you'll also have the qtquick2applicationviewer/ folder ready to be used.
Then qmake && make && ./test will launch the application.
If you click on the text element you'll get:

MyClass::MyClass()
void MyClass::doStuffFromQmlSlot()


Vista missing from grub bootlist after installing ubuntu

According to your boot info script output you only have two bootable Windows partitions, and both are included in your grub.cfg. Have you tried selecting the "Windows Recovery Environment (loader) (on/dev/sda2)" option? That may be your main installation, just mislabeled for some reason.


How to scale title bars and menu in Ubuntu 14.04 or 16.04 with the terminal only

In a terminal, run:

dconf reset /com/ubuntu/user-interface/scale-factor


You are trying to change ownership of a mountpoint; I don't know if that's possible, but neither I see the use of that.

I guess what you want to achieve is to be able to access R/W the files on the remote drive as juergen, not only as root. In that case, add the uid option to your fstab line:

//192.168.0.111/transfer /media/transfer cifs user=juergen,passwd=1234,uid=juergen 0 0


Disabling AMD's equivalent (on a Zen-1 Epyc) of Intel's "turbo boost" at runtime?

By default, AMD processors use the acpi-cpufreq CPU frequency scaling driver.
Check via:
grep . /sys/devices/system/cpu/cpufreq/policy*/scaling_driver

For that driver, to disable turbo boost, do:
echo "0" | sudo tee /sys/devices/system/cpu/cpufreq/boost


How to start a GUI application from cron?

Cron runs in an environment that knows nothing about the display manager ($DISPLAY isn't set). Your terminal window that you've been testing in has this set for it. If you tried it in a "real" terminal, or over SSH, you'd see it break.

If you've only got one X server running, just specifying the display might work:

* * * * *    DISPLAY=:0 firefox ...

You could probably put more effort into working out what display it's sitting under rather than assuming it's :0 but that will probably work most of the time.

If you just need to reload something a lot, look at Tab Auto Reload or similar Firefox plugins.


Re-installing the program doesn't affect the program settings stored in the user profile.

Since Terminix' settings are configured through GSettings, you can reset the responsible configuration option com.gexperts.Terminix.use-custom-command either through the dconf-editor GUI or the gsettings terminal command:

gsettings reset com.gexperts.Terminix use-custom-command

(I don't have Terminix installed but I read its GSettings schema definition.)


I've tried a number of different applications to open binary files. The one that I've used and enjoyed the most is called bless and it is really easy to install. Simply open the terminal by pressing CTRL+ALT+T and type sudo apt-get install bless and press ENTER. Note: You will have to enter your password, when you enter your password there will be no indicator on the screen, no asterisks, and the cursor will not move. This is normal behavior. After entering your password press ENTER again and follow any additional instructions given.

As a hex editor, bless has lots of features and is actually surprisingly light. This should open your game file and allow you to edit it. I can't actually help with anything beyond that as I am not a gamer. However, it's in the repo and is easy enough to install without taking up much room or being overly complex.

You can read more and learn more about bless by clicking here.


How to understand nvidia-settings save configuration options?

First I want to mention that all information saved by nvidia-settings is stored in ~/.nvidia-settings-rc which you can access by typing the following:

nano ~/.nvidia-settings-rc

I mention this because other users also wonder, if the xorg.conf is not used, then how is the settings for Ati or Nvidia working. The reason behind this is that X can now automatically detect and configure many aspects of what xorg.conf had before for many input/output devices, including Video cards. This did not completely happen automatically before, but since around 2010, X can handle many options and detect them without any problems or the need to configure a file for them.

Note that, many of this are still present but divided into more specific files in /usr/share/X11/xorg.conf.d/

Now, there are some cases, like specific Nvidia or Ati Models that need the xorg.conf to work correctly because of some variables they need that X detected incorrectly or are needed for the Nvidia/Ati card to work. The automatic detection is very good but still needs some work to cover, for example, the latest video cards.

For example, some video cards do not show the Unity Launcher or top panel unless xorg.conf is present. In other cases, users that want to tweak their video card, may need the Coolbits option which is added to xorg.conf. This are the reasons why nvidia-xconfig exists. To provide an additional level of support in case X does not detect or offer all the options for the video card.

I also want to add that if you happen to edit any of the options in the Display Configuration option you will most likely need to create or have an existing xorg.conf file. This can be created by the button mentioned in the following image:

Or by executing the following command in the terminal (Recommended way):

sudo nvidia-xconfig

Afterwards I also recommend rebooting the PC to make sure, the xorg.conf file is working correctly with the Nvidia card.

If however, you want to manually change the resolution, this is done in the xorg.conf file and not in the /usr/share/X11/xorg.conf.d/ folder.

This would then be done in the xorg.conf file in the Screen Section and it would look something similar to this:

Section "Screen"
    Identifier    "Default Screen"
    Device        "NVIDIA Corporation NV34 [GeForce FX 5200]"
    Monitor        "CM752ET"
    DefaultDepth    16
    SubSection "Display"
        Depth        32
        Modes      "1024x768_75.00"
    EndSubSection
EndSection

Where you can see the monitor model, the Nvidia video card and resolution (Mode) used with it's respective refresh rate (75Hz).


The Xdmx project is still active you can download the files here

http://packages.debian.org/squeeze/xdmx

and here's a video on setting Xdmx

http://www.youtube.com/watch?v=YOzRCBGDVaE

You can download the source files from

http://dmx.cvs.sourceforge.net/viewvc/dmx/dmx/xc/

And just to keep you posted that the DMX software has been integrated into the X.org server software.


How to skip the evaluation of ampersand in command line?

You need to put the address in quotes:

chromium-browser 'http://whatever.com/?x=1&y=2'


Does deja dup restore all my Ubuntu from only Google Drive after a complete wipe?

Bottom line
Deja Dup indeed is intended for you to be able to restore all data if the original data accidentally gets lost.
How does it work
Tar archives preserve all data, file names and attributes
Deja Dup uses duplicity as its backend. Duplicity uses the rsync algorithm to make backups, and stores the data that are backed up in .tar archives. Doing so, it does not matter what type of destination file system is used. All file information and unix permissions are stored within the tar archive. Thus, independent of where the tar archive is stored, all original data can be retrieved, including file attributes and unix permissions.
Incremental backups make for time and space efficiency
Duplicity makes incremental backups. That means that the very first time, all of your data are backed up and stored in a big initial tar archive. On subsequent backups, only changed files are included in the backup, and stored in smaller, additional tar files. These are the incremental backups.
That approach makes for a very space efficient backup. It explains why you see less data than you expected after making 5 backups. The same data is not duplicated in a next backup. That makes for space efficiency, but also for fast backups.
However, now and then, by default after three months, DejaDup will start over and create a new full backup. After a while, it will delete older full backups and the incremental backups that belong to it.
When you restore the data, the data in your original big tar file and the smaller tar files that captured the differences during subsequent backups will be used to reconstruct all of the original data. Optionally, you may restore just selected files, or older versions of the backup. These advanced features may not be exposed in the Deja Dup graphical interface.
Encryption
A little detail: duplicity also encrypts the data. So, apart from fully storing your data, it also keeps them safe from prying eyes.


Unable to verify the SHA256 checksum for Focal (20.04) LTS minimal cloud image

For some reason Ubuntu Minimal SHA256SUMS are not signed using the --detach-sign (or -b) command, which would create the expected detached signature. Instead they are signed using the --sign (or -s) command, creating a self-contained signed document.
You can both check the signature and recover the signed document by using the --decrypt command (counterintuitive, I know).
$ gpg --decrypt SHA256SUMS.gpg
c3f4cd7464340015b2977da9fb96028263eb62dbf96b048984034d11791beb4c  ubuntu-20.04-minimal-cloudimg-amd64.img
73b2c5abc077b8778ce2e17511b606a2d076dc01047c54add62ee76e8c5df710  ubuntu-20.04-minimal-cloudimg-amd64-lxd.tar.xz
e61af8d1932f683a90a5e6247af92c94a0b45a2e78c6c769320e2b12ffc10f46  ubuntu-20.04-minimal-cloudimg-amd64.manifest
46f64b066e8f3db24fcf72376ff91e8ac0e5c29e4bde61c42a4ebc2ecb1fef55  ubuntu-20.04-minimal-cloudimg-amd64-root.manifest
35a78bf1dd2438e95c0b7d3b0a0206e4c15289459588be42f9a271c5503ee4eb  ubuntu-20.04-minimal-cloudimg-amd64-root.tar.xz
ebd14a7963b884df3878e4ab0e6523d132fd332dbdb835d7d03f915d2961135b  ubuntu-20.04-minimal-cloudimg-amd64.squashfs
46f64b066e8f3db24fcf72376ff91e8ac0e5c29e4bde61c42a4ebc2ecb1fef55  ubuntu-20.04-minimal-cloudimg-amd64.squashfs.manifest
gpg: Signature made Thu 25 Mar 2021 12:06:00 PM PDT
gpg:                using RSA key 7FF3F408476CF100
gpg: Good signature from "Ubuntu Cloud Image Builder (Canonical Internal Cloud Image Builder) <ubuntu-cloudbuilder-noreply@canonical.com>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: 4A3C E3CD 565D 7EB5 C810  E2B9 7FF3 F408 476C F100

If you want it to output the signed document, use the --output FILENAME option.


Raspberry Pi 4 custom kernel will not install in Ubuntu 19.10

I think the install, specifically the "flash-kernel" (see the man page) tool that copies kernel images into the right place, gets upset if the kernel name doesn't end with -raspi or -raspi2
You have to use something like make deb-pkg LOCALVERSION=-raspi KDEB_PKGVERSION=$(make kernelversion)-1 when compiling.
If you look at /usr/share/flash-kernel/db/all.db (raspi devices start at around line 1565)
you find
Machine: Raspberry Pi 4 Model B
Machine: Raspberry Pi 4 Model B Rev 1.1
Machine: Raspberry Pi 4 Model B Rev 1.2
Machine: Raspberry Pi 4 Model B Rev 1.4
Method: pi
Kernel-Flavors: raspi raspi2
DTB-Id: bcm2711-rpi-4-b.dtb
U-Boot-Script-Name: bootscr.rpi
Required-Packages: u-boot-tools

can see "Kernel-Flavors: raspi raspi2" if not matched here is viewed as unknown
So you can either compile as "-raspi" or "-raspi2" or add/edit a machine definition which should probably go in /etc/flash-kernel/db
flash-kernel seems to get called at the end of update-initramfs to copy the new kernel image into the correct place.


First install mediainfo with:

sudo apt-get install mediainfo

You can now use the following oneliner to get the total video time of a directory:

find . -type f -exec mediainfo --Inform="General;%Duration%" "{}" \; 2>/dev/null | awk '{s+=$1/1000} END {h=s/3600; s=s%3600; printf "%.2d:%.2d\n", int(h), int(s/60)}'

The find command will call mediainfo for every files recursively and get the video duration in ms.

Then the awk part will sum those values and return the total time in the HH:MM format.

Update: avprobe is indeed faster than mediainfo (thanks @souravc)

For better results please use the command below instead (you'll need to sudo apt-get install libav-tools first)

find . -type f -exec avprobe -v quiet -show_format_entry duration "{}" \; | awk '{s+=$1} END {h=s/3600; s=s%3600; printf "%.2d:%.2d\n", int(h), int(s/60)}'


The core file is an indicator that the player has been terminated due to some exception, e. g. a segfault or out of memory. Given the other symptoms you describe I would bet on an out of memory situation.

Personally I experienced VLC being a resource hog on older machines (probably on better equipped ones, too, but you won't notice), and switched to an mplayer based solution. So my suggestion is you try mpv (as already mentioned) or smplayer.


Kazam is now updated on a more regular basis and more frequent releases can be found in the unstable ppa: https://launchpad.net/~kazam-team/+archive/unstable-series

I've made only Oneiric and Precise builds. Anything older won't be supported anymore and there will be no backports (at least not by me). The reasons are many, one of them is availability of libvpx or libx264 in Natty.

Recently I added support for GStreamer, PulseAudio and few more things. If all goes well, Kazam will be included in Ubuntu repo, before Precise is released, so no more PPA trouble.


Script for filing call recordings into date folders

That's actually fairly simple with bash. Just iterate the files, extract the year, month and day, then move it accordingly.

#!/usr/bin/env bash

# iterate all the wav-files that has at least 3 dots in addition to the extension
for file in *.*.*.*.wav; do

    # In the case of no files matching the glob, file will contain the glob itself
    # which will make the mkdir later on create './*/*/*'. Avoid that by testing
    # if file contains an existing file.
    [[ -e $file ]] || continue

    # split out year month and day from the filename
    IFS=. read -r year month day _ <<< "$file"

    # make sure the directories exist, then move it
    mkdir -p "./$year/$month/$day" &&
    mv "./$file" "./$year/$month/$day"
done


What is the meaning of this Microsoft EULA message?

The message in the popup window is asking if you want to accept the Microsoft End User License Agreement (EULA) when installing proprietary Microsoft TrueType core fonts.

Use the Tab and Enter keys to accept the EULA in the Microsoft TrueType core fonts window that pops up. This pop-up window sometimes gets covered up by other open windows when installing Microsoft TrueType core fonts from the Software application, making it difficult to accept the EULA in order to continue the installation of Microsoft TrueType core fonts.


How do I get musical backing tracks to be heard in videos I take with Cheese?

You will need the pulseaudio volume control application - pavucontrol. Once you have this installed, open cheese, and the program you wish to record from (for example, rhythmbox). Begin recording a video in cheese, and set a track to play in your audio application. Leave these running and open pavucontrol from your menu (it is under sound and video as pulseaudio volume control), and click on the recording tab.

If will show you Cheese as one of your applications. Set cheese to record from the output of your system/the other program (it will appear as a sink). Now, you can stop the recording in cheese (delete it if you like) as well as the song/track in your audio player.
Now, for the rest of this session (that is, until you log out or restart), cheese will record from the other application, as opposed to your mic.


Very large var/log/apache2/deflate_log file

It would be good to rotate the log regularly if necessary (look for logrotate configuration). For now - I'd recommend emptying the file rather then removing it (it can be still open for writing; removing such file will lead to some "inconsistencies" in the system - while file will be removed from the filesystem, the access will still be allocated for the process to write to it and space will not be really emptied/returned to the system/disk unless process is restarted freeing the space - ooph, I guess this sentence may look a bit complicated ;), but it's, in fact, fairly simple)

To empty the log run the following command:  >/var/log/apache2/deflate_log

just be careful, not to erase something else by mistake.

In this way anyway you won't need to restart apache.


Ubuntu freezes after drag and drop a file to nautilus window

Following your first link, there seems to be an unofficial update that you could try (and you might be able to help the developers test it). Otherwise, you could wait for an official update.


How to Monitor CPU and GPU usage for a specific amount of time


The above issue solved with the php version 5.6. and the install the mongo db

Please follow the below links:
http://wiki.jumpseat.io/index.php?title=Ubuntu_16.04_Installation
https://www.howtoforge.com/tutorial/install-mongodb-on-ubuntu-16.04/

Thanks


dpkg: error: parsing file '/var/lib/dpkg/available' near line 0

The problem is that your /var/lib/dpkg/available file is damaged.

This is not necessarily related to the git or git-core packages. Try to install any other package and they will fail too.

To fix this you have to delete/clear the file using the command:

sudo dpkg --clear-avail

then rebuild the file using the command:

sudo apt-get update

Now you should be able to install git and git-core.


Wifi not working after installing updates on 12.04 LTS

Install NDISWrapper and NDISgtk in the Software Center and try installing the official Windows driver that way.


Installed Ubuntu onto SD card, booting via UEFI, Grub problems

Some computers can't read their SD cards from their firmware, which means that you can't install boot loaders or OS kernels there. If this is the issue, the solution is to move part of your installation -- the EFI System Partition (ESP) and a separate Ubuntu /boot partition -- to your regular hard disk (or I'm guessing an SSD for a Yoga). You can keep the rest of the Ubuntu installation on the SD card, but these components must be on a disk that the firmware can read.

As to catching the GRUB message, try doing a video recording. Even most cell phones these days can do that. You can then play it back a frame at a time.


How to get pgp's scdaemon on ubuntu 18.04?

You can search for packages using apt search:
apt search scdaemon
Sorting... Done
Full Text Search... Done
scdaemon/bionic-updates,bionic-security,now 2.2.4-1ubuntu1.1 amd64
  GNU privacy guard - smart card support

in your case the package you are looking for is called scdaemon, so you can simple install it by:
sudo apt install scdaemon  # Smartcard daemon for the GnuPG system


New Ubunt 15.10 Install - Mouse issues, Highlight, Copy/Paste, Left click

The solution is similar to this post Synaptic touchpad on laptop not working. The solution is shown below

This seems to be a bug in 15,10. A simple fix would be unloading the mouse driver and load it again like this:

sudo modprobe -r psmouse
sudo modprobe psmouse proto=imps

This only keeps the touchpad working on this session. To make it permanent one can create a file like /etc/modprobe.d/psmouse.conf (you can choose the name you want, but you must keep the extension) with the following content:

options psmouse proto=imps


Solved by removing the ip from the host's /etc/network/interfaces and adding the IP to the container like this:
lxc config device add c1 eth0 nic nictype=routed parent=eth0 ipv4.address=publicIP


lightdm restarts in cycle when using /etc/X11/xorg.conf

Why are you using xorg.conf to set the resolution and not Settings -> Display?

To get it working again press ctrl+alt+F1 to open a tty, then login.
Remove the xorg.conf file you created and reboot.

If the resolution you want is missing use:

cvt 1920 1080 60 to create a new modeline.
xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync  to create a new Mode.

And then create the file /usr/share/X11/xorg.conf.d/10-monitor.conf.
With the following content:

Section "Monitor"
  Identifier "Monitor0"
  <INSERT MODELINE HERE>
EndSection
Section "Screen"
  Identifier "Screen0"
  Device "<INSERT DEVICE HERE>"
  Monitor "Monitor0"
  DefaultDepth 24
  SubSection "Display"
    Depth 24
    Modes "<INSERT MODENAME HERE>"
  EndSubSection
EndSection


How many security groups do I need for Juju on HPCloud?

One per machine/instance.

There are issues with doing this though. Juju de-couples the machine creation from the purposing of the machine. One can remove a service from a machine, and add another to any machine right now.

Bug #833064 suggests doing the firewall inside the machine using iptables. I think that may be a more flexible approach.

Bug #1027641 assigning a unique security group to each machine uses up security group quotas in HPCloud (openstack)


Universal Remote-wireless keyboard & mouse

You can fairly easily use a laptop, if that's interesting to you. It's actually quite easy to setup and configure. You'll install QuickSynergy (It's in Ubuntu Software Center) on both your mediacenter and your laptop and then configure the mediacenter to connect to your laptop.

If you're not familiar with it, Synergy lets you define another computer similar to having an external monitor. That is to say, you'll move the mouse pointer outside of the laptops screen and then you control the other PC with both mouse and keyboard.

One thing you should be aware of, is that the controlling PC, a laptop in this case, is called the server and that the mediacenter will be a client. Configuration is quite simple. On the mediacenter, you'll open the "Use" page in QuickSynergy and enter the laptops hostname in the server hostname field, and the mediacenter hostname in the screen name field. Append .local to the hostnames, so if your laptop is called mylaptop, then it becomes mylaptop.local. Click execute.

On the laptop, you run QuickSynergy, but this time, you open the "Share" page. Enter the mediacenter hostname in one of the four fields (again, this will be like mediacenter.local) and click Execute. You can now move the mouse pointer from the laptop and onto the mediacenter, and the keyboard and mouse will work as if you had a keyboard and mouse connected to the mediacenter.

I know it's not exactly what you asked for, but it is a completely free solution as long as you just have a laptop. :)

It works with OS X and Windows too, by the way.


Yes,you have to go into the bios,and change the boot order first priority to DVD drive.You can enter into the bios by pressing F2 on startup.This key varies according to your device manufacturer's.


Your hardware/driver need to support the required OpenGL version, you can check the version reported using

glxinfo | grep "OpenGL version"

As you are using a VM, you should check it supports GPU acceleration, and if ubuntu detects it correctly.


Not able to see the plug-in in GIMP after placing it in the plug-ins folder

Two things:

the python file must have the executable flag
you can start Gimp in a terminal and look for Python syntax error messages

Likely 1) since it works for me. But 2) is a good idea anyway since you will see your print output there, which is useful when you debug. Since you used print(), a word of caution: Gimp uses Python 2.7 and not 3.x, and since you are in a flatpak the Python runtime isn't the one you have installed for your system (so stuff you installed via pip install or apt install python-* won't be there and you'll have to reinstall them for the flatpak environment).


You installed Ubuntu INSIDE Windows (via Wubi).

To get rid of Windows, you first need to move Ubuntu OUTSIDE Windows. (on its own partitions)

There is a guide for this (link), but in my opinion it is overcomplicated.
I would instead recommend to:

backup all your documents on an external disk (or DVDs)
via Gparted, format your hard disk entirely.
Install Ubuntu the standard way (link) on the entire disk


Can I replace the system settings with the old one?

Short answer: no.

There are many tweaks and solutions to edit things around that are not the same as in 11.04 were but you wont be able to use your previous version system settings panels.


How to setup static IP in Ubuntu Server 12.04?

This has two independent questions:

resolv.conf entries getting reset after a reboot

The way /etc/resolv.conf working has been changed in Ubuntu 12.04.  This is because of implementation of foundations-p-dns-resolving
 as described here
https://blueprints.launchpad.net/ubuntu/+spec/foundations-p-dns-resolving to overcome some limitations of static resolv.conf.

Here you can get more details:
http://www.stgraber.org/2012/02/24/dns-in-ubuntu-12-04/

You can override the new feature by removing the symbolic link /etc/resolv.conf and create a file named /etc/resolv.conf there. But before doing that refer the link I given above and see why it is strongly discouraged.

IP Address Vs Network and Gateway Conflict (Setting up a static IP)
Also, As pgschk pointed out, your IP address is not matching gateway and network entries. But that is not causing the /etc/resolv.conf to go to original state, but the reason I mentioned above.


Remove the shortcut of an application that was installed using Wine from the Unity Dash

You probably still have some hidden wine configuration files remaining.

rm -rf ~/.wine
rm -rf ~/.config/menus/applications-merged/wine*
rm -rf ~/.local/share/applications/wine
rm -rf ~/.local/share/desktop-directories/wine*


Running LiveUSB vs install Ubuntu on USB drive

There are two differences.

First LiveUSB is meant to be run that way. You boot the best way for USB, you access the best way for USB and your "partition" the best way for USB (even if you don't actually do it your self). Installing Ubuntu to a USB disk will not let Ubuntu know to take special precautions because your using a removable disk. Most notable liveUSB stores the root file system in RAM where an installed instance the root partition would be on disk.

Second, booting to USB takes a special setup. Not saying that Linux can't do it, but it could get a bit harry around the time when grub tries to install or update. Most usb installs will use something like ISOLinux or similar to allow booting. UMS drivers may or may not work from the BIOS/EFI level to allow you to boot a normal system. In short, installing and booting Ubuntu from a USB drive could be more of a PIA then it's worth in regards to booting or updating the booting.

As a side note, you will need etx3 and USB modules complied into the kernel to boot a root file system from USB. I am not sure they are (the USB ones) by default. --This is a side note because they may be modules included in initramfs, I just don't know but if your going to boot root from USB then your going to have to find out.


GUI problems in Ubuntu 11.04 using 'Ubuntu Classic (No Effects)'

since ubuntu 10.10 was working well on your machine
then i think it is a bug in the new 11.04 you should report this:
https://bugs.launchpad.net/ubuntu/


How did you download the image file. if you used something like idman may be you have corrupt iso file. so download again in your browser and try again. If your usb is unusable leave me message. i'll help you


failed to load module 'canberra-gtk-module' proxychains

I had the same problem, for an unrelated program. It may be looking for an older version. Try adding libcanberra-gtk-module, which also adds libcanberra-gtk0, it did the trick for me.
The clean solution would be of course to recompile from src.


Google Web Designer or Adobe Edge Animate Alternative for Linux?

There is a Google Web Designer for Linux (Debian/Ubuntu/Fedora/openSUSE).

You can download it from
here.


After some more research I found that this technique works:

optirun --no-xorg <program name>

It is working, because the X.org server set up the watchdog timer, so if the bumblee demon don't use it, than there is no watchdog present in the system.


Ethernet-by-USB not found on new Ubuntu 15.1

You can use any Android phone to connect to wifi on linux.

Just connect it to your wifi, connect it to your pc, and enable usb-tethering.

You might need to charge the phone before so it's not using too much power, or use an active hub with it's own power supply.


Compiled Apache – no conf-enabled/conf-available/mods-available etc. folders

A large part of what a distribution like Ubuntu does is to integrate a large number of different software from a multitude of different origins and combine them into a coherent system. To do that, in many cases the original software has to be adapted or extended.

That's the case with Apache. The whole *-available and *-enabled structure is not the Apache projects doing, so to speak, but part of how Debian integrated the Apache HTTPd into its distribution. Therefore, you'll find it in Debian and Debian-based distributions like Ubuntu, but not in the "original" Apache that you compiled yourself.

But it's not that hard to build those structures yourself. You basically need to create the folders yourself, and have Apache read the configs in there with the IncludeOptional directive in apache.conf. That's basically what the Debian version of apache.conf does:

...
# Include module configuration:
IncludeOptional mods-enabled/*.load
IncludeOptional mods-enabled/*.conf
...
# Include generic snippets of statements
IncludeOptional conf-enabled/*.conf

# Include the virtual host configurations:
IncludeOptional sites-enabled/
...

The commands like a2ensite, a2enmod and so forth are also part of the Debian integration. In fact, most of those are symbolic links on a2enmod, which is a Perl script. All of them basically add (a2en*) or remove (a2dis*) the symbolic links from the respective *-available directory to the *-enabled directory. For example, a2ensite mysite.conf create a symlink in site-enabled/mysite.conf that refers to site-available/mysite.conf. And the sites-enabled directory can be integrated in apache.conf, as shown above.

So you can just create the symlinks yourself with ln -s, or you can write a little script in your language of choice to do that.


Xubuntu live-USB install stuck (NO NVIDIA)

I found the solution, and I'll share it in hopes of helping anyone with the same dumb problem:
Apparently, trying to directly boot the live USB drive from the BIOS menu wasn't working, no matter which Xubuntu version I chose. What did work and allowed me to proceed with the whole installation process was the Windows 10 restoration option to boot from a live drive.

I can only assume Windows had a weird regulation (maybe for security) to avoid direct BIOS-managed drive boots, however I haven't found out how or why this happens, so I guess it's still an open question.

Happily replying from Xubuntu 18.04


Installing a 3TB storage hdd with dual boot Windows 7x64 and Ubuntu 12.04ltsX64

If you converted it to dynamic, that is Windows proprietary and will not work with Linux. With gpt it may be seen as LDM.

You need to undo the dynamic and just have NTFS partitions which will work with Windows and Linux. And with new 4K drives partitions need to be aligned or else you will have issues. But all the newer partition tools will create standard partitions with alignment.

Windows nor Linux does not have tools to undo the dynamic but some third party Windows partitioning tools may undo it without having to totally erase drive.

Best to check on a Windows forum for details.

Anyone with a large drive can use gparted or gdisk (in repository) to correctly create partitions with alignment.

Alignment 2048 sectors Advanced Format drives

Proper alignment of partitions on an Advanced Format HDD using Parted


How to autostart node forever and use spawn() as sudo on Ubuntu?

Could you try giving the full path to forever when you start it for rc.local. Might be that the $PATH isn't set as it is you when you're logged in.

Failing that, is there some log that forever produces? Can you tee to output where you run the command, like:

/usr/local/bin/forever start <full path to>/server.js | tee /tmp/forever-start.log


LibreOffice 3.5.2.2 in Ubuntu 12.04, request to retrieve documents

That is normal behaviour if Libreoffice is shut down before a document is saved.  Nothing else should affect it.  What did you do on the last occasion you opened and closed Libreoffice is what you need to tell us.


ThinkPad Fan Control not working properly

I'm owner of Thinkpad W500 too, running Ubuntu 14.10

Use terminal to create or modify file /etc/thinkfan.conf with:

sudo nano /etc/thinkfan.conf

My file contains:

sensor /proc/acpi/ibm/thermal (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)

(0, 0 , 51)
(1, 50, 52)
(2, 51, 55)
(3, 54, 58)
(4, 56, 66)
(5, 64, 70)
(6, 68, 80)
(7, 79, 86)
(127, 84, 32767)

and /etc/modprobe.d/thinkpad_acpi.conf should contain:

options thinkpad_acpi fan_control=1

If you didnt load kernel module you should run this command:

sudo modprobe thinkpad_acpi

when done start to play with GUI interface -if needed (heard about it but I don’t use it).


How to delete Windows and make Ubuntu use whole space, without reinstall?

First thing to do is to make a disk image of your entire SSD using something like Macrium Reflect Free Edition (Windows) or Clonezilla (Linux).  If you use Macrium, you also need to make a bootable rescue CD/USB.  Similarly, Clonezilla should be run from a live-CD/USB.  You now have a backup of your current system and a means of recovering the disk to this state if something goes pear shaped when you try to change your partitions/boot system.

sda1 is almost certainly your factory recovery system for reloading Windows in the event of a catastrophe.  You probably want to leave this in place just in case you ever want to go backwards.  It's only 100 MB.

Now you can use a live-CD/USB with Gparted and remove sda2, your Windows partition.  Once this has completed, you could expand the extended partition into the (now) unallocated space if this what you wish.

At this point, I would suggest re-installing the GRUB2 bootloader using the following commands in a Terminal window:

sudo grub-install /dev/sda

sudo update-grub

If there is any problem booting, try an alternative method of recovering GRUB (e.g. http://linuxnorth.wordpress.com/2013/01/09/re-installing-grub2/)

If all else fails, remember that rescue disk/disk image...?


Create a custom sudo command without password

Create a generic command to run any (sub-) command as sudo, without password; is it possible?
Theoretically, what you ask is possible. Since it is possible to set an application in the sudoers file to run with arguments, we can make a command (script) to call, that runs with sudo, with the command in question as argument.
Should we do it?
NEVER, since it will break the principle of being an administrator. ANY malicious process could run code to destroy your system.
The bottom line is that I even won't post how to do that.

More do's and don'ts on running software without password
As mentioned by @Groundzero, you can add specific applications or scripts to the sudoers file, to run without password, as described here. However, keep in mind:

Do not add applications to the sudoers file which can be used to harm your system or do harmfull things in general. Especially if the application has extensive cli- options.
Do not store scripts to run with sudo (without password) in a location where they can be edited without administrator's privileges. A simple edit by anyone (or any process) can make it do anything.


Only one video card available on Dell Vostro 3550

From the looks of it, you do NOT have a AMD processor. The other type of Dell Vostro 3550 uses that processor, so it uses the "AMD ATI Mobility Radeon HD 7450M/7650M" card. AMD Processors use the "AMD ATI Mobility Radeon HD 7450M/7650M" card, and you have the Intel processor, which is not compatible and can't use the AMD card. The Intel® HD Graphics 3000 card is the one that you use, so there is no problem!

Cheers


How to downgrade java (jre) the ubuntu way

You didn't have to uninstall Java 9 to change versions.  Run this to specify the java version to be used by default:

$ sudo update-alternatives --config java


Why Audio Device shows up in Hardware but not under Input/Output?

If you're now using 10.10, please make sure that you're running a fully-updated system.  We've committed several changes to the base audio packages that could affect your external audio hardware being recognized and initialized properly.


You can define default windows in your Screen configuration file, ~/.screenrc.

Window titles can be set inline with the -t option, but working directories must be set in advance of launching each window. For example, in your case you might include the following:

~/.screenrc

# ...

chdir ~
screen -t "Htop" htop

chdir /var/log
screen -t "System log" tail -F syslog
screen -t "Mail log" tail -F mail.log

chdir ~
screen   # Extra Bash window for running commands

# ...

Note that the screen here is not the screen command you run, but an internal screen command. See man screen, section on Customization, or the GNU manual for more.


Enable infinite horizontal panning in Okular

Looking through the settings for Okular, there doesn't seem to be anything, so presumably it's not possible. You might want to submit a bug report requesting this "enhancement". In the meantime, you might want to use the keyboard, or Alt+Scroll, since these are effectively infinite.


Reading OSX disk from Ubuntu: Permission Denied

This is the tutorial I follow every time I install ubuntu on a macbook. Basically the user ID of Mac and Ubuntu are different so you get permission errors when you try and browse a users home folder (it's a security feature). This tutorial will show you how to set Ubuntu's user and group ID's to match the Mac ones. If you have any questions just let me know, I've done this many times.


Keybord input not work in Chromium 34 Ubuntu 14.04 aura (260972) [using Fcitx would avoid this issue]

I think this is a conflict with IBus, in Lubuntu in your indicator applets, right click the IBus applet and quit it, then KB input in chromium should work.


Touchpad works even though it seems disabled, Ubuntu 18.04

There's no key event for Fn+F6 which means that one cannot simply intercept and react to it through normal means.

Such vendor-specific function keys are often exposed through other means. For example, see if there are any kernel modules for you Laptop model, series, or vendor; those typically handle special keys. Unfortunately I know almost nothing about them beyond their existence.


If you are using an Asus, IBM, Lenovo, Panasonic, Sony, or Toshiba laptop run the following commands to possibly add proper ACPI support.
You will need to be connected to the internet so use an Ethernet connection if WIFI is not available.
First, install the acpi-support package:
sudo apt update
sudo apt install acpi-support

Next, enable ACPI and update grub:
sudo sed -i 's/acpi=off //g' /etc/default/grub
sudo update-grub

Finally, save any unsaved files and then reboot:
sudo reboot

If your problem is fixed, you are done. If not, you can follow the instructions to disable ACPI.

If ACPI is causing a problem, you can edit your command line kernel parameters in your /etc/default/grub file to disable ACPI1.
First, run the following command to automatically edit your grub configuration file.
sed -i 's/quiet splash/acpi=off &/' /etc/default/grub

Then, run the following command to update grub.
sudo update-grub

Finally, reboot.
1) note: If you disable ACPI on a laptop, check to make sure the fan is working properly. If you encounter any hardware issues, you can follow the instructions to re-enable ACPI.

What this does is it edits the 11th line in your /etc/default/grub file from this:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

to this:
GRUB_CMDLINE_LINUX_DEFAULT="acpi=off quiet splash"

to disable the linux kernel ACPI option.
This should fix the problem if ACPI is incompatible.
I found the answer to a similar issue here on unix.stackexchange.com.

If disabling ACPI causes issues, you can re-enable ACPI by running the following commands.
sed -i 's/acpi=off //' /etc/default/grub
sudo update-grub

Save any unsaved files and then reboot and apply the changes:
sudo reboot


Ubuntu guest in VMWare stucks before login

I had the same exact problem with Ubuntu 18.04.2 and VMware Fusion (both 10.1.5 and 11.1.0) and I found the solution here: https://unix.stackexchange.com/questions/426235/how-to-solve-stopping-user-manager-for-uid-121-error-after-installing-nvidia-d

I went into recovery mode and installed lightdm:

sudo apt install lightdm

and switched from gdm3 to lightdm by running:

sudo dpkg-reconfigure lightdm

After rebooting everything works fine.

I hope this helps.


You can set the value $NF to the empty string:
$ echo "$a" | awk -F'/' 'BEGIN{OFS=FS} {$NF=""; print}'
/home/alejo/Desktop/Proyecto_UIS-MINCIENCIAS/qmmm_propranolol_aescorcia/A_PSF-NUEVO/ORIII/MCC/out/

BEGIN{OFS=FS} sets the output field separator to be the same as the input field separator before the start of processing - otherwise the output will be separated by the default spaces instead of slashes.
At least in GNU awk, you could instead delete the last field altogether by decrementing NF (although this will give an output without the trailing slash):
awk -F'/' 'BEGIN{OFS=FS} {NF--; print}'

You could also use shell parameter expansion to avoid awk altogether:
$ echo "${a%/*}/"
/home/alejo/Desktop/Proyecto_UIS-MINCIENCIAS/qmmm_propranolol_aescorcia/A_PSF-NUEVO/ORIII/MCC/out/

${parameter%pattern} returns the value of shell variable parameter with the shortest trailing match of pattern removed - see for example BashGuide: Parameter Expansion
Or simply use the dirname command.


Error thrown while loading gnu.io.RXTXCommDriver

Hi I had this problem as well

I use Ubuntu 12.4 on an old machine what i found was that library used was incorrect You can download the correct libraries for this from  You need o also change your Java to oracle Java and follow the instructions for setting this up on Ubuntu make sure you do this first

After which update-alternatives java and select Oracle java for  jvm

Instructions below on link here  I would recommend you do this by hand it teaches you how to install this manually which to be fair is by far the better method

https://stackoverflow.com/questions/25729592/how-to-install-jdk-8-in-ubuntu-12-04-using-tar-gz-file

Preferably follow these  instructions

How can I install Sun/Oracle's proprietary Java JDK 6/7/8 or JRE?

You also need to make yourself a member of uucp and dial-out otherwise you wont be able to open the serial port

See instructions for doing this below

How to add existing user to an existing group?

After this you need RXTX from the net this can be downloaded from
http://rxtx.qbang.org/wiki/index.php/Download

You want rxtx 2.1-7r2 (stable) release for linux

open the zip file and follow the instructions

When it comes to installing the library use the file inside the "i686-unknown-linux-gnu" Folder and copy into your jdk / jvm folder as instructed  whilst logged in as root (sudo -i)  for root access

Next you will possibly want an ide

My suggestion is Netbeans again just follow instructions for installation on linux

After you have done ALL OF THE ABOVE "QUITE A PROCESS SO TAKE YOUR TIME "

Past code  into Netbeans having created a project This worked for me !!

See Sample Java Code at this link here to gain better understanding

http://playground.arduino.cc/Interfacing/Java

I use this to communicate with my Arduino dev board which I prefer to write my own interfaces for

You will also need to add the relevant jar file to your project see picture below

To do this you will need to right click the library and tell the ide where to find the rxtxcomm jar file so that you can add this to your project

I had enormous success with this PS Ive only been using Ubuntu now for 4 weeks and already I'm sold on this os  its that good


What did change in RDP access between 14.04 and 15.10?

Just a guess.... In ubuntu 15.10, the upstart "service" manager has been replaced by the systemd solution.   Depending on how you have performed your installation, this might explain this situation

I would try  to

remove/re-install xrdp package (from Ubuntu repository)
Check that alternate desktop has been installed properly (mate-desktop or xfce or the one you like
Configure the ~/.xsession file for the user that will be login into the box via remote desktop (if you have multiple users, each user will need to create this file)

Try to follow instructions found in this post as people report that it's working

Hope this help


First step might be to see what's going on. Try to change the GRUB boot options:

While machine is booting press shift
When the GRUB boot menu comes up select the second entry
There you can choose between normal and recovery boot
Select the first entry and press 'e'
Now you can remove for example quiet splash
which will give you more information while booting your machine.

     -- Regards.

@see:

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


I checked all files in the ISO individually matched the MD5 checksum with the list of checksums in the ISO: the checksum does not match for one file: ./boot/grub/efi.img.
This means that the ISO is incorrect. I filed an issue report on Launchpad:
https://bugs.launchpad.net/ubuntu/+bug/1888033


I've never used PHP, so take this with a grain of salt:

It looks like /usr/bin/php got renamed to php.old. I'm guessing if you run readlink /usr/bin/php.old it will point to /usr/bin/php7.0. If so, you can un-rename it by running

sudo mv /usr/bin/php.old /usr/bin/php

Otherwise, you could create a new /usr/bin/php:

sudo ln -s php7.0 /usr/bin/php

Or reinstall the whole package:

sudo apt-get install --reinstall php7.0-cli


As James suggested, using Disk Utility seems to be a good idea.


PyGTK TextBuffer adding Tags and reading text

EDIT Here's the correct function to use:
Gtk.TextIter.forward_to_tag_toggle()

here's an example that generates a list of all bolded words:

    start = self.textbuffer.get_start_iter()
    bolded=[]
    while start.forward_to_tag_toggle(self.tag_bold):
        begin=start.copy()
        start.forward_to_tag_toggle(self.tag_bold)
        bolded.append(self.textbuffer.get_text(begin,start,False))
    print bolded

While you are using pygi (not pyGTK; note the uppercase Gtk in your functions), many of the pyGTK functions are still valid though may require some tweaking. You can get documentation here for gtk.textiter in pygtk.

OLD ANSWER:
Not sure if this is the optimal way, but I found that you could iterate over each character (maybe each word if you want) and test whether the character has the tag you want:  Here's a simple function to do that:

    start = self.textbuffer.get_start_iter()
    plus = self.textbuffer.get_start_iter()
    bolded=''
    while plus.forward_char():
        if start.has_tag(self.tag_bold):
            bolded=bolded+(start.get_text(plus))
        start.forward_char()
    print bolded

you can also use the Gtk.TextIter get_tags() method to get what tags a character has.

Finally, what may work better is to store the bounds in some list when you apply the tags to begin with.


How to Verify/Restore Whole-System Backup of tar czf?

There's not a lot you can do about files that change during a backup, though I guess you could write a wrapper script that replaces those files afterward.  On a busy system, you may never finish though.
Unix domain sockets can be ignored safely.  They will be recreated the next time the process that created them is started up.  They are kind of like a pipe (shell |).
The best way to verify a tar backup is to use Gnu tar's --diff option.
See also https://serverfault.com/questions/293605/check-integrity-of-tar-gz-backup


Creating a new file with touch command actually creates eight unlisted files?

From ls Man Page for OSX (i expect its the same on linux, but i dont have 1 handy to test atm)

-l      (The lowercase letter ``ell''.)  List in long format.  (See below.) If the output is to a terminal, a total sum for all the file sizes is
output on a line before the long listing.

So the number is the sum of file size, and not a count of number of files.


The make command fails in my Ubuntu Vivid. I suspect that the libraries are too new for Gedit 3.16. Maybe you have luck with Trusty.

Download the latest 3.6 version from here

cd; wget http://ftp.gnome.org/pub/GNOME/sources/gedit/3.6/gedit-3.6.2.tar.xz

Install the development libraries

sudo apt-get build-dep gedit

Extract the archive

tar xf gedit-3.6.2.tar.xz

Configure with --prefix=/usr/local to protect your existing installation

cd gedit-3.6.2
./configure --prefix=/usr/local

Build

make

If there was no error in the previous steps, install via checkinstall and not with sudo make install, checkinstall creates and installs a deb package for you

sudu apt-get install checkinstall
sudo checkinstall

Create a desktop file

nano ~/.local/share/applications/gedit36.desktop

Add the lines below

[Desktop Entry]
Name=Gedit
GenericName=Text Editor
X-GNOME-FullName=
Comment=
Exec=/usr/local/bin/gedit
Icon=gedit
Terminal=false
Type=Application
Categories=GNOME;
StartupNotify=true
X-Ubuntu-Gettext-Domain=gedit


The best way to know is to try it out. It should run Ubuntu though, although there maybe sluggishness. In case it is sluggish you may try out a lightweight system like Lubuntu or Xubuntu.


How to rename a package while building in Launchpad?

The upstream developer will keep the name com.github.username.program in both debian/changelog and debian/control. The control file has two fields to set the name, Source and Package. Keep the Source as is, and change the entry Package to program.
Now, push this change to a new branch in Launchpad, let's call it name-fix.
Now create a packaging recipe with the following contents.
# bzr-builder format 0.4 deb-version {debupstream}-0~{revno}
lp:bzr
merge name-fix lp:~name/of/the/name-fix/branch

If it is a git repo, use
# git-build-recipe format 0.4 deb-version {debupstream}-0~{revtime}
lp:bzr
merge name-fix lp:~contributor/+git/branch/name name-fix

As long as this line in the debian/control file is unchanged in upstream, there won't be any merge issues.
You can also modify other files in your new branch to apply more patches.  See the detailed documentation for recipes.


I don't know much about Pascal on Ubuntu (or anywhere for that matter) but I use the Eclipse IDE for Java development so would probably go with Eclipse and the CDT (C/C++ Developers Toolkit) although Monodevelop is another option.

http://www.eclipse.org/cdt/downloads.php


How to use 'if' inside '-exec' attribute of 'find'?

You just can't use if inside of an -exec action of find command in the way you may wish. This because of the following reasons:

The -exec action expects a command. This is from man find (somewhere at the line 697 in my terminal):

    -exec command ;
          Execute  command;  true  if 0 status is returned.  All following
          arguments to find are taken to be arguments to the command until
          an  argument  consisting of `;' is encountered.  The string `{}'
          is replaced by the current file name being processed  everywhere
          it occurs in the arguments to the command, not just in arguments
          where it is alone, as in some versions of find.  Both  of  these
          constructions might need to be escaped (with a `\') or quoted to
          protect them from expansion by the shell.  See the EXAMPLES sec‐
          tion for examples of the use of the -exec option.  The specified
          command is run once for each matched file.  The command is  exe‐
          cuted  in  the starting directory.   There are unavoidable secu‐
          rity problems surrounding use of the -exec  action;  you  should
          use the -execdir option instead.

    -exec command {} +
          This  variant  of the -exec action runs the specified command on
          the selected files, but the command line is built  by  appending
          each  selected file name at the end; the total number of invoca‐
          tions of the command will  be  much  less  than  the  number  of
          matched  files.   The command line is built in much the same way
          that xargs builds its command lines.  Only one instance of  `{}'
          is  allowed  within the command.  The command is executed in the
          starting directory.

if is not a command as you mat think, but a shell keyword. See the output of type if command.

Now, to accomplish what you wish, you don't really need to use if inside of -exec. Just make the test inside of -exec, then use -print (see man find for more info):

find . -name '*.text' -exec $SHELL -c '[ ! -f ${1%.*} ]' $SHELL '{}' ';' -print

Another way would be to use a bash script, as follow:

find . -name '*.text' -exec my_if {} \;

where cat ~/bin/my_if gives the following output in my case:

#!/bin/bash
if [ ! -f $(basename -s .text "$1") ]; then echo "$1"; fi

Finally, I think that all the normal people using bash would use:

for f in *.text; do if [ ! -f $(basename -s .text "$f") ]; then echo "$f"; fi; done


NC-6220 Hewlett Packard keyboard - the keys for the " and @ symbols are in each others' places - what do I do?

How to define keyboard layout https://help.ubuntu.com/community/Custom%20keyboard%20layout%20definitions


How can I see where Ubuntu has been installed on my HDD?

Where is Ubuntu installed on my computer?

It's on a separate partition, with an Ext4 filesystem. You can't see that in Windows as it does not support that kind of filesystem by default. Open a partition editor and you'll see there's a second partition there next to a NTFS one.

  how can i increase the size of my Ubuntu partition from 9 GB to 15 GB

You could use a Ubuntu Live CD and start a partition editor to resize the partitions. (GParted for example)

See also:

How to resize partitions?
How do I resize my current ubuntu partition?


pass return value from firefox process to linux shell?

$? always contains the return value from the last executed command. In your example it would be the return value from firefox.

You can save this value in a variable

rcode=$?

and use it later in your script.

But there are no way to control what value firefox will return in its return-code. That will depend on how it closed. Normal standard is that when a process closes normally it returns 0 (zero). What the meaning of (other) return-codes are, depends on what the programmer has chosen to implement.


Creating a terminal from a shell script in Ubuntu

The name of the package is gnome-terminal

Here is a page with all of the switches you can use along with it

http://manpages.ubuntu.com/manpages/karmic/man1/gnome-terminal.1.html


installing Ubuntu 64 bit 15.04 on Origin EON 17SLX(machine has windos 8.1 preinstalled)

SORTED, got it installed.
After reading all of the profits of doom which stated that getting Linux on an windos 8.1 was going to be hard because of Boot issues anbd efit file systems, the problem turned out to be the graphics card. Ubuntu 15.04 ships with a support driver which does not support the GSX 980M card.
To boot the machine must be boot with the 'nomodeset' option set. Set the link https://askubuntu.com/questions/67204...4-installation and search for nomodeset. This will enable you load the boot the machine in ubuntu and install a base operating system. You then need to load the drivers for the GSX 980M card, see https://help.ubuntu.com/community/Bi...erHowto/Nvidia.

Once this is done, you can have a dule boot machine. Currently I can turn my machine on and it will boot in to grub which offers me a choice of either windows or Linux.

So I now have an choice of os's


I can't download anything from Ubuntu Software Center

When you install Ubuntu you have to do an update. You have to do this because in time of installing the system you have the OS as it was on release date. So updating improves your OS and protect your system with bug fixes etc.

Because we don't have much information about your current situation please open a terminal and type in

sudo apt-get update

and after that

sudo apt-get upgrade

Now you have the latest packages and can start working.


By default, there's no shutdown entry in the status menu and you must press and hold Alt to be able to shutdown your computer when using GNOME Shell. But this can be changed by installing Alternative Status Menu extension which adds "Power off" and "Hibernate" to the status menu, visible at all time (and not just when pressing the ALT key). Install it:

sudo add-apt-repository ppa:webupd8team/gnome3
sudo apt-get update
sudo apt-get install gnome-shell-extensions-alternative-status-menu

Source: http://www.webupd8.org/2011/10/things-to-tweak-after-installing-ubuntu.html


If you're running Ubiquity, then when you boot from the .iso (If created) or start the setup, it should ask you if you want to setup as Spanish or English. If that didn't help, I recommend going here. Hope I helped. :)


Ubuntu to Mac: Ctrl+Click ---> Right Click

sudo nano /usr/share/X11/xorg.conf.d/50-synaptics.conf

Under the section "Input Class" edit the options for TapButton so you have

Section "InputClass"

        Option          "TapButton1" "1"
        Option          "TapButton2" "3"
        Option          "TapButton3" "2"

This will enable right click and tap to click.


Installing VirtualBox gives "dpkg : error processing package"

To install virtualbox, download the .deb file from https://www.virtualbox.org/wiki/Linux_Downloads

Select the architecture that best fits your machine. Once downloaded, open up terminal and and cd to the directory where you downloaded the file. Then, type

sudo dpkg -i virtualbox-*

and press ENTER. Let it run through the process. Once it's finished, pass or fail, type the following into terminal:

sudo apt-get install -f

This will install all of the dependencies of the .deb file that dpkg doesn't do. Any time you install a .deb file, always use

sudo dpkg -i *file_name*

What this does is it adds the program to the apt archives, and lists it as a failed install. It shows that it has unmet dependencies, and to install the dependencies and finish installing the program, you need to run

sudo apt-get install -f

Boom, you have what ever .deb file you downloaded successfully :)


Troublesome Paraview installation with 12.04 LTS (and not with 14.04 LTS)

You have a 64bit Ubuntu installation, so by default it will try to install amd64 architecture packages it will look for paraview:amd64 which does depend on libgl1-mesa-glx:amd64. See http://packages.ubuntu.com/precise/paraview

On other hand, you already have google-earth-stable & skype on i386 architecture of same libraries.

AFAIK, The easiest solution is to install i386 version of paraview

sudo apt-get install paraview:i386


You could try synchronizing your playlists between computer and android phone over Ubuntu One.
Check this link.


How do I install Ubuntu to my hard drive and use a flash drive to boot it?

What you need to do is install the grub bootloader (or an alternative bootloader) on the flash drive. I've personally never done this before but take a look at this question.
Alternatively, if you know the partition that contains the Neverware CloudReady bootloader you might be able to install grub on that same partition giving you the option to dual boot and select an OS.

Hope this helps.


Okay, let's investigate this, step by step.  To figure out what is actually running on telnet's port, type:

sudo netstat -tulpn | grep :23

and paste the output.

From another angle: what PHP game library are you using?


for anyone else that gets here - the 'bad archive mirror' error can be a problem from a nameserver not working!

If you get here, make sure you verify that the nameserver you set (if you're not using DHCP) works - you should be able to go to virtualconsole 2-3 and use ping to verify you can ping things first... then see that you can ping the dns server you're trying to use.

Changing the DNS server I was trying to use fixed this problem for me, after attempting to use a few different ubuntu versions since the errors in syslog were saying 'mirror does not have any suitable symlinks' or other errors that made it look like it just wasn't the right mirror.