what software can i use to access SILC Networks?

The main website is down but the key exchange and git repos still seems to be up, so it's probably just temporary. For other servers, Wikipedia has a list

As far as I can tell, all the original software for SILC is abandoned with no "real" activity for about five years... But there are old versions of the kopete plugin available on their website, and the official" server and clients are available from the repos:

ibid - easily extensible Python IM bot for IRC, Jabber, SILC, campfire, etc.
irssi-plugin-silc - SILC plugin for irssi
silc - transitional package for the SILC client
silcd - server for the SILC protocol

silc there is just a metapackage for the irssi plugin.

I've just read that Pidgin supports SILC so that might be the nicest modern option for you.


Enter the command
sudo apt install snapd gnome-software gnome-software-plugin-snap


How to monitor website requests from my home network?

Well, a solution I know which I implemented once which you can also use is configuration of syslog server.

I believe your brother and you are both using Ubuntu then you can configure your system as syslog server and his system as syslog client.

Which will send his log files to your system so that you can check what he is accessing.

See the link below on for more information on rsyslog(syslog) in Ubuntu:

rsyslog


You can manually choose which hard drive to boot from on each boot through the bios: holding 'Delete', 'F1', 'F12', or 'F10' are common ways to get to bios, and from there you can choose a default boot device, as well as to override that default and boot from a specified drive at that time.


Installing Ubuntu on Oracle VM Virtual Box Manager:Partition

You can continue

This is a normal confirm message. It just shows the partitions the installer will write. This is nessesary, to install Ubuntu.


Unity launcher doesn't hide automatically on start up

As far as I have been able to determine, this behavior has been fixed since the release of 11.04 - I suggest that you keep your system up-to-date. (for more on that, take a look at this question)


How to find program name(s) of an installed package?

The locations of files (executables, man-pages and other stuff) should conform Filesystem Hierarchy Standard as a rule.

Personally I solve this problem with one of four methods:

It is known that executables are placed in the directories declared in $PATH environment variable:

  $ echo $PATH
  /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

So one can list all package files with dpkg --list (see man dpkg for details) and find files in /bin, /sbin, /usr/bin, /usr/sbin, /usr/games directories. So we can use the following command:

$ dpkg -L httpcode | grep -E "/bin/|/sbin/|/usr/games/"
/usr/bin/hc

So we can see that /usr/bin/hc belongs to this package.
List all man-pages:

$ dpkg -L httpcode | grep "/man/"
/usr/share/man/man1
/usr/share/man/man1/hc.1.gz

So we can see that we can use man hc.
For applications with GUI I run search for *.desktop files.

$ dpkg -L httpcode | grep ".desktop"
$

In this particular case it will not return anything.

With some complicated proprietary (or bad-packaged) stuff this method transforms to reading Exec variable in the *.desktop file - here Telegram is an example:

 $ dpkg -L telegram | grep ".desktop"
/usr/share/applications/telegram.desktop

$ grep Exec $(dpkg -L telegram | grep ".desktop")
Exec=/opt/telegram/Telegram -- %u

About Exec see Desktop Entry Specification.
For not installed package one can visit https://packages.ubuntu.com and use Search package directories here (for all releases or for selected release), then click on list of files link in the right column of the table:

and one will get the file list:

This list may interpreted manually or by using searchbar in the browser.


I'm the creator of the msi-keyboard project.

Make sure you have https://nodejs.org installed.

Here are the steps to install the project:

git clone https://github.com/stevelacy/msi-keyboard
cd msi-keyboard
npm install
sudo node examples/color.js

As an asside, I just released an app for the MSI keyboard: https://github.com/stevelacy/msi-keyboard-gui
The releases contain a pre-built binary for a x64 system.


What driver should I choose for my Nvidia GPU?

Nouveau is a free open source driver for Nvidia cards that is built by the community, this is pre-installed and should be changed for the average user.

Nvidia-331 is the fully tested version from Nvidia

Nvidia-331-updates is the same driver but with all latest updates, so potential bugs.

I recommend Nvidia-331-updates for performance and if you have trouble just change it.

Updates come from the repo like other apps.

For a quick install you can run in a terminal

sudo apt-get install nvidia-331-updates

or

sudo apt-get install nvidia-331


Quite simply: you can't do this. Snaps are squashfs images, which are by definition read-only. There's no way around that. Reach out to the maintainers of the snap in question and request this functionality.


Install Ubuntu on ASUS K55N(UEFI) laptop

I had similar problems with my Asus K55N not wanting to boot ubuntu. I tried changing all sorts of settings in the BIOS to no avail and couldn't find anything in the ubuntu forums to help. Finally I found this linux mint thread which solved my problem.

Just follow the steps outlined towards the bottom of the thread and that should fix it. I only had to do the first three steps and that was enough to get it to boot.


Ubuntu Server 14.04 suddenly stopped serving webpages

Edit:
Well, after waiting a while and rebooting a 3rd time, the problem went away. I'm still annoyed that I have no idea what went wrong.


The #! line is used before the script is run, then ignored when the script runs.
You're asking what the difference is between a shebang line and an ordinary comment.
A line starting with #! is just as much a comment as any other line that starts with #. This is true if the #! is the first line of the file, or anywhere else. #!/bin/sh has an effect, but it is not read by the interpreter itself.
# is not a comment in all programming languages but, as you know, it's a comment in Bourne-style shells including sh and bash (as well as most non-Bourne-style shells, like csh). It's also a comment in Python. And it is a comment in a variety of configuration files that are not really scripts at all (like /etc/fstab).
Suppose a shell script begins with #!/bin/sh. That is a comment, and the interpreter (the shell) ignores everything on the line after the # character.
The purpose of a #! line is not to give information to the interpreter. The purpose of the #! line is to tell the operating system (or whatever process launches the interpreter) what to use as the interpreter.

If you invoke the script as an executable file, for example, by running ./script.sh, the system consults the first line to see if begins with #!, followed by zero or more spaces, followed by a command. If it does, it runs that command with the name of the script as its argument. In this example, it runs /bin/sh script.sh (or, technically, /bin/sh ./script.sh).

If you invoke the script by explicitly calling the interpreter, the #! line is never consulted. So, if you run sh script.sh, the first line has no effect. If script2.sh's first line is #!/usr/games/nibbles, running sh script2.sh will not try to open the script in nibbles (but ./script2.sh will).

You'll notice that in neither case does the script's extension (.sh), if it has one, impact how it is run. In a Unix-like system, this doesn't ordinarily affect how the script is run. On some other systems, like Windows, the #! shebang line might be ignored entirely by the system, and the extension might determine what runs the scripts. (This doesn't mean you need to give your scripts extensions, but it is one of the reasons why if you do, they should be correct.)
#! was chosen to serve this purpose precisely because # begins a comment. The #! line is for the system, not the interpreter, and it should be ignored by the interpreter.
Shebang Line for Bash Scripts
You (originally) said you use #!/bin/sh for bash scripts. You should only do that if the script doesn't require any of bash's extensions--sh needs to be able to run the script. sh is not always a symlink to bash. Often, including on all remotely recent Debian and Ubuntu systems, sh is a symlink to dash.
Shebang Line for Python Scripts
You also said (in the first version of your question, before editing) that you start your Python scripts with #!/bin/sh read by the interpretor. If you mean that literally, then you should definitely stop doing that. If hello.py begins with that line, running ./hello.py executes:
/bin/sh read by the interpretor hello.py

/bin/sh will try to execute a script called read (with by the interpretor hello.py as its arguments), read will (hopefully) not be found, and your Python script will never be seen by a Python interpreter.
If you're making this mistake but not having the problem I'm describing, you're probably invoking your Python scrips by explicitly specifying the interpreter (e.g., python hello.py), causing the first line to be ignored. When you distribute your scripts to others, or use them a long while later, it may not be clear that this is necessary for them to work. It's best to fix them now. Or at least remove the first line entirely, so that when they fail to run with ./ the error message will make sense.
For Python scripts, if you know where the Python interpreter is (or is going to be), you can write the #! line the same way:
#!/usr/bin/python

Or, if it's a Python 3 script, you should specify python3, since python is almost always Python 2:
#!/usr/bin/python3

However, the problem is that while /bin/sh is supposed to always exist, and /bin/bash almost always exists on systems where bash comes with the OS, Python may exist in a variety of places.
Therefore, many Python programmers use this instead:
#!/usr/bin/env python

(Or #!/usr/bin/env python3 for Python 3.)
This makes the script rely on env being in the "right place" instead of relying on python being in the right place. That's a good thing, because:

env is almost always located in /usr/bin.
On most systems, whichever python should run your script is the one that appears first in the PATH. Starting hello.py with #!/usr/bin/env python make ./hello.py run /usr/bin/env python hello.py, which is (virtually) equivalent to running python hello.py.

The reason you cannot use #!python is that:

You want the interpreter specified to be given by an absolute path (i.e., starting with /).
The calling process would execute python in the current directory. Searching the path when the command doesn't contain a slash is specific shell behavior.

Occasionally a Python or other script that isn't a shell script will have a shebang line starting with #!/bin/sh ... where ... is some other code. This is sometimes correct, because there are some ways to invoke the Bourne-compatible shell (sh) with arguments to make it invoke a Python interpreter. (One of the arguments will probably contain python.) However, for most purposes, #!/usr/bin/env python is simpler, more elegant,  and more likely to work the way you want.
Shebang Lines in Other Languages
Many programming and scripting languages, and some other file formats, use # as a comment. For any of them, a file in the language can be run by a program that takes it as an argument by specifying the program on the first line after #!.
In some programming languages, # is not normally a comment, but as a special case the first line is ignored if it starts with #!. This facilitates the use of #! syntax even though # doesn't otherwise make a line a comment.
Shebang Lines for Files That Don't Run As Scripts
While it's less intuitive, any file whose file format can accommodate a first line starting with #! followed by the full path of an executable can have a shebang line. If you do this, and the file is marked executable, then you can run it like a program...causing it to be opened like a document.
Some applications use this behavior intentionally. For example, in VMware, .vmx files define virtual machines. You can "run" a virtual machine as though it were a script because these files are marked executable and have a shebang line causing them to be opened in a VMware utility.
Shebang Lines for Files That Don't Run as Scrips but Act Like Scripts Anyway
rm removes files. It is not a scripting language. However, a file that starts #!/bin/rm and is marked executable can be run, and when you run it, rm is invoked on it, deleting it.
This is often conceptualized as "the file deletes itself." But the file is not really running at all. This is more like the situation described above for .vmx files.
Still, because the #! line facilitates the running of a simple command (including command-line arguments), you can perform some scripting this way. As a simple example of a "script" more sophisticated than #!/bin/rm, consider:
#!/usr/bin/env tee -a

This takes user input interactively, echoes it back to the user line-by-line, and appends it to the end of the "script" file.
Useful? Not very. Conceptually interesting? Totally! Yes. (Somewhat.)
Conceptually Similar Programming/Scripting Concepts (just for fun)

Scripts/programs that are multiple languages at once, for example, to simulate hashbang functionality in OSes that didn't have it.
(These programs are called polyglots, but this is not to be confused with the other sense of polyglot in software development, a program/project where different parts are written in different languages.)

Metacommands in QBasic/QuickBASIC, which signaled to the compiler (for compiled code) options for code generation, but were part of comments and thus ignored during actual compilation/interpretation.


Google Chrome does not show up in dashboard

You have to restart your computer and the Chrome launcher icon will come up.

But first, check that your chrome browser installed correctly by running it via terminal.

Type google-chrome and press Enter.

if the icon still not come up after restart, create them manually. Here is the tutorial.

Hope it helps.


18.04 with no swap partition
There is a glitch where Ubuntu 18.04 is boots slow when there is no swap partition. To circumvent this edit /etc/default/grub and search for the line with LINUX and add noresume after quiet splash. It will look something like this:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash noresume"

Then save the file and run:
sudo update-grub


Check whether /boot is a separate particion

If /boot were a separate partition, it would be listed under the df -h output. If /boot appears under the Mounted on column, then it is a separate partition. If it does not, the it is not.


How to switch off devices and ports for power saving in Lubuntu?

Improve Power Usage / Battery Life In Linux With TLP, I been using TLP from 3 to 4 weeks and My laptop is running 4 to 5 Deg cooler than windows 7/8, so here the tlp installation and configuration

 sudo add-apt-repository ppa:linrunner/tlp
 sudo apt-get update
 sudo apt-get install tlp tlp-rdw smartmontools ethtool

Configuration

 sudo update-rc.d -f ondemand remove

The main config file of TLP is at /etc/default/tlp

  sudo gedit /etc/default/tlp

Go to cpu frequency Section and and uncomment the following lines add the following config.

CPU_SCALING_GOVERNOR_ON_AC=conservative
CPU_SCALING_GOVERNOR_ON_BAT=conservative

Next Section Set the cpu "turbo boost", uncomment if commented

 CPU_BOOST_ON_AC=1
 CPU_BOOST_ON_BAT=0

Next Section Radeon graphics clock speed, comment it if you not using Radeon graphics

 #RADEON_POWER_PROFILE_ON_AC=high
 #RADEON_POWER_PROFILE_ON_BAT=low

Next Section optical drive

 BAY_POWEROFF_ON_BAT=1

Next Section PM for all pci(e) bus devices, Warning: experimental option, could cause system instabilities..But i found no problem just you have to put usb 2 devices in usb 2 port and usb 3 devices in usb 3 port

 RUNTIME_PM_ALL=1

Some times my usb mouse dongle didn't work when i plug it in usb 3 port, work fine when i plug it in usb 2 port, and all my usb 3 devices are working properly no issue.

Save & Exit

You can also configure Devices to Disable on startup etc, there is very good help in config file.

I have an error that my Blue tooth device is not Disabled on start up, so if you face this problem just do the following config

 sudo nano /etc/rc.local

And add the following line before exit 0

 rfkill block bluetooth

Save & Exit & Reboot

Optional

Install indicator-cpufreq that help you alot Changing freq

 sudo apt-get install indicator-cpufreq

Go to Dash > search startup > edit indicator-cpufreq add -f or copy paste the following command

 indicator-cpufreq -f

this will let you see what Freq you are running.

Done

Optional

PowerSavingTweaks Intel Graphics

 sudo nano /etc/default/grub

change:

 GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

to:

 GRUB_CMDLINE_LINUX_DEFAULT="quiet splash i915.lvds_downclock=1 drm.vblankoffdelay=1"

and run:

 sudo update-grub

Done Reboot

You do not need other tweaks as they are already added by defaults.

Check you TLP Stat

 sudo tlp-stat

Check You System temperature

 sudo tlp-stat -t

There is very good help at TLP Website

Useful Config Link 1

TLP Settings


Since you're able to get to the grub screen (to select failsafe), it sounds like you are booting to USB correctly.

Try the alternative CD, and see if you have any luck.

http://www.ubuntu.com/download/ubuntu/alternative-download


From our extensive chat session: Your setup is / was suffering from: Troubles with your router not forwarding as expected; Hackers attempting to break-in via the existing, and working, port 22 forward to your load balancer computer; ufw being enabled, getting in the way of the suggested iptables script.

Access method 1: Chaining SSH sessions:

Create an ssh session in the usual way from your external computer to your (LB) load balancer computer. Use that session to create a new ssh session between the LB and the RPi:

ssh pi@192.168.0.20

or, if the RPi has had its ssh listening port changed as per method 2 below:

ssh -p 8051 pi@192.168.0.20

This method does NOT give the RPi's internet access on their own.

Access method 2: Chained port forwards

You will need to do port forwarding in two places (your router and then also on your load balancer) to be able to ssh to your RPi1 and RPi2 computers, and that is a different story than can they access the internet or not. Since you mention it already works, I assume port forwarding is already setup on your router for ssh to the load balancer. You will have to use two different ports to forward, one for each of RPi1 and RPi2. I have arbitrarily selected port 8051 and 8052, but your can change them.

However, before you start thinking about more port forwarding, you should make it so that your RPi1 and RPi2 computers can access the internet. You will need to make your load balancer into a router. It can be a very simple router, assuming the router at 192.168.1.254 takes care of firewall type stuff.

Fix your interfaces files. A suggestion (Edited to reflect the final version):

On the LB:

# The loopback network interface
auto lo eth1 eth0
iface lo inet loopback

iface eth1 inet static
address 192.168.1.10
netmask 255.255.255.0
gateway 192.168.1.254
dns-nameservers 8.8.8.8
dns-search google.com

iface eth0 inet static
address 192.168.0.10
network 192.168.0.0
netmask 255.255.255.0
broadcast 192.168.0.255

RPi1: as per your edit.
RPi2: Same, except for IP address.

First disable ufw, as in this case it wasn't adding any value and it conflicts with what we want to do:

sudo ufw disable

Now, here is an iptables rule set to try (edit has been tested by Maximilian, works fine):

#!/bin/sh
FWVER=0.01
#
# Maximilian rule set 2015.03.08 Ver:0.01
#     Port forward to RPi1 and RPi2
#     and be a NAT router for them also.
#
#     This may conflict with other stuff on the cluster computer,
#     I don't know.
#     If so, this may need to be merged somehow with whatever.
#
#     The router needs to be configured to forward ports 8051
#     and 8052 to 192.168.1.10
#     In turn, 192.168.1.10 will forward them again with this rule set.
#
#     run as sudo
#

echo "Loading Maximilian rule set version $FWVER..\n"

# The location of the iptables program
#
IPTABLES=/sbin/iptables

#Setting the EXTERNAL and INTERNAL interfaces and addresses for the network
#
EXTIF="eth1"
INTIF="eth0"
EXTIP="192.168.1.10"
INTIP="192.168.0.10"
RPI1="192.168.0.20"
RPI2="192.168.0.30"
UNIVERSE="0.0.0.0/0"

echo "  External Interface: $EXTIF  Internal Interface: $INTIF  External IP: $EXTIP  Internal IP: $INTIP  RPi1: $RPI1  RPi2: $RPI2"

#CRITICAL:  Enable IP forwarding since it is disabled by default
#
echo Enabling forwarding...
echo "1" > /proc/sys/net/ipv4/ip_forward

#Clearing any previous configuration
#
echo "  Clearing any existing rules and setting default policy to ACCEPT.."
$IPTABLES -P INPUT ACCEPT
$IPTABLES -F INPUT
$IPTABLES -P OUTPUT ACCEPT
$IPTABLES -F OUTPUT
$IPTABLES -P FORWARD ACCEPT
$IPTABLES -F FORWARD
$IPTABLES -t nat -F
# Delete user defined chains
$IPTABLES -X
# Reset all IPTABLES counters
$IPTABLES -Z
# While my references do not have it, I think this is needed.
$IPTABLES -t nat -Z

$IPTABLES -t nat -A PREROUTING -p tcp -i $EXTIF --dport 8051 -j DNAT --to-destination $RPI1:8051
$IPTABLES -t nat -A PREROUTING -p tcp -i $EXTIF --dport 8052 -j DNAT --to-destination $RPI2:8052

#
# FORWARD rules would only be if the default policy is not ACCEPT
#

$IPTABLES -t nat -A POSTROUTING -o $EXTIF -j SNAT --to $EXTIP

echo Maximilian rule set version $FWVER done.

Check by doing a ping from an an RPi:

ping 8.8.8.8

If that works, then try to access from the internet via ssh. For example if the external IP address of your router is 1.2.3.4:

ssh -p 8051 pi@1.2.3.4

Obvioulsy, you will have to setup your RPi1 SSH server to listen on port 8051, and your RPi2 SSH server to listen on port 8052.

Once you are happy with the iptables script and you want it to load automatically, then edit the /etc/network/interfaces and add a pre-up command (make the location and file name whatever you used):

# The loopback network interface
auto lo eth1 eth0
iface lo inet loopback
pre-up /home/maximilian/iptable

iface eth1 inet static
address 192.168.1.10
netmask 255.255.255.0
gateway 192.168.1.254
dns-nameservers 8.8.8.8
dns-search google.com

iface eth0 inet static
address 192.168.0.10
network 192.168.0.0
netmask 255.255.255.0
broadcast 192.168.0.255

Side issue SSH password attacks:

Now, for your issue of hackers trying to break in via SSH password attack, I use this trick, which has been extremely effective for years now. However note that others will suggest using a different port and using keys instead of passwords. I do it this way because I like to study the attacks:

# Allow any related traffic coming back to the server in.
#
#
$IPTABLES -A INPUT -i $EXTIF -s $UNIVERSE -d $EXTIP -m state --state ESTABLISHED,RELATED -j ACCEPT
# Secure Shell on port 22.
#
# Dynamic Badguy List. Detect and DROP Bad IPs that do password attacks on SSH.
# Once they are on the BADGUY list then DROP all packets from them.
#$IPTABLES -A INPUT -i $EXTIF -m recent --update --hitcount 3 --seconds 5400 --name BADGUY_SSH -j LOG --log-prefix "SSH BAD:" --log-level info
#$IPTABLES -A INPUT -i $EXTIF -m recent --update --hitcount 3 --seconds 5400 --name BADGUY_SSH -j DROP
# Sometimes make the lock time very long. Typically to try to get rid of coordinated attacks from China.
$IPTABLES -A INPUT -i $EXTIF -m recent --update --hitcount 3 --seconds 90000 --name BADGUY_SSH -j LOG --log-prefix "SSH BAD:" --log-level info
$IPTABLES -A INPUT -i $EXTIF -m recent --update --hitcount 3 --seconds 90000 --name BADGUY_SSH -j DROP
$IPTABLES -A INPUT -i $EXTIF -p tcp -m tcp --dport 22 -m recent --set --name BADGUY_SSH -j ACCEPT

But be careful that you do not lock yourself out, as I have done to myself when away on business trips. Note that I make one other change. I edit sshd.conf and add this:

#Limit the number of bad passwords per connection to 2. Default is 6.
#Then the iptables connection counter will kick in sooner to drop
#password attack hackers.
MaxAuthTries 2


You are missing the Qt GUI framework.

From https://help.ubuntu.com/community/Kernel/Compile :

  Before you run make menuconfig or make xconfig (which is what the
  next step tells you to do), make sure you have the necessary packages:

sudo apt-get install qt3-dev-tools libqt3-mt-dev # if you plan to use 'make xconfig'
sudo apt-get install libncurses5 libncurses5-dev # if you plan to use 'make menuconfig'


Wireless and ethernet suddenly stopped working, and laptop became slow to boot or wake from suspend

So finally I found the answer!!!

First of all as I commented earlier, The Ethernet cable physical connection was fixed, by turning on and of the WIFI NIC, which for some reason was tried to be used as route.

Then I found this configuration file:

/etc/NetworkManager/NetworkManager.conf

Where I found the line:

[ifupdown]
managed=false

So I changed it to be true, then killed all network manager services, and started them again:

killall NetworkManager
service NetworkManager start

All Credits for the last solution goes to this old yet helpful thread:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/280417


What is the command to display the last TEN lines in file: /var/log/syslog

Try

tail /var/log/syslog

Example:

$ tail /var/log/syslog
Mar 21 11:41:32  whoopsie[1194]: last message repeated 15 times
Mar 21 11:42:32  whoopsie[1194]: last message repeated 20 times
Mar 21 11:43:32  whoopsie[1194]: last message repeated 16 times
Mar 21 11:44:32  whoopsie[1194]: last message repeated 14 times
Mar 21 11:45:32  whoopsie[1194]: last message repeated 11 times
Mar 21 11:46:32  whoopsie[1194]: last message repeated 16 times
Mar 21 11:47:32  whoopsie[1194]: last message repeated 15 times
Mar 21 11:48:32  whoopsie[1194]: last message repeated 14 times
Mar 21 11:49:32  whoopsie[1194]: last message repeated 16 times
Mar 21 11:50:32  whoopsie[1194]: last message repeated 22 times

For default, tail shows last 10 lines of input file. To display more, there is an option -n.
From man tail:

-n, --lines=K
       output the last K lines, instead of the last 10; or use -n +K to
       output lines starting with the Kth

For example:

$ tail -n 15 /var/log/syslog
Mar 21 11:56:45 Karimov-Danil named[1122]: error (network unreachable) resolving './DNSKEY/IN': 2001:dc3::35#53
Mar 21 11:56:45 Karimov-Danil named[1122]: error (network unreachable) resolving './NS/IN': 2001:dc3::35#53
Mar 21 11:56:48 Karimov-Danil named[1122]: managed-keys-zone: Unable to fetch DNSKEY set '.': timed out
Mar 21 11:56:51 Karimov-Danil whoopsie[1194]: online
Mar 21 11:57:54  whoopsie[1194]: last message repeated 17 times
Mar 21 11:58:58  whoopsie[1194]: last message repeated 16 times
Mar 21 12:00:03  whoopsie[1194]: last message repeated 10 times
Mar 21 12:01:03  whoopsie[1194]: last message repeated 16 times
Mar 21 12:02:03  whoopsie[1194]: last message repeated 10 times
Mar 21 12:03:03  whoopsie[1194]: last message repeated 17 times
Mar 21 12:04:03  whoopsie[1194]: last message repeated 14 times
Mar 21 12:05:03  whoopsie[1194]: last message repeated 17 times
Mar 21 12:06:03  whoopsie[1194]: last message repeated 13 times
Mar 21 12:07:04  whoopsie[1194]: last message repeated 16 times
Mar 21 12:08:04  whoopsie[1194]: last message repeated 16 times


This problem might be occurred due to misconfiguration proxy in system level

(1) Open Dash -> Type "Network" and open setting as follows.

(2) Select Network proxy

(3) Select Method as manual

(4) Write your proxy address in all the text boxes with port number.

(5) Don't forget to apply it by clicking "Apply system wide"

(6) You'll be prompted to provide your password. provide it.

(7) After that go to your shell and try sudo apt-get update

Hope this will work for you. Thanks.


This is because the development version of Wine is not in the vanilla repository (for obvious reason — it is unstable), you have to add its PPA. Quoting the original page:

  Add the repository:

sudo add-apt-repository ppa:wine/wine-builds

  Update packages list:

sudo apt-get update

  Then install (example for the development branch):

sudo apt-get install --install-recommends winehq-devel


Firefox and Google Chrome browser pop-ups not always showing window title bar in ubuntu 14.04

Is this similar to my question I asked at How to adjust window placement in Unity, Ubuntu 14.04 based on overlapping top bar ?

I have been unable to get an answer as of yet. So far, Firefox is the worst offender, with RDP windows through rdesktop being the second worst.


Fixed it!

I changed the line upstart_user_session= from true to false in the desktop.conf file. It is located in /home/username/.config/lxsession/Lubuntu.


Exporting bash function in .profile or .xprofile kills X during login

POSIX sh does not allow functions to be exported, but bash does. ~/.profile is sourced by a POSIX shell, not bash. It's also rather pointless to export functions since only bash can read and use them. Just put the functions in ~/.bashrc, and don't export them.


(posted in question by OP)

----FIX----:

Fixed it already. The following link helped: http://blog.bodhizazen.com/linux/apt-get-how-to-fix-very-broken-packages/

Here's what it says: Go into the /var/lib/dpkg/info directory using the terminal. Do:

ls [PART OF NAME OF PACKAGE]*

Mind that the asterisk (*) is important. If all's right you get five results, of which 3 are green. At least, that was the case in my case. If you get more, write the name of the package almost in full and try the above command again.

Then do:

sudo rm [PART OF NAME OF PACKAGE]*

And follow with:

sudo dpkg --remove --force-remove-reinstreq [NAME OF PACKAGE]

Don't follow this advice if you haven't tried anything else yet. I fear it's highly destructive, lol, but I survived the aftermath and apt-get is working again.


lubuntu bootloader does not work properly

Windows appears to be taking up the whole disk. You need to partition the disk with the partition manager on the install disk to create room for the Lubuntu install. Alternatively you could shrink the Windows partition from within Windows to create empty space for the install.


How do I save and quit after making changes in a config file?

The :wq is for a different editor than the one you are using.
The one that you are using, asks you to press ctrl+o to output (write) the file, and ctrl+x to exit


My keyboard does not work after Ubuntu 17.10 resumes from suspend

Device: Sony Vaio E series

Solution to the problem which worked for me:

Edit /etc/default/grub using the command:

sudo -H gedit /etc/default/grub

and change the line

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

to

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash atkbd.reset"

Save the file and exit, then to make the change effective, run

sudo update-grub

and reboot.

Solution found here:
Keyboard not working after suspend to ram (sleep)


How to install Ubuntu from Elementary OS

The issue would not be related to elementary, it is most likely in your BIOS setup on the hardware. The actual setup would depend on whether you have legacy or UEFI boot, so it is difficult to guess which one. When the system first boots there is usually a prompt to enter setup that changes from system to system, something like "enter f10 for setup" It can scroll by pretty quick. Most often something like this will be the order of boot. The list should have removable media (USB) higher in the order than the hard drive. If it is UEFI you may need to disable secure UEFI in order to get a list of UEFI supported boot options, this is where you would select from the list which boot option you want.


How do I set up my dual-boot menu after I reinstall Windows?

boot from a live CD, then in a terminal run

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

this will run a graphical program that will repair your boot loader

source: https://help.ubuntu.com/community/Boot-Repair


Why is Firefox scrolling faster with Nouveau driver than with Nvidia driver?

In my case using the proprietary driver for nvidia, in a macbook with Natty, was much better than using the default drivers. After installing Natty, scrolling and switching windows was so slow that I was thinking about uninstalling Ubuntu. The experience improved when I used the nouveau driver in a newer release live-cd, but since nobody answered how could I switch to use that driver, I changed to the proprietary drivers with menu: System>Administration>Additional_drivers


Switch between 2 LAN cards from terminal

When using network-manager (which is standard on ubuntu) you can use nmcli to disable devices. So nmcli dev disconnect iface eth0 disables eth0 and your system is forced to use another card. Sadly I haven't found out how to reenable it without the GUI.


In which folder are kwin windows decoration themes located?

Two places:
/home/user/.kde/share/apps/aurorae/themes

(replacing user with your username) and
/usr/share/kde4/apps/aurorae/themes


Why do I have two (2) launchers after customizing my Unity setup with ccsm?

Unity is a plugin in Compiz, and when you enable certain settings it activates Unity 3D, the unity version used with Compiz. This version will overlap Unity 2D native in 11.10. I fixed this by disabling the unity plugin in Compiz and re-enabling it. It then asked me to resolve conflicts, which I did. This disabled the Unity 2D and displayed only the customized one.


Virtual mouse driver, possible problems with X11

By initialzing the name field of the device and enabling keybit events(BTN_MOUSE), i could get the mouse moving. Im still trying to find the reason why relative events are not working, without enabling key button events.

In the input device driver (i.e Virtual mouse driver init module function), i added the below lines of code just before registering the input device. Rest of the code is same as in the book

// Device name

vms_input_dev->name = "Virtual Mouse";

// Enable relative and Button events

set_bit(EV_REL, vms_input_dev->evbit);

set_bit(EV_KEY, vms_input_dev->evbit);

set_bit(BTN_LEFT, vms_input_dev->keybit);

set_bit(REL_X, vms_input_dev->relbit);

set_bit(REL_Y, vms_input_dev->relbit);

The code worked for me on ubuntu 12.04


System can't boot with full SSD in Ubuntu 18.04.2

You should have stopped after booting the live session. You could have deleted files from there by mounting your disks.

General sollution: do not use your root for personal files and keep either /home on a partition or put the directories in /home on a separate partition.


I'll post my last comment as answer as I give up from expected solution

I found Steve on github and it turned out that format of this impulses included in his plugins source as header files is simple single channel normalized PCM data array.
I replaced one of provided impulses with mine, changed two more files to accept new impulse name and successively compiled it, installed it and then test it in Audacity.
Real world wanted to show it's face. Setting module-ladspa-sink was pain. Why does it has to be so complicated? Instead I added Impulse Convolver LADSPA plugin in my .asoundrc file and rebooted.
Result was disappointing - sound was awful and volume fluctuating. I later found that Impulse Convolver is one of rare plugin that's not RT capable? Damn!? - It comes with preset impulses, it's mono and on top of that can't be used in real time

Conclusion: If we exclude possibility that Brutefir can be set as convolver, then except  jack_convolver there is no real Linux plugin that can provide "the mother of all effects" - Convolution


Changed username. Now I cannot log on or view my previous files

Log in as temp again, open a terminal and type

sudo passwd newname

No, I don't think you have removed your old user, the -m option should move the home to newname.


Why is /var/www a recommended location to host your web app?

However, I'm not sure why /var/www is the "recommended location" in Ubuntu.

It is the recommended location for all Linux and webserver things; not just Ubuntu. There is this thing called the Linux Filesystem Hierarchy where the layout of Linux systems is described. From the link:

1.18. /var
Contains variable data like system logging files, mail and printer spool directories, and transient and temporary files. Some portions of /var are not shareable between different systems. For instance, /var/log, /var/lock, and /var/run. Other portions may be shared, notably /var/mail, /var/cache/man, /var/cache/fonts, and /var/spool/news. Why not put it into /usr? Because there might be circumstances when you may want to mount /usr as read-only, e.g. if it is on a CD or on another computer. '/var' contains variable data, i.e. files and directories the system must be able to write to during operation, whereas /usr should only contain static data. Some directories can be put onto separate partitions or systems, e.g. for easier backups, due to network topology or security concerns. Other directories have to be on the root partition, because they are vital for the boot process. 'Mountable' directories are: '/home', '/mnt', '/tmp', '/usr' and '/var'. Essential for booting are: '/bin', '/boot', '/dev', '/etc', '/lib', '/proc' and '/sbin'.

Back in the day servers tended to have a separate /var/ partition so you could back that partition up (and have all your data; so all your logs, all your mails, website and databases saved (mysql uses /var/ too)).
Though it does not specifically have /var/www/ the 1st bit of this ("Contains variable data") was enough for the creators of apache to add a "www" directory and all the others followed that (though there are systems and softwares that follow their own rules).
/ should never be an option. For anything you do except directories that point to partitions. And even then I would advice to use /mnt/.
/home/ would be weird too. A website is not intended as software for your own user but for outsiders visiting your website. Permissions wise it would be odd to do this in your home.

It is just a recommendation so nobody is stopping you from doing it in any other directory. When other people have to maintain your server they can expect the software to be in that location. The same goes for documentation, faqs, or when other people need to help your remotely (for instance from askubuntu.com). Even if you do not want to use /var/www/ it is probably better to symlink it to another location.  (From the same site from the 1st link: "This directory is reserved for all the software and add-on packages that are not part of the default installation.")
On cloud servers it is normal to have a personal partition that you mount into your cloud server. So if that cloud server gets deleted (what can happen at any moment) you create a new instance and add your backup disk containing your stuff. Recreate a few symlinks (from a script you made and you are up and running quickly).


Error found when loading /etc/profile and mysql

Changing the permissions on the folder to

sudo chmod 0755 /usr/lib64/mysql/plugin/auth_pam_tool_dir/

and also changing the permissions on the executable to

sudo chmod 4755 /usr/lib64/mysql/plugin/auth_pam_tool_dir/auth_pam_tool

Seems to have fixed it. Did a couple of restarts and I can get to Ubuntu Gnome Desktop.

Details:
https://jira.mariadb.org/browse/MDEV-19876


Yes! I found the answer. I have put CLASSPATH variable as CLASS_PATH in .bashrc. Problem solved.


Ubuntu 14.04 LTS shuts down and restarts

could you throw more insight on how the installation was done? I think it is during the Installation that you missed out a step.


Mounting an image which is connected in the cdrom of Ubuntu VM

Try these commands,

sudo umount /dev/cdrom
sudo chmod 777 /mnt/cdrom                 # Gives Read,Write,Execute permission for all who tries to access cdrom directroy
sudo mount -o loop /path/to/iso/file/YOUR_ISO_FILE.ISO /mnt/cdrom


You have to give it the name actually with --name= like:

sudo mdadm --assemble /dev/md/alpha --name=newname --update=name /dev/sd[gf]

To have a consistent behavior over reboot you have to use the same name in the --name argument than in the last part of the device.
Here it would be : sudo mdadm --assemble /dev/md/alpha --name=alpha --update=name /dev/sd[gf]

See Khassad's post below for a full explanation.


Ubuntu One is a synchronization service. It synchronizes every change you make to your file - delete, rename, edit, move etc.

So, if you delete the file from your PC after it gets uploaded to Ubuntu One, your file would be deleted from the Ubuntu One account as well.

What you actually need is to use a Backup/File Storage service. Some of the popular options before you are:

Déjà Dup along with Ubuntu One - Can I use my Ubuntu One account to backup with Déjà Dup?
SpiderOak
CrashPlan
Wuala


i recommend to boot from live dvd or any device with ubuntu system and re-manage hard drive with gparted application ,as you have clean hard drive try to format it and check for some erorrs

How can I check my RAM and hard drive for errors?

use tutorial to create partitions from here
How to install Side by Side Boot on Windows XP
or just create partitions like shown in this video its russian but you dont have to understand words just see guy clicking and do

https://www.youtube.com/watch?v=8Wryt1adY9E


How do I get Lotus Symphony 3.0 working?

First, try the package someone else has already done for you.

If not, then you'll have to pretend you're on 32bit.

Start by running the following in the terminal, providing your password when prompted.

sudo apt-get install ia32-libs

Downloading Lotus Symphony 3.0.1 (choose language, login, accept terms).
Then run this, replacing Downloads/your-package.deb with the actual package location and name.

sudo dpkg --force-architecture -i Downloads/your-package.deb

You may also want to Download Lotus Symphony 3.0.1 (Fix Pack 3), and install that in the same way.


gedit backround error, I can see through the window where it is supposed to be white

Delete this file and it will fix your problem:

In terminal...

rm -i ~/.xinputrc

It will recreate itself when needed.


Your 1st line wont work; numbers need to be in sequence.

You can always use 2 lines: 1 from 13:00 up to 24:00 and one from 00:00 to 03:00.

37 00-03/2 * * 1-5 php /home/code/mytest.php
37 13-00/2 * * 1-5 php /home/code/mytest.php

You can write out all the hours comma separated.

37 13,15,17,19,21,23,01,03 * * 1-5 php /home/code/mytest.php

(I hope I assumed the hours correctly).


Actually, there's nothing wrong with the package you installed, you are trying to use python 3, check the what's new page to see the differences, one of them is that:

The print statement has been replaced with a print() function, with keyword arguments to replace most of the special syntax of the old print statement (PEP 3105). Examples:
Old: print "The answer is", 2*2
New: print("The answer is", 2*2)

Old: print x,           # Trailing comma suppresses newline
New: print(x, end=" ")  # Appends a space instead of a newline

Old: print              # Prints a newline
New: print()            # You must call the function!

Old: print >>sys.stderr, "fatal error"
New: print("fatal error", file=sys.stderr)

Old: print (x, y)       # prints repr((x, y))
New: print((x, y))      # Not the same as print(x, y)!


Can BURG Boot Manager be installed on 15.10?

I an unfamiliar with BURG, but recommend checking out rEFInd.  It supports multiple OS X, Windows, and Linux installations on the same machine, provides a nice pretty menu, and cures some of the ailments of the now defunct rEFIt project.  It only works on the newer EFI and UEFI hardware, so older (pre-Windows 8) hardware will not support it.

Here is a link to the project:

rEFInd Project Page


Installing 32bit app on 64bit Ubuntu 15.10

libssl0.9.8 is no longer available in ubuntu 15.10 repositories.
You can download and install manually the deb file from this link if you want libssl0.9.8 (clic on the link "security.ubuntu.com/ubuntu" when you reach that page).

you can install the package downloaded by copying the deb file in your home folder, then open a terminal and enter this command sudo dpkg -i libssl0.9.8_0.9.8o-7ubuntu3.2_amd64.deb


XUBUNTU 18.10- Blank screen after waking from suspend

I found a discussion of this issue in the Xubuntu support email list, archived here. Unfortunately the suggestion is a rather wonky workaround that requires a GNOME reversion:

  Installing gnome-screensaver (which required no dependencies) and
  unchecking light locker from startup applications.


Adding a Keyboard Shortcut to Gnome Files Context Menu Items in 20.04

Unfortunately, there is no option to customize shortcuts in Gnome Files nor any other Gnome application. However, for your specific question on how to implement a shortcut for "Opening Terminal Here", there is a good workaround here (answer by amartin1911) that still works in Ubuntu 20.04 (using it myself since a few years).
It involves creating a nautilus-script for opening the terminal. Nautilus scripts can be bound to a shortcut key.


In 11.10 and above you go to System Settings in the Power cog menu and select Universal Access.

Under the Pointing and clicking tab you will see a slider that lets you turn Mouse Keys on and off. The label says: Control the pointer using the keypad.


How to find the window of a specific file in the multiple windows of Okular with multiple files open

If you have Ubuntu 12.04, 12.10 or 13.04, if you press Alt + Tab until you reach the okular window, if you wait a second with okular marked you will see all the windows with their names above each preview.


T470p wifi is not working (intel 8265) on Ubuntu 16.04

Your wireless device, the Intel 8265, is indeed supported in later kernel versions; specifically 4.6 and later. Ubuntu 16.04 uses the slightly older 4.4.0-xx kernel. You can verify from the terminal:

uname -r

I recommend that you install Ubuntu 17.04 which runs kernel version 4.10.0-xx and fully supports your device.


Uninstall Ubuntu 14.04 and install Ubuntu 20.04

I think option3 select the sda5 (your old ubuntu) check format & put a / in the mount options. When the next is clicked make sure only sda5 is being changed. Continue with install. You will wipe your old ubuntu.


That could have many reasons. Check the following steps:

Is the CD damaged?

If the CD is damaged, the system might be unable to read certain data at some point. Also, your CD drive could be faulty. You can try installing Ubuntu via USB stick (tutorial for Windows here and for Ubuntu here) to see if it's a problem with the CD (drive).

How fast is your CPU? How much RAM do you have?

I personally experienced unexpectedly long waiting times when installing Ubuntu 12.04 or later on systems with poor hardware - especially on netbooks. I don't know how much time I waited, but I think one time I was waiting for about 10 minutes.^^ Don't worry, the operating system won't be so slow afterwards.


Mednafen fullscreen spans multiple monitors

The only way I've been able to get it to work is to edit the mednafen-09x.cfg file like so:

;Full-screen horizontal resolution.
nes.xres 1920

;Full-screen vertical resolution.
nes.yres 1080

By default, these values are set to 0. Two monitors causes mednafen to split the video output across both of them dead center - making it unplayable.

You'll need to do this for each system you want to emulate in the cfg file. Just change the default value of 0 to your monitor's resolution and it'll work. The only downside is that it kills signal to my #2 monitor while the game is running.


How to get secure version of software through apt package manager?

As you read it already, packages after being released, will be put on frozen state, however you still get update for that package in form of bug fixes and security patches, means Ubuntu team will patch the issues of that package without the need of upgrading it to the last version, you can use:

apt changelog pkg-name

to see what has been done in the last update, for example here is the change log of samba:

samba (2:4.3.11+dfsg-0ubuntu0.16.04.9) xenial-security; urgency=medium

  * SECURITY UPDATE: KDC-REP service name impersonation
    - debian/patches/CVE-2017-11103.patch: use encrypted service
      name rather than unencrypted (and therefore spoofable) version
      in heimdal
    - CVE-2017-11103

If you inspect the logs closely you'll see their at the same version however a lot of things is being done, pay attention to SECURITY UPDATE and CVE line.


Touchpad issue: jumping cursor while typing (Ubuntu 14.04), syndaemon don't help

I couldn't follow this answer with My XPS 13, and Ubuntu 14.04.

But found a quick solution to disable touchpad while typing:

sudo apt-get install gpointing-device-settings

then run

gpointing-device-settings

Check: Enable Palm Detection and move range:Narrow to about 10% from beginning.


rsync: Sync folders, but keep extra files in target

rsync has an option called --exclude-from option which allows you to create a file containing a list of any files which you would like to exclude. You can update this file whenever you want to add a new exclusion, or remove an old one.

If you create the exclude file at /home/user/rsync_exclude the new command would be:

rsync -a --delete --exclude-from="/home/user/rsync_exclude" "${source_dir}" "${target_dir}"

When creating the exclude list file, you should put each exclusion rule on a separate line. The exclusions are relative to your source directory. If your /home/user/rsync_exclude file contained the following options:

secret_file
first_dir/subdir/*
second_dir/common_name.*

Any file or directory called secret_file in your source directory
will be excluded.
Any files in ${source_dir}/first_dir/subdir will be excluded, but
an empty version of subdir will be synced.
Any files in ${source_dir}/second_dir with a prefix of common_name. will be ignored. So common_name.txt, common_name.jpg etc.


I found a nice GUI client that does all the work, from listing available VPNgate servers, to connect to one of the:

Gvpngate


Backup with duplicity on Google Cloud Storage

There is now (since 2013-07-19 - version 0.6.22) support to use Google Cloud Storage directly in duplicity.

You should use gsutil config -a to create a ~/.boto config file. And then you can use duplicity like this:

duplicity local_dir gs://yourbucket

Also of note is that only the old authentication mechanism is supported. You should enable "Interoperable Access" from your Google Storage Console.

Detailed steps on http://www.willdurness.com/back-up-your-vm-to-google-cloud-storage-using-duplicity.


Best virtualization solution for running Windows 7 as a guest?

"VirtualBox" is not a generic term. It only refers to one software product, that is VirtualBox.

As far as virtualisation software goes, yes, it's pretty good. You can (as I do) run Adobe CS4 applications in it just fine and the performance is still fairly good too.

While we're talking about virtualisation, I would perhaps suggest not installing Windows 7 as a virtualised "guest". You typically want the lightest possible operating system and for most modern support that's still Windows XP. If you have a license of that, you'll probably find it runs faster.

I'm not sure I'd bother with it for MS Office. Trying to keep yourself locked to Office is usually a recipe for failure. I strongly suggest you attempt a migration to something like OpenOffice or LibreOffice or even something internet-based like Google Documents (which adds on extra collaborative features).

Gaming in a virtualised environment is a no-go. It's just not fast enough. The virtual environment doesn't have direct access to the video hardware (because Ubuntu is using it) so any acceleration is software based (there is a 3D layer provided by Wine - but it's very slow and buggy).

If you want something for gaming you either go with:

Wine. Google for: "appdb your-game-here" and you'll find out how well it is supported. Performance is usually poorer than in Windows and some things just won't run well, if at all. But some games do run really quite well.
Dual Boot. You leave part of your disk dedicated to Windows so that you can still boot to it when you restart. This leaves you with the best gaming performance but it does mean you have to restart to play games and then restart again to get back to Ubuntu.

The important thing you should take away from this is: you don't need to pick just one route for migration. You can have VirtualBox for CS4 apps, native alternatives for Office and Dual boot or Wine for games. Each technology has its benefits and drawbacks and hopefully this will let you choose which is best for each.


sudo apt-get install --reinstall libgtk2.0-0

solve a similar problem for me


from ubuntu server 16.04 LTS to ubuntu server 18.04 LTS change of swap partition

The kernel supports swap on a file, and swap as a partition. It will probably support both for the foreseeable future.

Furthermore, a swap space is not necessary for normal operation of the system, unless you are very limited in RAM. If you have more than 2GiB of RAM, you will be able to update and boot your system, even without any swap space. If kernel support should radically change in the future, you will thus be able to configure it at that time.

So for now: Don't worry.

To check what you use for swap, run

cat /proc/swaps

This will print swap spaces in use. If they're on file or a partition doesn't really matter.


How to find out what graphics driver is installed?

Run sudo lshw -c video | grep 'configuration' to see the video driver used, or sudo lshw -c video for more detail. i915, for example, means your video adapter uses the Intel 915 drivers; nouveau means you have the Open Source drivers for NVIDIA.


RabbitMQ listen on port 25672 after activating new NIC interface

Linux (by default) treats IPv4 as a special case
of IPv6, so by listening on all IPv6 addresses we are also listening on
all IPv4 ones.

Don't forget to allow to port with ufw allow 5672/tcp


There are a number of ways to accomplish this. See this answer for more details. Adding @reboot xbindkeys to your crontab would work, but apparently only works when the machine is rebooted not when it comes up cold.

sudo echo '@reboot xbindkeys' >> /etc/crontab

That will add the line to your cron jobs, but typically I call the script by adding it in a line to /etc/init.d/rc.local, though I like Riccardo's suggestion of adding it to ~/.gnomerc.


upgrade from 16.04 to 16.04.1 does not happen

From your 1st comment:

  Yep, and it's really short: deb http://archive.ubuntu.com/ubuntu xenial main universe restricted multiverse

Your settings are probably wrong.

I am missing a few repositories that I would assume should be active ...

xenial-security universe
xenial-security multiverse
xenial multiverse
xenial-updates multiverse

Check these 2 pages with settings at dash, search "software&updates":

I would myself always tick the 1st 2. 3rd too but is always optional (if you want to keep your system pure keep it off). The 4th is als optional.
"download from" I have set as "netherlands". Check you have either "main" or a good working mirror near you.

you need the 1st 2 checkboxes ticked. 3rd one is optional
bottom select probably needs to be active too.


Same problem here, and I have a solution:

Open a terminal and open the file avg2013flx.prerm

sudo nano /var/lib/dpkg/info/avg2013flx.prerm

Search the lines with

if which invoke-rc.d >/dev/null 2>&1; then
    invoke-rc.d avgd stop
else
    /etc/init.d/avgd stop
fi

and replace ALL occurences with

#       if which invoke-rc.d >/dev/null 2>&1; then
#           invoke-rc.d avgd stop
#       else
#           /etc/init.d/avgd stop
#       fi

Than run again

sudo apt-get remove --purge avg2013flx

Explanation:

Commenting those lines out stopped the process from attempting to stop the service. And the service wasn't running anyways so it was able to remove the package.


Ethernet Not Working In Ubuntu 16.04 LTS in dual boot system!

Try this: https://help.ubuntu.com/stable/ubuntu-help/net-wireless-troubleshooting.html

(these are just additional characters to satisfy the client)


Network connection problems on Ubuntu 10.04 LTS server?

I'll assume that "system becomes idle" means "screensaver activated" or "lid closed", and suggest that the Power Manager is your culprit. Look at /var/log/pm-*.log
and man pm-powersave


zpools don't automatically mount after boot

You need to edit the file /etc/default/zfs with your favourite editor, eg: nano, vim or something else, and change the lines

ZFS_MOUNT='no'
ZFS_UNMOUNT='no'

to

ZFS_MOUNT='yes'
ZFS_UNMOUNT='yes'

The other option is to install mountall (apt-get install mountall) from the ZFS Stable PPA, it takes care of that for you. The first option is preferable and faster.


How Shim verifies binaries in secure boot?

Kaz Wolfe's answer is pretty good, but I want to emphasize and expand on a couple of points....

The last I checked, Shim basically provided a sort of parallel Secure Boot verification feature. It's intended to be used by GRUB, which is designed to launch Linux kernels that are not EFI programs. Thus, Shim registers itself with the EFI in a way that enables follow-on programs to call Shim to verify that binaries are signed. Shim does so in either of two ways:

Shim's built-in key -- Most Shim binaries, including the one provided as part of Ubuntu, include a built-in Secure Boot key. Ubuntu's Shim includes Canonical's public key, which validates Ubuntu's GRUB and Linux kernel. This key is therefore stored in RAM, and is rather temporary as these things go. The main point of Shim is to enable its follow-on program (GRUB) to perform a Secure Boot type verification -- but GRUB doesn't really do a Secure Boot verification per se, as described shortly. Without Shim, Canonical would need to rely on Microsoft to sign every new release of GRUB and every new Linux kernel, which would be somewhere between impractical and impossible.
Machine Owner Keys (MOKs) -- MOKs are basically an extension of Shim's built-in key, but they're intended for ordinary users to manipulate. You might use MOKs if you want to launch binaries that aren't signed with Canonical's key. MOKs, like the firmware's built-in Secure Boot keys, are stored in NVRAM; but they're more easily added to NVRAM, via a program called MokManager. Getting MOKs into NVRAM is still tedious enough that most people don't bother, and many people who do have problems with it; but it's easier than taking complete control of your Secure Boot subsystem, as described in my page that you referenced (Managing EFI Boot Loaders for Linux: Controlling Secure Boot).

In most cases, MOKs are not used; if you want to dual-boot Windows and Ubuntu, you'll probably do fine with the firmware's built-in keys and the key embedded in Ubuntu's Shim binary. You'd use MOKs if you want to add another Linux distribution, compile your own kernels, use a boot loader other than GRUB, use third-party kernel modules, etc.

In addition to those two sources, there's also the Secure Boot keys built into the firmware. I don't recall if Shim uses those keys. It would implicitly use them if it uses the EFI's LoadImage() and StartImage() calls (which it does, but I haven't reviewed the context for this answer). My recollection is that its own verification code does not use the firmware's Secure Boot keys when GRUB calls back to see if a kernel is signed, but I might not be remembering that correctly.

As to how Shim integrates into the Secure Boot system, the last I checked, it didn't. IIRC, to launch its follow-on program (GRUB), Shim implements its own binary-loading code, which resembles a stripped-down version of the code in the Tianocore UEFI sample implementation. This code calls Shim's own Secure Boot verification code, which checks a binary against its built-in key and the local MOK list, to launch a binary. (It may also use the firmware's own Secure Boot keys, but I'm not positive of that.) Once GRUB is loaded, it calls Shim's binary-verification function to verify the Linux kernel, which GRUB launches in its own way (not the way the EFI launches EFI programs). Thus, Shim doesn't really integrate itself into the firmware very deeply; it just makes one or two of its functions available to follow-on programs, leaving the LoadImage() and StartImage() EFI functions unchanged.

That said, EFI does provide ways to replace or supplement normal EFI system calls, and some tools do use these methods. For instance, the PreLoader program, which was a tool to do something similar to what Shim does, integrated itself more deeply into the firmware; it used EFI system calls designed to patch broken or obsolete functions to modify StartImage() so that it would check both the usual UEFI Secure Boot keys and the MOK. PreLoader has pretty well fallen by the wayside; its developers and Shim's developers have cooperated to focus on Shim rather than PreLoader as the standard Linux Secure Boot tool. AFAIK, Shim has not adopted PreLoader's deeper UEFI integration; however, it's been a while since I looked at the code very closely, so I may be out of date on this. That said....

My own rEFInd boot manager uses code that I took from the PreLoader program in order to "glue" Shim's binary verification code into the UEFI's normal verification subsystem. Thus, with rEFInd in the picture, any attempt to launch an EFI program using LoadImage() and StartImage() calls the Shim authentication code first and, if that fails, calls the standard UEFI Secure Boot authentication second. The gummiboot/systemd-boot boot manager does something similar. Both programs do this because they launch the Linux kernel by way of its EFI stub loader, which means that they rely on the EFI LoadImage() and StartImage() calls. This contrasts with GRUB, which is a full boot loader that launches the Linux kernel in its own way, so GRUB doesn't need these EFI system calls to recognize the Shim's key or the local MOK list.

I hope this helps clarify things, but I'm not sure it will. The details of how all this work are pretty messy, and it's been a while since I've dealt with them in any detail, so my own thoughts aren't as organized as they might be.


unable to install 18.04.2 with ext. graphics

Here is a list of things that solved this problem:

download and write 18.10 ubuntu
update BIOS to 5.5 (from 4.6) (using integrated video to avoid problems)
reset BIOS settings
switch primary video to external in AMD PBS settings, switch monitor cable, reboot
when boot from USB press any key and chose to try Ubuntu and install it from this subsystem
boot from disk, install proprietary drivers, done


Why do some of the keys not work when connecting to xrdp?

this is a known issue with xrdp.
Special keys on keyboard might not be working when connecting through xrdp.  It's possible to fix it by updating the keyboard mapping file used by the xrdp software

To fix your issue, you will need to dump the keyboard layout used when no xrdp connection are performed, them dump the keyboard layout in the xrdp session.  You will then compare both files to get the value representing your special keyboard key and update the keyboard mapping file used by xrdp.

The process is not easy to describe or summarize. To better understand the issue and the possible solution , I recommend you to read the detailed instructions found here


Command line Java: Error: A JNI error has occurred/Exception in thread "main" java.lang.NoClassDefFoundError

I took a look at the contents of the .jar file and the Main class was listed as bendersexample.Demo. I was creating and running the jar in the /bendersexample directory.

The solution for me was simply to move the Manifest and jar file to the parent directory.

Anyone who has a problem like this in the future should take a look at their project file structure before trying anything else because this turned out to be a very easy fix!


How do I rebind "Initiate Window Move" to mouse button 10?

How are you setting the setting in CCSM? Try <ALT> Button 10. I believe you might have to use the ALT button to initiate the move. "Do not quote me". I am just taking a guess.


System crash when try to minimize gtk3 applications

Reason:
Happens because gtk3's client side decorations do not play well with ubuntu.

Workaround:
Add this to your ~/.profile

export GTK_CSD=0


This works if you can set the caddy's interface as first boot device (via the BIOS/UEFI, maybe).

First boot into Ubuntu and install grub to the caddy/external drive:

sudo grub-install /dev/sdX
sudo update-grub

Where sdX is the device representing the caddy. You can run lsblk -l to check for the correct letter, it might be something like sdb or sdc, I think. (If in doubt, just edit the question to add the output of lsblk -l.)

Reboot (with caddy plugged) and make sure that grub loads correctly and lets you boot both OS's correctly (check booting Ubuntu then check booting Windows).

Take out the caddy and restore the Windows bootloader on the primary drive (look at this help article for that). That way when the secondary drive is unplugged Windows will boot normally, otherwise grub will kick in. (This is my current setup, but with a portable USB drive vs an internal drive.)


Kernel panic at boot with BusyBox and init error messages

Oh. Okay. Well, is there anything I can do? Since I have Ubuntu on my computer, what would be the best way to make it work?


What is the install routine for Common Lisp/ SLIME/SBCL/Quicklisp on Ubuntu?

As I went through the process, I'll sumarize the complete install routine for above recommended Common LISP configuration:

Fire up a terminal:

Install Emacs (IDE):

sudo apt-get install emacs

Install SBCL (Compiler):

sudo apt-get install sbcl

Install Quicklisp (Quicklisp is a library manager for Common Lisp.)

This is done by copy-and-pasting all bold commands in the grey box here:
https://www.quicklisp.org/

Install SLIME by using Qucklisp:
In the terminal run SBCL:

sbcl

(ql:quickload "quicklisp-slime-helper")

(quit)

SBCL will warn you about having to edit your ~/.emacs file. Do not ignore it

Now inside Emacs to start SLIME type:

M-x slime

Which is Alt+x slime.

Now you're ready to play with LISP.

Some useful Emacs packages (plugins for Emacs) that were recommended to me are:
Paredit, auto-complete and smartparens

Hope this is of help for anyone.


How to disable mini-windows when switching apps in Kubuntu

This feature is configured by Screen Edges . Go to System Settings->Workspace Behavior ->Screen Edges . Then click on the edge in the pseudo monitor where this action gets triggered , and select "No Action" .It should look like this :

And each time you triggered this action unintentionally , you can press Esc to get to the window where you've been. You wouldn't lose track of the windows. I sometimes use this feature even with more than 20 windows !


Lubuntu script to reverse order of a list state-capital capital-state

If you have always only 2 fields:

awk  -F- '{print $2"-"$1}' file

This prints just the 2nd field, followed by a dash, followed by the 1st field.

Or with bash:

while IFS="-" read -r a b; do echo "$b-$a"; done <file

IFS sets the value of bashs internal field separator.
read reads the input line by line and saves the first field to the vairable $a and the second field to $b.
echo then prints both with a dash.
<file gives the contents of file as input.

If the number of fields is not always the same:

awk  -F- 'OFS="-"{c=1;for(i=NF;i>=1;i--){a[c]=$i;c++}for(i=1;i<=NF;i++){$i=a[i]}}1' file


Bluetooth headphones cutting out sporadically in 20.04

If you are using 2.4 GHz Wi-Fi at the same time, this could be a reason why this is happening. Try to disable bt_coex by running:
sudo tee /etc/modprobe.d/iwlwifi-opt.conf <<< "options iwlwifi bt_coex_active=N"

Reboot to test.
The setting can be reverted by:
sudo rm /etc/modprobe.d/iwlwifi-opt.conf


How can I back up files from multiple accounts?

You should use more accounts, yes. It's not a good practice to share accounts in any case. It's better to share documents and folders between the users. I'm not sure what happens if you share the folder both on Ubuntu One and locally. I don't think it should cause any problems, but you may have to download files even though they're already on disk. You should probably share a test folder first to see how that works.

Remember that Ubuntu One is also used to login to other websites, so it is a very good idea for everyone to have their own accounts.


Different methods to secure eject removable usb drive?

Desktop Icon
You can right click on the icon on the desktop and click 'Safely Remove Drive':

Docky Docklet
If you use docky, you can use the 'Mounter' docklet.

and right click on the icon and click 'Eject'.

Command
From a terminal, you can use:
umount /media/7890-FB2E

replacing /media/7890-FB2E with the path its mounted to.
You can also do this from the Alt+F2 dialog:


Please run the terminal command:

lspci -nn | grep 0280

The pipe symbol | is on the right side of my US keyboard on the same key with the backslash. Is your wireless device enumerated 14e4:4315? If so, please get a temporary wired ethernet connection, open a terminal and do:

sudo apt-get remove --purge bcmwl-kernel-source
sudo apt-get update
sudo apt-get install firmware-b43-lpphy-installer

Detach the ethernet, reboot and let us know how it's working.


Why can't Dash find some of the applications installed in 15.10?

Is zeitgeist-daemon working?

If not,

zeitgeist-daemon --quit
rm -rvf ~/.local/share/zeitgeist
zeitgeist-daemon --replace &


How to bring up WiFi Direct stack on ubuntu

I have figured that The problem was caused because of the dhcp server not responding.I have found a temporary fix by assigning a static IP address to both the devices.


Proprietary graphics completely broken on MacBook Pro 7,1

Thank you Mr. IRC Man.

I installed Bumblebee, and it now works except for the brightness control (for some reason nvidia-xconfig wasn't installed).


How to change the fileupload dialog files view?

In my experience we cannot change the view when we want to upload a file. We only can change the view when we are using the file manager in the option "Preferences"


My problem was finally solved after I applied the latest updates from Ubuntu a couple of days ago. I am unable to get hold of any version number to say which update I am running - if anyone has suggestions on how to get that, I'll be glad to post that information also.

Before applying the updates, I had tried out one more option: adding nomodeset to the Grub start-up script, as described here. That did not help me though. Now I don't know if it is a combination of both which works, but I don't want to play around to find out, as you can well imagine!

Hope this helps others too.


Installation of "gdb64" on Trusty removes "ubuntu-minimal", is that right?

It looks like this package is intended for debugging 64 bit programs ( remotely ) on a 32 bit system.  I'm not even sure why it is showing as installable on 64bit, which seems to be a bug.  You want to just install the regular gdb package.


Unable to adjust brightness on a Sony VAIO F133FXB

Try adding the following kernel options to your Grub defaults

gksudo gedit /etc/default/grub

Find the line GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" and add the options

acpi_backlight=vendor acpi_osi=Linux

So the line looks like this:

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

Then update grub and reboot

sudo update-grub
sudo reboot


Create local network share with linux and mac only

For sharing printers best solution, for me, is to user cups. Also you can user cups on mac.

For file sharing you can use Samba. You have lot of a resource here, and here, or here

Maybe you can use NFS. With nfs your network share will be mount on boot.
Example of configuration can find here, and here.

Or, for file sharing, you can use this manual.


Shared location for all python interpreters

All the interpreters first look if there's an environment variable $PYTHONPATH set, which contains directories separated by :.

To add a directory to it, type

export PYTHONPATH="$PYTHONPATH:/home/stefano/my_modules"

Everything in this directory will now be available to all of your python interpreters. Non-existent directories are ignored without an error.

If you're happy with the settings, make the change permanent by appending the export command to the .bashrc file (or any other startup file you like in your home directory.

See also:

 § 6.1.2. The Module Search Path
 § 1.2. Environment variables

Note: the above syntax means that the variable PYTHONPATH will contain itself and the new path, you could also remove the $PYTHONPATH: part to just set one directory. Normally, this variable will be empty on your system, it makes sense to check if there's anything in it: echo $PYTHONPATH.


The answer/solution as posted by the OP in the question itself:

  I was surfing on google and found another post on this forum that
  helped me, I wasn't sure if it was going to work but it did! :D  I
  used this tutorial
  http://ubuntuforums.org/showthread.php?p=10871917#post10871917

  The part I used, I wrote this in the Terminal

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

  Then followed the guide and rebooted and then GRUB2 worked :)

  And I'm sorry for posting before reading :(


Upgrade to Kubuntu 15.04 broke settings and Akonadi

Just to expand on what was said earlier despite being pretty much a novice, I've just managed to change the backend to SQLite and it's got things working again.Akonadi has a GUI config that can be used to change the backend database type.

What I did to switch top SQLite was:

First install SQLite support with the command

sudo apt-get install akonadi-backend-sqlite

then once that's completed run the command

kcmshell4 akonadi

in the terminal to display the Akonadi setup GUI.

Once the GUI is running, I selected the Akonadi Server Tab and changed the Database Driver drop-down list from the default of MySQL to SQLite (all the configuration options on the page disappeared when I did this)

I then just pressed the Apply button and the Start button and the server then started up without further problems.


Hardware upgrade: hardware vs software RAID

There are no advantages to fake RAID or expensive real hardware RAID controllers that I know of.

The advantage of software RAID is that your RAID sets are not dependent on a certain controller or format and that you receive bugfixes and software updates easily through the software update process.


16.10 System Disables Network Connections

There are two ways to prevent this issue:

From local system:

create a config file in ~/.ssh and add the following

ServerAliveInterval 15

this will send null packets to remote host.

From Server end:

open the /etc/ssh/ssh_config and add the follwing:

ServerAliveInterval 60

also if you don't have root access or just wish to configure for own account, then add to ~/.ssh/config (create if it doesn't exist):

Host *
   ServerAliveInterval 60

Restart remote machine or your local machine as the case may be.

Information:

Change the time to suit you.
In the case of setting it from the remote side and for personal use run chmod 600 ~/.ssh/config to change permissions on the config file (recommendation from here)


Authentication fails after turning off login password

Try this help page about recovering a lost password.

With that you can also create new users on the command line :

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

After you manage to get a root shell on your own hard disk, you can do for example :

adduser mynewuser
adduser mynewuser sudo

Which adds a new user called "mynewuser", and then, with the second line, makes the new user part of group "sudo", which means giving the new user sudo rights.


KVM - Guest does not recognize second NIC

Finally found the solution. Rebooting the machine is not enough, stopping the VM and starting it again is needed.


If you don't require a specific verison, it's a one-command thing:

sudo apt-get install default-jdk


Display resolution only has 1 option 1920x1080

This looks like a driver error. Make sure you have the correct Intel drivers.

Check the system logs.

Go here: https://01.org/linuxgraphics/downloads and install the update tool.

You might want to see this: https://unix.stackexchange.com/questions/209157/xrandr-failed-to-get-size-of-gamma-for-output-default-for-guest-centos-6-6-h

You might not need to change the resolution- try the following:

Change the system UI scaling and font size from "System Settings>Displays>Scaling for Menu and Title Bars".

If you are using chrome, you can change the UI scaling by going to the chrome.desktop file (usually located in /usr/share/applications) and editing this line:

Exec=/usr/bin/google-chrome-stable --force-device-scale-factor=1 %U

Change "--force-device-scale-factor=" to a number higher than 1 for large UI.


Use dd for it.

An example:

dd if=/dev/cdrom of=/tmp/ImageName.iso


How do I replace the battery icon with just a percentage, not both?

Try installing third party applet indicator:

sudo apt-get install indicator-applet-complete
sudo apt-get install dconf-editor

Then use dconf and configure like so:

"remove" show present
enable "show percentage"


By the way, I have bought it and both ubuntu 15.04 and 15.10 work out of the box with this gpu.


How do I enable opacity/saturation/brightness controls in Gnome-shell?

Yes, this is possible, but not now.
I mean, at least we will be able to make effects like this, becuase the opacity of the windows can be changed easily in Gnome Shell.

But we need an extension that binds the scroll event to increasing or decreasing the opacity of windows. When this kind of extension is written, we will be able to do that.

Refer to this link Does CCSM work with Gnome-shell?


Unable to get Atom text editor from the Software Center

Run these commands to quickly and easily install and upgrade the Atom text editor snap package from the terminal in all currently supported versions of Ubuntu (64-bit only).

Install Atom text editor:

sudo apt install snapd
sudo snap install --classic atom

Note that a snap in classic confinement behaves as a traditionally packaged application with full access to the system, and Atom extension packages are installed into the user's home directory.
Upgrade Atom text editor:

sudo snap refresh --classic atom

Atom text editor can also be installed from the Ubuntu Software application in Ubuntu 16.04 as shown in the below screenshot. Either way there is no need to add a PPA to your software sources.

Atom is more than just another text editor. Atom is extensible through the installation of Atom packages that can give Atom the capabilities of running code, showing inline graphical output and more.

Inline plot in Atom


When you install and it has the checkmark for encryptying your home folder, what exactly does that mean?

This is a duplicate question but here is a short answer anyway. The home folder is where all of your files and settings when you choose this option your home folder is encrypted. This prevents anyone who is not logged in as you from being able to access your home folder.


How do you apply performance tuning settings for Native zfs?

The option is already set by default in most zfs-fuse packages.  Double check that this is in the /etc/zfs/zfsrc file:

# zfs-prefetch-disable : disable zfs high level prefetch cache
# This setting can eat as much as 150 Mb of ram, so uncomment if you want
# to save some ram and are ready to loose a little speed.
zfs-prefetch-disable

Alternatively, to set this option for the native ZoL driver, do this:

# modprobe zfs zfs_prefetch_disable=1

To make the change permanent, create a /etc/modprobe.d/zfs file and put this line in it:

options zfs zfs_prefetch_disable=1

Most tunable parameters for ZFS on Linux are set through module options.  You can get a full list of available options by running this command:

# modinfo zfs

Most of these options will correspond directly to things that can go in the loader.conf or sysctl on other systems.


How do I change my keyboard shortcuts in xubuntu?

Keyboard shortcuts are tucked away in your Settings Manager - Window Manager - Keyboard

Scroll down the list - you will see several workspace shortcuts, some defined with a shortcut and some awaiting to be defined.


Unable to detach (spindown) external USB HDD in 15.04; "Safely Remove" just remounts it

First of all, you must unmount all partitions mounted on the USB HDD, then try detach it. I gave an example below with udisksctl

1 Use lsblk to see your USB HDD and all mounted partition on it:

Shell@localhost:~$ lsblk
sda      8:0    0 931.5G  0 disk
├─sda1   8:1    0   128M  0 part
└─sda2   8:2    0 931.4G  0 part /
sdb      8:16   0 501.8G  0 disk
└─sdb1   8:20   0 500.2G  0 part /USBDRIVE

2 Unmount all mounted partition for USB HDD

sudo umount /dev/sdb1

3 Power off the USB HDD using next command :

udisksctl power-off -b /dev/sdb

replace /dev/sdb with the correct USB HDD.


Problem installing ACS ACR38T (smart card reader) on Ubuntu 18.04-64

I use the same device (ACS ACR 38U-CCID) together with SuisseID. For unknown reasons I observe the same behavior like you. OpenSC can somehow work with the device, but Firefox can't.

To finally get it working with Firefox, I used a PKCS11 library from the vendor instead of the OpenSC PKCS11 library:

$ wget http://postsuisseid.ch/images/setup/postsuisseid-lin-1647.tar.bz2
$ tar xjf postsuisseid-lin-1647.tar.bz2

Now load postsuisseid-lin-1647/lib_amd64/libcvP11.so as a new security module into Firefox and you should be able to login and use your smart card.

For testing purposes to check if a PKCS11 library works or not, you can use these commands:

How it shouldn't be:

$ pkcs11-tool --verbose --test --module /usr/lib/pkcs11/opensc-pkcs11.so
No slot with a token was found.

How it should be:

$ pkcs11-tool --verbose --test --module postsuisseid-lin-1647/lib_amd64/libcvP11.so
Using slot 0 with a present token (0x1)
C_SeedRandom() and C_GenerateRandom():
  seeding (C_SeedRandom) not supported
  seems to be OK
Digests:
  all 4 digest functions seem to work
  MD5: OK
  SHA-1: OK
  RIPEMD160: OK
Signature: not a R/W session, skipping signature tests
Verify: not a R/W session, skipping verify tests
Key unwrap: not a R/W session, skipping key unwrap tests
Decryption: not a R/W session, skipping decryption tests
No errors


As hamatti stated, you misspelled sudo as sodu.

The correct command is sudo apt-get install <package-name>.


grub says unknown file system. what do I do?

Boot with a LiveCD of your distro.

Open a terminal

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

Open the boot-repair window

Select the first option and wait until the process finishes.

Restart your computer without the LiveCD

If the problem is not solved. Then, boot again with the LiveCD in the terminal execute

gksu boot-repair

Select the second choice and wait until it finishes.

Restart.

Visit the official help page for Boot-repair. They provide a more detailed step-by-step, with screenshots and everything. https://help.ubuntu.com/community/Boot-Repair


Using pgrep gives the least information. Using ps -aux | grep can provide too much at times:

$ pgrep eyesome
1200
1217
1226

$ ps -aux | grep eyesome
root      1197  0.0  0.0   4504   696 ?        Ss   07:36   0:00 /bin/sh -c    /usr/local/bin/eyesome.sh
root      1200  0.0  0.0  13380  3912 ?        S    07:36   0:01 /bin/bash /usr/local/bin/eyesome.sh
root      1217  0.0  0.0  12768  3308 ?        S    07:36   0:00 /bin/bash /usr/local/bin/eyesome-dbus.sh
root      1226  0.0  0.0  12768  2368 ?        S    07:36   0:00 /bin/bash /usr/local/bin/eyesome-dbus.sh
root     10567  0.0  0.0  54792  3964 pts/18   S    10:27   0:00 sudo eyesome/movie.sh asdf
root     10568  0.0  0.0  12896  3380 pts/18   S    10:27   0:08 /bin/bash eyesome/movie.sh asdf
rick     26612  0.0  0.0  14224  1020 pts/19   S+   16:52   0:00 grep --color=auto eyesome

So let's narrow it down whilst making it user-friendly:

$ ps -aux | grep "sudo eyesome/movie" | grep -v grep
root     10567  0.0  0.0  54792  3964 pts/18   S    10:27   0:00 sudo eyesome/movie.sh asdf

Now put it into a script that you have loaded in Startup Applications:

#!/bin/bash
# Name: checkrunning.sh
# For: https://askubuntu.com/questions/1160844/check-for-running-proccess-constantly

while true; do

    Running=$(ps -aux | grep "sudo eyesome/movie" | grep -v grep)
    if [[ "$Running" == "" ]]
    then
        echo "NOT Running"
    else
        echo "Running: $Running"
    fi
    sleep 10

done

Mark the file as executable using:

chmod /path/to/checkrunning.sh

Replace the echo commands with notify-send.


Another question about Using ZRAM for swap

All you need to do is to install the zram-config package, which, as the name implies, configures zram for you. cat /proc/swaps is accurate: zram is already active as swap.

The other question is about zram, not the zram-config package.


Download Regular Expression Plugin  for Gedit 3. Extract the tar package , then copy it to Gedit plugins directory from the Extracted folder.

For a particular user , do

 cd ~/Downloads
 wget 'https://live.gnome.org/Gedit/Plugins?action=AttachFile&do=get&target=regex_replace-gedit3.tar.gz' -o regex_replace-gedit3.tar.gz
 tar xf regex_replace-gedit3.tar.gz
 mkdir -p ~/.local/share/gedit/plugins
 mv ~/Downloads/regex_replace ~/.local/share/gedit/plugins

And for the all the users in system

sudo cp -r ~/Downloads/regex_replace /usr/lib/gedit/plugins/

After copying the plugin you can enable it in Gedit 3 under Edit > Preferences, clicking on Plugins tab and checking the box for Regex Search and Replace.

Another alternate is also available as Advanced Find / Replace

P.S. : Thanks mac9416 for suggesting the individual User part.


How to tranfer files between iPhone and Ubuntu?

I installed Phone Drive in my Iphone and it worked perfectly!
This works using the browser through a Local Network
I got weird errors using usb...


Can all files associated with previous Linux be deleted?

If you have Synaptic installed you can search for "linux-image" and remove the unwanted kernel versions that way.


Looking at the Totem code, it looks like a set of GktButtons inside a GtkToolbar, with a CSS style applied and using symbolic icons (which are also installed by the theme in Ubuntu) instead of the stock ones.

Here's an example in Python

# Assuming builder is an initialized Gtk.Builder object and toolbar exists
# in the .ui definition file and is populated with Gtk.ToolButtons

context = builder.get_object('toolbar').get_style_context()
context.add_class(Gtk.STYLE_CLASS_INLINE_TOOLBAR)

More info on GTK+ 3 CSS styles:

The GNOME journal: styling GTK with CSS
GtkCssProvider documentation


Shortcuts for Terminal for running a Java Program

Two ways to shorten the time it takes to go down multiple directories:

You can go down multiple levels at a time, so you can type cd Desktop/APCS/Chapter5
Pressing TAB while typing a directory or file name will automatically complete the rest of the filename for you. So if you are in your home folder and need to cd to your desktop, you can type the first two or three letters of Desktop and press tab to automatically complete it

If you need to compile and run your program a lot, make a shell script on your desktop or somewhere else with:

javac ~/Desktop/APCS/Chapter5/Test.java
java ~/Desktop/APCS/Chapter5/Test


Error while attempting to synchronize system time

Did you try with another server like ntp.ubuntu.com instead of pool.ntp.org?


DNS problems after upgrading from 16.04 to 17.10: How to reset the DNS settings to default?

I had the same problems. My DNS stopped working after upgrading from 17.04 to 17.10.

The solution that temporarily worked was putting into /etc/systemd/resolved.conf

DNS=<DNS server here>
FallbackDNS=<DNS server here>

and then restarting systemd-resolved by running

#sudo systemctl restart systemd-resolved

The other way is to change in /etc/NetworkManager/NetworkManager.conf

dns=dnsmasq

to

dns=systemd-resolved

Then restart NetworkManager by running:

#sudo systemctl restart NetworkManager

and your DNS should work.


Error while saving File in ubuntu 12.04 guest OS

try the following

//shareIP/sharedFolder mountpoint smbfs rw,umask=777,uid=linuxUID,username='windowsUsername',password='windowsPassword',auto 0 0


16.10 Unable to locate package libqtwebkit

Just pay attention that you have two different versions of Qt: Qt4 and Qt5.
You got error with python2.7 which uses Qt4, and unfortunately there is little to do anything about it as QtWebKit was removed from shipped Qt4 packages (As You noticed you have QtWebKit present with Qt5 on your system, but Qt4 program cant use it). It is up to software developers (in your case Blink) to port the code to Qt5 (or PyQt5 in your case). This is quite huge problem not only in Ubuntu 16.10 but also in Debian unstable, and a lot of Qt4 legacy programs fails do to this removal of QtWebKit from Qt4. Porting code base from Qt4 to Qt5 is not so hard. (It is quite simple in python Qt (pyqt) code base, but can be more complicated if parts of program is in C++).

update:

going to github page of blink, I can see that they allready addresed the problem and moved to Qt5. So either You will have to wait that blink will be repacked with upstream version in Ubuntu (You could try to fill the bug report to get the attention and faster up the process), or you could try to install the program manually from the source code.


Unmet dependencies installing teamviewer

Maybe try to upgrade to ubuntu 16.04 first because 14.04 is no longer supported.


Boot into the windows 7 partition and start setup from within windows then choose the "alongside windows" option


Problems with Netgear A6210 High Gain Wi-Fi USB 3.0 Adapter on Ubuntu 16.04

Disabled Beamforming, no more issues.

Beamforming is a technology that estimates the signal direction and focuses the signal to that direction to minimize the waste of a signal that, otherwise, would be spread uniformly in space.
When Source is very close to the destination of a signal - direction estimation works much less accurate and, so there might be signal strength / loss issues.


Just wanted to follow up here -- I installed appropriate amd beta drivers and now it starts.  These ones work, I cannot confirm that the latest ones do at the time of this writing (I had trouble with another game with the latest beta drivers).  I know with the Steam beta out now, there are a lot of changes in drivers coming along.

amd64:

http://www2.ati.com/drivers/beta/amd-driver-installer-catalyst-12.11-beta-x86.x86_64.zip


I don't know if soundjuicer can do it, but if not, I suggest using musicbrainz picard (which is in Ubuntu,) to embed the album art after ripping. Picard is mainly for fixing the music metadata by looking up the files on musicbrainz.org, but you can enable a switch to download and embed album art, I believe from Amazon. Note that this will work if you ripped the files to mp3, but not for ogg files, as there is no standard way to embed album arts in ogg files, afaik.


Can't install Ubuntu on Asus Eee 1015pem

I had the same problem with my asus eee pc 1215t. I rebooted windows 7 twice, but did not work. So i did some googling and found the same thing as you and my bios is v02.61 americanmegatrends. It does not have boot booster.

Then I found a better way for you to recover your PC. Do not install the same operating system but run the installation for Windows XP.

Buy or download Windows XP.
Do not install it but run through the setup.
While running windows xp setup format all partitions.
After formatting all partitions through Windows XP, you must cancel the intallation or shut down your pc as soon you clean all partitions.
Now your hard drive is clean, try to install linux ubuntu 6 when finish installing linux, do not forget to update your BIOS through the BIO website.


Help Dual Booting Windows 8 and Ubuntu 12.04

Make sure that you have disabled the Secure Boot feature of UEFI.
This page describes how to do it:
https://help.ubuntu.com/community/UEFI#SecureBoot


Live USBs are not intended for installing updates and new software. Their main purposes are hardware testing, software evaluation and the system installation. Some persistent storage is offered as an option for saving personal files and settings. You really don't need a USB stick with a hardware switch to run Ubuntu from. As for fixing Windows, I rather doubt Ubuntu is the best tool for the job.


How do I target a specific driver for libata kernel parameter modding?

Ah! I found out!

At http://www.kernel.org/doc/Documentation/kernel-parameters.txt, it states,

    libata.force=   [LIBATA] Force configurations.  The format is comma
        separated list of "[ID:]VAL" where ID is
        PORT[.DEVICE].  PORT and DEVICE are decimal numbers
        matching port, link or device.  Basically, it matches
        the ATA ID string printed on console by libata.  If
        the whole ID part is omitted, the last PORT and DEVICE
        values are used.  If ID hasn't been specified yet, the
        configuration applies to all ports, links and devices.

        If only DEVICE is omitted, the parameter applies to
        the port and all links and devices behind it.  DEVICE
        number of 0 either selects the first device or the
        first fan-out link behind PMP device.  It does not
        select the host link.  DEVICE number of 15 selects the
        host link and device attached to it.

        The VAL specifies the configuration to force.  As long
        as there's no ambiguity shortcut notation is allowed.
        For example, both 1.5 and 1.5G would work for 1.5Gbps.
        The following configurations can be forced.

        * Cable type: 40c, 80c, short40c, unk, ign or sata.
          Any ID with matching PORT is used.

        * SATA link speed limit: 1.5Gbps or 3.0Gbps.

        * Transfer mode: pio[0-7], mwdma[0-4] and udma[0-7].
          udma[/][16,25,33,44,66,100,133] notation is also
          allowed.

        * [no]ncq: Turn on or off NCQ.

        * nohrst, nosrst, norst: suppress hard, soft
                      and both resets.

        * dump_id: dump IDENTIFY data.

        If there are multiple matching configurations changing
        the same attribute, the last one is used.

So, the tricky part is finding out which port X and device Y (dmesg ataX.YY) is which controller and drive. I think - that notation matches PORT[.DEVICE], but there's also the W:X:Y:Z notation. I'm guessing ataX.YY :)

Luckily, I just did this mapping manually last week (trying to identify a drive that was throwing spasms and resetting a host controller), so I have an exhaustive list already :) I couldn't find anywhere that the mappings from sdX to ataX.Y or W:X:Y:Z where listed, so I ended up simply yanking out SATA cables and watching which ataX.YY messages appeared in /var/log/messages ;)

So, in my setup, it seems I need to do

libata.force=1:1.5G,2:1.5G,3:1.5G

Gonna have to try that out as soon as my ZFS scrub finishes, and report back :) Awesome! Hope this helps someone else :)


Error when trying to open "Trash" through Nautilus. Any alternatives?

The trash directory is located at  /home/username/.local/share/Trash .

Underneath that directory, "files" should contain any files you have deleted.

You can try opening nautilus, going to your home directory, and pressing Ctrl + H (The key combination for showing hidden files) and browsing to that path, or you can do it from a terminal.

Take your choice.

I hope that helps.

EDIT1:

You can install trash-cli using "sudo apt-get install trash-cli" for a command line interface to manage your trash. It has a command restore-trash which should do what you are wanting.

EDIT2: Have you tried running "gksudo nautilus", and then going to trash via places, or pressing Ctrl + L and typing trash:/// ?

EDIT3:
I have modified the python script that comes with trash-cli for the restore-trash utility to enable multiple restores. (Sorry didn't have enough time to do it from user input, but it will restore the first 10001 items in your trash) Open /usr/lib/python2.7/dist-packages/trashcli/trash.py in a text editor and navigate down to def run(self):
replace everything from (and including) that line down to def for_all_trashed_file_in_dir(self, action, dir): with the following:

def run(self):

    trashed_files = []
    self.for_all_trashed_file_in_dir(trashed_files.append, self.curdir())

    if not trashed_files:
        self.report_no_files_found()
    else :
        for i, trashedfile in enumerate(trashed_files):
            self.println("%4d %s %s" % (i, trashedfile.deletion_date, trashedfile.path))
    index=range(10000)
for item in index:
    trashed_files[item].restore()

The next time you run restore-trash it will restore the first 10001 items in your trash.

Let me know if you have any problems, and I wish you the best of luck.


Can I disable Dash and HUD hotkeys when fullscreen (in DOSBox)?

I found that the HUD (ALT) and Ubuntu Menu (SUPER) keys are very annoying for any application... so the way I fixed this was changed the keybinds to something a bit more appropriate for me. This might help you, so I'm going to outline how I did this:

First you need to install a program to manage Unity and other Compiz settings called "CompizConfig Settings Manager:

sudo apt-get install compizconfig-settings-manager

Run CompizConfig Setting Manager, by looking for it in the Dash
(Ubuntu's Main Menu).
Under the Desktop section, look for Ubuntu Unity Plugin, and click on it.
Change the values you need. The button you need to press is next to the titles I give below:

Key to show the HUD - I disabled the HUD, but you could use: CTRL + ALT instead.
Key to show the Launcher - I changed this to CTRL + Super, however it shows ControlPrimarySuper - this is fine, since CTRL+Super still works as it should. Pick whatever you feel comfortable using.

Click the Back key when your done. Please note changes above should change instantly.

The main reason I did this too, was because I like freeing up my Super key to be able to do other shortcuts. For example Super+T = Terminal, Super+g = Gedit, Super+c = Chrome, Super+PrtScn = grab section of the screen (for taking screenshots). If you want to set something like this... then the section is called "General" and the button to press is "Commands". Please leave "Command Line 0" as blank, I noticed mine has a key binding of Mod2Escape - and wasn't sure if this was important for anything, so I started from "Command Line 1".

Hope this helps you.