Can you use Ubuntu installation CD instead of Windows on Windows Automatic Recover?

You cannot repair a Windows boot issue with Ubuntu, because Ubuntu uses Grub2 and Windows uses it's own. Depending on the issue a Windows disc may not even be able to fix it. You will need a Windows installation disc that matches your Windows version (eg Windows 7 - Home Premium X86-64), or you will need to build a WinPE disc (which requires a functioning Windows installation to build on or maybe you could use wine?, and the version you want to build will depend on which version of Windows you are running). Long story short, you're pretty hooped. Sorry.

If you are desperate you could try building WinPE using wine (unlikely to work), but this tool is orientated towards experienced users, and even if the disc builds there no guarantee it can help you because it depends on the issue. WinPE cannot fix file issues, but it can fix bootloader issues. Bare minimum you can use WinPE to re-add the bootloader and create an entry for you Windows recovery partition. If you have Windows 8 then you will need to download WADK and build with it. If you have Windows 7 you will need WAIK instead. WinPE can only be used to install the Windows bootloader or add a boot entry. If you are having any other kind of a problem then an installation disc is needed. Re-installing the Windows bootloader will ovewrite grub on mbr systems and prevent you from booting Ubuntu. You need know if you have an MBR partition table or a GPT one.

Build A WinPE 3.0 Disc Using WAIK:

Download = http://www.microsoft.com/en-ca/download/details.aspx?id=5753

Build Instructions = http://technet.microsoft.com/en-us/library/cc709665%28v=ws.10%29.aspx

Build A WinPE 4.0 Disc Using WADK:

Download = http://www.microsoft.com/en-us/download/details.aspx?id=30652

Build Instructions = http://www.bleepingcomputer.com/forums/t/495354/how-to-create-a-winpe-40-disc-using-wadk-for-windows-8/


After a lot of tedious surfing on the internet I eventually found the solution myself. I believe my issue was due to this bug https://bugs.launchpad.net/ubuntu/+source/grub-installer/+bug/1772900
as my installation also failed during grub install and probably is an incomplete installation.
Due to this many libraries were marked as installed but not actually installed (thus causing the missing library errors). This not only effected Qt creator but other applications like VLC, Gparted, etc.
So my solution mostly involved reinstalling all missing libraries (shown in errors and found using ldd). And eventually I got it to work.


Microsoft Corp. LifeCam Cinema not working

I found out that my computer has two usb hubs. I made sure that all ports from one hub were used for other things, and the second hub only had the camera connected. It worked around the problem, however not sure if there is a better solution.


Installation qtsampleplayer ubuntu 14.04

From the looks of it, you need the OpenGL library. Searching for that libGL.so on packages.ubuntu.com gives a few options:

libgl1-mesa-dev
fglrx[-updates]
nvidia-*[-updates]

Which package you select depends on what hardware you are using. In case you aren't using an AMD or NVidia graphics card, you can install the MESA package:

sudo apt-get install libgl1-mesa-dev


The Absolute Minimum Server Setup

What follows are the absolute minimum instructions that you need to get a basic PPTP VPN server running under Ubuntu. Clients will then be able to VPN into the server and route their internet traffic so that it goes through the server to the internet.

First, install the required software:

sudo apt-get install pptpd

Second, enable ip_forward in the kernel for IPv4 by uncommenting the associated line in /etc/sysctl.conf:

sudo sed -i -r 's/^\s*#(net\.ipv4\.ip_forward=1.*)/\1/' /etc/sysctl.conf

Reload the config file to have the change take effect immediately.

sudo -i sysctl -p

Third, enable NAT (if it isn't enabled already) so that users on the private VPN network can have their packets routed out to the internet:

OUTIF=`/sbin/ip route show to exact 0/0 | sed -r 's/.*dev\s+(\S+).*/\1/'`

sudo -i iptables --table nat --append POSTROUTING --out-interface $OUTIF --jump MASQUERADE

Enable NAT on boot from the rc.local script.

CMD="iptables --table nat --append POSTROUTING --out-interface $OUTIF --jump MASQUERADE"
sudo sed -i "\$i$CMD\n" /etc/rc.local

Note: This guide assumes you have no firewall configured on the server. If you have a firewall on the server, such as UFW, consult the relevant documentation instead.

Fourth, for each VPN user, create an account in the file /etc/ppp/chap-secrets. Replace $USER with the actual username you want to use for that VPN user.

KEY=`head -c 20 /dev/urandom | sha1sum | nawk '{print $1}'`
echo "$USER pptpd $KEY *" | sudo tee -a /etc/ppp/chap-secrets

Finally, you are ready to...


Error installing ubuntu-desktop depdendencies

I had the same problem after trying out KDE plasma and removing it without purging the ppa but the solution was to reconfigure lightdm with

sudo dpkg-reconfigure lightdm

Also, make sure you have installed lightdm and the ubuntu-unity-desktop


No access to desktop after upgrade to 18.04 LTS

could you please login and run:

sudo apt install -f

to check if the update was crashed and try to continue upgrade process.

If this is not helping could you please checkout:

cat /var/log/boot.log | grep FAILED

Maybe we get some information there.

br
chris


I assume that you have a running Ubuntu installation. This is written with 16.04 in mind but should work with some adaptions on other versions as well.

In this answers, # denotes a root shell, whilst $ denotes a normal user shell.

example.org is used as an example (D'oh) in this answer, and should be changed to suit your installation.

Installing Apache2, PHP, MariaDB and so forth

$ sudo apt install apache2 libapache2-mod-php mariadb-server php-mysql

This will install Apache2, PHP, MariaDB, and some dependencies, in addition to PHP bindings for accessing mysql.

At this stage, you should be able to access http://example.org, and see a default page:

Setting up a vhost

Vhosts are virtual hosts, which is used to serve different content for different domain names.

Start editing a new file called /etc/apache2/sites-available/01-example.org.conf in your favorite editor:

$ sudo editor /etc/apache2/sites-available/01-example.org.conf

Enter the following configuration:

<VirtualHost *:80>
        ServerName example.org
        ServerAlias www.example.org
        ServerAdmin webmaster@example.org
        DocumentRoot /var/www/html/example.org/
        ErrorLog ${APACHE_LOG_DIR}/example.org.error.log
        CustomLog ${APACHE_LOG_DIR}/example.org.access.log combined
</VirtualHost>

First, we define the primary ServerName. This is the domain used to access the site. Only one can be defined per vhost. In addition, we define a ServerAlias, in case someone enters www.example.org in their browser. This ensures that Apache replies to both names. Both names has to point to your server, either in DNS, or in /etc/hosts for local testing.

Any number of server aliases can be specified, and they do not have to contain parts of the ServerName. Thus, ServerAlias example.com would be valid.

Create the new DocumentRoot

I've placed the new documentroot in /var/www/html/example.org. This is a location that is allowed to be served by Apache in Ubuntu. If I, for instance, placed it in /srv/, I would have to include a Directory stanza for it. For now, create the webroot, fill it with some content, and activate the new config:

$ sudo mkdir /var/www/html/example.org
$ echo "This is a test" | sudo tee /var/www/html/example.org/index.html
$ sudo a2ensite 01-example.org.conf
$ sudo service apache2 reload

If you now visit http://example.org, you should see the output *This is a test". Congratulations! Your first vhost is running!

Install letsencrypt and grab certificates

To receive certificates from Let's Encrypt, we need a client. The letsencrypt package included with 16.04 is ancient, so we need a ppa for this.

$ echo "deb http://ppa.launchpad.net/certbot/certbot/ubuntu xenial main" | sudo tee /etc/apt/sources.list.d/01-certbot.list
$ sudo add-apt-key -k keyserver.ubuntu.com 8C47BE8E75BCA694
$ sudo apt update && sudo apt install certbot python3-certbot-apache

Run certbot as root:

$ sudo certbot

Select the domain you want to get a certificate for and follow the on-screen instructions by certbot. When asked if you want to redirect, select redirect if you want https only, and no redirect if you want both http and https. Today, there's almost no reason to not redirect.

Please choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access.
-------------------------------------------------------------------------------
1: No redirect - Make no further changes to the webserver configuration.
2: Redirect - Make all requests redirect to secure HTTPS access. Choose this for
new sites, or if you're confident your site works on HTTPS. You can undo this
change by editing your web server's configuration.
-------------------------------------------------------------------------------
Select the appropriate number [1-2] then [enter] (press 'c' to cancel):

Try visiting http://example.com again - it should change to show that it is secure.

Congratulations, you have not set up apache2 with a valid TLS certificate that ensures traffic is encrypted!

Install WordPress

Next step is to install some application. I've picked WordPress as example to install.

First become root by entering sudo -i. Next, change directory to your webroot, and download, unpack and change ownership to Apache's user:

$ sudo -i
# cd /var/www/html/example.org/
# wget https://wordpress.org/latest.tar.gz
# tar -zxf latest.tar.gz && rm latest.tar.gz
# chown -R www-data.www-data wordpress/

You will now have a WordPress instance at https://example.com/wordpress/ - let's go there.

The wizard tells you that you need a MySQL table, user, and password. Let's make them!

By default, Ubuntu will use unix socket authentication for MariaDB. Thus, to log in to MariaDB as root, you have to use

sudo mysql -u root

or run the command in a root shell (for instance sudo -i). This will log you in without entering any password

# mysql -u root
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 32
Server version: 10.0.33-MariaDB-0ubuntu0.16.04.1 Ubuntu 16.04
Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> CREATE DATABASE wordpress_db;
Query OK, 1 row affected (0.00 sec)
MariaDB [(none)]> GRANT ALL PRIVILEGES ON `wordpress_db`.* TO 'wordpress_user'@'localhost' IDENTIFIED BY 'passw0rd';
Query OK, 0 rows affected (0.01 sec)
MariaDB [(none)]> exit

Fill in the username wordpress_user, databasename wordpress_db and password passw0rd in WordPress' configuration. That's basically it; the rest is about following WordPress' installation guidelines.

To add more vhosts, simply start from "Setting up a vhost".

Further reading

Apache modules - disabling and enabling
Running certbot from cron to autorenew certs
Guide for mod_rewrite, a commonly used Apache module
File permissions for /var/www/html
Certbot user guide


System monitoring with email notifications

I'll give you a small list of tools - while I would personally recommend Nagios simply as I am used to it. It comes with a big user base, good collection of plug-ins etc - but I've heard good things about Icinga as well.

Be aware that setting up Nagios or Icinga will take some time until you have a perfectly working setup which covers / monitors all your existing services. The start is most likely not that easy, but once you got it working it's a lovely setup which will notify for all your defined services if states do change so something which is reportable/defined as critical

Project names & links

First of all - a quick overview:

Client & Server Setups

Nagios
Munin
Icinga
Spiceworks
Monit
Cacti
Zabbix

Other interesting software

Smokeping (limited function-wise)

Single host setups

Glances
Monitorix

More Information

About Nagios

Wikipedia writes

  Nagios /ˈnɑːɡiːoʊs/, now known as Nagios Core, is a free and open
  source computer-software application that monitors systems, networks
  and infrastructure. Nagios offers monitoring and alerting services for
  servers, switches, applications and services. It alerts users when
  things go wrong and alerts them a second time when the problem has
  been resolved.

Example image - showing 1 of several views you have:

Here is a good AskUbuntu post about How to Install Nagios.
Nagios Exchange offers a huge collection of plugins, addons, documentation, extensions, and more.

About Munin

Wikipedia writes

  Munin is a free and open-source computer system monitoring, network
  monitoring and infrastructure monitoring software application. It
  offers monitoring and alerting services for servers, switches,
  applications, services, etc. It alerts the users when things go wrong
  and alerts them a second time when the problem has been resolved

Example Image

About Icinga

Wikipedia writes

  Icinga is an open source computer system and network monitoring
  application. It was originally created as a fork of the Nagios system
  monitoring application in 2009.

  Icinga is attempting to get past perceived short-comings in Nagios'
  development process, as well as adding new features such as a
  modern Web 2.0 style user interface, additional database connectors
  (for MySQL, Oracle, and PostgreSQL), and a REST API that lets
  administrators integrate numerous extensions without complicated
  modification of the Icinga core.

Example Image showing 1 of several views:

About Spiceworks

Wikipedia writes:

  Spiceworks is a professional network for the information technology
  (IT) industry that is headquartered in Austin, Texas. The
  company was founded in January 2006 by Scott Abel, Jay Hallberg, Greg
  Kattawar, and Francis Sullivan to build IT management software.

  Spiceworks is an online community where users can collaborate and seek
  advice from one another and also engage in a marketplace to purchase
  IT-related services and products. The network is estimated to be
  used by more than six million IT professionals and 3,000 technology
  vendors.

About monit

Wikipedia writes

  Monit is a free, open source process supervision tool for Unix and
  Linux. With Monit, system status can be viewed directly from the
  command line, or via the native HTTP(S) web server. Monit rose to
  popularity with Ruby on Rails and the Mongrel web server,[citation
  needed] because a tool was needed that could manage the many identical
  Mongrel processes that needed to be run to support a scalable Ruby on
  Rails site, and Monit was fairly uniquely suited for the needs of the
  Ruby on Rails community. Many popular Rails sites have used Monit,
  including Twitter and scribd.

About Cacti

Wikipedia writes:

  Cacti is an open-source, web-based network monitoring and graphing
  tool designed as a front-end application for the open-source,
  industry-standard data logging tool RRDtool. Cacti allows a user to
  poll services at predetermined intervals and graph the resulting data.
  It is generally used to graph time-series data of metrics such as CPU
  load and network bandwidth utilization. A common usage is to
  monitor network traffic by polling a network switch or router
  interface via Simple Network Management Protocol (SNMP).

  The front end can handle multiple users, each with their own graph
  sets, so it is sometimes used by web hosting providers
  (especially dedicated server, virtual private server, and
  collocation providers) to display bandwidth statistics for their
  customers. It can be used to configure the data collection itself,
  allowing certain setups to be monitored without any manual
  configuration of RRDtool. Cacti can be extended to monitor any
  source via shell scripts and executables.

About Zabbix

Wikpedia writes:

  Zabbix is enterprise open source monitoring software for networks and
  applications, created by Alexei Vladishev. It is designed to monitor
  and track the status of various network services, servers, and other
  network hardware.

  Zabbix uses MySQL, PostgreSQL, SQLite, Oracle or IBM DB2 to store
  data. Its backend is written in C and the web frontend is written in
  PHP. Zabbix offers several monitoring options


How can I uninstall MongoDB and reinstall the latest version?

There are two sets of packages for MongoDB; the standard Ubuntu packages, and a set published by 10gen themselves. The standard packages are out of date, especially for older releases of Ubuntu, so it is probably a good idea to set yourself up to install from the 10gen repositories.

The error message you quote suggests that you might have already tried this, since version 2.0.1 is not a standard Ubuntu package. I suggest that first of all, you completely uninstall Mongo and clean up your system. If you have existing data that you want to keep, you could take a backup of it. By default, it is stored in /var/lib/mongodb. So if you want to take a backup, take a copy of the files from there and keep them in a safe place.

Uninstalling existing MongoDB packages

Since I'm not 100% what you've got installed, I suggest the following to make sure everything is uninstalled:

sudo apt-get purge mongodb mongodb-clients mongodb-server mongodb-dev
sudo apt-get purge mongodb-10gen
sudo apt-get autoremove

Some of those commands may fail, depending on what packages you actually have installed, but that's okay.

This should also remove your config from /etc/mongodb.conf. If you want to completely clean up, you might also want to remove the data directory /var/lib/mongodb, so long as you backed it up or don't want it any more.

If you've installed by building from source or using the 10gen binary distributions, then you'll need to manually uninstall and clean up from wherever you put the binary files, config and data files.

Installing the 10gen MongoDB packages

Follow the 10gen instructions for adding their repository:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10

Edit /etc/apt/sources.list, delete any lines you have already added for Mongo, and add the following single line (since 11.10 uses upstart) at the end:

deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen

Note that if you add this repository using the Software Center, it will automatically add a deb-src entry, which will break apt-get. So you will need to edit your sources list by hand to add only the above line.

Then to install, run:

sudo apt-get update
sudo apt-get install mongodb-10gen

Checking your install

Installing the packages should automatically start up the MongoDB server. So you should be able to run the client from the command line:

mongo

which should successfully connect to the test database. You can quit by typing exit.

If that fails, please update your question with further details, including the output of trying to connect and attaching your /var/log/mongodb/mongodb.log file.


How to turn Ubuntu into kiosk mode from a running session?

You might be better off with a separate login for a visitor.  I've written up a howto of sorts on Ubuntu Forum under Ubuntu Kiosk with Ubuntu 12.04 and XFCE.


For a windows guest, Ubuntu host system, set the VM to use ALSA on the host and the VM soundcard to Intel HD.


awk: print only lines that come after specific guard line pattern

Regex-oriented

$ awk '/^\|m\|/ {/\|head1\|/ ? p=1 : p=0} p' example_file.txt
|m|head1|
|3,4,6|
|3e,2,23|
|m|head1|
|dljs,wqpw,2;a|
|dllw,w1p,1q;a|

or field-oriented

$ awk -F'|' '$2 == "m" {$3 == "head1" ? p=1 : p=0} p' example_file.txt
|m|head1|
|3,4,6|
|3e,2,23|
|m|head1|
|dljs,wqpw,2;a|
|dllw,w1p,1q;a|

p is effectively a print flag.

Awk programs consist of pattern {action} pairs, in which action is executed on a record if pattern evaluates true (non-zero). You can omit pattern - in which case {action} is evaluated for every record - or omit {action} in which case awk applies the default pattern, which is to print the record: the latter is what's happening here.


How to install CLang using precompiled binaries?

Perhaps the easiest way to install this archive is to use the following 2 commands:

wget http://llvm.org/releases/3.2/clang+llvm-3.2-x86_64-linux-ubuntu-12.04.tar.gz
sudo tar -C /usr/local -xvf clang+llvm-3.2-x86_64-linux-ubuntu-12.04.tar.gz --strip 1

This works nicely on my 12.04 VM and gives the following:

andrew@ithaca:~$ clang --version
clang version 3.2 (tags/RELEASE_32/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
andrew@ithaca:~$

This installation takes away the ability to easily remove the package with standard Ubuntu package management tools but the following single command will remove all of the installed files:

sudo rm -v /usr/local/bin/{clang*,llc,lli,llvm*,macho-dump,opt,bugpoint,c-index-test} && \
sudo rm -rfv /usr/local/docs/llvm && \
sudo rm -rfv /usr/local/include/{clang,clang-c,llvm,llvm-c} && \
sudo rm -v /usr/local/share/man/man1/clang.1 && \
sudo rm -rfv /usr/local/lib/clang && \
sudo rm -v /usr/local/lib/{BugpointPasses.so,libclang*,libLLVM*,libLTO*,libprofile_rt*,LLVM*}

Tested on my own system and it removes the files cleanly...


Clarifying the claim of "full Ubuntu desktop OS" support on the Ubuntu Edge

My understanding is that the Edge is designed to work with Ubuntu Touch and Android as a handset, and when connected to a monitor using HDMI then you see the Ubuntu desktop experience, that is, the phone OS becomes the full Ubuntu Desktop OS on the monitor.

I can't speak for Canonical, that however is my understanding.


Unable to locate package libffi and libffi5-dev on Ubuntu 12.04.4 through apt-get

The packages are be called libffi6 and libffi-dev.

Package names can be searched on http://packages.ubuntu.com/

For searching packages use apt-cache search.
Example in your case following can help you:

$ apt-cache search libffi
libffi-dev - Foreign Function Interface library (development files)
libffi6 - Foreign Function Interface library runtime
libffi6-dbg - Foreign Function Interface library runtime (debug symbols)
ffindex-dbg - simple index/database for huge amounts of small files (debug)
libbfio-dbg - Library to provide basic input/output abstraction (debug)
libffindex0 - library for simple index/database for huge amounts of small files
libffindex0-dev - library for simple index/database for huge amounts of small files (development)
libjffi-java - Java Foreign Function Interface
libjffi-jni - Java Foreign Function Interface (JNI library)


Error 'struct android::MediaRecorderBase' has no member named 'pause'

In order to get past this in the compilation, I introduced a bug. Changing

return recorder->pause();

to

return NO_INIT;

Allows compilation to continue, but that is by no means a sustainable "fix".


Synaptics Touchpad 3 finger swipe for Forward/Back

In ubuntu you have 2 finger scroll.
Along with that you have an option of "Horizontal scroll", it will work with the 2 finger scroll.


No, its available.
first update sudo apt-get update then try sudo apt-get install texmaker

If still doesn't work, then try below
http://installion.co.uk/ubuntu/xenial/universe/t/texmaker/install/index.html


Gnuplot display on Bash on Ubuntu on Windows 10

(1) Install Xming.
(2) execute export DISPLAY=:0 nameOfProgram (for example export DISPLAY=:0 gnuplot


1st problem:  GRUB wasn't installed correctly.  You should install it on your computer.

This is from my other answer.

  To reinstall GRUB:

  Boot from a Ubuntu Live CD/USB
  Install boot-repair using these commands:

  sudo add-apt-repository ppa:yannubuntu/boot-repair

  sudo apt-get update

  sudo apt-get install -y boot-repair

  boot-repair

  Click "Recommended repair". This will reinstall GRUB in the MBR of the
  adequate disk(s). Then reboot.

2nd Problem:  Probably a Driver problem.  Find an External Keyboard and plug it in your computer.  It should all work.

To fix it permanently, try installing the proprietary Driver for it.  Go to the Dash, search for jockey, then click on Additional Drivers.  A Windows should open.  Find your keyboard there and click "Activate".

Good Luck!  But next time it would be preferable to separate the Question if it contains 2 or more problems in it.


Can I control where default focus is for an application?

To do that I would need to write script in tools like AutoHotKey(its a windows tools, but there are linux # counterpart)


You can also use Super-W (Spread mode), to zoom out on all windows in all workspaces.


Basic areas to edit as per your wish from the arc-dark theme css file are below..
.search-entry {
  width: 320px;
  padding: 7px 9px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  background-color: blue; } /* edited this line  */

.calendar {
background-color: blue; /* added this line */
  margin-bottom: 1em; }


Make a snap install as the default app for a file type? (Eg. Sublime from Ubuntu Software)

I'm not sure which you want but Main Menu (alacarte) says that the application menu is using /var/lib/snapd/desktop/applications/sublime-text_subl.desktop. Also (by searching for desktop in /snap/sublime-text/current) I discovered that subl.desktop is at /snap/sublime-text/current/meta/gui and sublime-text.desktop is at /snap/sublime-text/current/opt/sublime_text/sublime_text.desktop. Does that resolve your problem? Perhaps you could write your own answer with this information so that anyone who comes across this problem can use your full instructions to resolve it? :)


Ubuntu 18.04 Steam games frame rate drop

After all this troubleshooting, I concluded that it is indeed overheating as suggested by Alan and Martin in Ubuntu Podcast Season 11 Episode 26. In Ubuntu 18.04 the thermald Daemon is enabled by default for maintaining the CPU Temperature. This should not impact generally as the danger thresholds are quite high. However in my particular case it was throttling the CPU to lowest frequency based on CPU Temperature, Which is expected. I think it is a bug with thermald. I have since tried thermald in other distributions on the same hardware and i could not reproduce the bug. So i decided to come back to Ubuntu again and this time disable thermald. It is now fixed. Thanks a lot to the ask Ubuntu community for their support and special shout out to Alan Pope and Martin Wimpress.

Solution:-

sudo systemctl disable thermald && sudo reboot.

P.S Note, Disabling thermald will let the temperatures to be unchecked, Please use this with caution. Last think we want is to fry someone's hardware. Thermald is there for a reason. Unless you are affected by this issue i do not recommend this solution.

Ever since Ubuntu Podcast Season11 Episode 28, Where Alan and Martin again read my answer and suggested me to file a bug report against thermald, I have been investigating the reasons for CPU Throttling in greater detail. I have seen occasional Throttling even after I disabled thermald. Courtesy of the gnome shell extension cpufreq, I was able to see that irqbalance was throttling my CPU and causing the Frame rate drops.

To prove this I enabled thermald and removed irqbalance package. Now, I get even higher FPS and there is no throttling at all.

I have been looking at the package irqbalance

Helpful Resource for irqbalance :-  http://konkor.github.io/cpufreq/faq/

It states :-

irqbalance is not a part of the Linux kernel

It designed for special server configurations with many RAID/HDD/SDD controllers.

Any user-space application (like games, compilation…) can not get 100% of CPU resources on any thread because it’s always sharing this resources with IO tasks.

I think I can now consider this resolved

sudo apt remove irqbalance

This is the actual solution!


When I try to save any file, it gives me "Permission Denied"

Well, normally you don't have permissions to modify /etc/default/grub, but you can do it with root privileges:

sudo -i                   #to get root permissions
gedit /etc/default/grub   #to edit /etc/default/grub

If your gedit still doesn't open, try to reinstall it (using sudo apt-get install --reinstall gedit command) or use nano instead (nano /etc/default/grub).


How to make use of RuntimeService in Ubuntu under UEFI boot mode?

These are accessible from the kernel context, so you can't easily do this from userspace. You can read the UEFI variables via the /sys/firmware/efi/vars but the data is in binary format, so one needs to decode this.  The firmware test suite (fwts) has a tool to do this, use:

sudo apt-get install fwts
sudo fwts uefidump -


First time trying to install, keyboard and mouse not working

I came across the same problem mentioned here - when i installed ubuntu 18.04 LTS on MSI Gaming Laptop GL63. I had to turn off acpi=off to get my mouse & keyboard working.
For those who face the same problem in future :
follow the steps to to turn off acpi etc.
https://medium.com/@gentra/how-to-install-ubuntu-16-04-on-msi-ge62-6qc-ae4f30f50465


Is there a way to scroll back in terminal to a specific command?

You can pipe the output of said program to a pager program or a file that you can scroll through at your leisure.

To the less pager: the-program --args 2>&1 |less

To a file: the-program --args 2>&1 >> output.log


how to install flash plugin on ubuntu 14.04 LTS 64-bit version

The following works for me! I was trying to install the wireless driver when this error came. Had to delete the files and also the lock files.

sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
cd /var/lib/dpkg/updates
sudo rm *
sudo apt-get update

and then you can run your apt-get install to whatever package you want to install


bash: /usr/bin/locale-check: No such file or directory error after i downgraded from ubuntu 18.10 to 18.04

I had this same issue after downgrading 18.10 to 18.04

  -bash: /usr/bin/locale-check: No such file or directory

In downgrading I had to create this file:
/etc/apt/preferences.d/preferences
to force it to downgrade, which was preventing some packages from being downloaded
after removing it and updating/upgrading:

  Note: you may have created a different preferences file so your file below might be named differently

sudo rm /etc/apt/preferences.d/preferences
sudo apt update && sudo apt upgrade

That fixed it for me! :)


14.04 Share Internet with 2 Network Cards

The first thing to do is do enable IP forwarding. This is done either by using

echo "1" > /proc/sys/net/ipv4/ip_forward

Then, we will add a rule telling to forward the traffic

iptables -A FORWARD -i eth1 -o eth0 -j ACCEPT
iptables -A FORWARD -i eth0 -o eth1 -m state --state ESTABLISHED,RELATED -j ACCEPT

and finally, we ask IPtables to masquerade

iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

Edit 1

Install

sudo apt-get install isc-dhcp-server

configure

sudo nano -w /etc/dhcp/dhcpd.conf

# Sample /etc/dhcpd.conf
# (add your comments here)
default-lease-time 600;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers 192.168.1.254;
option domain-name-servers 192.168.1.1, 192.168.1.2;
option domain-name "mydomain.example";

subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.10 192.168.1.100;
range 192.168.1.150 192.168.1.200;
}

restart service

sudo service isc-dhcp-server restart


gnome-shell: Error while loading thumbnail

gnome-shell is crashing all over the place. gnome-shell extensions are the probable cause.
The /usr/share/gnome-shell/extensions/*gcampax.github.com extensions are suspect, and should be removed by using Tweaks or Extensions apps. Leave the following alone...
drwxr-xr-x  2 root root 4096 Jan 22 08:29 desktop-icons@csoriano
drwxr-xr-x  3 root root 4096 Nov 19  2020 ubuntu-appindicators@ubuntu.com
drwxr-xr-x  3 root root 4096 Nov 19  2020 ubuntu-dock@ubuntu.com

Open the gsconnect settings and tell me the version number.
Monitor syslog to see if errors continue, using...
grep -i gnome-shell /var/log/syslog*


can i use an ubuntu live usb/cd without damaging my windows 8 pc?

Yes, aslong as you don't install ubuntu/edit partitions you are fine.
The live version just loads itself into your ram, and runs. You can however install programs on the ubuntu live version, it will be written to your ram too. Just don't install ubuntu/repartition your harddrive.


The answer to your first question is yes, because I am doing it now.
I would guess it's probably a Microsoft design decision to encourage adoption of UEFI, rather than a technical reason.  UEFI allows Secure Boot and similar stuff that is more important to MS than to its customers.
I don't know of a way to let windows boot from GPT with a legacy BIOS, but there are a couple of ways you can work around the restriction.

One is to run Windows in a VM under Ubuntu.

The other is to run Windows from a second hard drive, formatted as MBR. Just install Ubuntu on the GPT drive as a single boot system, Windows on the MBR drive as a single boot system, and use the BIOS to pick which one to boot from (on my PC, you just hit F12 during the POST to get a boot device menu).  It's a lot easier than mucking around with Microsoft's byzantine BCD scheme.  You only need about 30GB for a Win 8.1 pro system partition, and you can buy much bigger drives than that for very cheap.  If necessary, you can still have an NTFS partition on your big drive for your Windows data.


It works when I put the -lGLU -lGL -lglut to the end of the gcc call. I'm still quite sure that this worked in the past.


JPEG files default to "bless" (Hex Editor), not to "eog" (Image Viewer)

This is a known bug in your Ubuntu version. The bug report contains following workaround:

  right click the file in question
  select PROPERTIES all the way down in the popup menu
  go to "open with" tab
  select an application that should be used by default
  profit every time you double click

(This has to be done only once per file type.)


Password protect application without using sudo

You could do that with a simple bash script and Zenity. As stated, this shouldn't be used unless you don't care about security.

#!/bin/sh

#Create the Zenity Window and show it
OUTPUT=$(zenity --password "Password")

#Compare the user input with your hardcoded password
if [ "$OUTPUT" = "abc1234" ]
then
    #Command to launch the application from the CLI. Replace with your own command
    /usr/bin/nautilus
else
    #Throw an error
    zenity --error --text "Password incorrect. Terminating"
fi

Save this to a .sh file, give it +x permissions and you are ready to go, just replace the command accordingly.


Can't find any custom themes with Gnome Tweak tool

I assumed you downloaded theme from gnome-look.org
I try now this theme.
https://www.gnome-look.org/p/1429633/

download above zip archive then extract by unzip then mv to /usr/share/themes
reopen Tweaks if you already launched.


Netflix-desktop no longer works after update

The new version of Netflix Desktop moves the profile location from ~/.netflix-desktop to ~/.wine-browser.  You might try renaming/deleting the ~/.wine-browser folder and relaunching netflix-desktop (or redbox-desktop) so that it creates a new profile.


AH00051: child pid XXXXX exit signal Segmentation fault (11), possible coredump in /etc/apache2

Check the value assigned for memory_limit in php.ini
Check also memory allocation suffix:

correct:

memory_limit = 128M

not correct:

memory_limit = 128

https://unix.stackexchange.com/a/199562


I have a fairly recent clean install of 11.10 with Gnome. One thing I've noticed with new installs is that the alert volume (separate from the normal volume) in system settings => sounds => sound effects seems to be set to minimum by default.  This caused Skype sounds to not work.

I raise this, and Skype works correctly.  the alert sounds all work correctly if I click on them in the sound dialog box.  However, if a question alert pops up, such as one asking me if I want to save a file, there is no sound.

I discovered that it is not a sound problem at all; I discovered this by going into the system settings => universal access => hearing tab, and trying to enable "visual alerts".  I tried this, and pressed the "Test flash" button, and nothing happened.  So, the event is not being fired, it seems.

Then, I discovered that it is a Compiz problem.  Changing to Metacity (running metacity --replace) makes it all work as expected.  Changing back to Compiz (compiz --replace) makes it stop working again.

The results can be seen either in the Universal Access settings when pressing the test button, or in a terminal by typing echo -e "\a", which should make the chosen alert sound.


Is there a file size limit transferring files to an Ubuntu box via SMB from Windows 10?

Windows uses a temporary location to transfer files and so does Ubuntu, Please check the windows temporary folder location and the /tmp directory on the ubuntu box. Try to free up some space and retry the operation.


Problems downloading playlist using youtube-dl

I did had this problem.. Try out this way...

Remove the old version of youtube-dl

sudo apt-get remove -y youtube-dl

Download the latest version from the official website

sudo wget https://yt-dl.org/latest/youtube-dl -O /usr/local/bin/youtube-dl

Change the permission of the downloaded file

sudo chmod a+x /usr/local/bin/youtube-dl

Check out this link for more details.

Hope this helps you..


The volume "filesystem root" has only 0 bytes disk space remaining?

This is almost certainly due to being actually out of space on the root filesystem.  If you have lots of free space on your drive, then you likely have a separate filesystem for your user data.  This is a common setup.

To find the amount of free space on all your partitions, run the "disk free" command, df.  You do not need to be root.  You'll get something like the following:

Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda1              9614116   8382396   1134048  89% /
none                   1541244       284   1540960   1% /dev
none                   1546180      4804   1541376   1% /dev/shm
none                   1546180       372   1545808   1% /var/run
none                   1546180         0   1546180   0% /var/lock
none                   1546180         0   1546180   0% /lib/init/rw
none                   9614116   8382396   1134048  89% /var/lib/ureadahead/debugfs
/dev/sda3             32218292  12333212  19885080  39% /home

As you can see, I have a separate root filesystem (the first one listed) and user data filesystem (the last one listed), and my root partition is pretty close to full.  If your df output shows you that your root filesystem is actually full, you need to delete some files (careful which ones!), or resize your partitions.

A useful terminal command for finding what's eating up all the space is the "disk usage" command, du.  Invoked without any parameters, it starts listing the sizes of every file in the current directory, and in every directory below.  More useful for tracking down usage is in your scenario is sudo du -s -h -x /*, which will give you the total amount of space used (-s) by each file or directory at the top of your root filesystem (/*), without looking at other filesystems (-x), in human-readable numbers like "124M" (-h).  Don't worry if it takes a while to complete, it will take on the order of minutes the first run through.

Don't delete files without first knowing what they are, of course.  But, in general, you won't break your system if you delete files in the following directories:

/tmp (user temp data -- these are commonly all deleted every reboot anyway)
/var/tmp (print spools, and other system temporary data)
/var/cache/* (this one can be dangerous, research first!)
/root (the root user's home directory)

In addition to the locations above, the following locations are common culprits:

/opt (many third-party apps install here, and don't clean up after themselves)
/var/log (log files can eat up a lot of space if there are repetitive errors)

So, check those first.  If it turns out that things look correct and your root partition is simply too small, you'll need to resize your partitions to fit.  There are a myriad of ways to do that, but likely the easiest is to boot from an Ubuntu LiveCD (get it from the Ubuntu site's download page) and run the GNOME partition editor gparted.  You may have to install the gparted package first (from within the LiveCD environment, run sudo apt-get install gparted or use the software center).  In any case, it is a graphical utility that will allow you to right-click on the partition and select "resize".

N.B. -- do not have any operating systems hibernated as you resize partitions, or it will either not work, or do terrible things to your hibernated OS.


Open a terminal:

sudo apt-get purge gnome-screensaver

sudo apt-get install xscreensaver xscreensaver-gl-extra xscreensaver-data-extra

Create an autostart file:

sudo gedit /etc/xdg/autostart/screensaver.desktop

Copy and paste the following into it:

[Desktop Entry]Name=ScreensaverType=ApplicatonExec=xscreensaver -nosplash

Now reboot:

sudo reboot


Ubiquity mounts wrong ESP during install

Two other workarounds occur to me, in addition to the one provided by Brady Dean:

Workaround 1

Before running the installer, change the GPT type code of the EFI System Partition (ESP) you do not want to use to something other than the code for an ESP. Details of how to do this depend on the partitioning software you use:

In gdisk, sgdisk, or cgdisk, this would mean changing it from EF00 to just about anything else. (0700 will make it visible as a normal FAT partition to Windows.)
In GParted or parted, remove the "boot flag" from the ESP.

Run the installation. With luck, it won't flake out and insist on finding an ESP on /dev/sda, but will instead notice the one on /dev/sdb and proceed normally.
After installing Ubuntu, reverse step #1 -- restore the normal "ESP" type code to the ESP on /dev/sda. Forgetting this step may have few or no negative consequences, but depending on the type code you use, Windows may start showing it as a regular partition; and if you need to re-install Windows (or some other OS), it may be important that the type code be correct.

Note that I've never tried this approach, so I can't guarantee it will work. If it doesn't work, then that information should be added to the bug report referenced in the question.

Workaround 2

Launch the Ubuntu installer in its "try before installing" mode.
Open a Terminal window.
Type ubiquity -b. The installer program should launch, but it will do so in a way that will cause GRUB to not be installed.
Finish the installation normally.
When you're done, Ubuntu will be installed, but won't be bootable. There are a number of ways to make it bootable. The two easiest are:

rEFInd -- This tool, which I maintain, is an alternative to GRUB. You can get a USB flash drive version from its downloads page and use that to boot Ubuntu the first time. You can then edit /etc/fstab to identify the ESP you want to use, mount it at /boot/efi, and install either rEFInd (via a Debian package or PPA) or the regular grub-efi package.
Boot Repair -- This popular tool, described in more detail here, can install GRUB. I'm not sure offhand, though, how to tell it to use an ESP on /dev/sdb rather than one on /dev/sda. You might need to use type code trickery, as in the preceding workaround; or perhaps just setting up /etc/fstab, as with rEFInd, would do the trick.

I frequently use the ubiquity -b method of installing on computers that multi-boot many distributions, since managing GRUB in such cases is a bit awkward at best and totally unworkable at worst; rEFInd does a much better job with such installations. Of course, this is a somewhat different problem than that of getting all your stuff installed on /dev/sdb rather than /dev/sda, but the same solution should work.


The real problem is the fact that the default repository is not there.

this is an archive that works still: http://old-releases.ubuntu.com/ubuntu/.

here is what my cmd looks like

sudo ./rootstock --fqdn myhostname --login ubuntu --password temppwd --imagesize 2G -m http://old-releases.ubuntu.com/ubuntu/ -d jaunty --seed dpkg-dev,debhelper,libgtk2.0-dev,gnome-settings-daemon-dev,libgconf2-dev,libglade2-dev,libxklavier12-dev,libgnomekbd-dev,libasound2-dev

so just add -m http://old-releases.ubuntu.com/ubuntu/ and it works great!


Cannot upgrade from Ubuntu 14.04 to 16.04

I solved: it was very useful to me this other answer in pointing out where packages were broken during upgrade.

I removed some packages reported here and from time to time re-trying do-release-upgrade util it succeded.

Another useful command to me was dpkg --get-selections | grep deinstall: I've uninstalled everything reported by this command.


First open a terminal with Alt-Ctl-T.

Enter the command:

mount

and make a list of which devices are in use.

Enter the following command to keep an eye on the syslog (log of what is happening on your system from the operating system point of view).

tail -f /var/log/syslog

Now plug in and remove the flash drive. Make sure of what device it is, and that it's not one of the ones you saw mounted above. It may be something like /dev/sdc. Also see if you see the same device with a number after it, e.g. /dev/sdc1. If you see that your flash drive is being seen by your system.

Assuming it is not you can format the drive. If /dev/sdm was the drive your flash drive becomes, plug it in once again and enter:

sudo fdisk /dev/sdm

Now you can partition the device and format those partitions as you desire.

If nothing is noted on /var/log/syslog as you plug in the drive and unplug it, it is, indeed, unusable with Ubuntu.


CZUR Support verifying that no linux support for this product exists from them.


Assuming the two kernels you will want to keep are:

linux-headers-4.10.0-38 linux-headers-4.10.0-38-generic
linux-headers-4.10.0-40 linux-headers-4.10.0-40-generic

So delete the others out of /boot to free space:

sudo rm /boot/*4.10.0-28*
sudo rm /boot/*4.10.0-37*
sudo rm /boot/*4.4.0-103*
sudo rm /boot/*4.4.0-104*
sudo rm /boot/*4.4.0-98*
sudo rm /boot/*4.10.0-28*
sudo rm /boot/*4.10.0-38*
sudo rm /boot/*4.4.0-103*
sudo rm /boot/*4.4.0-98*

This will save you about 500 MB in /boot but doesn't remove the kernel packages fully. To do that use:

sudo apt autoremove


Can you install from one partition to another on the same SSD

Installing Ubuntu from a Menuentry Boot

Installation onto your hard drive is possible from a booted ISO file. A CD/DVD is not required. An Internet connection is recommended but not required. Without a connection packages installed from the ISO will not be updated and additional packages which may be necessary, such as video drivers, can not be downloaded. An Internet connection should be available after booting the ISO file from the GRUB menu.

To Install Ubuntu from an ISO Menuentry, use the procedures previously discussed to:

1.Download the appropriate ISO.

2.Move it to the desired location.

3.Create the GRUB 2 menuentry and update the GRUB configuration file.

4.Boot the ISO from the GRUB menu.

Note: If you have a large amount of RAM you may be able to use the toram option. This will allow the system to boot into memory and permit automatic unmounting of the isodevice during the installation. If you would like to try this option:

Press 'e' to edit the menuentry and add toram to the end of the menuentry's linux line:

linux /casper/vmlinuz boot=casper iso-scan/filename=/<ISO-name.iso> noprompt noeject toram --

If /isodevice can be unmounted by the installer at the prompt, the installation will continue.

If you have insufficient memory and start the installation, the installer will be unable to unmount /isodevice, the install will fail and the system may freeze.

Since edits to the menuentry are not persistent, if the toram option fails, simply reboot and use the existing menuentry without editing it.

Once booted to the Ubuntu LiveCD desktop:

The /isodevice must be unmounted for a successful installation. If /isodevice cannot be unmounted by the installer, the installation will fail unless the user forces its unmounting.

If the toram option was not used or was unsuccessful, unmount /isodevice:

Open a terminal and run the following command:

sudo umount -l -r -f /isodevice

Start the installation procedure by double-clicking the "Install Ubuntu" icon.

Source


Do you use the Startup Disk Creator? At the end this program tries to install the bootloader on the USB-stick, and asks for root permission.

Is that what you mean?

I found that when I had the file manager (Nautilus) open, the program failed, or disappeared without installing the bootloader.

(I guess it's because Nautilus is locking the USB stick).


Trying to convert MKV to MP4 with avconv, failing

Get needed software

sudo apt-get install gpac mkvtoolnix

Extract video and audio from matroska file

First you need to check what tracks the matroska file contains with

mkvmerge --identify video.mkv

File 'video.mkv': container: Matroska
Track ID 1: video (V_MPEG4/ISO/AVC)
Track ID 2: audio (A_AC3)

Then extract video and audio according to their tracks with:

mkvextract tracks video.mkv 1:video.h264 2:audio.ac3

Extracting track 1 with the CodecID 'V_MPEG4/ISO/AVC' to the file 'video.h264'. Container format: AVC/h.264 elementary stream
Extracting track 2 with the CodecID 'A_AC3' to the file 'audio.ac3'. Container format: Dolby Digital (AC3)
Progress: 100%

Mux audio and video into mp4 containter

MP4Box -fps 24 -add video.h264 -add audio.ac3 video.mp4

AVC-H264 import - frame size 1280 x 720 at 24.000 FPS
Import results: 31671 samples - Slices: 5672 I 125048 P 122648 B - 32288 SEI - 4936 IDR
AC3 import - sample rate 48000 - 6 channels
Saving to video.mp4: 0.500 secs Interleaving

I had to add -fps 24 option because MP4Box didn't detect video fps correctly. Depending on usage AC3 audio track should be re-encoded into something else before muxing.

Now you have remuxed streams from matroska container into mp4 container without losing any quality.

EDIT:
MP4 doesn't officially support AC3 audio so the audio track should be converted into a supported format (eg. AAC, MP3) if you want the file to be playable with something else than VLC.


well few days back i have the same problem may be these two images might help you
just do what have been done in the pics


Auto-correct in all applications in Ubuntu

Ubuntu uses a package called aspell to indicate the mistyped but it doesn't provide  autocorrect.

man aspell

  aspell is a utility program that connects to the Aspell library so
  that
         it can function as an ispell -a replacement, as  an  independent  spell
         checker,  as a test utility to test out Aspell library features, and as
         a utility for managing dictionaries used by the library.

   The Aspell library contains an interface allowing other programs direct
   access  to  its  functions  and  therefore reducing the complex task of
   spell checking to simple library calls.  The default library  does  not
   contain  dictionary  word  lists.  To add language dictionaries

But you have to notice that some apps are using aspell common dictionary such as Evolution, Abiword .... While some others use their own dictionary, such as LibreOffice, which uses libreoffice-l10n-[language code] and language-support-writing-[language code] packages.

To install a language dictionary

sudo apt-get install aspell-[lan code]

For example to install Spanish dictionary

sudo apt-get install aspell-es


VLC installation problem on Ubuntu 14.04 LTS

This is worked for me

"

This worked for me assuming we are from Pakistan we might be facing the same problem

hit alt + f2 type additional drivers open the app, this will open the window software & updates go to the ubuntu software tab below change the "download from", I selected the main server. close it

hit ctrl+alt+t (open the terminal) type and enter:

sudo apt-get install vlc

download will begin if its done you can open it by typing:

vlc &

else run

sudo apt-get -f install

which I had to after that, run the

sudo apt-get install vlc

Now it installed for me again to open it you can enter

vlc &

or simply go search it in the home menu

Hope this helps.
"


Basically, you turn on the "autohide" feature of the panel, and then delay the autohide to essentially eternity - that way, it stays up all the time, but the desktop floats underneath it. And voila! A wingpanel!

To do that back in the days of that link, you used gconf. However, now we use dconf. But in fact, I've found there's an even quicker way, just using the terminal:

dconf write /org/mate/panel/toplevels/top/hide-delay 2147483647

That number represents the maximum time allowed for a delay... and it's ages, so works fine


How do I fix CUDA breaking after suspend?

I had the same problem on ubuntu. Recently switched to Archlinux. Followed this tip on the wiki and it has fixed this problem on my gtx1650 laptop.
This way one can activate a new power management tool. See nvidia documentation.
My steps:

Create /etc/modprobe.d/nvidia-power-management.conf with options nvidia NVreg_PreserveVideoMemoryAllocations=1 NVreg_TemporaryFilePath=/tmp.
Update initramfs. On ubuntu that is via update-initramfs -u
systemctl enable nvidia-suspend.service. I think you have to manualy install the systemd service files first on Ubuntu. See this post
Reboot


PHP.ini display_errors Off but Errors Still Outputted to Browser

I have now managed to fix this issue after a few hours of looking through config files.

It turned out that I had this code in phpmyadmin.conf in /etc/apache2/conf-enabled/:

<IfModule mod_php5.c>
    php_admin_flag engine on
    php_admin_value display_errors on
    php_admin_value error_reporting 30711
    php_admin_flag ini_set on
</IfModule>

This was overriding php.ini for all websites.

As soon as I removed this code it picked up the value from php.ini.

Posting this in case it happens to anyone else as this was not the same solution as posted elsewhere for this problem which was mostly due to editing the commented out version of display_errors or the wrong php.ini file but this was not the case here.


How do I reload system settings from command line on Kubuntu?

The command to reload the KDE configuration is:

$ kbuildsycoca4

But I can not test it with the icon theme, because you have not mentioned where exactly is the icon theme config located and it's not so obvious to me.


how to run an application from a different user than the user that installed the application

The issue is likely that your .desktop file for intellij only installed in the original users ~/.local/share/applications/intellij.desktop is what creates an icon you can search for and launch. If intellij wasn't actually Installed to that user locally try the following.

cp /home/user2/.local/share/applications/intellij.desktop /home/user1/.local/share/applications/intellij.desktop
sudo systemctl restart lightdm.service

You could also add the .desktop file for All users

 cp /home/user2/.local/share/applications/intellij.desktop /usr/share/applications/intellij.desktop

Please note that the .desktop file may not be called intellij.desktop, but you should be able to find it.

Edit: It's possible that intellij was installed locally to user_2. If that is the case then copying the .desktop file won't work. The .desktop file essentially tells Ubuntu what to do when a user wants to launch that application. If a user doesn't have permissions to the files it won't work.


After upgrading from Ubuntu 14.04 LTS to 16.04 LTS, last process left cleaning, how to perform?

I think the last cleaning process runs something like this:

sudo apt-get clean

which removes any downloaded packages already installed, and this command:

sudo apt-get autoremove

will remove any packages no longer in use like old kernels and the like.


postfix-dovecot email sending works with squirrel mail but not with Thunderbird?

smtpd_sender_restrictions = reject_unknown_sender_domain

Don't accept mail from domains that don't exist. (source)

reject_unknown_recipient_domain

Reject the request when Postfix is not final destination for the recipient domain, and the RCPT TO domain has 1) no DNS A or MX record or 2) a malformed MX record such as a record with a zero-length MX hostname (Postfix version 2.3 and later) (source)

If you need to change both to make it work, will you have to fake the sender domains in your local DNS or add them to the /etc/hosts file on the server. From the explanation, postfix will reject it if it can't look up the domain.

For the second, should you be fine with adding the receiver domain in the servers /etc/hosts file. Explaination: Dovecot use virtual transport, and thus Postfix is, as i have understood it, not considered the final destination and you will need to have proper "path" to the destination. How? Add a DNS A record (to the servers host file) or a proper MX record to your local DNS.

For your question: Yes, you can remove safely, but that will turn off the filters refereed above.


How to make vim code folding colors more readable

It may be easier to add something like the code below to your .vimrc file, rather than changing profile settings in the GUI.

syntax enable "(syntax on also works)  Note that quotes are a comment in .vimrc
highlight Folded ctermbg=White ctermfg=Red

If you already have a highlight line for other purposes add this as a new line below it, e.g. have two highlight lines as opposed to appending it (invalid format).

See here for more details and different options.


In my experience, the beta version of Ubuntu will either upgrade automatically to the release or ask you if you want to do so via the update manager, once the release comes out.  But be warned: the updated version may be "eccentric" if you don't do a fresh install of the release version.


How can I configure the steps of font size changes in the terminal?

The script below will set the font size, of all profiles at once, in steps of 0.5. You will have to see if this is sufficient for you; the terminal does not react on all steps.

In my case, there was a visible change from

10 --> 10.5 --> 11

10.5

11

but then increasing from

11 --> 11.5

had no effect until increasing once more to

12

This is probably related to the font size, in relation to the window size, which does not allow floats since you are using a monotype font in the terminal.

Nevertheless, the script offers the sizes that exist in this situation.

The script

#!/usr/bin/env python3
import subprocess
import sys
import ast

"""
Copyright (C) 2016  Jacob Vlijm
https://launchpad.net/~vlijm/+contactuser
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or any later version. This
program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
A PARTICULAR PURPOSE. See the GNU General Public License for more details. You
should have received a copy of the GNU General Public License along with this
program.  If not, see <http://www.gnu.org/licenses/>.
"""

arg = sys.argv[1]

k = ["/org/gnome/terminal/legacy/profiles:/:", "/use-system-font", "font"]

def get(cmd):
    return subprocess.check_output(cmd).decode("utf-8").strip()

def run(cmd):
    subprocess.Popen(cmd)

def set_size(profile):
    def_font = k[0]+profile+k[1]
    # first set use default font to false
    run(["dconf", "write", def_font, "false"])
    # read the current font
    currfont = ast.literal_eval(get(["dconf", "read", k[0]+profile+"/"+k[2]])).split()
    # read the current size
    currsize = float(currfont[-1])
    # set the newsize
    if arg == "up":
        newsize = currsize+0.5
    elif arg == "down":
        newsize = currsize-0.5
    run(["dconf", "write", k[0]+profile+"/"+k[2], "'"+currfont[0]+" "+str(newsize)+"'"])

# get profiles
prf = k[0][:-1]+"list"
# set fontsize up/down 0.5
for p in ast.literal_eval(get(["dconf", "read", prf])):
    set_size(p)

How to use

Copy the script into an empty file, save it as terminalfont.py
Test- run the script by the commands:

python3 /path/to/terminalfont.py up

to increase the font size, and

python3 /path/to/terminalfont.py down

to decrease the font size
If all works fine, add both commands to shortcuts

Explanation

Unfortunately, there is no key available in gsettings to set the font size of the terminal. We need to use dconf directly to read and edit settings.

We can first fetch the list of profiles though by the command:

dconf read /org/gnome/terminal/legacy/profiles:/list

Once we have the list of profiles, the script then first disables using the default font (per profile):

dconf write /org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/use-system-font false

where b1dcc9dd-5262-4d8d-a863-c897e6d979b9 is the profile's id

Subsequently we read the current font & size with the command:

dconf read /org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/font

...we parse ot the font size, add or subtract 0.5, and set the new size by:

dconf write /org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/font 'Monospace 14.0'

Note

As mentioned, if this is sufficient for you can only be tested by you. If it doesn't however, I am afraid we cannot fix it, because the font size has to be in a certain proportion to the terminal's window on a mono-type font.


File Managers - Colors by extension like Q-DIR for Windows

"Double Commander" is a great file manager, and inter alia enables colours to be assigned to file types. Please let me know your chosen colour scheme.


Is there a hotkey equivalent to exit command?

You can use Ctrl + d -- End of Transmission.


Ubuntu 12.04 Unity: Black screen with cursor only, when external display is connected before booting laptop

I've received this black screen with cursor myself (I use 4 monitors, and so unplugging them happens often).

However my fix was to correctly install my GPU's drivers.

Since your laptop apparently has an Intel HD 3000 series GPU have you tried installing up-to-date drivers? The Additional Drivers tab in your Software & Updates part of System Settings would be a good place to start.


Is there any way to show amount of missed Empathy messages in the launcher icon?

You can use Unity Mail for notifications in a launcher. You can set it to open Empathy when you click it. And Empathy had a notifications plugin, which I haven't used and don't knowhow to install/enable it.


You might try:

apt-get install kscreensaver

If that doesn't work, take a look at this:
HOWTO: Replace gnome-screensaver with xscreensaver


New Computer and No Wi-Fi or Bluetoooth connection

You could try the 4.8 kernel and firmware from Ubuntu 16.10 in 16.04

sudo apt-get install linux-generic-hwe-16.04-edge
wget http://mirrors.kernel.org/ubuntu/pool/main/l/linux-firmware/linux-firmware_1.161.1_all.deb
sudo dpkg -i linux-firmware_1.161.1_all.deb

Reboot


package 'adobe-flashplugin' has no installation candidate . How can i solve this error?

Try this
sudo apt-get install flashplugin-installer


Disable xHCI by another way than BIOS - USB 3.0

This works for me:

lspci -nn | grep USB  | cut -d '[' -f3 | cut -d ']' -f1 \
| xargs -I@ setpci -H1 -d @ d0.l=0

sudo is required.

With that comamnd you change your 3.0 ports to 2.0. More info here.


You can turn the screensaver lock off by:

$ gsettings set org.gnome.desktop.screensaver lock-enabled false

You can turn the suspend lock off by:

$ gsettings set org.gnome.desktop.screensaver ubuntu-lock-on-suspend false

You can lock the screen at will by:

SUPER+L


Dell G3 15 only recognizes external monitor, laptop screen black

I had a similar issue after my Nvidia Driver create a /etc/X11/xorg.conf   file containing only Nvidia monitor (external ones) configurations. Since there was no further configuration of internal monitor (which don't use nvidia drives) the computer was only working with the external ones.
To fix it i only deleted the file /etc/X11/xorg.conf. I hope it fix your issues


How to enable disable touchpad from double-clicking on its special area

You should report this as a bug. The best place to report this is the xserver-xorg-input-synaptics package (FreeDesktop Bugs). See this question for good bug reporting guidelines. You can also post the bug link here, and I will update its status periodically. I have placed a workaround down below in case you want to try an alternate solution. Please note that you will be reporting a bug to the FreeDesktop system. After logging in, choose report a bug. Report the bug against the Xorg package. When prompted for the component, make sure to select input/synaptics. Fill in any other specific information that is needed.

  Bug Tracker for ID NaN

  Status: Lookup Error 3
  Importance: Lookup Error 3
  Assigned To: Lookup Error 3

  (Link to Bug)

In a short answer, this is not possible because there are no Linux drivers that do this. (Report a bug to possibly get one!)

This touchpad works by having that dipped area be its own button. When it is double-tapped, the Windows driver says "Hey, I should disable/enable the touchpad!". It then sends the disable or enable message to the touchpad, settings its state.

When you reboot, power to the touchpad isn't lost. So, whatever state it was in is kept. When you fully shut down, power is lost, so the state is reset.

AFAIK, there is no method to do this with that dip, at least kernel-wise. You may be able to write your own driver, but that is beyond the scope of this question (and possibly even this site).

You may be able to do a little workaround, which goes like this:

First off, find your touchpad in xinput-list. Remeber the ID.
Save this into /usr/bin:

#!/bin/bash

if [ -e /tmp/mouse-disabled ]; then
  rm -f /tmp/mouse-disabled
  xinput enable [id]
else
  touch /tmp/mouse-disabled
  xinput disable [id]
fi;
Replace all instances with ID with your proper id.
Create a Keyboard Shortcut. Make this the program to be run, and assign any keybind you want. I used Win+Ctrl+T for a while.

(Sourced from most posts here and this post.)


Has this OpenSSL bug been fixed? (Ubuntu 14.04 LTS)

The easiest way to find if issues are fixed are to search for the individual CVE numbers (which are in the notice there that went out) in the Security Team CVE Tracker.  This indicates whether specific CVEs have been fixed in Ubuntu or not, or whether the CVE even affects Ubuntu.

With regards to the notice you linked, all the CVEs referenced in it are already fixed in Ubuntu's OpenSSL pacakges.

  Obligatory link dump of Ubuntu Security Team CVE tracker data for some
  of the CVEs in the OpenSSL notice:

  CVE-2014-0224 (from that notification): Fix Released (https://people.canonical.com/~ubuntu-security/cve/2014/CVE-2014-0224.html)
  CVE-2014-0221 (from the notification): Fix Released (https://people.canonical.com/~ubuntu-security/cve/2014/CVE-2014-0221.html)
  CVE-2014-0195 (from the notification): Fix Released (https://people.canonical.com/~ubuntu-security/cve/2014/CVE-2014-0195.html)
  CVE-2014-0198 (from the notification): Fix Released (https://people.canonical.com/~ubuntu-security/cve/2014/CVE-2014-0198.html)
  CVE-2010-5298 (from the notification): Fix Released (https://people.canonical.com/~ubuntu-security/cve/2010/CVE-2010-5298.html)
  CVE-2014-3470 (from the notification): Fix Released (https://people.canonical.com/~ubuntu-security/cve/2014/CVE-2014-3470.html)
  CVE-2014-0076 (from the notification): Fix Released (https://people.canonical.com/~ubuntu-security/cve/2014/CVE-2014-0076.html)

A note about OpenSSL Package Revision Numbers and the openssl version output

The packages for OpenSSL in Ubuntu are, for the most part, version locked to a specific version of OpenSSL in each Ubuntu release.  That is to say, for Trusty, the core OpenSSL version is OpenSSL 1.0.1f, from January 2014.  This is only the core library versions, it does not take into account patches applied to it, etc.

The way to determine whether the package has been updated with patches, etc. is via the Debian package revision number and corresponding changelog entries.  The version of the OpenSSL package and corresponding libraries in Ubuntu Trusty is currently as of this post:

 openssl | 1.0.1f-1ubuntu2    | trusty           | source, amd64, arm64, armhf, i386, powerpc, ppc64el
 openssl | 1.0.1f-1ubuntu2.21 | trusty-security  | source, amd64, arm64, armhf, i386, powerpc, ppc64el
 openssl | 1.0.1f-1ubuntu2.21 | trusty-updates   | source, amd64, arm64, armhf, i386, powerpc, ppc64el

Looking at the second column, we see that the latest version available for OpenSSL is 1.0.1f-1ubuntu2.21, which means it has had multiple revisions since the initial Trusty release (which had 1.0.1f-1ubuntu2).

The package build rules for OpenSSL's package do not use the Debian string in the version data.  It uses only the OpenSSL original version string, 1.0.1f.  This is why openssl version is misleading, and for pre-packaged versions of OpenSSL, you rely on the changelogs for the package, the Ubuntu security tracker, and the version string on the package rather than the version command in the packaged software (for OpenSSL, at least).


Ubuntu 14.04 hangs on shutdown after package removal

After weeks of normal usage and hard-resetting the laptop, for whatever reason, sudo apt-get clean was what ended up solving the problem. I'm also having some dpkg errors now (probably related to the failed bluetooth package installations) but that clean command solved the hanging shut down.


I had the same problem after upgrading from 19.04 to 19.10:

VGA, no signal

I have no idea where the signal went since VGA was working fine in 19.04!
Fortunately, I used the grub menu at boot, and it displays three choices:

Select the "Advanced Options" choice. The next screen will display four choices:
Scroll to the last option and select, "Ubuntu...recovery mode" (there are two "recovery mode" selections, but the last one works the best for me). A lot of code will scroll down the screen including code for 19.10, after which you will be prompted with two final screens:
just hit the Enter key for both screens.
Lastly, you will get to stare at a blank screen with the cursor blinking in the upper left hand corner for a minute or two, and then Upgrade 19.10 will appear on your screen (or at least it appeared on my screen. Hopefully you will have the same experience).
BTW, in case you don't use the Grub menu at boot, click this link for help with the Grub menu.

Hope this helps.


Adwaita Dark theme title bar stays white

Have you installed and used Gnome Tweak Tool?

Install it by running into the terminal:

sudo apt-get install gnome-tweak-tool

Then run it by pressing the Win/Metakey and typing "gnome-tweak-tool".

Select the "Theme" tab on the left hand side and there should be an option to change the Window Theme via a drop down menu. Select it and then close the program. You may need to log out and log back in to see the effects.

If you can't see your Dark Adwaita theme in the drop down, then it may not have been installed properly.


By default with the bumblebee project, you need to tell what applications will use the Nvidia card for rendering with the optirun command:

optirun firefox
optirun awesome_game
optirun gimp
optirun mplayer

Check the Ubuntu wiki for more information, or use optirun --help.


A) yes, Windows will overwrite grub. Remove the Ubuntu drive, install Windows, then replace the Ubuntu drive as the first HDD, should preserve grub. Note: grub will need to be updated to get the windows entry in the boot menu.

C) Windows can not read Linux partitions without third party software (if available). The preferred method to share files is to make a partitions formated ntfs that can be mounted to both OSs. Note: hibernation must be turned off to share partitions, since writing to a hibernated partition from another OS can cause file corruption when the hibernated system is restarted.

B) I believe there is a way to tell grub to boot windows next from the command line, but I do not know it.


Problem with Nvidia graphics driver in Ubuntu 17.04

I had the same problem and solved it more or less as MichelBay suggested.

I followed the instructions given at Graphics issues after/while installing Ubuntu 16.04/16.10 with NVIDIA graphics.

Reboot into GRUB.
Highlight the Ubuntu option and press E.
Add nouveau.modeset=0 to the end of the line beginning with linux.
Press F10 to boot.

This allowed me to boot into the graphical environment (but not using the nvidia driver).

sudo apt purge nvidia-*.
Search for "Additional Drivers" in Dash.
Install recommended Nvidia driver via Additional Drivers tab in Software & Updates.
Reboot


Is it possible to access media sharing in ( ubuntu ) from my mobile

Follow this guide's "Windows->Ubuntu" section: How to share files through the local network?
This sets up a samba share on your ubuntu machine.
After this just download any 3rd party file-explorer with smb support on android (I use CxFileExplorer, but most have it) and connect to //<ubuntu's-ip>/ (try your own login aswell as just anonymus).
Keep in mind the permission issue however, if you can see a file but not access it change permissions to 666 (chmod 666 <the-file> in the terminal) or even 777 if it's really stubborn. However I recommend you change that back to something sensible like 644 afterwards.


Unable to uninstall shorewall from Ubuntu

I don't see any problem. You've uninstalled the service, and it is not running.
The journal is showing the moment when it was stopped.
So what is your concern?


Who is streetsmartaccord? Why do I have a folder /home/streetsmartaccord?

If you have a folder called /home/streetsmartaccord/ then its likely that you have an user in this computer called streetsmartaccord. If you are the only administrator of this computer and you have not created this user, then it is likely someone else has gained control of your computer and is using it for nefarious purposes.

At the least disconnect the computer from the Internet. If it is connected by an Ethernet cable, unplug it. If it connected by WiFi, disable WiFi from the Network Connection icon on the top right corner of the desktop.

You should remove the user(s) you have not created. To do this for streetsmartaccord, open a terminal by entering Ctrl+Alt+T and enter:

sudo deluser <username> <groupname>

In your case:

sudo deluser streetsmartaccord streetsmartaccord

Then delete the folder /home/streetsmartaccord/

This may not solve all the problems, but at least the user will not be able to login. You should look into how the intruder got access to your computer and close the security holes.

Best of Luck


How can I fully remove Ubuntu 12.04 from my MacBook Pro?

There are 2 ways to accomplish this.  The easiest way is to boot from your Ubuntu Live CD or USB device.

Once the Ubuntu desktop has loaded, start Disk Utility (gparted).

Next, find your Ubuntu partion(s) and format them all as free space.  Next, resize your Windows partition (NTFS) to consume the rest of the disk.  Accept the operations and wait for a few moments.

That's it!

Good luck.  :)


If you just use Ubuntu, you can install packages from the different flavours. You can install KDE on Ubuntu and GNOME on Kubuntu, so it doesn't really matter. I advise you install plain Ubuntu as a starting point and add the packages you need from there.


Short answer: No.

Long answer:
As Unity was released after lots of people expected to see Gnome 3 on the next Ubuntu version, the compatibility for Gnome 3 never was added.
You could try to do some experiments in getting Unity onto Gnome 3, but this may lead to some troubles as both, Unity and the Gnome Shell, are having a fixed unremovable top bar on the screen.
This problem is at least the one anybody can actually see. There will be  architectural problems as well.


How to select other workspaces in the workspace spread?

The way I understand the workspace spread, if you have an active window in a particular workspace, it is coloured in the workspace spread. Or, in case there are no active window, as you seem to have noted, they are dark and faded.

If you select a workspace, the workspace will have an orange outline to indicate that you have selected the workspace. You can refer to the image for clarification. You can select the unused workspace in the workspace spread without any problem.

If this answer is unsatisfactory, you can try resetting Unity to its defaults and see if that helps your problem.

How do I reset my Unity configuration?


A well-trod path for this is already on the Ubuntu wiki:

https://wiki.ubuntu.com/HardwareSupportComponentsBluetoothUsbAdapters

The page is maintained by the community - if you discover updated or new information, please share.


There is now :D

You can get live server images now.  Here's the link for 18.04, see the server images near the bottom

http://releases.ubuntu.com/bionic/

For example:
http://releases.ubuntu.com/bionic/ubuntu-18.04.1-live-server-amd64.iso

-enjoy!


How do you use the Synaptic packege manager for downloading packages?

Synaptic Package Manager is used for installing debian packages  and not for downloading source code of a particular package.To install a package through synaptic follow the below steps.

Open synaptic package manager from Dash.
Search for the package you have to install.
After finding it,right click on it and select Mark for installation.And select Apply.
Package will be installed successfully.


php4 and php5 are incompatible with each other.  You will either need to use the old, unsupported version (which you will ahve to build from source), or use php5 and update your systems.  You cannot run them both simultaneously without breakage.


Try sudo apt-get install --fix-broken && sudo apt-get autoremove && sudo apt-get update.

Please let me know if this does not solve the problem for you.


Gnome Shell multi desktop changes focus to other screen

Current best solution:

There still appears to be no solution to this problem, but here is my workaround.

I have changed the focus mode from click, by default, to mouse. This means that focus follows the mouse allowing me to play a movie on my second monitor while leaving my mouse on my main display w/ workspaces, retaining focus while switching workspaces.

Steps:

Using dconf-editor (as your user, not root), navigate to org -> gnome -> desktop -> wm -> preferences
Select focus mode and change it to mouse


This are rare cases where the Hard Drive activity is above the normal use and the user is not using it that much. It has only happened to me twice in all of my years with Ubuntu. On one time I solved the issue by doing a fsck on the disk.

For example, if your HDD is /dev/sdb1 then do the following:

sudo fsck /dev/sdb1

In that case it said that I had booted the hard drive more than 200 times without checking. I actually did not count how many times but 200 is a lot in my book.

Anyway, when started checking, at some point it started finding problems and fixing them. A lot of them actually. After that I rebooted and problem was gone.

In the second case, it was because I edited the /etc/fstab and incorrectly passed a parameter to the hdd. The solution was to remove that parameter from it.

I would also have to say that adding noatime to the hard drive lessens the amount of write operations. For example this is my HDD in the fstab file:

# / was on /dev/sda2 during installation
UUID=38673e00-ecc8-4e11-85d2-58af72999e5b /               ext4    noatime,errors=remount-ro 0       1

with the noatime parameter, the disk activity is less. Although, if using a version of the kernel 2.6.30 or greater, relatime is much better.

My suggestion for this would be:

Run fsck on the drive with the problem. It might detect many problems or it might not, but checking it will make sure the information is good and the hard drive has no file system problems.
In the Desktop run the disks utility. It shows the status of the drive and the SMART information about it. This can give you further information about it, specially if it has a hardware problem.
Type dmesg and look at the last lines. If there is something every 10 seconds it will show there. It can also show in cat /var/log/syslog or cat /var/log/kern.log
Lastly add the noatime parameter to your fstab file to save some access time writings.


What does the question mark in terminal command mean?

Generally speaking, in Bash, a ? is a glob pattern that expands to an arbitrary character.

For example:

$ echo Hello1 > foo1
$ echo Hello2 > foo2
$ cat foo?
Hello1
Hello2

It is akin to a *, but a * expands to 0 or more characters, while a ? expands to exactly one (arbitrary) character.

In your special case though, the ? in the command was apparently a typo.


My Ubuntu mail server rejects incoming mails

Your ISP doesn't recognize hardcube.net which traces to ip-166-62-12-213.ip.secureserver.net (166.62.12.213)

If you own this domain, you need to work with your ISP to get the DNS records updated, If you've done so, It can take a couple of days (maybe more?) for the records to propagate across the net.

If you ask them how long it will take they will tell you.


Change insert copied text from Shift Ctrl V to Shift Insert

Your terminal may have a settings or preferences option. You maybe able to specify Shift+Ins there.

Lubuntu 18.04 has lxterminal as its default terminal. Click Edit > Preferences > Shortcuts. Then, click on the area next to Paste which should have the current keyboard shortcut for pasting, and press Shift and Insert simultaneously. The contents should change to reflect your choice. Press OK. That's all.

Similarly, Konsole (in Kubuntu 18.04) has Shift+Ins as an alternative to Ctrl+Shift+V out of the box.


How to install VLC with no internet connection

You can change your apt-cache-path temporarily to a specific folder and download your package:

sudo apt-get -o dir::cache::archives="/new/cache/is/here" --download-only install vlc

If vlc is already installed:

sudo apt-get clean
sudo apt-get -o dir::cache::archives="/new/cache/is/here" --download-only --reinstall install vlc

or you can use apt-offline :)

repo management

change apt-cache folder

apt download-only / apt-offline


Boot a Live CD (You're better using a Live CD, Wubi is buggy and may just mess up everything.) and start GParted.
Now, just simply expand the partition (if the HDD is full, shrink other partitions to get more free space.)


I installed Transmageddon and it was able to transcode to a WebM video that I could upload through YouTube. I guess Transmageddon uses the same codec set that Totem does. (GStreamer?)


Import Firefox bookmarks from windows 7 (unbootable) to ubuntu using ubuntu

Okay, it works just I as tought!

Go to and copy
C:/Users/Username/Appdata/Roaming/Mozilla/Firefox/Profiles/nameofprofile.default
Copy your file you retrieved from Windows partition to /home/user/.mozzilla/firefox
open profiles.ini and modify to something like:

[General]
StartWithLastProfile=1

[Profile0]
Name=default
IsRelative=1
Path=avjdkb26.default

[Profile1]
Name=NEW
IsRelative=1
Path=nameofprofile.default
Default=1

Run "firefox -p" and selectyour profile

Line Default=1 determines which profile is set as default


How to disable Automatic Login for ssh key?

Use the "Passwords and keys" system application. Go to the passwords database, somewhere there should be your stored password - just delete it.


Why black screen after Ubuntu installed?

There is a open bug that causes random hard CPU lockups (caused by intel-microcode), some during the boot process (which makes it difficult to troubleshoot). Try starting it with dis_ucode_ldr grub parameter.

More in the bug report: https://bugs.launchpad.net/ubuntu/+source/intel-microcode/+bug/1759920


passing arguments when starting shell script

try

#!/bin/bash
#Script for calling th e python script sniff.py

usb_dev=ttyUSB1
console_outp=INFO

while getopts d:D: o
do case "$o" in
d)  usb_dev="$OPTARG";;
D)  console_outp="$OPTARG";;
esac
done

(same as your script)

default value should be initialized before.
use $OPTARG instead of @OPTARG
option are defined as :D:d:


Why does Ubuntu 14.04 Trusty Tahr use sheep as emblem?

A Tahr is a hardened mountain goat living in the high frozen mountains. That is whats being used as the logo - which you might mistake for a sheep.


That's because the kernel needs the module "ntfs" loaded to mount an ntfs partition. And during bootup this module is not yet loaded.

To configure that the module is mounted add a line with "ntfs" to the file /etc/modules:

echo "ntfs" >>/etc/modules

Then you can reboot the system and your partition should be mounted.


just running:

sudo apt autoremove

solved my problem

related:
https://help.ubuntu.com/community/RemoveOldKernels


Press CTRL ALT F1
Login with your normal credentials
Run export DISPLAY=:0
Run gsettings set org.gnome.desktop.interface font-name 'Ubuntu 10'
Type exit and press enter
Press ALT F7
Login, and it should be fixed


permissions for SugarCRM in /var/www/html/

This allowed the install to proceeed:

sudo chmod 0755 -R /var/www
sudo chmod g+s -R /var/www

Comments and explanations welcome.

Reference


freeradius refuses to start because it says OpenSSL is vulnerable

What freeradius is doing, apparently is detecting purely on the version string returned by OpenSSL on the OS.  Unfortunately, that version string does NOT take into account Ubuntu or Debian revision numbers.

Ubuntu security updates are typically put in via a -#ubuntu# style changelog entry in the package, and the packages to install that have the security updates originate from the RELEASE-security repository, where RELEASE is the codename for the Ubuntu version you're on.

Because of this, we have to examine the specific CVE, and check the Ubuntu Security Team's CVE tracker.  The page detailing the Heartbleed CVE (CVE-2014-0160) in the Ubuntu Security Team's tracker indicates that the following versions had patches applied to fix the OpenSSL Heartbleed issue:

Precise: Fixed in package openssl package version 1.0.1-4ubuntu5.12
Trusty: Fixed in package openssl package version 1.0.1f-1ubuntu2

If you have pulled in all OpenSSL updates from the Security repositories, and have at least 1.0.1f-1ubuntu2 of OpenSSL installed (and your information provided says that 1.0.1f-1ubuntu2.15 is installed), you will be fine.

Provided the above matches your case, then you can follow the instructions that the error message provides you, and put into place this line, probably as part of the configuration files: security.allow_vulnerable_openssl = 'CVE-2014-0160'


Is impossible to install openastro.org package due missing python-dateutil, python-rsvg and imagemagick packages

Try installing this way.

Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo add-apt-repository ppa:pellesimon/ppa
sudo apt-get update
sudo apt-get install openastro.org


update manager error-Failed to download repository information

The reason is that this repository does not have packages for your version of Ubuntu (precise). Take a look at http://ppa.launchpad.net/crebs/ppa/ubuntu/dists/.

You need to remove this repository from your /etc/apt/sources.list file.

gksudo gedit /etc/apt/sources.list

Find the lines that contain "crebs". They should look like

deb http://ppa.launchpad.net/crebs/ppa/ubuntu jaunty main

(or something like this). and put a # (hash) in front of each of them:

# deb http://ppa.launchpad.net/crebs/ppa/ubuntu jaunty main

Repository is now disabled. Save the file, exit the editor and in a terminal, run

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

(there is also a GUI way of doing that via software sources or something similar from Ubuntu dash, but I don't remember where it sits)


Using two or more network interface in Ubuntu

A proxy is the solution to your goal, yes. As a far I know squid should you permit to redirect traffic based on the destination URL and also to define the outgoing address.

For examples, to set the outgoing address for youtube the squid acl will like some think like:

....
acl viaVideo dstdomain youtube.com
tcp_outgoing_address 192.168.1.1 viaVideo
....

the previously rules will says to squid to send via 192.168.1.1 all request performed to youtube.com


Simple Way to Have Static Local IP with VPN

The short answer is that you can't do what you want to do.

The VPN provider automatically assigns you an IP. You can not change this; the provider will have to change this. They probably won't, because they're selling volume.

Second, you need to accept incoming connections, preferably on designated ports. PIA offers you incoming connections on a random port. They can (in some regions) forward a single, random, port to you. This won't cut it for you, as games commonly are expected to be present at a pre-defined port that does not change.

So in short, you can't do what you're trying to do with PIA. You can set up your own VPN tunnell from for instance AWS, where you control both ends.


How do I disable auto-away for online presence?

Install dconf-tools and open dconf-editor.

Go to org.gnome.Empathy and change autoaway like you want.


How to clean gedit's and other editor's find&replace history?

The search items are stored in gsettings/dconf. The ~/config/dconf/user file can't be edited so use dconf-editor. Go to org.gnome.gedit.state.history-entry & remove as desired or reset to default ['']

or from cli

gsettings set org.gnome.gedit.state.history-entry search-for-entry "['']"

for previous replace items

gsettings set org.gnome.gedit.state.history-entry replace-with-entry "['']"


How to troubleshoot a macvtap network in kvm/virt-manager

I have same problem with Ubuntu 13.10, I also update to 14.04 development branch to try but still does not work.

I do not know a good way debug, for my problem, I found eth0 does not enter promiscuous mode, I can not find message like device eth0 entered promiscuous mode in dmesg output. So I force eth0 into promiscuous mode, the problem then disappears.

This is what I did:

Force eth0 into promiscuous mode:
sudo ifconfig eth0 promisc
Use virt-manager to start the VM
ifconfig -a and ping outside to see whether it works for you.

I do not know why libvirt does not put eth0 into promiscuous mode, maybe a bug of it.


You can compile your kernel in any directory you wish. /usr/src is "old school"

Most people advise you compile your kernel as a user, and install as root.

make menuconfig
make -j5
sudo cp your_kernel /boot
sudo make modules_install

See also

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

http://bodhizazen.com/Tutorials/kernel

http://kernel-seeds.org/

You can also use the mainline kernels

https://wiki.ubuntu.com/Kernel/MainlineBuilds

.deb are available here http://kernel.ubuntu.com/~kernel-ppa/mainline/


Does re-installing Ubuntu wipe out the previous LUKS encryption?

If you have backed up all data on unencrypted disc/partition/folder. There is no problem with reinstalling Ubuntu. Choose whatever options you want. No problem if you format the partitions used and do a fresh installation.


How to solve problem in Python 3: No module named 'unix'

How did you install pymouse ?

On github it says that

  PyMouse has been merged into PyUserInput at
  https://github.com/SavinaRoja/PyUserInput

Maybe you should try to install this module instead.

"unix.py" seems to be a file|module from (outdated) pymouse package. Try to download pymouse from git as zip and to run it locally, see if it works (just unzip the folder, run python3 shell from the unzipped folder and import).


Touchpad tab is missing on Samsung ATIV Smart PC Pro

Okay. It seems to be a bug that is still not solved.

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1332824


Invisible software updates list in Software Updater

I was getting this problem after upgrading to 18.04. Preparatory to sudo apt-get upgrade as noted above, I did

 sudo apt autoremove

That resolved the problem for me and 'revealed' what updates were available for download. Almost half-a-gig clogging up the works.


Is there a way to run Nautilus file manager on 12.04 instead of Unity?

Nautilus is a file manager while Unity is a desktop environment that uses Nautilus as its default file manger and to display the desktop background. As they are quite different things there is no way to replace Unity with Nautilus.

If you don't like Unity you may have a look at other desktop environments like Unity 2D (installed by default), Gnome Classic (install package gnome-session-fallback) or the Xubuntu desktop (install package xubuntu-desktop). At the login screen you can choose which desktop you want to use.


If your machine and your iPad are connected within a wifi network, you can make simple HTTP server serving PDF files that can be downloaded from iPad.

Make sure you have python installed, open up a terminal and cd to the directory where you store your PDF files. Then run this command:

python -m SimpleHTTPServer 8000

And on your iPad open up the web browser and go to URL: http://<ip.of.machine>:8000

Voila! You can see your PDF files and download them into your iPad.


Unable to connect to Samba shares after upgrade from 18.04 LTS to 20.04 LTS

I originally didn't post the question because I found something very similar, but now that I've found the answer, I'm not allowed to post it on that question because my reputation isn't high enough. So here:
None of the options around setting client level helped, and it occurred to me later that I'm attempting to connect TO Ubuntu (from a BluRay player) so it's the server settings that are important, not client, so instead of
client min protocol = core

or
client min protocol = NT1

What I needed was
server min protocol = NT1

But it still didn't help.
I upped the logging level in Samba to try to understand what was happening, because I didn't have access to logs on the blu-ray player, so using
log level = 3 passdb:5 auth:5

Confirmed that my issue was negotiating the protocol Requested protocol [NT LM 0.12]  Server exit (no protocol supported)
But all of the fixes for that still didn't work.  What finally did the trick was to purge samba and samba common entirely (copy the share details into a notepad first, backup files in /etc/samba get wiped in the purge of samba.common)
From How do I re-install Samba?
sudo apt-get purge samba samba-common
sudo apt autoremove
sudo apt-get install samba

This still didn't fix it - I added the shares and confirmed I could access it from another computer, but still nothing from the Blu-ray player
I turned on logging again and then finally tried
server min protocol = NT1

again, and with the fresh install of Samba, it connected and worked fine.
I added this all here because I wasn't allowed to post the answer on the other question, so hopefully it will still be found and be useful.  As much of a hassle as it was for me to investigate, I didn't want to just give up and let other people have to figure it out.


How come you don't need sudo privileges to update the packages list in the 10.10 Update Manager?

In Ubuntu 10.10, Update Manager switched from the Synaptic backend to the Aptdaemon backend by default. Aptdaemon allows more fine-grained privilege management with PolicyKit, and the default PolicyKit configuration for regular users allows them to check for updates without needing elevated privileges.


How to force remove a package if dpkg removal script fails?

Create a dummy initscript to fool dpkg:

sudo nano /etc/init.d/disco-master

Enter the following:

#!/bin/bash
exit 0

Save the file, set execution permission (sudo chmod 755 /etc/init.d/disco-master) and try to sudo apt-get remove disco-master again.


How to change screen brightness based on screen colors?

I never found something like this so I decided to create a solution. It currently only works in Windows but I am working on a Linux version. You can email me if you have any questions or want to help! https://github.com/dragondgold/BrightnessController-Java


Try echo 0 > /sys/bus/pci/slot/$N/power for appropriate slot.

lspci -vv may help to identify the device. This is not very well documented...


stuck on libubuntuone1.0-cil, assembly error

Run the following in terminal,

sudo apt-get install -f

sudo dpkg --configure -a

sudo apt-get update

if you get any errors,post the output of those errors in a pastebin.

Also see this bug report.


I shrank my font too small, How do I fix this?

Open a terminal with Ctrl-Alt-T keyboard shortcut and copy paste this command below and hit enter to execute it:

gsettings set org.gnome.desktop.interface font-name 'Ubuntu 11'


Juniper Network Connect on Ubuntu 16.10?

I had the same problem, and it seems to be a kernel bug (again). Before launching the VPN client, type this command as root:

echo 0 > /proc/sys/net/ipv6/conf/default/router_solicitations

The source for this information is from this bug report.


How to install updates of Nvidia drivers if there is one

You can always install the newest drivers from a PPA

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update
sudo apt install nvidia-xxx

Where xxx is the driver major version, like 375, 378, etc.

But the PPA is not officially supported.


Take a look at this thread if you did not already, it might help.

OpenGL GLX context is not using direct rendering, which may cause performance problems. (steam) AMD DRIVER


How can I use youtube-dl using tor browser settings in terminal

If you have tor installed, you can use torify:

torify youtube-dl ...


back to default apache 2.4.41 on Ubuntu 20.04

You have to purge the PPA repository from which this package was installed. Use commands below:
sudo apt-add-repository universe
sudo apt-get udpate
sudo apt-get install ppa-purge
sudo ppa-purge ppa:ondrej/apache2