Last things first... I think your post is formatted perfectly!

I don't actually back files up. You can call that lazy or call it having 3 internal laptop drives, 1 external drive and another laptop to boot (pardon the pun).

What I do like to do is leave myself an easy way of reverting something I've changed by not actually changing lines but rather commenting them, copying them, inserting them and changing the cloned line. This makes it easy to reverse bad mistakes.

Hypothetically type this command:

` cat /usr/share/X11/xorg.conf.d/50-nvidia-drm-outputclass.conf/nvidia-drm-outputclass.conf.

And the output is:

# This xorg.conf.d configuration snippet configures the X server to
# automatically load the nvidia X driver when it detects a device driven by the
# nvidia-drm.ko kernel module.  Please note that this only works on Linux kernels
# version 3.9 or higher with CONFIG_DRM enabled, and only if the nvidia-drm.ko
# kernel module is loaded before the X server is started.

Section "OutputClass"
    Identifier     "nvidia"
    MatchDriver    "nvidia-drm"
    Driver         "nvidia"
EndSection

Let's say I read a blog / answer / comment that said to change MatchDriver to "nvidia-quacamolie" I would instead do this:

#    MatchDriver    "nvidia-drm"
# As per www.thatguysblog.com/nvdia_trial_and_error_1001 set quacamolie
    MatchDriver    "nvidia-quacamolie"

If something goes wrong, I edit the file again, leave a comment on what went wrong, restore the original command by removing the '#' and then comment out the new command by inserting # in front. You could say my lazy backup method means the backup is in the configuration file itself and is more of a "way-back-out" than a "backup".

That takes care of changing configuration files.

If on the other hand you sudo apt-get install nvidia-367 and you were currently on nvidia-304 and things turned sour then you would simply purge nvidia-367 and install nvidia-304. Which according to Nvidia web site I should do on my own platform with Nvidia GeForce GT650M. But because I'm lazy I just turn off Nvidia and turn on Intel.

Which reminds me most people just use the Intel Graphcis driver (i915) and don't bother turning on the Nvidia. You have Intel HD3000 graphics and I have HD4000 graphics which has great performance. Even on my old Toshiba (year 2007) laptop with HD2000 graphics Ubuntu 14.04 with Unity 3-D graphics was acceptable and processor barely hit 50% usage with Video running on external TV and 10 chrome windows open on primary (built-in) display.

This isn't exactly the answer you were looking for but I hope it helps.


How to get my xbox 360 joypad to work in 14.04?

Try downloading and configuring xboxdrv (xbox driver)

sudo apt-get install xboxdrv && sudo xboxdrv


Using mouse button as part of a keyboard shortcut?

That combination is there in GNOME by default, the only thing different is you'll have to release super before start scrolling.

So here the workflow is: press and release super, then MouseWheelUp to go to the workspace above or MouseWheelDown to go to the workspace below.


Where can I find the log file of my system temperature?

Here is what I have done to log temps.

Prerequisites : lm-sensors dateutils gnuplot (gnuplot for visualization, not necessary)

One can install the above using the following command in terminal.

sudo apt install lm-sensors dateutils gnuplot

Coming to the main script :

#!/bin/bash
# Log temperature over some time  interval given as days, hours, minutes or seconds.
# enter the variables according to your usage in the following seciton :
duration="$1"  #duration format is  ndnhnmns where n is some number and d is day,
# h is hours, m is minutes and s is seconds. For example, 4d , 4d5h30m , 5m30s, 6h30m30s are all valid.

step="$2"
#----------------------------------------------------------------------
#starting time taken as current
dt=$(date '+%Y-%m-%dT%H:%M:%S');
#et=$(date '+%Y-%m-%dT%H:%M:%S');

#----------------------------------------------------------------------
a=$(dateutils.dadd $dt  $duration )
b=$(dateutils.ddiff $dt $a -f '%S')
echo $a $b

ntimes=$((b/step))
echo $ntimes

echo "logging...";
rm t_log.txt
nms=0
while [  $nms -lt $ntimes ];  do
        sensors | grep -A 0  'Core' | cut -c18-21 |tr "\n" "\t" >> temp.txt
        let nms=nms+1
        sleep  $step
        now=$(date +"%m/%d/%Y %T")
#       echo $now
        echo -e "$(cat temp.txt)""\t$now"  >> t_log.txt
        rm temp.txt
done

#plotting using gnuplot to get a beautiful plot.
day=86400 #different x-axis for different  time duration. A day = 86400 seconds

fcode=$(date "+%Y-%m-%d_%H%M%S") # generate a time stamp
#echo $fcode
if [[ "$b" > "$day" ]]
then
        gnuplot -e "filename='temp_plot_$fcode'" plot_day
else
        gnuplot -e "filename='temp_plot_$fcode'" plot_time
fi
#end-of-script---------------------------------------------------------

The gnuplot command in the end needs two more files which are following.

file : plot_day

set terminal pngcairo size 1200,600 enhanced font 'Verdana'
set output sprintf('%s.png', filename)
set timefmt '%d/%m/%Y %H:%M:%S'
set xdata time
set format x '%m/%d'
set grid ytics lc rgb "#bbbbbb" lw 2 lt 1
set yr [20:100]
set title "Temperature log"
set xlabel "Date (month:day)"
set ylabel "degree Celcius"

plot "t_log.txt" using 7:1 with lines title "core:1" linewidth 3,\
     "t_log.txt" using 7:2 with lines title "core:2" linewidth 3 ,\
     "t_log.txt" using 7:3 with lines title "core:3" linewidth 3 ,\
     "t_log.txt" using 7:4 with lines title "core:4" linewidth 3 ,\
     "t_log.txt" using 7:5 with lines title "core:5" linewidth 3 ,\
     "t_log.txt" using 7:6 with lines title "core:6" linewidth 3
replot

file: plot_time

set terminal pngcairo size 1200,600 enhanced font 'Verdana'
set output sprintf('%s.png', filename)
set timefmt '%d/%m/%Y %H:%M:%S'
set xdata time
set format x '%H:%M:%S'
set grid ytics lc rgb "#bbbbbb" lw 2 lt 1
set yr [20:100]
set title "Temperature log"
set xlabel "Time (Hour:Minute:Second) "
set ylabel "degree Celcius"
plot "t_log.txt" using 7:1 with lines title "core:1" linewidth 3,\
     "t_log.txt" using 7:2 with lines title "core:2" linewidth 3 ,\
     "t_log.txt" using 7:3 with lines title "core:3" linewidth 3 ,\
     "t_log.txt" using 7:4 with lines title "core:4" linewidth 3 ,\
     "t_log.txt" using 7:5 with lines title "core:5" linewidth 3 ,\
     "t_log.txt" using 7:6 with lines title "core:6" linewidth 3
replot

Running the script
Save it, make it executable and run it as,

./script_name $nd$nh$nm$ns m

n is some number, while d=days, h=hours, m=minutes, s=seconds

m step size of measurement in seconds. Measurement will be taken after interval of m seconds

Example of usage.

./log_script.sh  3d12h 30

(explanation: log for 3 days 12 hrs with measurement at each 30 seconds)

./log_script.sh  12m30s 10

./log_script.sh  45m 2

./log_script.sh  55s 1

{It can be used with cron for regular logs. I use this script only when benchmarking and/or overclocking.}

Output

This scripts generates a log file as t_log.txt which has the temperature of the CPU cores. (For system with different cores there will be a small change.  Edit the  line in gnuplot script files which are plot_time and plot_day specifically, "t_log.txt" using last_column:column_for_each_core with lines title "core:6" linewidth 3).

The output in t_log.txt  looks like following,
 (since this is a six core machine hence 6 columns of temps.)

28.0    28.0    27.0    27.0    27.0    27.0            12/18/2016 00:50:21
28.0    26.0    27.0    26.0    27.0    27.0            12/18/2016 00:50:23
27.0    27.0    26.0    26.0    27.0    26.0            12/18/2016 00:50:25
28.0    27.0    29.0    26.0    27.0    26.0            12/18/2016 00:50:27
26.0    27.0    26.0    28.0    27.0    26.0            12/18/2016 00:50:29
27.0    26.0    28.0    26.0    27.0    26.0            12/18/2016 00:50:31
27.0    26.0    26.0    26.0    27.0    26.0            12/18/2016 00:50:33
27.0    27.0    28.0    28.0    27.0    27.0            12/18/2016 00:50:35

And the plot generated looks like following :

The script can generate such plots for very long logs or many other parameters. It is also possible to plot in between logging which just needs modification of the script. The script can be improved a lot and logging of several other parameters like RAM usage, CPU load, HDD activity can be added. Enjoy !


Kernel panic after updating Ubuntu (says syntax error)

Partial answer... work in progress...
You may have a corrupt resume file, or a bad initramfs image.
To see if it's the resume file, do this:

Boot the computer and hold down the left Shift key right after the computer manufacturer's splash screen disappears.
Choose Advanced options for Ubuntu.
At the GNU GRUB menu choose recovery mode. Often (recovery mode) is the second entry from the top.
At the Recovery Menu, choose root access.
At the # prompt, type cat /etc/initramfs-tools/conf.d/resume

Edit your question to include the output of the cat /etc/initramfs-tools/conf.d/resume command and we'll take a look.
I'll add more detail if I decide that it's a bad initramfs image.


Harddrive used up in gparted, after fresh install of 13.10

Your partition is lvm, this is why it is marked as fully used. As far as I know, GParted doesn't work to manage lvm partitions yet.
You need to use the lvm tools (pvs, lvs, lvdisplay, lvcreate and so on), parted in terminal (not sure if it works, as I never tried) or fdisk to work with lvm partitions.


Where is the unofficial toro (most recent) version?

Please have a look at https://wiki.ubuntu.com/Touch/Devices, where you always (should) find a link to the latest version.


I think I found some "solution".

I often use JACK AUDIO CONNECTING SERVER to my audio apps.

If I shutdown all the JACK AUDIO SERVER, I can see the videos, without problems!!!

Well, it is not included an issue I still have with MKV video format (This format cannot to be seen in a right way in this HP Laptop).

In other words... It seem the HP 250 G5 Laptop is not enough capable to use Jack Audio Connecting Server at the same time with the video apps.

If someone knows any way to fix this... I'll appreciate the helping hand!!!


Back to the roots - connection Canoscan 4200F

Canon does not supply Linux drivers for their devices.

Specific the "Canoscan 4200F" does not work with the SANE backend. Their site has some good info on thise device and lists Chipsets used and the USB connection info. It is possible to contact the maintainers of the sane package. Maybe you can supply them with the needed information to get this printer added to their backend.

All in all I would advice to purchase a printer and scanner that does support Linux.


Squid Proxy Server not working ubuntu 12 04

It has been (re)named to squid3, so the config files are in /etc/squid3/.

You can start it with

service squid3 start


Reinstalling package thunderbird does not solve problem with Gnome

This worked for me.

Go here  https://www.ubuntuupdates.org/package/core/xenial/main/proposed/thunderbird and download the .deb package for thunderbird 60.9.1
In terminal change to the directory where the .deb file is located.
type sudo dpkg -i --force-all ./thunderbird_60.9.1+build1-0ubuntu0.16.04_amd64.deb
"
(tip: type ls  t   Now hit the tab button.  Now hit return.  Now hit the up arrow.  Now hit the back arrow and replace ls with sudo dpkg -i --force-all ./ )
Now type without the quotes: "sudo dpkg --configure -a"
Now open Thunderbird and enter your gmail password and click ok.  It should step through the 2-step authorization successfully.


Editing bashrc to run a program from the terminal

If you really added

alias < WHAT >='./WHAT'

you're misunderstanding Bash syntax. Read and re-read man bash. What you want is probably

alias WHAT='./WHAT'

but that's not what you want at all. See my answer over here


How install GraphicsMagick with quantum 16

I tried the approach suggested in the answer but it does not work.  After some analysis I realized that it makes the package and installs it, but it does not change the library itself.

i.e. /usr/lib/libGraphicsMagick++.so.3.6.2 has the original package build date, and octave goes on saying:

warning: your version of GraphicsMagick limits images to 8 bits per pixel

Therefore I issued the command make install from the directory
graphicsmagick-1.3.18/ and this changes the library. As a consequence octave does not work properly anymore: running imgread some symbol can not be found.

In order to put it back to work you have to run apt-get build-dep octave, obtain octave sources, run ./configure, compile, and install. Then you get:

warning: your version of GraphicsMagick limits images to 16 bits per pixel

This is not an orthodox approach for sure, but if you really need 16 bits per pixel, it works.


Are there power plans for Ubuntu like in Windows 7?

Here is a question about battery life tips:

Tips to extend battery life for laptops and notebooks

And here is an indicator to simply change battery consumption behaviour:

http://www.webupd8.org/2011/09/jupiter-applet-finally-available-for.html


Help Needed Plug and Play NAS (novice user)

Ubuntu completely supports NAS in the same way that Mac + Windows do.

Most products do not mention having Linux support, but ultimately, they don't need to support Linux. Linux supports them. You will see plenty of this, but don't be discouraged! Where there is a will, there is a way, and 95% of the things you want to connect to your Linux box will, in fact, work.

Once you get it home, get it plugged in, Nautilus will automatically show it under "Network" - and if it doesn't, it is a pretty simple and straightforward thing to get it connected. All you have to do - in Nautilus' 'File' menu, select "Connect to Server" and enter the IP of the NAS - but you more than likely won't need to do that, but in case you do, this is what you would do:

1). Log in to your router's control panel (whichever one you connected the NAS to).

In a browser, type the IP of your router, which is usually labelled on the router.
The login name and password are also printed on the router.

2). Somewhere in there, there is a list of all devices connected. Find your NAS.
 - Note the IP of the NAS.

3). In Nautilus, go to File > Connect to Server
 - Input the IP you just got. If you got an error, append it with:
   smb:// --- i.e. smb://192.168.1.18

4). Voila! Nautilus will save the connection for subsequent uses.

There is basically no exception to this, and virtually any NAS storage drive you get that is Mac and Windows compatible will work just fine. (An Apple Time Capsule probably won't work)

The last time I dealt with an NAS, the thing actually had some version of Linux installed on it to drive the thing.


How to know the history of changes made with Motherboards in ubuntu?

If the machine is using DHCP to obtain an IP address, you should be able to find it in the syslog if it wasn't too long ago.  Open a terminal and type

sudo zgrep "dhclient: Listening on" /var/log/syslog*

You will see a listing of all the MAC addresses and interfaces that dhclient has listened on.  The oldest ones have the highest number in the name of the file (e.g. syslog.8.gz), but the lines should be timestamped anyways.


I have installed Gnome3 and now can't login. How can I login from console?

in the description of the ppa it says:

"This PPA is EXPERIMENTAL and MAY BREAK YOUR SYSTEM. There is no downgrade process"

Gnome 3 is currently not supported by ubuntu, I don't know about the downgrade part but you can try removing the ppa with ppa-purge :

sudo apt-get intall ppa-purge
sudo ppa-purge ppa:gnome3-team/gnome3


I found out my answer. With the USB plugged in type in the command line:

sudo update-grub

Along with the normal Ubuntu and Memtest it said:

Found Windows 8 (loader) on /dev/sdb1


Ubuntu 18.04, can't disable laptop touchpad on Dell Latitude E5520

As a work-around you can use a gnome-shell extension:

Toggle Touchpad
Touchpad Indicator - that's the one I prefer


Open source drivers (the only ones you can use with your card so dont try the fglrx packages) are active by default during install. You dont need to install anything else.

What you need to do is use Ubuntu2D instead of the default Ubuntu3D desktop since this card is way to old to support the 3d acceleration necessary for Ubuntu3D.


pam_unix(sudo:auth): authentication failure - Restarting apache2

SOLVED:
In my django_project.conf I forgot to close a </Directory>.
From
<Directory>
    Something written here
<Directory>

to:
<Directory>
    Something written here
</Directory>

The closing slash / was missing


Why does pylint Gedit plugin give me an error when I try to enable it?

This is a good question, as it is sometimes tricky to setup the pylint plugin for gedit. The following tutorial was tested with gedit 3.4.1 on 12.04.

1) The first thing you need to do is install pylint itself from the repositories, as without this program, the pylint plugin won't work. So please run:

sudo apt-get install pylint

This is the necessary dependency and is not the plugin itself, and it should install as well python-logilab-common and python-logilab-astng, which are also necessary.

2) You may be using the wrong version of the plugin. It is of foremost importance that you use the forked version of the pylint plugin from the Launchpad page, which is called gedit-pylint-2, as that supports gedit 3.x versions; other versions of the plugin will not work with gedit 3.x. (However, if you are using an earlier version of gedit than 3.x, you should use the 1.1 version of the pylint plugin from the Launchpad page.)

Download the latest version of the source: it does not need compiling, but it is important to follow my installation procedure, as parts of the included README in the download are inaccurate. (I recommend you start again and follow this guide, as it worked for me. You should not need to tweak or rename anything, as you say you are doing.)

Move to the folder with the downloaded file (after checking the md5) and extract it with

tar -xzvf gedit-pylint-2-2.1.tar.gz
cd gedit-pylint-2-2.1

Now, you can actually install it to ~/.local/share/gedit/plugins without placing it in any of the system directories. I should remove your installed version, and install it again as detailed below, as I think you had the wrong version anyway: the plugin name must be pylint-2.plugin, not pylint.gedit_plugin.

While in the downloaded plugin folder, run the following:

mkdir -p ~/.local/share/gedit/plugins
cp -R pylint-2/ ~/.local/share/gedit/plugins
cp pylint-2.plugin ~/.local/share/gedit/plugins

Now, you need to install the gsettings schemas, before you try to activate the plugin in gedit. (The included README is accurate here).

Indeed, this is probably why you could not activate the plugin properly, as you must install the schemas. (The following commands assume you are in the downloaded plugin folder)

sudo cp gedit-pylint-2.gschema.xml /usr/share/glib-2.0/schemas/
sudo glib-compile-schemas /usr/share/glib-2.0/schemas/

Now, run gedit and enable the plugin from edit > preferences > plugins (screenshot 1), and you will be able to use it from tools > pylint (screenshot 2). Make sure you have the bottom panel enabled, as that is where the output from the plugin will go (screenshot 3).

1) Enable the plugin from preferences:

2) It should be listed in the tools menu:

3) You can now analyse your python scripts: note the bottom pane is enabled. Click 'check' in the bottom pain to run the plugin.


Xubuntu 12.10 wifi won't connect to wpa2 enterprise network

Problem solved, by a known method from Internet, but with a little bit difference in the content of the config file according to specific release version I guess.

cd /etc/NetworkManager/system-connections/

sudo sed -i '/ca-cert=/ d' "SSID"

replace the

SSID with the your SSID, and that's it!

good luck!


Can I Install Ubuntu 14.04 LTS (64 bit) in hp compaq 6910p Notebook?

If you take a look at Ubuntu's minimum requirements:

https://help.ubuntu.com/community/Installation/SystemRequirements

and compare those to the HP 6910P's specifications:

http://www8.hp.com/h20195/v2/GetPDF.aspx/c04142126.pdf

you'll see that yes, you can install Ubuntu 14.04 on the HP. That said, you'd do well to look around on the Internets to see if there are any known driver issues, bugs, etc.


"Host key verification failed" error when transfering files using SCP command

You have to remove the 4th ssh key from /home/users/myaccount/.ssh/known_hosts file.


Hardcoding subtitles using mkvmerge recursivly

You can tick over the available .mp4 files and call mkvmerge on them.

for f in *.mp4; do
    mkvmerge "$f" "${f%.*}_ar.srt" -o "${f%.*}.mkv"
done

I'm not sure if the charset is needed but there is a --sub-charset TID:character-set argument. TID is the track number which I assume to be 0 or 1. Try it without first but if it doesn't work try adding --sub-charset 0:WINDOWS-1256 to the command.


Different Wallpapers for each desktop in 11.10

Here how:

I didn't take any credit from them so i am copy the link here:

http://my.opera.com/ubuntunerd1/blog/how-to-get-multiple-desktop-wallpapers-in-ubuntu-8-4-8-10

http://ubuntuguide.net/ubuntu-11-04-unity-enable-different-wallpapers-in-each-workspaces


Internet connection suddenly missing in Ubuntu 14.04

I had the same thing happen to me this morning.  I had to go to another network working linux machine and execute these commands to save the pre-upgrade packages to a usb stick:

$ wget http://mirrors.kernel.org/ubuntu/pool/main/libn/libnl3/libnl-3-200_3.2.21-1_amd64.deb
$ wget http://mirrors.kernel.org/ubuntu/pool/main/libn/libnl3/libnl-route-3-200_3.2.21-1_amd64.deb
$ wget http://mirrors.kernel.org/ubuntu/pool/main/libn/libnl3/libnl-genl-3-200_3.2.21-1_amd64.deb

Then, insert the usbstick in the problem machine, mount it, cd the directory where your files are and execute the command:

$ sudo dpkg -i libnl-*.deb

...and the reboot.  That should fix your network issue.

Ubuntu will then want you to upgrade those packages again.  I did that and it broke mine again but someone else reported that more packages came up to upgrade and upgrading all of them fixed the original issue.


How to easily add scripted actions on various events

I know this is missing the "using udev"-part of your question, but you might still be interested.

Install cuttlefish

I use it myself for automated-script when I connect to different WLan APs. It's dead-easy to setup. OMG-Ubuntu has an article on it.


teamviewerd not starting with lightdm on 13.10

There are some integrated deamon commands in teamviewer. At least on 8th version.

teamviewer --daemon status           show current status of the TeamViewer daemon
teamviewer --daemon start            start                      TeamViewer daemon
teamviewer --daemon stop             stop                       TeamViewer daemon
teamviewer --daemon restart          stop/start                 TeamViewer daemon
teamviewer --daemon disable          disable                    TeamViewer daemon - don't start daemon on system startup
teamviewer --daemon enable           enable                     TeamViewer daemon - start daemon on system startup (default)

source


OpenSSL remains vulnerable after update to 14.04

As @david6 pointed out, the version of OpenSSL might still appear to be a vulnerable version. This is because Ubuntu, as many other distros, backports security fixes rather than updating to a whole newer version of the software (and possibly picking up new features and their attendant bugs along the way). So, just because you're running a "vulnerable version" of OpenSSL doesn't mean you're running a vulnerable version of OpenSSL.

However, if the available Heartbleed audits indicate you're still vulnerable, you're still vulnerable.

What I think is going on is that you've updated the package, but you haven't restarted the services that use OpenSSL, so they are still holding on to the older version that they loaded at startup.

There are two easy ways to fix that:

Reboot the server.
Identify and restart the affected services. An easy way to do this is with, checkrestart from the debian-goodies package. It should identify the affected services and even tell you what init scripts will restart them:

$ sudo apt-get install debian-goodies
$ sudo checkrestart


Uncommenting the second line here:

# uncomment to set the default look and feel to GTK
swing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel

in

/usr/lib/jvm/java-6-openjdk/jre/lib/swing.properties

solved my problem. Thanks to this answer to another question. :)


After some searching and testing i found the right options combo and thought it would be nice to answer my own question for those with the same problem :)

Working code is:

xwinwrap -g -ni -fs -s -st -sp -b -nf -- mplayer -loop 0 -wid WID "`zenity --file-selection`"


Cannot install curl-config in Ubuntu 12.04

The current version for libcurl4-openssl-dev is 7.22.0-3ubuntu4.14 and not 7.22.0-3ubuntu4. Therefore the installation of libcurl3 is blocked.

Use the main server

sudo sed 's/http:\/\/fr\./http:\/\//' /etc/apt/sources.list

And you should check, if you have enabled precise-security and precise-updates in Software & Updates in the tab Updates.

Now upgrade your system

sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install --reinstall libcurl4-openssl-dev

Note, that /usr/bin/curl-config is available in the packages

libcurl4-gnutls-dev
libcurl4-nss-dev
libcurl4-openssl-dev


Error could not find libjava.so when running java binary

Try rebooting your computer after installing it and try again.

Or you could have a problem similar to this one: https://stackoverflow.com/questions/25954348/error-could-not-find-libjava-so-error-could-not-find-java-2-runtime-environme

One of the poster mentions he has 2 versions installed: "I encounter this issue before. It turns out there are 2 javac program sitting on my machine. They are in /usr/bin/javac and /bin/javac. My system used the /bin/javac one. The right path for me is /usr/bin/javac. Removing /bin/javac helped"


By "hate", I presume that you mean that you are afraid of accidentally running this?

The command rm -r / (with or without -f) will prompt you:

rm: it is dangerous to operate recursively on `/'
rm: use --no-preserve-root to override this failsafe

Unfortunately, it doesn't check this when you specify /*, because the latter is expanded into each folder. While most folders and their contents will be safe (because you haven't used sudo), unfortunately those inside your home folder will be deleted.

There is no simple answer to this. You could write a function in .bashrc that checks for this, but it would be quite complex: the function would have to:

Check the options as to whether they contained -r, -R or --recursive and whether or not you used --no-preserve-root.
Look at the non-option parameters to find out if it is likely that you used /*.

I think that -f or --force can be ignored, because without this, the command still has the ability to wreak havoc.

I have written a script to do exactly this. It is below. Simply add this to the end of your file ~/.bashrc, close all open terminals and re-open the terminal, and it should work.

Warning, Warning, WARNING, WARNING!

Please test thoroughly before using it live.
I have put echo before the actual rm command in the script (right at the end), to allow you to test. This means that when you run it, it will display the command instead of actually running it. When you've tested it thoroughly, edit your ~/.bashrc to remove the word echo.
This applies to your terminal. It does not apply to root's, i.e. sudo. Thus, it will still cause havoc if you run sudo rm -rf /*. To make it apply to sudo… well, there must be a way, but sorry, I don't know how. :( I'm sure someone clever here will figure it out, in which case I can add it to this reply. (There is a way if you can guarantee that sudo will always use the same ${PATH}, but I don't think that this is true.)

Here is the script:

#---------------------------------------------------------------------------------------------------
#    Amendment to rm
#
#    Check if it is likely that the user called rm on root with recursion but without the option
#    --no-preserve-root
#    If so, display a warning. Otherwise, allow rm to continue unhindered.
#---------------------------------------------------------------------------------------------------

function rm ()
{
    # Extract all of the options and parameters.
    local -r GETOPT="$( getopt --longoptions=force,interactive::,one-file-system,no-preserve-root,recursive,dir,verbose,help,version    \
                               --options=fiIrRdv -- "${@}"
                      )"

    # Replace the current parameters with the interpreted ones from rm.
    eval set -- "${GETOPT}"

    # Define variables to use in the function.
    local -i FILES_COUNT=0                              # The number of files and folders found.
    local ALL_ROOT=true                                 # Assume true unless found otherwise.
    local RECURSIVE_USED=false                          # Unless found true.
    local NO_PRESERVE_ROOT_USED=false                   # Unless found true.
    local PARAM                                         # To hold the parameter being inspected.
    local INTERACTIVE_STATE=false                       # Whether we are expecting an option to --interactive.

    # Run through the parameters to find if we should catch this command.
    for PARAM
    do
        # Handle the option --interactive first.
        if ${INTERACTIVE_STATE}
        then
            INTERACTIVE_STATE=false                     # Turn off the interactive state.

        elif [[ ${PARAM} == '--interactive' ]]
        then
            INTERACTIVE_STATE=true

        elif [[ ${PARAM} == '-r' || ${PARAM} == '-R' || ${PARAM} == '--recursive' ]]
        then
            RECURSIVE_USED=true

        elif [[ ${PARAM} == '--no-preserve-root' ]]
        then
            NO_PRESERVE_ROOT_USED=true

        elif [[ ${PARAM} =~ ^- ]]
        then
             :                                          # Ignore any option that we don't care about.

        else
            : $(( ++FILES_COUNT ))                      # Keep count.
            if ! [[ ${PARAM} =~ ^/ ]]
            then
                 ALL_ROOT=false                         # This isn't a root file or folder.
            fi
        fi
    done

    # Is this likely to be the command that we are searching for?
    if (( FILES_COUNT > 0 )) && ${RECURSIVE_USED} && ${ALL_ROOT} && ! ${NO_PRESERVE_ROOT_USED}
    then
        # Yes! Recursive; all root files and folders; and missing no-preserve-root.
        # Leave a message and exit with an error.
        echo 'You are using rm to remove all root files and folders.'         >&2
        echo 'Please use --no-preserve-root if that is really what you want.' >&2
        return 3
    fi

    # No, this is (supposedly) safe. Run the command.
    echo rm "${@}"

} # rm


Try

sudo mysql -u root

MariaDB uses Unix socket authentication, which means you're authenticated as the user starting the mysql client.

You can read more about it in MariaDB's documentation.


I have no idea what you have said in the first two paragraphs, so I can't tell if there's a better solution (my instincts scream there should be).

To run a command at X-second intervals, there are many options, discussed in this Stack Overflow question and this Unix & Linux question.

Execution of command a second after the previous command finishes

Simply put, use a script like this:

#! /bin/bash
while sleep 1
do
   # your commands
done

Execution of command a second after the previous command starts

Same as above, but you send the command to the background. This will result in overlapping command executions if the command takes longer than 1 second to complete.

#! /bin/bash
while sleep 1
do
   (# your commands )&
done

Now, to make sure that the script is running, use an Upstart job:

description "a good description"
start on runlevel [!016]
stop on runlevel [016]

respawn

exec /path/to/the/above/script

Save this is to a .conf file in /etc/init, such as /etc/init/some-job.conf. Now you can start the script with:

service some-job start

The respawn option will make Upstart restart the script if it ever exits (it shouldn't).


What's the simplest solution so that I can keep using Dropbox?

The simplest solution is not at all simple, but if you wish to try anyway see this answer for how to stop protecting your home directory using encryption:

"How to stop using built-in home directory encryption?"

Alternatively, stop using Ubuntu and switch to an operating system that is better supported by Dropbox, such as Windows or macOS. You'll have to decide which is a higher priority for you, basic security for your data on Ubuntu or the ability to keep using Dropbox (running on something else).


Permanently unset environment variable SUMO_HOME

To completely remove sumo package you need to purge it.

$ apt-get purge sumo
# Or
$ apt-get --purge remove sumo

if you only use apt-get remove, some files will still remain on your system, such as configuration files. You can find those files under /var/lib/dpkg/info.

$ cd /var/lib/dpkg/info && cat sumo.list
/etc
/etc/profile.d
/etc/profile.d/sumo.csh
/etc/profile.d/sumo.sh

( && is used to make a sequence of commands; if first command runs successful, next command will run and so on or abort the sequence if one the commands fails)

If you already purged your package, you could try to reinstall the package and purge it again, if the problem still persist you may end up dealing with the problem manually. Downloading the package allows you to check its content or extract it if needed.

$ mkdir sumo && \
     cd sumo && apt-get download sumo

$ dpkg-deb --contents sumo_1.3.1-4_amd64.deb

Or extract:

$ dpkg-deb --extract \
    sumo_1.3.1-4_amd64.deb content && ls content
etc usr

$ grep -IRni 'export SUMO'
etc/profile.d/sumo.sh:2:export SUMO_HOME=/usr/share/sumo

(\ is used to wrap long lines; purely cosmetic).

If you still do not manage to solve your problem, you will need to download the source package.
(make sure you have deb-src added to your /etc/apt/sources.list).

$ mkdir sumo && \
     cd sumo && apt-get source sumo && cd sumo-*

$ grep -IRni 'export SUMO'
build/package/sumo.sh:2:export SUMO_HOME=/usr/share/sumo

$ grep -IRni 'build/package/sumo'
debian/sumo.install:1:build/package/sumo.*sh etc/profile.d

So, the file(s) causing your problem is in /etc/profile.d

$ cd /etc/profile.d && \
  rm sumo.*sh

grep options:

-I Process a binary file as if it did not contain matching data.
-R Read all files under each directory, recursively.
-n Prefix each line of output with the 1-based line number.
-i Ignore case distinctions.


mysqld is suddenly taking too much memory and my laptop is getting hotter

Check your buffer_sizes, i assume you are using innodb,

set the innodb_buffer_pool_size to a value which is lower than that of current one.

The number of connections can also makes use of large memory, so set your max_connections value as low as possible

make sure you have closed all the open connections in your application once they done their job.

If there are any long running queries, it affects the performance too. You need to check your slow query log to find those queries.

Check by SHOW FULL PROCESSLIST which shows the queries that are running and waiting for some other resources. You can refine those queries to make them complete quick.


can't connected LAN with static gateway router

You must set on router traffic forwarding.

First allow fw on system with command

sudo sh -c “echo 1 /proc/sys/net/ipv4/ip forward’’

and do some iptables fw rules

sudo iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
sudo iptables -A FORWARD -i eth1 -o eth0 -m state -–state RELATED,ESTABLISHED -j ACCEPT
sudo iptables -A FORWARD -i eth0 -o eth1 -j ACCEPT

Edit 1

iptables -A FORWARD -i eth0 -o eth1 -j ACCEPT
iptables -A FORWARD -i eth1 -o eth0 -j ACCEPT
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

and not forget

sudo sh -c “echo 1 /proc/sys/net/ipv4/ip forward’’


http://domain/phpmyadmin login page not loading - error 403 forbidden

Analysis

Looked in /var/log/nginx/error.log

eg 403 error http://domain/phpmyadmin
eg "GET /phpmyadmin/ HTTP/1.1" 403 152 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0"

http://domain/phpmyadmin/index.php worked, bringing up the login page.

However, http://domain on its own would give a 403 error even though index.php was present.

Fix
/etc/nginx/sites-available/default, added index.php, restarted the website

faulty version

    # Add index.php to the list if you are using PHP
    index index.html index.htm index.nginx-debian.html;

corrected version

    # Add index.php to the list if you are using PHP
    index index.php index.html index.htm index.nginx-debian.html;


Open source stun turn server which can do hole punch is there similar packages?

One Ugly issue in history of networking is this NAT.

  STUN and TURN are sub-parts of the broad ICE framework. STUN and TURN
  do not know about ICE and those protocols are just cubicles in the
  general ICE picture. When you are using ICE, you have to set all the
  components (including STUN and TURN) to work together. This TURN
  server has all means to set it up correctly in any environment. How to
  set up your particular ICE framework I have no idea and that is not my
  concern. If you will see that the TURN server is doing something
  incorrectly, then you can report it here.

For Linux we got:

1) resiprocate-turn-server
- http://www.resiprocate.org/ReSIProcate_1.8_Release

community is deadly, like nobody is there

Ubuntu above 12.04 you should get so that you can install it as:

$ apt-get install resiprocate-turn-server
$ reTurnServer /etc/reTurnServer.config  --LogLevel=INFO
INFO |.662 | reTurnServer | RETURN | | UdpServer.cxx:29 | UdpServer started.  Listening on 0.0.0.0:3478
INFO |.662 | reTurnServer | RETURN | | TcpServer.cxx:26 | TcpServer started.  Listening on 0.0.0.0:3478
ERR |.663 | reTurnServer | RETURN | | TlsServer.cxx:30 | Unable to load server cert chain file: server.pem, error=22(Invalid argument)
ERR |.663 | reTurnServer | RETURN | | TlsServer.cxx:37 | Unable to load server private key file: server.pem, error=22(Invalid argument)
ERR |.663 | reTurnServer | RETURN | | TlsServer.cxx:44 | Unable to load temporary Diffie-Hellman parameters file: dh512.pem, error=22(Invalid argument)
INFO |.663 | reTurnServer | RETURN | | TlsServer.cxx:55 | TlsServer started.  Listening on 0.0.0.0:5349

DEBUG |.552 | reTurnServer | RETURN | | TcpConnection.cxx:39 | TcpConnection started.
WARNING |.181 | reTurnServer | RETURN | | AsyncTcpSocketBase.cxx:181 | Receive buffer (2048) is not large enough to accomdate incoming framed data (27764) closing connection.
DEBUG |.181 | reTurnServer | RETURN | | TcpConnection.cxx:27 | TcpConnection destroyed.
^CDEBUG |.023 | reTurnServer | RETURN | | TlsConnection.cxx:32 | TlsConnection destroyed.
DEBUG |.024 | reTurnServer | RETURN | | TcpConnection.cxx:27 | TcpConnection destroyed.
INFO |.024 | reTurnServer | RETURN | | TurnManager.cxx:36 | Turn Manager destroyed.

Fedora 19: (optional)

$ yum install resiprocate-turn-server

2) rfc5766-turn-server: (community is active, not dead) http://code.google.com/p/rfc5766-turn-server/downloads/list

$ turnserver -u username:password


Xephyr on Ubuntu 14.04 via SSH is buggy?

Try adding -noxv.

If this does not help, please post the full error if you have more.


What is the best way to stop other users accessing my data, while still allowing them in my Public folder?

If you encrypt your home folder, nobody is able to access your public files without decrypting it first. If you want to allow others to read your public files, but disallow access to other files, you need to revoke any permissions for the others and set the permissions mask to avoid newly created files relaxed permissions.

Edit ~/.profile and change #umask 022 to umask 027 (I believe the default is #umask 002 for Oneiric and up, use umask 007 in that case). This will suggest to programs that the read, write and execute permission bits are never set for other users.
Re-login to apply these changes. This is needed to ensure that the next step will succeed for all files.
Remove all of the permission bits for other:

chmod -R o-rwx ~

You've successfully removed read, write and execute permissions for the world. Now, add the execute bit again to the home folder so others can descend into it:

chmod o+x ~

Allow others to read and descend into your Public folder as well:

chmod o+rx ~/Public

Profit!


This guide should help you narrow down the right package. For bug triaging help find someone in the Bug Squad or ask on their mailing list or in #ubuntu-bugs.

The bugsquad has regular meetings and can probably find you a mentor if you want to help (and join!). For reference here's the Bug Triaging Guide.


Need help to install persistent Ubuntu on USB drive

What you want to accomlish is called virtualization, and has nothing to do with persistent USB installs. You'll have to install Ubuntu in a virtual machine using Virtual Box, and keep the disk image file, .dvi, on the USB stick. To use that file, simply select it when creating a new virtual machine on a new computer.


What actually IS the functionality of the "lock user" function on Ubuntu Landscape?

There is actually nothing specific to landscape there.

In short, locked account are users for which the password entry starts with a "!", thus disabling password access (see man passwd on your system for more details). It generally doesn't look different from a failed password attempt.

ssh may still allow key based authentication for locked users depending on its configuration. UsePAM yes is known to have that effect, and is enabled by default on Ubuntu.

Here are a couple ways you can achieve user locking:

set UsePAM no in sshd_config
disable PubkeyAuthentication
not use locking mechanism but rather set expiration date on the user
set the shell of the user to /usr/sbin/nologin
there are probably other settings related to PAM you can use, but I'm not familiar enough with them


Visible & Audible Notifications for new emails?

Thunderbird has this built in, on the Preferences / General page, When new messages arrive: section.

You can crank the time up on the alert using the Customize button, and add the sound of your choosing.


You can check whether you are hit by this bug.

In my case it helped to inactivate the virtual keyboard "Onboard".


Installation instructions vary across programs although there are well-established tools like autotools (includes automake and autoconf) and cmake.

Since programs can come in different programming languages, its hard to give generic commands that suit all packages. For example, Python often have setup.py scripts where C programs often use autotools or at least a Makefile.

I always start with finding the INSTALL, README or similar files. If you need to compile a program from source, you likely need the build-essential package which depends on compilers and other generic development packages.

Depending on the program you're trying to compile, you might need to install other dependencies. Check the README for that or the output of the ./configure script (an executable file located in the root of the extracted source). For example, if it says that you need "x11 development headers", try finding "x11-dev" or "libx11-dev" in the repositories (in this case, it's libx11-dev what you're looking for).

Source distributions that were built with autoconf/automake can be extracted and configured with:

tar xf foo-1.0.tar.gz
cd foo-1.0
./configure
make
sudo make install

Use ./configure --help for available options. By default, the files are often installed to /usr/local which is perfectly fine. Unless you're going to package the file into a .deb file, do not change this prefix to /usr as it may conflict with the package management system (dpkg).

make is supposed to start compiling everything where make install installs the files to the designated locations (sudo is necessary for writing to privileged locations like /usr/local). To uninstall it later, run from the source directory sudo make uninstall (providing that the package is properly build with autoconf/automake, which is a responsibility of the developer, not you, the user!

If you're just interested in compiling a package from the software center on your computer, proceed with (replace package and the version accordingly):

sudo apt-get build-dep package
apt-get source package
cd package-1.0
dpkg-buildpackage -b -uc -us

See the respecxtive manual pages for more details on the commands. (e.g. run man dpkg-buildpackage in a terminal). After performing these commands, you'll have a .deb file in the parent directory. It's recommended to use the packages from Ubuntu repositories where possible. The above steps are shown for educational reasons, but generally you want to make a modification to some files before building the package.


installing cpuminer on Ubuntu 14.04.4 x64

The default build directory is /home/[name]/tmp/, or other folder in  /home/[name]/. (Not the Desktop/).

No issues with Ubuntu 14.04.5 - 64 :

$ sudo apt-get install g++ libcurl4-openssl-dev libncurses5-dev pkg-config automake yasm git

$ cd tmp/
$ git clone https://github.com/pooler/cpuminer.git
$ cd cpuminer/
$ ./autogen.sh
$ ./configure
$ make

... and the executable minerd is created. And you can do : sudo make install


Cannot boot into ubuntu after repartitioning

First, you wrote:

  GRUB enabled me to boot into both a UEFI and a legacy sistem from the same menu.

You're almost certainly mistaken, because GRUB does not support switching boot modes (BIOS to EFI or EFI to BIOS). You could probably boot your Kali from Ubuntu's EFI-mode GRUB or Ubuntu from Kali's BIOS/CSM/legacy-mode GRUB, but in those cases, the target OS will be running in the boot mode of the boot loader, rather than in the OS's original installation mode. Linux is flexible that way; the kernel and subsequent tools don't really care how they're loaded, and will adapt to the boot environment without further reconfiguration. (There are some exceptions having to do with the initialization of hardware, but that's a matter that doesn't seem to affect you....)

As to your boot problem, it looks like GRUB is misconfigured. Either you changed your GRUB configuration (knowingly or not) when repartitioning or the repartitioning has changed the identities of some of your partitions, which has thrown GRUB off. Either way, the Boot Repair utility might fix the problem; however, given your odd configuration with a (presumed) mixture of EFI-mode and BIOS-mode GRUB installations from two distributions, there's a chance that Boot Repair will become confused and do no good, or maybe even make matters worse. If you try Boot Repair and it doesn't work, post back with the URL that it gives you; that will provide us with more detailed information about your configuration, which should help in providing a fix.

Another option is to install my rEFInd boot manager. You can do this while minimizing the risks by trying the USB flash drive or CD-R version (available from the downloads page). If you can boot from it, it should present options for booting Windows, Ubuntu, and Kali (although the latter two may not be clearly differentiated in the menu). Trying this is risk-free because you're not modifying your disk or NVRAM options when booting via the rEFInd external medium. If you can get into all three OSes via rEFInd, then you can install the rEFInd Debian package from Ubuntu. This should make rEFInd your default boot manager. You can then clean up the boot menu and assign distinctive icons for both Ubuntu and Kali, as described here.


Could Unity 2D speed up 3D games on Ubuntu 13.04?

Yes, running "Unity 2D" will make games faster. However, there is no longer Unity 2D. You can use other desktop environments. XFCE is pretty good.


How to check if the AC laptop adapter is plugged or not?

You can use acpi with -a argument. To see how it works, run in your terminal:

acpi -a

By default, acpi package is not installed in Ubuntu, but is very easy and quickly to install from your terminal using the following command:

sudo apt-get install acpi

Then, in your script you can use for example:

ac_adapter=$(acpi -a | cut -d' ' -f3 | cut -d- -f1)

if [ "$ac_adapter" = "on" ]; then
    notify-send "AC Adapter" "The AC Adapter is on."
else
    notify-send "AC Adapter" "The AC Adapter is off."
fi

To make the script to run at start up, just add a new entry in your crontab list (using crontab -e command) as follow:

@reboot DISPLAY=:0.0 /path/to/your/script


Problem with Ubuntu Startup and Graphics

After a lot of Searching, I finally came up with the solution. So here it is:

Solution:

All I had to do was to install elementary (Or I assume any other ubuntu derived Linux distro) with nouveau.modeset=0 boot flag and remove the quite and  splash flags.

Also, I had to boot one more time using the exact same options to elementary OS to prevent what was happening, which I guess, it has something to do with Optimus or Nvidia Graphics.

Once You booted to elementary just use Nvidia Graphics Driver from Aditional Drivers and restart and it won't happen again! It will boot like a charm from now on!

Fan Speed Problem:

Let's not forget to mention that once I switched to using Intel HD Graphics using Nvidia X Server Settings App, every time I logged in my laptop fan started to work at the maximum speed. So I managed to solve that with upgrading to the latest stable Linux Kernel (4.8.1 by the time I send this).

Here's how you can upgrade kernel to 4.8.1:

$ wget http://in4serv.com.br/backup/kernel-4.8.1-stable
$ sudo chmod +x kernel-4.8.1-stable
$ ./kernel-4.8.1-stable

Why I switched to Intel HD Graphics:

The reason I switched to Intel graphics was that every time I tried to watch something on youtube maybe in full HD, I used to see glitches in videos (and also on VLC). Pantheon Desktop also used to get weird with displaying background and animations sometimes! But now that I have switched to Intel HD Graphics and everything is working perfectly :)


How can you install Mono 3.x on earlier versions of Ubuntu (12.x)?

You can install Mono 3 in Ubuntu 12.04 or 12.10 with ppa:v-kukol/mono-3 repository:

sudo add-apt-repository ppa:v-kukol/mono-3
sudo apt-get update
sudo apt-get install mono-complete


Hello and welcome to ask Ubuntu,
can you show your the full content of /etc/apt/sources.list and the full content in /etc/apt/sources.list.d? In the first should only stored Ubuntu packages. In /etc/apt/sources.list.d you add extra PPAs. For example /etc/apt/sources.list.d/projectatomic-ubuntu-ppa-focal.list with this content: deb http://ppa.launchpad.net/projectatomic/ppa/ubuntu focal main
Use the edit button in your first entry.
Did you tried sudo dpkg --configure -a? If yes, what was the output?


Creating a steam library on flash drive problems

As suggested in the comments:

Find out what is the name of your drive:

sudo fdisk -l

This lists all partitions, there you have to find yours (just look for the size in the first line, this usually helps most)

Then execute

sudo mount -t vfat -o rw,auto,user,exec,fmask=0022,dmask=0000 /dev/DRIVE /mountpoint

where DRIVE is substituted by what you found out above and mountpoint, for example, is /media/$USER/steamDrive.

If you want to always mount this drive on boot see this; which also might be a good idea to read for understanding.


Ubuntu (and Linux in general) does not require particularly fast disk drive. I you are running memory-intensive applications or have small RAM in your comp you should put swap on SDD and all other Ubuntu filesystems on HDD.

In such case you should have at least 3 partitions available for your Ubuntu installations:

1st for swap - preferably on SDD
2nd for /boot
3rd for everything else - I usually use it to create LVM volume so I can keep things separated while having some flexibility

Here is my favourite partitioning example:

Filesystem                      1K-blocks      Used Available Use% Mounted on
/dev/mapper/ubuntu--vg-root--lv  10190136   1775676   7873788  19% /
/dev/mapper/ubuntu--vg-usr--lv  103081248   6285284  91536700   7% /usr
/dev/mapper/ubuntu--vg-srv--lv     999320      1284    929224   1% /srv
/dev/sda2                          516024    368440    121372  76% /boot
/dev/mapper/ubuntu--vg-tmp--lv   10190136     23568   9625896   1% /tmp
/dev/mapper/ubuntu--vg-opt--lv   10190136    207132   9442332   3% /opt
/dev/mapper/ubuntu--vg-home--lv   2535216    643960   1761172  27% /home
/dev/mapper/ubuntu--vg-var--lv   20511356   1361992  18168300   7% /var

Please note /boot on a separate partition.

You can search for "Ubuntu custom partitioning" or review this question for reference: How to use manual partitioning during installation?

The proposed scheme has also the advantage, that if you remove HDD and move it to another PC you just loose swap, but Ubuntu stays usable - you can import volume group and mount filesystems or you even may be able to boot it up and use.
(depending on hardware similarities)


Pidgin icon not showing up in system tray

Remove the pidgin status provider:

sudo apt-get remove indicator-status-provider-pidgin

Then restart Pidgin and it's icon should show up. If it does not, then just make sure to double check that you have Pidgin's tray icon enabled in its preferences (in case this option was disabled when you had the indicator installed).

To be completely certain (now I noticed that the icon is there but transparent), check the following:

Ensure that you are using the default icon theme in pidgin.
Try using one of the default Ubuntu icon themes if you are not already.


There are two ways to solve that problem:

Open a new window in Incognito mode (Ctrl+Shift+N) (thanks to @Salem) for temporary usage
Create a new profile with chromium-browser --user-data-dir=/new/directory. In this new profile, you can switch off all cookies, plugins, etc. and restart it with the same command whenever you need it.


Problem solved.

Thanks to:
askubuntu

and

ubuntu forums

follow the links for instructions


It's in fact a weird problem. And maybe you should try to open a bug ticket to the Ubuntu Developers. Despite that, this what I would try:

I've solve many issues regarding Ubuntu using Gnome's Shell Extensions, this is one you should try:

Monitors Add-On

If that doesn't work, you might consider upgrade your version to 18.10.

Good luck.


"Could not unlink /var/run/tor/control: Permission denied" on tor start from vidalia

Run tor as root (sudo ... ). If that does not work, file a bug report as you are using an alpha release.


Logging in with openbox in Ubuntu 18.04.4

Per Gryu's suggestion, rebooting solved the issue.


I cannot hear an audible alert on Google Chat even when sound is enabled

Did you try out with Google Chat setting?

This might help you. If it's not working then your Flash player might be having problems... Try to do a reinstall and it will most probably help you...
I personally use Pidgin which I think is better than using the Google Chat that's inbuilt to Gmail. So if nothing else seem to work better try out an IRC alternative...
Hope this helps ^^


I have an apache process that takes 98% CPU. How can I find what apache call it runs?

Use strace with the specific PID. Given your example the syntax would be sudo strace -p 12554. You can also use the -o option to output to a file since it may be too fast to follow on screen.

The following guides/tutorials may help, since strace use and output may not be intuitive for the uninitiated:

  How to use strace - Stack Overflow
  7 Strace Examples to Debug the Execution of a Program in Linux
  Linux Server Troubleshooting With strace
  Google for many more resources...


Gimp: How to change layer effects once added? For example change drop shadow values

This is not available in GIMP yet.

Preparing the foundations for this is done during the current development cycle, as this requires adding GEGL ops for everything. See http://wiki.gimp.org/wiki/Roadmap for details.


Method to create a live USB disk (with persistence) which actually works?

I've used a 1GB flash drive and because of the sheer volume of the ISO image compared to the space on the drive creating some persistent space is not only next to impossible it's also just not feasible because you'd have a VERY small amount of space for stuff to save off to. Grab a 4 to 8 GB flash drive, put on the ISO using the Ubuntu built in USB startup disk maker and it should work. At least it did for me.

One other thing you can also try (I've done it so it should work.) is take an external HD that you can plug into the system via USB (Like a Western Digital backup drive for example.) and then what you do is take out the HD from your pc, plug in the external one into the usb ports, and then you (should be able to) install to that external drive from the ubuntu install menu. Then when you're all said and done you've got an external hard drive that is persistent because well, it's a whole OS!

I would also recommend that you take a look at the following link/question. It goes into a bit more detail on how to do what you're asking... Points down to the link

Install Ubuntu on USB Flash Drive or USB powered external HDD?


xubuntu: no indicator when VPN is activated

I have the same problem with Xubuntu 14.04.  It looks like we're running into this bug here.


What's the best way to SSH to machines on the local network?

Run:

avahi-browse -tl _workstation._tcp

To get a list of Ubuntu workstations in the local network, then you can connect to them by running:

ssh <username>@<computer-name>.local


You don't have to reinstall it over an over again. You have to figure out where your eclipse executable file is, for example my eclipse binary is at:

/home/ubuntu/local/java-oxygen/eclipse/eclipse

Can you find a desktop icon for eclipse? If the installer is not creating one, you can create a eclipse.desktop on your desktop and write some content like the following (but with your own path to eclipse):

[Desktop Entry]
Exec=/home/ubuntu/local/java-oxygen/eclipse/eclipse %F
StartupNotify=true
Terminal=false
Type=Application
Icon=/home/ubuntu/local/java-oxygen/eclipse/icon.xpm
Name[en_US]=eclipse

If you can find the .desktop file or you have created one, and you want the application to show up in any system menu, you can copy (or put) the .desktop file into one of the following directories:

/usr/share/applications
~/.local/share/applications

Please let me know if this works for you.


accessing live usb files from new hd ubuntu install

If you installed Ubuntu to the pendrive using Startup Disk Creator or UNetbootin, you have a Persistent install.

All of your persistent data is stored in a file named casper-rw.
You can mount this file and access this data as follows:

sudo mkdir /media/casper

sudo mount -o loop casper-rw /media/casper/


sound problem (Ubuntu 18.04): no sound after suspend

Edit: July 18, 2019
Question has been revised with new information:

after waking up from suspend it says (there‘s only one number
different in the third line, don‘t know what that means):

The third line has changed from IRQ 134 to IRQ 25.
IRQ stands for Interrupt Request. It's basically a telephone number where the device calls the CPU (Central Processing Unit) to have work done. Because the telephone number has changed between suspend and resume the sound card can't call the CPU to get work done.

Here's a script I used a few years ago /lib/systemd/system-sleep/sound:
#!/bin/sh

# NAME: sound
# PATH: /lib/systemd/system-sleep
# CALL: Called from SystemD automatically

# DESC: PulseAudo 8 sets sound to laptop when going to sleep.
#       This script sets sound back to TV.

# DATE: Sep 23 2016. Modified: Oct 28, 2018.

# NOTE: Test psmouse for askubuntu.com "Touchpad not working after suspending laptop"

# Aug 5, 2018  -    Turn off executition bit. As per AU turn off automatic switching:
# https://askubuntu.com/questions/1061414/how-to-disable-pulseaudio-automatic-device-switch/1061578#1061578
#                   Turn execution bit back on as there is no sound at all.
case $1/$2 in
  pre/*)
    echo "$0: Going to $2..."
    # Place your pre suspend commands here, or `exit 0` if no pre suspend action required
    #    modprobe -r psmouse
    sleep 1
    ;;
  post/*)
    echo "$0: Waking up from $2..."
    # Place your post suspend (resume) commands here, or `exit 0` if no post suspend action required
    sleep 2
    # modprobe psmouse
    export PULSE_RUNTIME_PATH="/run/user/1000/pulse/"
    sudo -u UserName -E pacmd set-card-profile 0 output:hdmi-stereo
    ;;
esac

change UserName to your user name.
change hdmi-stereo to your output name. See Configure pulseaudio output via command line  for pacmd list-cards
make script executable with sudo chmod a+x /lib/systemd/system-sleep/sound

Note my new system doesn't need to use this script anymore. Not sure if it will work in your case but it might.


How Do I fix a "[Error 30] Read-only file system" when trying to install?

If Linux detects a problem on the harddrive, it will switch the filesystem to read only to prevent damage to the filesystem.

Since this is happening during install, I would assume something is wrong with the CD (ie. a bad ISO). You can find this out by running the 'check cd' option you get during boot. If this shows errors you need to re-download and re-burn the install disc.

If the installation disc turns out to be perfect it is likely to be a hardware problem. It could be your hard disc that is failing. Or if it is a desktop it could also be a faulty cable.


Guake's global shortcut is intercepted by gnome applications

As a workaround one may unbind the global F12 (or whatever you have) key in the guake config, then bind it in the gnome native keyboard shortcut configuration: just bind F12 for the /usr/bin/guake command.

The original issue I posted on the gitgub can be found here: https://github.com/Guake/guake/issues/1012


You can get the latest ndiswrapper from the official website on Sourceforge (at the time of writing version 1.57 is the latest stable release). Ubuntu 11.10 has ndiswrapper-common version 1.56, Ubuntu 12.04 offers version 1.57. Honestly, although having the latest release of any software is ideal, I highly doubt that using ndiswrapper 1.57 over 1.56 will really make a big difference with your wireless adapter. I recommend first trying with the ndiswrapper-common package available in the repositories, if that doesn't work, then grab the latest stable release from the Sourceforge website and install it from source. Alternatively, you may be able to download the deb packages (your 32-bit compiled binaries) in launchpad for Ubuntu 12.04, but this could break your system and is not encouraged.

Ndiswrapper is tricky enough as it is for those configuring their wireless adapter in Ubuntu for the first time, it's best not to complicate things and use the version available in the repositories if that version can suffice.


Not knowing anything about the structure/look of your textfile I'll pretend it only has one column, the date field:
$ awk '{a=gensub(/(..)\/(..)\/(....)/,"\\3-\\2-\\1","1",$0); print a}' file.txt
2020-02-01

To put that into a file (rather than on screen) redirect the output:
$ awk '{a=gensub(/(..)\/(..)\/(....)/,"\\3-\\2-\\1","1",$0); print a}' file.txt  >new_text_file

Where file.txt is to be replaced with the name of your file.


Unable to login to ubuntu 14.04 after upgrade from 12.04

Your machine sounds pretty marginal for running unity.  I had similar problems with flickering windows and lockups on my old 2G max HP machine which I'd updated from 12.04 (2D unity) to 14.04.  After running OK for months, after an update, problems started -- I thought I'd fried the motherboard.
  I eventually installed Lubuntu, and it worked much better for me.  Backup all your files, and reinstall Lubuntu would be my suggested fix. I was also going around with Nvidia drivers, but they actually worked better than the nouveau in terms of overheating.

You can start with installing other desktops on your current Ubuntu, like xfce4, LXDE, etc. and choose them at the login (click on the Ubuntu icon in the corner of the login window).  To see if they help the problem. I did eventually remove unity and used xfce4, but also installed Lubuntu and found that setup was easier for me.


I have had the same problem with dell inspiron 1100 and how i have overcome the half screen problem caused by the 845gl.Boot up the old dell just after the boot screen appears press the power button to switch off then reboot the grub menu comes up click on lubuntu and i always get the full screen.


Failed to download repository information updates for 14.10

These sources should be official sources hosted by Ubuntu. They should never send a 404, as they are the primary source for packages.

Try switching your mirror, I believe that your selected one is out of date, got moved, or another problem. Switch your mirror back to the Main one in your software sources.

If that didn't work, make sure that you don't have any official sources being blocked in your sources list, possibly by having unchecked one or another may be blocking it.

Still no luck? Try jumping on a known network, it could be that whatever your computer thinks ubuntu.com is is not actually what it should be. That would be an unfortunate situation in which you are the victim of a Man-in-the-Middle attack.


ulogd2.service doesn't work with Ubuntu 19.10

I found the reason. The error message wasn't clear to me.
ulogd2 has most plugins commented out by default in Ubuntu 19.10. (Unlike 18.04).

I had to remove # (comment-in) the following four to make it work correctly.  It will then automatically create that pid file. It is not about permissions as I first thought.

plugin="/usr/lib/x86_64-linux-gnu/ulogd/ulogd_inpflow_NFCT.so"
plugin="/usr/lib/x86_64-linux-gnu/ulogd/ulogd_filter_IP2STR.so"
plugin="/usr/lib/x86_64-linux-gnu/ulogd/ulogd_filter_PRINTFLOW.so"
plugin="/usr/lib/x86_64-linux-gnu/ulogd/ulogd_output_LOGEMU.so"


Executing the command inside the pulseUi.desktop file. I get the following error:

  /usr/local/pulse/pulseUi:error while loading shared libraries: libwebkitgtk-1.0.so.0: cannot open shared object file: No such file or directory

The error is caused by the missing library libwebkitgtk-1.0.so.0.  I solved the problem by installing the following package

sudo apt-get install libwebkitgtk-1.0

Update: On another Ubuntu 18.04 workstation, I have to install the libgnome-keyring0 as well.

The general solution is to execute the executable file, e.g. /usr/local/pulse/pulseUi. Then install all the missing libraries that are reported in the error messages.


You should not be using ndiswrapper, you should not be using the drivers from the realtek website and you should not be compiling things.

What we need to know is what hardware you have (exactly the kind!) and what the issue is from a FRESH install. Use lspci and report back in your question the output.

The problem a lot of time is that users follow strange, out of date and wrong headed advice on other websites and mess up their machines and it's hard to dig them out, but we will try and it starts with you giving us exact information.


MATE has a built in theme called Mutiny that's almost exactly what you're looking for.


i'm using this config and works great.

# cat /etc/network/interfaces
auto br0
iface br0 inet dhcp
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0
        bridge_maxwait 0
# cat /var/lib/lxc/<CONTAINER NAME>/config
lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = br0


You would never suspect the ambitious Secure Boot, won't you?
Go to BIOS settings and turn it off. Windows 8 has this new feature that secures up the system, and it's working.
Secure Boot found that your Ubuntu has a different signature than the Windows 8 one. So try to uncheck the Secure Boot.


Where are commands of the netinstall mini.iso documented?

I assume that "the command line" in this question means the command-line interface one can obtain by pressing left Alt + F2 or by choosing "Execute a shell" in the installer menu (which can be accessed by pressing Esc). This interface is based on Busybox, which "combines tiny versions of many common UNIX utilities into a single small executable". As usual, two kinds of commands are available.

Commands built into the shell. You can get a list of them by typing help, and they are documented here.
Binaries located in directories listed in the PATH environment variable. You can see the contents of PATH as usual with echo $PATH, and list their contents with ls.

However here there is a slight complication, because there are also two kinds of binaries.

The binaries for many basic utilities, such as for example ping or od are just symlinks to /bin/busybox. Here too those commands are built into Busybox and they are documented in the link above. They are usually much more minimalist than the versions of those commands you are used to, in order to save space.
Other binaries (i.e., those which are not symlinked to /bin/busybox) such as for example nano are the same as in a normal Ubuntu system. The manual pages are not available in Busybox, but you can consult them on http://manpages.ubuntu.com.


Confusing output in glances for GPU temperature

I have the same issue but today I realized that Glances is not reporting temperature in this case, it is reporting RPM of the gpu fan.
I think it is important to note in my case I am using Arch but I was having trouble looking for a solution. I stumbled upon your issue and tried to figure out why it was using Rankine. Then I got the idea of looking at the output of sensors.
If you try watch -n 2 sensors in one window and glances in another you might be able to compare the outputs.
The RPM of the GPU should be the number you are looking at with sensors and interpreting as temperature under glances. I made the same mistake.
Cheers.


Printer shared via Ubuntu stops being visible after restart of server machine or client machine

This is consequence of an very old bug in CUPS.

So to fix this, just edit the file /etc/init/smbd.conf:

sudo gedit /etc/init/smbd.conf

Then replace the line:

start on (local-filesystems and net-device-up)

For this:

start on (local-filesystems and started cups and net-device-up)

I have successful in Ubuntu Saucy (13.10).


Cursor jumps to corner of screen when I touch edges of touchpad/trackpad

It seems to be some problem in your touchpad drivers. Try the following command:

sudo apt-get install --reinstall xserver-xorg-input-synaptics


How to select or deselect radio button in python / glade

Like checkboxes, radio buttons also inherit from Gtk.ToggleButton, so you can use the set_active() method to set the status of a radio button. This action causes the “toggled” signal to be emitted.

For example, if we have 3 radio buttons called radio1, radio2, and radio3 in a group, by default the first one in the group would be selected. If we want to select another one, for example, radio3 instead, we should use:

radio3.set_active(True)

References

Python GTK3 Tutorial: Radio Button
Python GTK3 Tutorial: Toggle Button


Files lost after Reinstalling Ubuntu 13.10

Not that I'm aware of. It sounds like you used a Live USB/CD to reinstall. That's pretty nuclear, so recovering your files would be extremely difficult.

Sorry.


wich version of ubuntu is best suited for a pentium 4?

You can try Lubuntu or Ubuntu MATE.

Both are described as lightweigth distributions and a quick search with Google found some success stories on running both of them with PCs of similar specs to yours.


Cannot delete files in Rubbish bin in 14.04

root's Trash directory?

I assume you want to empty your user's trash, not root's.  If you "sudo su" then "~" will (probably[0]) expand to "/root", which is unlikely to be what you meant.

Why are you using sudo to do this anyway?

If you need to be root (for some reason) to delete these files, try:

sudo rm /home/<username>/.local/share/Trash/files/*

or similar.

[0] whether it does or not depends on how much of the environment gets inherited when sudo is run, but I think by default it does


I chose to download the 32-bit version, but it downloads the 64-bit version instead. Why?

the "AMD64" is the 64 bit version. If you have a 64 bit processor there is, IMO, no good reason to run the 32 bit version.

If, however, you still wish to run the 32 bit version anyways, download the 32 bit iso from any mirror.

http://mirror.anl.gov/pub/ubuntu-iso/CDs/quantal/

You want the "i386" iso

http://mirror.anl.gov/pub/ubuntu-iso/CDs/quantal/ubuntu-12.10-desktop-i386.iso


Open up Nvidia settings tool. Then go to "X Server Display Configuration". There you should see your monitor.

Click on the monitor you like change.
Then click on "Configuration:" And choose your setting "Twin view" or "Separate X screen" the later one requires that you log out and in again.

Just for test, choose "Twin View" and click apply. Now you should have the screen activated to the right of your other screen.

If this works, then you could make the changes permanent. And if you like to only use that monitor then you should try the "Separate X screen" configuration.

Close down Nvidia settings tool. And then reopen it with root. You can do this from the terminal by typing sudo nvidia-settings in the terminal.
This will open the nvidia settings dialog again but with root privileges so you can save the changes and make them permanent for every boot.

Now you choose  "Separate X screen" from the configuration and then you click "Save to X Configuration File" at the bottom of the window. And follow the steps.

Then log out and back in again and you should have the screen working.

Hope it helps.


Hope you restarted tomcat ? All your changes looks good.
However, read my post, where this contained detailed explanation

how-to-access-tomcat-admin-manager-console-from-another-remote-machine


Does encrypting home folder during the installation also encrypt other user's home folder after the fact?

The short answer IMHO is yes. But the encryption actually takes place on the fly when your new user logs in and creates files.


Make firefox only use GTK theme on browser chrome, but ignore on websites

I hope I understand your situation correctly. It seems somewhat related to High contrast theme Firefox problem and to Need to modify gnome 3 theme for browser. And my answer below is essentially that which I provided to those questions!

Close (exit) all instances of Firefox.
Go to your profile folder. It is here: ~/.mozilla/firefox/randomstring.default. In there, look for a subfolder called chrome.
If it doesn't exist, create it.
To create the chrome folder you can use your file manager (or the command line with mkdir chrome).
If chrome does exist, look for a file called userContent.css. Otherwise, create an empty text file with this name in the chrome folder.
Now open userContent.css with a text editor and paste in or append this code:

INPUT, TEXTAREA {color: black !important; background: #aaaaaa !important; }

Save the file (as plain text) and close the text editor.
Restart Firefox.
You should now have black text on a light gray background. You can use whatever color combination you prefer.

Notes: chrome and userContent.css are case-sensitive and should be spelled correctly. The settings here will take precedence over those in the OS theme and will remain the same in Firefox irrespective of which gtk theme you switch to.


How to install Ubuntu on an (U)EFI device with existing GPT?

If I understand correctly, your problem is that your boot loader is broken after Ubuntu installation has completed; when you launch GRUB from your firmware, it dumps you back to the firmware's boot manager. If that's incorrect (if you're having problems getting the installer to start, for instance), please clarify.

My recommendation is that you install another boot loader. In my experience, GRUB 2 is the least reliable of the available Linux boot loaders, and when it malfunctions, it's usually easier to replace it than to try to fix it. If this is a Linux-only system, I recommend you try ELILO. If you're dual-booting with Windows, either use ELILO in conjunction with rEFInd or try Fedora's patched GRUB Legacy. You can install any of these from the Ubuntu installer in its "try before installing" mode, but you may need to do a sudo apt-get install efibootmgr followed by use of that tool to add the new boot program to the firmware's list of boot programs. See my Web page on EFI boot loaders for more information, including details of how to use efibootmgr.

The drawback to doing this is that you'll need to manage your boot loader manually; the scripts for updating the boot loader when you update your kernel will no longer work. Thus, you'll have to be sure to upgrade your boot loader configuration whenever you upgrade your kernel.


How to play shoutcast radios in DeaDBeeF audio player?

Inspired by this post

Install OpenWith addon in Firefox

Go to the addon's preferences and add DeaDBeeF (from usr/share/applications)

then just right click  the internet radio link and open in DeadBeeF

That will send the link to an empty playlist called 'Default"

and from there it can be dragged/dropped to a separated playlist to be saved for future use.


How do I show grub when resuming from suspend?

You are experiencing this in Windows because you are resuming from Hibernate, not Suspend. When you leave Windows on suspend for a while while running Windows, it automatically hibernates. To change this on Windows, go to Control Panel->Power Options, select Change plan settings next to your active power plan, then select Change advanced power settings. Then expand the sleep node, followed by the  Hibernate after node. There is a setting for both on battery and plugged in.

If you want Ubuntu to Hibernate if it has been on a Suspend for a while (and therefore show grub on boot), please check this thread.

NOTE: Usually a system takes longer to resume from Hibernate than from Suspend.


Remove Audio Streams of videos - recursively without converting audio or video with FFMPEG

Uncomment the line you wish to use and the file type. You can add many more "presets/FLAGS", this is just an idea.

sudo nano /media/audio.sh

---Script for Recursive Conversion of Video stripping Audio Streams and not converting anything!

#!/bin/bash

#Uncomment a Preset FLAGS depending on video/subtitle/audio stream wanting to keep, easy to find which stream via playing in VLC and hitting CTRL + J (when not in fullscreen)

#TO ADD SUBTITLES< THEY MUST BE SAME NAME AS FILE*Check out Filebot Filerenamer*
#Don't Strip audio and do subtitles at the same time, do one at a time
#To add subtitles, just uncomment the line under ADD SUBTITLES

#TO FIX AUDIO SYNC
#Use hotkeys J/K in VLC to find correct value
#DONT use FLAGS, just OFFSET

#FLAGS DESC:
#"-map 0:0 -vcodec copy" -- which video stream to copy
#"-map 0:1 -acodec copy" -- which audio stream to copy
#"-map 0:2 -scodec copy" -- which subtitle stream to copy
#"-itsoffset 0.2"        -- DELAY Audio by 0.2 seconds can do -0.2 for opposite effect!

###Video Stream 0 Audio stream 1 Subtitle Stream 2
#export FLAGS="-map 0:0 -vcodec copy -map 0:1 -acodec copy -map 0:2 -scodec copy"

###Video Stream 0 Audio Stream 1
#export FLAGS="-map 0:0 -vcodec copy -map 0:1 -acodec copy"

###Audio Stream 2
#export FLAGS="-map 0:0 -vcodec copy -map 0:2 -acodec copy"

###Audio Stream 3
#export FLAGS="-map 0:0 -vcodec copy -map 0:3 -acodec copy"

##FIX AUDIO SYNC
#export OFFSET="-itsoffset 0.2"

if [ -z "$1" ] ; then
    TRANSCODEDIR="."
else
    TRANSCODEDIR="$1"
fi

    ##To remove source files after conversion and rename back to original w/o *FINAL*, uncomment second line #&&find (Must become 1 line of code IE: Hit delete 2 times)
    ##I do not reccomend using this unless you are 100% of what you are doing, it will delete source files even if conversion fails, basically unless you are creator of files
    ##ANY files without FINAL will be deleted, be warned, I have personally deleted many a files I didnt want to by using this line :P
    ##USE ALIASES (and confirm script results) INSTEAD OF &&FIND REMOVE AUTOMATION

    #AVI
    #find "$TRANSCODEDIR"/* -type f -name "*.avi" -exec bash -c 'ffmpeg -i "$1" $FLAGS "${1%\.*}"FINAL.avi ' __ {} \;
#&& find . -type f -not -name '*FINAL.avi' -name '*.avi' -delete && rename 's/FINAL//' *.avi
    #AUDIO SYNC
    #find "$TRANSCODEDIR"/* -type f -name "*.avi" -exec bash -c 'ffmpeg -i "$1" $OFFSET -i "$1" -map 0:v -vcodec copy -map 1:a -acodec copy -map 0:s? -scodec copy "${1%\.*}"FINAL.avi ' __ {} \;
#&& find . -type f -not -name '*FINAL.mp4' -name '*.avi' -delete && rename 's/FINAL//' *.avi

    #MKV
    #FROM ORIGINAL STREAMS
    #find "$TRANSCODEDIR"/* -type f -name "*.mkv" -exec bash -c 'ffmpeg -i "$1" $FLAGS "${1%\.*}"FINAL.mkv ' __ {} \;
#&& find . -type f -not -name '*FINAL.mkv' -name '*.mkv' -delete && rename 's/FINAL//' *.mkv
    #ADD SUBTITLES
    #find "$TRANSCODEDIR"/* -type f -name "*.mkv" -exec bash -c 'ffmpeg -i "$1" -sub_charenc CP1252 -i "${1%\.*}".srt -vcodec copy -acodec copy "${1%\.*}"FINAL.mkv ' __ {} \;
#&& find . -type f -not -name '*FINAL.mkv' -name '*.mkv' -delete && rename 's/FINAL//' *.mkv
    #AUDIO SYNC
    #find "$TRANSCODEDIR"/* -type f -name "*.mkv" -exec bash -c 'ffmpeg -i "$1" $OFFSET -i "$1" -map 0:v -vcodec copy -map 1:a -acodec copy -map 0:s? -scodec copy "${1%\.*}"FINAL.mkv ' __ {} \;
#&& find . -type f -not -name '*FINAL.mp4' -name '*.mkv' -delete && rename 's/FINAL//' *.mkv

    #MP4
    #FROM ORIGINAL STREAMS
    #find "$TRANSCODEDIR"/* -type f -name "*.mp4" -exec bash -c 'ffmpeg -i "$1" $FLAGS "${1%\.*}"FINAL.mp4 ' __ {} \;
#&& find . -type f -not -name '*FINAL.mp4' -name '*.mp4' -delete && rename 's/FINAL//' *.mp4
    #ADD SUBTITLES
    #find "$TRANSCODEDIR"/* -type f -name "*.mp4" -exec bash -c 'ffmpeg -i "$1" -f srt -i "${1%\.*}".srt -c:v copy -c:a copy -c:s mov_text "${1%\.*}"FINAL.mp4 ' __ {} \;
#&& find . -type f -not -name '*FINAL.mp4' -name '*.mp4' -delete && rename 's/FINAL//' *.mp4
    #AUDIO SYNC
    #find "$TRANSCODEDIR"/* -type f -name "*.mp4" -exec bash -c 'ffmpeg -i "$1" $OFFSET -i "$1" -map 0:v -vcodec copy -map 1:a -acodec copy -map 0:s? -scodec copy "${1%\.*}"FINAL.mp4 ' __ {} \;
#&& find . -type f -not -name '*FINAL.mp4' -name '*.mp4' -delete && rename 's/FINAL//' *.mp4

--Alias and Automation

sudo nano ~/.bashrc && sudo source ~/.bashrc

alias audioscript="sudo cp /media/audio.sh ./ && sudo nano ./audio.sh ; nohup ./audio.sh > convert.nohup &"

alias mkvfinal="find . -type f -not -name '*FINAL.mkv' -name '*.mkv' -delete && rename 's/FINAL//' *.mkv && find . -name 'audio.sh' -delete && find . -name 'convert.nohup' -delete"

alias avifinal="find . -type f -not -name '*FINAL.avi' -name '*.avi' -delete && rename 's/FINAL//' *.avi && find . -name 'audio.sh' -delete && find . -name 'convert.nohup' -delete"

alias mp4final="find . -type f -not -name '*FINAL.mp4' -name '*.mp4' -delete && rename 's/FINAL//' *.mp4 && find . -name 'audio.sh' -delete && find . -name 'convert.nohup' -delete"

alias srtremove="find . -name '*.srt' -delete"


Installation of Paraview 5 on Ubuntu 16.04: can't open Paraview due to libGL errors

Paraview is available in the repositories of all currently supported Ubuntu versions, so regardless of which one you are running, you can install it by opening a terminal and typing

sudo apt-get update && sudo apt-get install paraview

Then you can launch from a terminal by typing paraview or by pressing alt+F2 and typing paraview or by searching in the dash.

It's always preferable to install any application from repositories, because then dependencies and updates will be handled by our lovely package management system. You should only download an app from a website as a last resort if you can't install it the secure and easy way :)


How to download Ubuntu without installing?

Yes, it's possible. You didn't say if the computer where you will download runs Windows or Ubuntu. But you need to download the Ubuntu ISO on that computer, then prepare the memory card or USB stick, and finally boot the second computer using the stick or card.

Download Ubuntu from here: http://www.ubuntu.com/download/desktop/

See this guide on how to do it for Windows: http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-windows

and this one if your first computer runs Ubuntu: http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-ubuntu


I can't update due to The repository 'http://download.opensuse.org/repositories/home:/strycore/xUbuntu_16.04 ./ Release' is not signed

The key is expired, you could try downloading it again.

wget -qO - https://download.opensuse.org/repositories/home:/strycore/xUbuntu_16.04/Release.key | sudo apt-key add -
sudo apt-get update


NVIDIA DRIVER for LG A530-U.BE54P1(5466)

you can refer to these. if it is older versions of nvidia graphics cards, you can also try using bumblebee.

https://help.ubuntu.com/community/BinaryDriverHowto/Nvidia


Unable to install Ubuntu Server 14.04 in HP Proliant dl580 G7

That computer is certified with Ubuntu Server 12.04.1LTS 64bit: http://www.ubuntu.com/certification/hardware/201401-14573/

Because of that and the limited amount of information you provide, I'll just say "Yes – you can install Ubuntu 14.04LTS Server on that machine" and there should be little or no exceptions to the normal procedure.

If you do have specific issues with Ubuntu on this computer, then you should clarify exactly what those are at the Ubuntu Certified feedback page: https://answers.launchpad.net/ubuntu-certification/+addquestion?field.title=Feedback%20on%20the%20HP%20ProLiant%20DL580%20G7


Sorry , Every one the problem is with development team , no problem with software initalization


Stuck at "Starting adaptive readahead daemon preload [OK]"

Remove the PPA if it doesn't work for you

sudo apt-get install ppa-purge
sudo ppa-purge ppa:xorg-edgers/ppa

After that, the open source drivers will be used and you can use again your GUI.

If not, install the driver

sudo apt-get install -f
sudo apt-get purge nvidia-current nvidia-settings
sudo apt-get install xserver-xorg-video-nouveau

After that you could ask a new question with a list of your hardware, especially your graphic.


.desktop files - Allow launching - set this via CLI

It can be set with
gio set file.desktop metadata::trusted true

or with yes if true is not accepted
gio set file.desktop metadata::trusted yes


Lenovo yoga 720 13lkb 2 in 1 touchscreen auto rotation

Not sure if you solved it already, but I had the same problem on my Yoga520. According to https://github.com/hadess/iio-sensor-proxy/issues/160 there is a fix in Linux kernel >= 4.13.3 while Ubuntu 17.10 is on 4.13.0 by default.

I got the sensor to function out of the box by upgrading the kernel to 4.15.4. I followed: https://fossbytes.com/install-upgrade-linux-kernel-ubuntu-mint-ukuu/

Let me know if you can get the ambient light sensor / fingerprint sensor working


Mouse pointer disappears in Ubuntu 16.04

have the same problem after upgrading to 16.04. Often the mouse pointer will disappear. I found a way to get round this by restarting lightdm:

sudo service lightdm restart

but it's not a fix solution, since each time I have to type the command again.

So I changed lightdm to gdm:

sudo apt-get install gdm


Ubuntu 18.04 opening system setting logs me out

I had a look in /var/log/kern.log and noticed nouveau was crashing about the time I tried to open gnome-control-center.

So I installed the latest stable nvidia drivers (I'm using an nvidia graphics card), rebooted and now it works.


Ubuntu 14.04 flickering screen on high resolution

I have a lenovo thinkpad e550 with Intel HD Graphics 5500 and ubuntu 14.04. When I connect the monitor through VGA the monitor and hve the power connected it starts flickering! If I unplug the power it doesn't flicker. If I put it back it flickers. It seems to be a ground problem - not sure. Try to use tlp http://linrunner.de/en/tlp/tlp.html. I installed tlp and the problem almost solved. Now it runs on high resolution and it flickers every  15 or 30 minutes for just a second or sometimes it doesn't flicker at all! But it is unstable sometimes work sometimes not


Dell 11 Ubuntu MATE: touchpad sensitivity problems

Figured it out! As per this Arch Linux installation tutorial, I edited my /etc/X11/xorg.conf.d/50-cros-touchpad.conf file and added Option "FingerLow" "5" and Option "FingerHigh" "10". Now the touchpad works just fine! Here's the full output of 50-synaptics-conf:

# Additional options may be added in the form of
#   Option "OptionName" "value"
# See man synaptics (4) for details

Section "InputClass"
 Identifier "touchpad ignore duplicates"
 # Ignore events from old driver
 MatchIsTouchpad "on"
 MatchOS "Linux"
 MatchDevicePath "/dev/input/mouse*"
 Option "Ignore" "on"
EndSection

Section "InputClass"
 Identifier "touchpad catchall"
 # Device
 Driver "synaptics"
 MatchIsTouchpad "on"
 MatchDevicePath "/dev/input/event*"

 # sensitivity
 Option "FingerLow" "5"
 Option "FingerHigh" "10"

EndSection

# End of configuration file

It's strange that editing the sensitivity settings using gpointed didn't work.


Try using

sudo ifconfig enp0s3 up

or

sudo ifconfig enp0s3 down

or

sudo ip link set dev enp0s3 up

or

sudo ip link set dev enp0s3 down

Hope this helps!


Window manager decorations disappear after mounting old home folder

Compiz in Ubuntu uses by default the dconf setting backend. The user data are stored in ~/.config/dconf/user

$ file  ~/.config/dconf/user
/home/username/.config/dconf/user: GVariant Database file, version 0

Better to copy that file from the new system home if you want to keep same user settings. If not or it doesn't work, remove it.


How can multiple people concurrently use a single machine with a keyboard and monitor each?

Your solution is unlikely to be satisfactory to your users. It would take a pretty serious desktop to run six or eight users' desktops, even if you installed six or eight video cards and six or eight different USB mouse/keyboards running at the same time.

I think the closest practical solution similar to what you're suggesting would be a Thin Client setup, where each user would have a low-end computer running off your more powerful server via LAN. You might gain a bit in the way of systems administration, but I don't know how much cheaper this would be than chromebooks, and older hardware that could run Lubuntu on it's own might be your best, fastest, and cheapest approach.


How to upload a data set from a command-line (such as Google Collaboratory) into Kaggle?

1 Preparation

Based on the official Kaggle API documentation:

Install the Kaggle command-line interface (here via PIP, a Python package manager):

sudo apt install python3-pip
pip3 install --user kaggle

Create a configuration directory for the next step:

mkdir ~/.kaggle

Authentication:

  In order to use the Kaggle’s public API, you must first authenticate using an API token. From the site header, click on your user profile picture, then on “My Account” from the dropdown menu. This will take you to your account settings at https://www.kaggle.com/account. Scroll down to the section of the page labelled API:

  To create a new token, click on the “Create New API Token” button. This will download a fresh authentication token onto your machine.

Store it as ~/.kaggle/kaggle.json, since that’s where the CLI will look for it by default. You can simply copy and paste that path into the file selection dialogue of your web browser.

2 Dataset Upload

Again from the same official API documentation:

  Create a new Dataset

  Here are the steps you can follow to create a new dataset on Kaggle:

  Create a folder containing the files you want to upload.
  Run

kaggle datasets init -p /path/to/dataset

  to generate a metadata file.
  Add your dataset’s metadata to the generated file, datapackage.json.
  Run

kaggle datasets create -p /path/to/dataset

  to create the dataset.

  Your dataset will be private by default. You can also add a -u flag to make it public when you create it, or navigate to “Settings” > “Sharing” from your dataset’s page to make it public or share with collaborators.

  Create a new Dataset version

  If you’d like to upload a new version of an existing dataset, follow
  these steps:

  Run

kaggle datasets init -p /path/to/dataset

  to generate a metadata file (if you don’t already have one).
  Make sure the id field in dataset-metadata.json (or datapackage.json) points to your dataset.
  Run:

kaggle datasets version -p /path/to/dataset -m "Your message here"

  These instructions are the basic commands required to get started with creating and updating Datasets on Kaggle. You can find out more details from the official documentation on GitHub:

  Initializing metadata
  Create a Dataset
  Update a Dataset

Looking at my answer it turned out to be a nice way to tell you to RTFM. ;-]


Ibus anthy/mozc works in every program except for Chrome

I found your question after Mozc mysteriously stopped working in Chrome in Mint XFCE 17.2. Funnily enough, I had just been using it earlier in the morning to type Japanese within Chrome.

The only thing that changed was that I'd installed the ibus-gtk3 package while trying to troubleshoot the fact that Mozc's suggestion box would appear at the bottom of the Chrome window whenever I was typing.

As luck would have it, uninstalling ibus-gtk3 solved the issue:

sudo apt-get remove ibus-gtk3

Once you log out and then log back in, Mozc should start working again in Chrome, though if your system is like mine then the popup appears in the bottom-left corner of the window instead of just under the cursor:

Anyway, as you can see in the picture this re-enabled Mozc functionality within Chrome.

EDIT: I poked around a bit more and managed to re-fix this issue by opening up Mint's Language Settings, going to Input Method, and then clicking Install Missing Components next to the IBus option.

This added the following four packages:

ibus-clutter
ibus-gtk
ibus-gtk3
ibus-qt4

After restarting mdm:

sudo restart mdm

IBus came back up without issue, and I confirmed that Mozc works fine in Chrome. It even fixed the placement of the pop-up window that I was complaining about earlier!

Please keep in mind that I'm testing all of this out in Mint 17.2. I know this is askubuntu.com, but since the two are so similar hopefully there's enough info here to help you figure this out.


Inspired by your concept I tried the following install:

Partition USB with GParted

Extract ISO to Tails partition using Archive Manager

When installing the first OS choose "Something else.

Select "Change" to specify the / partition.

Adding more OS is a repeat of the above.

GParted after OS installs.

Edit grub.cfg of last OS installed.

menuentry "Tails" {
    set root=(hd0,2)
        linux /live/vmlinuz boot=live config noswap nopersistent iso-scan/filename=/iso/tails-amd64-3.2.iso splash  --
        initrd /live/initrd.img
}

Disk info


How do I restart Evolution's mail migration?

You can try by deleting all Evolution settings.

First, make sure you have a backup copy of your user data from .local/share/evolution

Next, open Terminal and type:

sudo rm -rf ~/.local/share/evolution/

This will delete all existing Evolution user data (like emails and address book).


Comprehensive synchronization - backup system

It is possible to use git for this. Follow this guide, but put your repo somewhere else (NOT the place you want to sync with!) and then git init the two syncing places, and connect them to the repo you made by adding remotes. Done! You can now use Git to sync your two places by adding, committing, pushing and pulling.


If you have a Broadcom B43xxx.  Disable the STA driver, reboot, connect the Ethernet cable to get to the Internet, and run this command:

sudo apt-get install firmware-b43-installer


You can install it through the command line. Open the Terminal and:

 sudo apt-get install libxss1
 wget https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb
 sudo dpkg -i google-chrome*.deb

source: How to install Chrome browser properly via command line?


Why is there no clear day weather icon in the ubuntu mono icons set?

Quick and dirty workaround for this Weather Indicator bug (will modify an icon file that is part of a package):

Download the monochrome icon from the main bug report:

wget https://bugs.launchpad.net/ubuntu/+source/ubuntu-mono/+bug/748861/+attachment/2115647/+files/weather-clear-light.svg

Backup original colorful icon from package:

cp /usr/share/icons/Humanity-Dark/status/48/weather-clear.svg /usr/share/icons/Humanity-Dark/status/48/weather-clear.svg.backup

Replace colorful icon with monochrome icon:

mv weather-clear-light.svg /usr/share/icons/Humanity-Dark/status/48/weather-clear.svg

Restart Weather Indicator to enjoy monochrome icon.
?
Profit


How do I get the .deb for Rhythmbox 0.13.2 to install on Ubuntu 9.10?

Unfortunately this method you are looking to use would cause you more headache than anything else. The dependencies are going to be many, and the more you add, the more you have to upgrade other things. Eventually you will be better off upgrading your system.

Installing from the deb is safer, but it could also cause breakage even if you use the --force-all option to install. My humble suggestion is that you upgrade (yes I know you don't want to, but if you want the latest, you'll have to do that).


log alert: unknown group "power" in message bus config file

This comes from thermald.

short description

  Thermal Daemon is a Linux daemon for monitoring and
   controlling platform temperatures. Once the system
   temperature reaches a certain threshold, the Linux daemon
   activates various cooling methods to try to cool the system.

dpkg -L thermald | grep dbus
/etc/dbus-1
/etc/dbus-1/system.d
/etc/dbus-1/system.d/org.freedesktop.thermald.conf
/usr/share/dbus-1
/usr/share/dbus-1/system-services
/usr/share/dbus-1/system-services/org.freedesktop.thermald.service

and

   cat /etc/dbus-1/system.d/org.freedesktop.thermald.conf

Forget to copy the part.

 <policy group="power">
                <allow send_destination="org.freedesktop.thermald"/>
                <allow receive_sender="org.freedesktop.thermald"/>
        </policy>

background

  This was the best suggestion I got to avoid
  ThermalMonitor GUI running as a root to be able to send message to
  thermald.

source


New to linux, installed ubuntu by crouton onto hp chromebook... need help

sudo apt-get update && sudo apt-get upgrade && do-release-upgrade