Ubuntu 14.04 - sudo pm-hibernate doesn't work

I was having the same problem.

sudo pm-hibernate

...nothing.

>~$ dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Hibernate
> method return sender=:1.44 -> dest=:1.303 reply_serial=2

...nothing.

Looking around, I found a suggestion to check the pm-hibernate log:

>~$ head /var/log/pm-suspend.log
> Initial commandline parameters:
> Wed Apr 29 22:38:06 PDT 2015: Running hooks for hibernate.
> Running hook /usr/lib/pm-utils/sleep.d/000kernel-change hibernate
>  hibernate: kernel update inhibits hibernate (/var/run/do-not-
>  hibernate present)

Ah! So the system needs to be rebooted because there was a kernel update. It would be great to get some kind of notification of the fact, instead of ...nothing.

BTW, to tell if you need to reboot:

>~$ ls -l /var/run/reboot-required
> -rw-r--r-- 1 root root 32 Apr 29 18:28 /var/run/reboot-required

Basically, if that file exists, a reboot is required.
I can't tell you what will happen if you put the system into hibernation if you need to reboot due to a kernel update, but I was able to hibernate immediately when I did this:

>~$ sudo rm /var/run/do-not-hibernate


How can I watch Amazon Prime videos using Firefox on Ubuntu 16.04?

This is actually a problem with enabling DRM content(atleast in the case of newer versions)

So if its an old version see the above accepted answer, and if you have a newer version and still things are not working, this answer is for you.

Firefox disables playing DRM content by default
To be able to watch DRM content enable it by Selecting "Play DRM Content" in Preferences -> Content.

Check this out for more info : https://support.mozilla.org/en-US/kb/enable-drm

Note that I tested this on Firefox 53, I am not sure about older versions.


How to remove the Nautilus overwrite prompt when copying files

According to the nautilus source code there is no way to force it to merge+overwrite or just overwrite. The code would have to be modified and recompiled in order to support an option that allowed that.

Let me know if your interested in using a hack I've made, the code is simple, it's just not supported.


Quick question about Ubuntu on External HDD

Short answer : Yes if they have boot from USB

Longer answer : Only if they meet the required specs for Ubuntu (and any modifications you made), also I tried this once and had various bugs on different hardware due to things like drivers, graphics could be a issue I don't know how a AMD GPU would react to finding the Nvidia driver.

But for me at least it mostly worked very well for the most part.


I really need help installing the Broadcom Corporation BCM43142 Driver!

Open a terminal - to do this press Ctrl+Alt+T - and then execute the following commands :

sudo apt-get update
sudo apt-get install bcmwl-kernel-source
sudo reboot

After the restart of the operating system you are able to use the BROADCOM wireless adapter.


What is the smallest (installed size) ubuntu based distribution?

Try Ubuntu minimal ISO from here.

Choose the packages you want to install and you are done. You can
try using LXDE or Openbox Desktop environment as they are not heavy on resources.

If you want just a simple Web browser and few cloud based services try an OS called xPUD.

xpud.org


Why does my download have a "heartbeat"?

Most likely it is the source server cycling as it pre-caches the next requested segment of the file. The sample you show is actually pretty good in that the download speed remains constant and the dips aren't larger. You might see completely different results if you attempted a download from a very busy server, with bigger dips and even stalls as the server tries to cope with the I/O requests.


After following the instructions from this initial blog post, I managed to extract the ISS live url for NASA TV and get it playing in VLC.

Please first install rtmpdump and vlc, as you require them to follow this article.

Notes and Updates:

Important Update (June 28, 2013): the script from the above site does not now correctly locate the broadcasts, so you must use the updated script at at Github. Download it and make it executable; call it ustream-recorder.

I have rewritten the article so that it is still useful. You will need to repeat the following process below each time you wish to watch a live broadcast as the rtmp streams do not remain valid for long.
Another update (September 2013): the regex for parsing the urls in the ustream script seems to need fixing (I'll try..), but in the meantime, we can use the iphone streaming url, at least for the main NASA TV on the desktop, as found using the online ustream url converter. Vlc can be used to open the url and stream the content:

vlc "http://iphone-streaming.ustream.tv/ustreamVideo/6540154/streams/live/playlist.m3u8"

See also at the end of this article for information on downloading or streaming recorded ustream videos (NASA or otherwise) with get_flash_player.

For each NASA channel listed on ustream.tv, you must run the script against the correct url to discover the valid stream information:

python /location/of/ustream_recorder http://www.ustream.tv/nasahdtv

Now you will receive the following output with the rtmp url that you need to use:

Opening url: http://www.ustream.tv/nasahdtv

AMF URL: http://cdngw.ustream.tv/Viewer/getStream/1/6540154.amf
Channel ID: 6540154
Channel Title: nasahdtv
RTMP URL: rtmp://ustreamlivefs.fplive.net/ustream3live-live/
RTMP Streamname: stream_live_1_1_6540154

RTMP Command: rtmpdump -v -r "rtmp://ustreamlivefs.fplive.net/ustream3live-live//stream_live_1_1_6540154" -W "http://www.ustream.tv/flash/viewer.swf" --live

The 'RTMP Command' part of the above output is what you need to take note of and use in your commands to either stream, record, or stream and record the media.

(Please be aware that you need to use the script to generate the rtmp server address everytime, so the rtmp url below will probably not work after a few days when ustream rotates the servers.)

To just play the media, add | vlc - to the rtmp command discovered by the script:

rtmpdump -v -r "rtmp://ustreamlivefs.fplive.net/ustream3live-live//stream_live_1_1_6540154" -W "http://www.ustream.tv/flash/viewer.swf" --live | vlc -

To play and record, add | tee "$(date +'%F_%H_%M_%S')".flv | vlc - to the rtmp command:

rtmpdump -v -r "rtmp://ustreamlivefs.fplive.net/ustream3live-live//stream_live_1_1_6540154" -W "http://www.ustream.tv/flash/viewer.swf" --live | tee "$(date +'%F_%H_%M_%S')".flv | vlc -

To just record, add -o "$(date +'%F_%H_%M_%S')".flv to the rtmp command:

rtmpdump -v -r "rtmp://ustreamlivefs.fplive.net/ustream3live-live//stream_live_1_1_6540154" -W "http://www.ustream.tv/flash/viewer.swf" --live -o "$(date +'%F_%H_%M_%S')".flv

I have used date with the filename created, so a unique filename is created and thus any files will not clash or be overwritten.

Again, remember that you will need to run the ustream-recorder script yourself to find valid rtmp urls, as these example urls above will only be valid for a short time.

Additional Note:

It is also possible to use the get-flash-videos Perl script to stream or download pre-recorded ustream NASA content. It is in the repositories, but you may need the latest version. It is best to install the repository version, as a lot of dependencies are needed, and then run the latest version from $HOME if you need to, as noted here.

There are actually a couple of dependencies that I also needed libmodule-find-perl, libwww-mechanize-perl and libxml-simple-perl.

To download a pre-recorded program:

get_flash_videos http://www.ustream.tv/recorded/25391855

Sample output:

Using method 'ustream' plugin version 0.01 for http://www.ustream.tv/recorded/25391855
Downloading http://www.ustream.tv/recorded/25391855
Downloading http://tcdn.ustream.tv/video/25391855...
The_Challenges_of_Mars_Exploration.flv: 1% (6017.34 / 387974.54 KiB)

To play and download a pre-recorded program, just use the -p option

get_flash_videos -p --player=vlc http://www.ustream.tv/recorded/25391855

See important note at the top of the post regarding updating the rtmp url information and using the correct script to find the rtmp urls.


I think it because of nautilus corrupted. Just reinstall nautilus.
press Ctrl + Alt + T then enter

sudo apt-get install --reinstall nautilus


what is the difference between “close” and “reload” at “ubuntu software center” desktop program?

The Close button will save changes in your settings, i.e., in the repositories you have enabled or disabled. It will not, however, go out to the internet and update the package information of these repositories. That is what Reload does.
When closing, "Software & Updates" will also prompt you to reload. Otherwise, your package information may not be up to date. For example, if you add a repository, then closed without reloading, the new repository will be registered, but your system will not yet be informed about the contents of that new repository. To achieve the latter, you need to  reload, which required being connected to the internet.


Why doesn't Adobe Flash Player 11.x have hardware acceleration?

Oranges10e have tried several Browsers, including the newest Chrome and the newest Firefox, and he says:

"
Since there are many threads/topics and questions about this, I will provide the information I have found, during my long, long search for a solution to this problem (see my own Solution below).

SOLUTION (there is none):

In order to prevent endless searching for a solution to this problem (took me a few days to find out), which can be a real pain, please read this:

According to an Adobe Employee, Hardware Acceleration has been disabled in recent Adobe Flash versions for Linux and Linux only. At the time being, there is no "official" way to get it working again - not even by installing the prop. Nvidia drivers, including VDPAU acceleration. This was the solution to older Adobe Flash versions - not anymore.

The main reason for this move was:

Security concerns.
Unstable Nvidia/AMD/Intel and Open Source drivers - in combination with Adobe Flash Hardware-Acceleration.

Here the Link to the thread, where this has been discussed and confirmed: http://forums.adobe.com/thread/911321

Quote from the Link above:

"Unfortunately given the current landscape of graphics drivers and support for Linux based operating systems, we could not support Linux with Hardware Acceleration.  Most drivers, including the ones provided from Intel/NVIDIA/AMD were too unstable to consistently work with the Flash Player.  Sorry for the inconvienience." - Charbs09, Adobe Employee

"As of FP 11.0.1.152 there is no way to turn on HW Acceleration for Linux.  We disabled it entirely facing security concerns, but we may re-enable an unsupported method in a future release." - Charbs09, Adobe Employee

So, before you go out and buy an ION Netbook, Nettop or any kind of PC, wishing to use it in a combination of Linux/Ubuntu and Adobe Flash 11.x, with the intention to playback HD-Videos (720p, 1080p) with full Hardware Acceleration, please consider the above mentioned info. I did not, and sadly, I realized this too late (because I was trying out several other methodes to get this working again, before I found the Link above). "


Grub does not have the ability of that type of rendering itself. By design is text based only but can load a background if enabled. It does not load any device drivers for hardware. IE: webcam


Why do signed deb packages say they're not authenticated when copied to my private deb repo?

*.deb packages are not signed directly, in Debian. There is a way to do that, but nothing in Debian uses it.

The principle used by Debian and Ubuntu APT repositories instead works like this:

All *.deb binary packages are listed in a file (e.g.) binary-i386/Packages.gz with their checksums. (All current Debian and Ubuntu versions use all three(!) of MD5, SHA-1 and SHA-256 for this. Old versions used MD5 only.) All *.dsc source packages are listed in source/Sources.gz.

All these files binary-*/Packages.* and source/Sources.* are then listed, with their checksums, in a file Release, which is signed as either Release.gpg or InRelease, with the PGP key of the repository.

So basically, if you put any packages into an APT repository of your own, you will need to sign that repository, and use apt-key add to import your own repository's signing key into your system when you want to use any packages from that repository.


wireshark installation using source code

In case someone runs into this in the future: you can just sudo apt-get install bison

Bison will provide yacc to Wireshark via update-alternatives: using /usr/bin/bison.yacc to provide /usr/bin/yacc (yacc) in auto mode

Also, if you install Bison, you'll also need sudo apt-get install flex since it will ask for it afterwards. And while you're at it, you should sudo apt-get install libpcap-dev too, since it will probably need pcap.h, and it comes in the -dev package, not the regular one.

After this, it should be the usual make, wait... and then make install and you're done. Depending on your specs, the wait part might be 5 minutes, just to build the parlay package.


After a lengthy discussion... Based on the fact that the ls /etc/modprobe.d returned such a wrong answer, and the reboot problems that you're having, I think the only solution is to reinstall Ubuntu. If you reinstall into the same partition, it'll keep /home for you. Cheers, Al


Ubuntu 13.04 Sound Problem after following weird commands

You will have to remove configuration files you had created to reset to default settings of pulseaudio:

mv ~/.config/pulse/client.conf ~/.config/pulse/client.conf.old

or (if you are on Ubuntu 12.10 or earlier)

mv ~/.pulse/client.conf ~/.pulse/client.conf.old

After that you will have to log out and restart your session to start pulseaudio with its
default settings.

 Note: if this does not resolve your issue you may have broken your sound system with your attempts to purge it.

Basically in the first command you told it to not autospawn (i.e. restart by default).


Script: Invalid username and permissions denied

You are getting the error passwd: unrecognized option '--stdin' because there is no such option as --stdin to give passwords using passwd command via STDIN in Ubuntu.

You can not pass passwords non-interactively using passwd command, while in interactive shell passwd uses STDIN to take password. This only happens for interactive operations, if you are using shell procedures such as piping, it won't work.

As you are looking to create batch users with the same password for all, perhaps you should look at newusers command that would exactly suffice in your case.


How do I make Python 2 the default with Anaconda?

Anaconda has a Python 3.6 version and a Python 2.7 version. Why don't you simply install the Anaconda Python 2.7 version and be done with it?


How to get Ubuntu installed, when my laptop restarts without installing?

This resembles two common problems.
If it restarted soon after you told it to install alongside:
Then you are probably using bad installation media. There are two causes:

Corrupted ISO image.
Bad write to the USB flash drive (or, if you had been using a CD/DVD, bad burn).

First, check the MD5SUM on the ISO image to see if it's corrupted. If it is, download it again (and test that, too).
If it's not corrupted, boot from the USB flash drive, press a key when you see the keyboard and person icon appear at the bottom of the screen, and select Check disc for defects. (See also this video.) This applies equally for CD/DVD and USB media. That should reveal if the write is bad.
If it is bad, write it again (and test it again). If it's still bad, make sure you're writing it correctly. If you are, and it's still not working, try writing it with a different technique. If you're creating the live USB in Windows, there are two common techniques, so you can try whichever one you're not currently using:

Universal USB Installer
UNetbootin

If the installation went on for a while and then it restarted:
In this case, it's still worth checking the installation media, but it's more likely Ubuntu did install successfully, but that the GRUB2 boot loader was not properly installed to the Master Boot Record. To fix that problem, use any of the methods listed in:

How can I repair grub? (How to get Ubuntu back after installing Windows?)
(That applies even though your problem is not due to a recent Windows installation.)
Ubuntu help wiki section on reinstalling GRUB2 to fix a broken system.

If neither works:
Then more information is needed. Please boot from the USB flash drive, open a Terminal (Ctrl+Alt+T), and run:
sudo parted -l

Then edit your question (or, for readers other than the creator of this question, make a new question) to include the complete and exact text from the Terminal (you can copy it to the clipboard in the live USB system, access Ask Ubuntu, and paste it in, then format it with the <$> tool in the Ask Ubuntu editing toolbar).


Unable to download videos using IDM on Ubuntu

See here how IDM can be installed under Wine and integrated with Firefox.

Other multithread Windows downloaders work also in Wine, like Free Download Manager (better install the lite version), or SoMud (somewhat heavier, but which is able to search by itself videos before downloading them from different video hosts, beside being a torrent client).

You might want to consider an excellent Linux alternative: uGet - which can be used in association with Firefox+Flashget to capture videos.


I believe that it's the space set aside for the file address table.  It's reserved (so not actually available) but unused (since it doesn't have addresses yet) but it is part of total drive space (even if only system can use it).


Restore tap to click in Ubuntu 16.04 on Dell XPS 13

Adding...

    Option "Tapping" "True"

... to the entry for MatchIsTouchpad does the trick.


How to auto answer an incoming Skype call?

Assuming your skype is online, i.e. that you have logged in and there are no network problems, you can do the following:

In the skype list of phone numbers there is a buttom at the
bottom of the skype window which gives you access to settings. Click
on that, and the "options" menu pops up.
Go to notifications,and select "incoming call ringing". Now select "Advanced View".
At the bottom of the "advanced view" is an option to "Execute the
following script", in which you enter full the filepath of your
script.
Press apply.

The script

global _proc
global use_growl

tell application "System Events" to set _proc to name of processes as list
if _proc contains "GrowlHelperApp" then
    set use_growl to true
    my growlRegister()
else
    set use_growl to false
end if

if _proc contains "Skype" then
    tell application "Skype"
        set calls to send command "SEARCH ACTIVECALLS" script name "AnsweringScript"
        set callID to last word of calls
        if callID is not "CALLS" then
            set status to send command "GET CALL " & callID & " STATUS" script name "AnsweringScript"
            if last word of status is "RINGING" then
                send command "ALTER CALL " & callID & " ANSWER" script name "AnsweringScript"
                my growlNotify("SkypeAnswer", "Answering call")
                return
            else
                send command "ALTER CALL " & callID & " HANGUP" script name "AnsweringScript"
                my growlNotify("SkypeAnswer", "Hanging up")
            end if
        else
            my growlNotify("SkypeAnswer", "No call found to answer or hang up")
        end if
    end tell
else
    my growlNotify("SkypeAnswer", "Skype not detected")
end if

using terms from application "GrowlHelperApp"
    on growlRegister()
        tell application "GrowlHelperApp"
            register as application "SkypeAnswer" all notifications {"Alert"} default notifications {"Alert"} icon of application "Skype.app"
        end tell
    end growlRegister

    on growlNotify(grrTitle, grrDescription)
        if use_growl is true then
            tell application "GrowlHelperApp"
                notify with name "Alert" title grrTitle description grrDescription application name "SkypeAnswer"
            end tell
        end if
    end growlNotify
end using terms from

Reference: 1
Kind Regards
BHM


You can use

ls -l --time=atime --sort=t

Explanation:

ls -l lists the files with the detailed list format
--time=atime --sort=t sets the sorting order to the time of the last access

Example:

$ touch foo bar foobar
$ ls -l
insgesamt 0
-rw-r--r-- 1 Wayne users 0 Okt  4 11:56 bar
-rw-r--r-- 1 Wayne users 0 Okt  4 11:56 foo
-rw-r--r-- 1 Wayne users 0 Okt  4 11:56 foobar
$ sleep 60; touch baz
$ ls -l
insgesamt 0
-rw-r--r-- 1 Wayne users 0 Okt  4 11:56 bar
-rw-r--r-- 1 Wayne users 0 Okt  4 11:58 baz
-rw-r--r-- 1 Wayne users 0 Okt  4 11:56 foo
-rw-r--r-- 1 Wayne users 0 Okt  4 11:56 foobar

After some minutes:

$ touch -a foo # sets atime to cuurent time
$ ls -lt
insgesamt 0
-rw-r--r-- 1 Wayne users 0 Okt  4 11:58 baz
-rw-r--r-- 1 Wayne users 0 Okt  4 11:56 foobar
-rw-r--r-- 1 Wayne users 0 Okt  4 11:56 bar
-rw-r--r-- 1 Wayne users 0 Okt  4 11:56 foo
$ ls -lt --time=atime
insgesamt 0
-rw-r--r-- 1 Wayne users 0 Okt  4 12:01 foo
-rw-r--r-- 1 Wayne users 0 Okt  4 11:58 baz
-rw-r--r-- 1 Wayne users 0 Okt  4 11:56 foobar
-rw-r--r-- 1 Wayne users 0 Okt  4 11:56 bar

Conclusion:

ls -lt --time=atime

does what you need


USB drive automounts in Ubuntu shell, but not LXDE

There is actually a quite simple answer assuming you have pcmanfm the default file manager of lxde. Go to edit preferences volume management  and check the boxes for auto mount that you want mount available volumes automatically on program startup and mount removable media automatically when inserted.

The last one is an optional preference of showing options in a file show available options for media as they are inserted. You may not want this in the corner case if you insert external hard drives with multiple partitions as it has a take an action dialog for each partition.

Pcmanfm should automatically be started as it draws the desktop wallpaper and icons in addition to being a file manager.


Is this a valid ufw rule or wrong syntax

Not quite (at least not in ufw v. 0.36)

$ ufw --version
ufw 0.36
Copyright 2008-2015 Canonical Ltd.

there doesn't appear to be an ip keyword; just specify the IP address after the to or from keywords
the m:n port range syntax demands an explicit protocol specification

So

$ sudo ufw allow from any to ip 1.1.1.1 port 5001:5999
ERROR: Wrong number of arguments

$ sudo ufw allow from any to 1.1.1.1 port 5001:5999
ERROR: Must specify 'tcp' or 'udp' with multiple ports

$ sudo ufw allow from any to 1.1.1.1 port 5001:5999 proto tcp
Rule added


Find and replace folder and file names with Windows incompatible characters

Try rename, you need to install it first.

sudo apt-get install rename

Below is an example, you can change * to where your file/folder located.

~$ ls
'1<.txt'   3:.txt     '5\.txt'  '7??.txt'
'2>.txt'  '4"d".txt'  '6|.txt'  '8*.txt'

~$ rename -v 's/[?<>\\:*|\"]/x/g' *
1<.txt renamed as 1x.txt
2>.txt renamed as 2x.txt
3:.txt renamed as 3x.txt
4"d".txt renamed as 4xdx.txt
5\.txt renamed as 5x.txt
6|.txt renamed as 6x.txt
7??.txt renamed as 7xx.txt
8*.txt renamed as 8x.txt

~$ ls
 1x.txt   2x.txt   3x.txt   4xdx.txt  '5x.txt'   6x.txt   7xx.txt   8x.txt


Ubuntu 16.04: ' Open in Terminal' context menu on desktop opens it only in home directory

I have resolve the first point myself ;)

In fact, I want to open the terminal in the desktop only when I open it from desktop menu context or from the Unity Launcher.

So, all I have do is add this line at the end of my .bashrc:

[[ $PWD == $HOME ]] && cd $HOME/Desktop

With the question 1, I would like to know about a possible configuration point somewhere (i.e. dconf, nautilus-actions...).

Thank you for your answers.


The links in /etc/rc?.d/ point to scripts in /etc/init.d/. As for brltty, it sounds like an accesibility feature for some Braille thing.

First, try to find out to which package it belongs:

$ dpkg -S /etc/init.d/brltty
brltty: /etc/init.d/brltty

Well, that's clear, the brltty package is responsible for this. Let's get more information about it:

Excerpt from apt-cache show brltty:

Description-en: Access software for a blind person using a braille display
 BRLTTY is a daemon which provides access to the console (text mode)
 for a blind person using a braille display.  It drives the braille
 display and provides complete screen review functionality.

You can safely remove it, nothing really depends on it if you do not have a braille display (checked with apt-cache rdepends brltty)


What benefits would I see upgrading from 14.04 to 15.04 and what are some caveats?

Ubuntu 14.04 was released as an LTS (Long Term Support) where it is stable, and the patches / updates will continue for years.  Ubuntu 15.04 is a non-LTS release, and will only be supported for a short time, like a only a few months.  I prefer the LTS releases for my everyday usage system, and when I want to test things out I use the non-LTS releases to check out the newer features that can be in future releases.  I just have to remember that non-LTS are not stable, and can be prone to crashes and very little hardware support.  Hope this helps.


Why the Software Updater asked for password only in the first attemp of installing updates?

When an update is only updating existing packages, you won't be prompted for your password.

However, when new packages are required, such as when there is a change in dependencies for an installed package or a new kernel version, then you are asked to provide a password.


Bootable USB disk Ubuntu 18.04 gives FreeDOS message

Rufus developer here.

Most likely, you are seeing this because you forgot to properly select the ISO in Rufus or changed the Boot selection field to FreeDOS after you picked the file.

You need to make sure Boot selection says something like ubuntu-19.04-desktop-amd64.iso (or whatever the name of the ISO you selected is) before you press START. If you don't see the name of your ISO when you press START, it means that you haven't picked the proper option to create a bootable Ubuntu drive.


What can we do to increase participation in Global Jams?

Starting a twitter account. Posting updates and relevant news. Reaching out to prominent bloggers in the Ubuntu and Linux world. Posting on forums, just getting the word out. I see on your website you have badges. Get as many people as possible to post the badge maybe some sort of contest. But then again people only do what they want to.

Also directing people with a very specific goal, much like a video game. Help them feel that they are actually contributing in a measurable way. reputation or goal bars for example.

Either way goodluck! :)


Is it possible to run stress at the same time as vmstat/iostat etc?


In minecraft, there is a slider with the max fps. If you slide that to max (or min, i forgot), you get unlimited fps. I think it is at the minecraft video settings.
If that doesn't work, maybe you can tweak in the Ubuntu display settings to bump up the refresh rate. I don't have any experience with this, because my ubuntu always defaults to my native resolution and refresh rate (full hd and 60hz if you want to know).


Can't connect to mysql from applications other than terminal

The Mysql users are granted access based on where the connection is coming from.  By default the root access is restricted to:

127.0.0.1
localhost

The program you are using to connect is not indentifying itself as 127.0.0.1 or localhost.  You will have to verify the IP access it's being identified as, then add that to your grant table.
You can also, alternatively (highly insecure and should only be used for testing and to validate the program will work knowing the proper IP) grant access to any ip by adding % to the grant table for root.  This can at least be a temporary access while you work to identify the IP address being used for access.
These are command variations to grant an IP address:
mysql> GRANT ALL ON *.* TO 'root'@'computer.host.com';
mysql> GRANT ALL ON *.* TO 'root'@'192.168.1.101';
mysql> GRANT ALL ON *.* TO 'root'@'%';

Important!
The % wild card should not be used, especially for root.  It's mentioned for information and testing only.  It would make your computer become vulnerable to any computer hacker from anywhere in the world.
For security you might consider setting up a different name from root to give this access to and leave the actual root user more limited to where connections can be made.
You also may have to comment out the bind-address = 127.0.0.1 configuration in your my.cnf file.
From the Phpmyadmin GUI
Alternatively from Phpmyadmin perform these steps:

Phpmyadmin -> (click) Users -> Add user -> (For the user root Click on)
Edit Privileges ->  (Scroll to) Host -> (Type in the desired IP address) ->
(click) Go.

Update:
The OP's problem was resolved (via chat) by setting a password to Mysql.  It had originally been installed with a blank password.  That is why the only way to access mysql was to use sudo.  After properly adding a password to mysql the access worked by default using the default localhost/127.0.0.1 for the access and the Datagrip application.


I don't know if you will see this now, but the config you want to use is:

<?xml version="1.0" encoding="utf-8" ?>

<configuration>
    <dllmap dll="yaz4_64.dll" target="libyaz.so.5" />
</configuration>

This works for me.


Ubuntu 15.04 Dota 2 Reborn Beta Not Working

The dota 2 Reborn, is not yet officially released for all platforms. It is mentioned in their release page in multi platform section. The source 2 engine that is used for the game is not yet compatible with the linux and mac versions. Since you are using 15.04 beta, there are more likely chances of getting these errors.

"We're still putting the finishing touches on the Mac and Linux clients and we hope to have them available in the coming weeks." -Dota2 Official website

Most beta versions of games or software are not multi-platform compatible. It leaves us with no choice to wait until they release a stable version in couple of weeks.


Can't upgrade Ubuntu 18.04 to 20.04 because of "Please install all available updates for your release before upgrading" error

sequence from 18.04 to 20.04
sudo apt update
sudo apt upgrade
sudo apt dist-upgrade
sudo apt autoremove
sudo do-release-upgrade -d -f DistUpgradeViewGtk3

Follow onscreen instruction.
Good luck!


Using Juju returns "ssh invalid key" error

You have to generate a keypair on machine from which you're running juju bootstrap.

I just generated the keyspair

ssh-keygen -t dsa

Again did,

juju -v bootstrap

You should also integrate your ssh key with Launchpad so that you can pull charms from the charm store:

https://help.launchpad.net/YourAccount/CreatingAnSSHKeyPair


APT error: Malformed entry 1 in list file /etc/apt/sources.list.d/itchio.list

According to the error message, the problem is caused by something in the file /etc/apt/sources.list.d/itchio.list

I'm assuming this is part of itch.io.  You have a few options:

Remove itch.io using the appropriate method for doing so.  If this involves removing a package, you may need to purge the package rather than just removing it.
Edit the above file to identify where the problem is (it's in the first entry) and try and fix it.
Contact the makers of itch.io for help with the problem.


In general you will just have to make a

sudo add-apt-repository 'deb http://archive.ubuntu.com/ubuntu YOURDISTRO (precise, trusty, wily etc.) main universe'
sudo apt-get update

inside a shell this should add the universe repo to your sources.list. You can also add the line manually to your sources.list:

sudo nano /etc/apt/sources.list

(the command above actually does this)

Another oppurtunity is to go to packages.ubuntu.com and to search for the mingw32 package. Then install it manually.

The repo you need is listed there also. Here is a pointer:

Download the mingw32 package

But be aware of a possible so called "apt-hell". This happens when a certain package needs more dependencies and the next packages needs even more dependencies and the next package....you see where this leads right?

Resolving dependencies can be a great hassle.


For Ubuntu 13.04 and Onwards ( 13.10 , 14.04 , 14.10 .....)
command line way
Open Terminal & copy paste the following commands
sudo add-apt-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner"
sudo apt-get update
sudo apt-get install skype

HELP How do I install Skype?

GUI WAY

Go To System Settings > Software & Updates

Then

Authenticate & Click Close

Install It From Ubuntu Software Center

For Ubuntu 14.04 Trusty (64bit) fix skin issue with this command:

sudo apt-get install gtk2-engines-murrine:i386 gtk2-engines-pixbuf:i386 sni-qt:i386


Fresh Install of Ubuntu 16.04 Boots to Black Screen After Update

My solution would be to lock the package from updating until the issue is resolved. This way you can continue to update critical software even though that driver may have stability issues.

Hold a package:

sudo apt-mark hold package_name

Remove the hold:

sudo apt-mark unhold package_name


I forgot my password (Ubuntu 16.04) & can't open GRUB now

You can use the LiveCD Rescatux to recover your system:
Rescatux
Rescatux is a GNU/Linux rescue cd (and eventually also Windows) but it is not like other rescue disks. Rescatux comes with Rescapp. Rescapp is a nice wizard that will guide you through your rescue tasks.
How to use rescatux
Might it helps.


How to set up an old PC to run a gaming server and have people connect it?

Connecting inside your LAN:

Just type in the local IP, the one output from "ifconfig" or "ip address".

To have people outside your LAN connect:

Forward a port to your game server's local IP address. In order to not have to adjust the forwarding all the time, you'll probably want to assign your game server a static IP address from your router.
Anyone outside your network can then connect by using your external IP* and that port that you forwarded to your game server.

*Suggestion: Instead of having to tell everyone your new external IP every time it changes, you can use an online service to give it a name that updates automatically (like game.server.org, for example, but it will always resolve to your external IP). This is called dynamic DNS, you can search that if you're interested.


Problem with connecting Android Phone with Ubuntu 14.04

I had the same problem.Ubuntu does not come with mtpfs installed.Open a terminal and type or paste "      sudo apt-get install mtpfs   ".  Now reboot and then connect your phone.
Pieter


I am not sure this will work or not. But at first format all the partition using ntfs file system using Windows bootable disk and the create partition and then install Windows if you want then again plugin Ubuntu bootable disk and install Ubuntu. Make sure to select the correct partition.

And select Ext4 file system for the partition in which you are installing Ubuntu. And install the Ubuntu and it should works fine.


What ubuntu flavour i can install in this low end machine

I'm currently running 64 bit 14.04 on a core duo laptop and Gnome is very quick and responsive. The laptop has intel integrated graphics, 3 gigs of RAM.
What really makes the change from usable to quick is the addition of an SSD which nowadays only sets you back about $40.


How do I report a bug on Ubuntu One in Windows 7?

The best way would probably be to visit the Ubuntu One Launchpad page and see if your bug has already been reported.

If so click the bug report and select This bug affects X people. Does this bug affect you?  at the top left.

If not then click Report a Bug at the top right and provide more details.

See also:

https://one.ubuntu.com/help/faq/how-do-i-report-a-bug-for-windows/


Games are playing but very slow response and poor graphics

To check your graphics memory you can install hard info, it should be under PCI devices.
with regards to games running slow, it seems to be quite common in ubuntu, I checked in https://wiki.ubuntu.com/HardwareSupportComponentsVideoCardsAti and your video card is not offically supported, not yet anyway, that doesn't mean it can't work well, though. I assume that you installed the proprietry drivers, if you didn't you should. here's some info on ways to do that: https://help.ubuntu.com/community/BinaryDriverHowto/ATI


Delete the whole line starting with a special character except for the first word

I present here four solutions, two using sed, one using awk, and one using perl.  To start:

$ sed -r 's/^(>[^ ]+) .*/\1/' inputfile

On your sample input, this produces the output:

>YAL001C
LTIYPDELVQIVSDKIASNKGKITLNQLWDISGKYFDLSDKKVKQFVLSCVILKKDIE
VYCDGAIP*

The code uses sed's substitute command s.  The substitute command is in the form s/old/new/.  In this case, the "old" part consists of these pieces:

^

This is sed-speak for the start of a line.
(>[^ ]+)

This refers to a group of characters consisting of an angle bracket followed by one or more non-blank characters.  Because this is in parenthesis, we will be able to refer to it later as \1.
.*

This refers to a blank followed by any number of any characters.

When the substitute command is done, the whole of any such line is replaced by just the > and the non-blank characters which immediately follow it.

Any lines not starting with that combination are sent to the output unchanged.

Alternate solution

In the comments, steeldriver suggests an alternate approach:

sed '/^>/ s/\s.*//'

In this solution, the substitute command is preceded by the modifier /^>/ which restricts the substitute command to operate only on lines that start with >.  Knowing that the line starts with an angle bracket, then it is only necessary to remove the first blank and everything which follows the first blank.  This is what the command s/\s.*// does.

All other lines are passed through unchanged.

Alternate solution using awk

awk '/^>/ {print $1;next} 1' inputfile

This awk script consists to two expressions:

/^>/ {print $1;next}

awk supports the same style of modifiers as sed.  The initial expression, thus, restricts this command to operate only on lines that start with >.  For those lines, the first field is printed.  next tells awk to skip to the next line and start over.
1

1 is awk's cryptic short-hand for print the whole line.  This is executed only on lines for which the next command in the preceding expression is not executed, meaning that awk reaches this command only if the line does not start with >.

Alternate solution using perl

steeldriver also suggests:

perl -anle 'print $F[0] if /^>/ || $_'

The four options have the following meaning:

-n tells perl to implicitly loop over input lines
-a tells perl to turn on autosplitting, creating the @F array
-l enables automatic line-ending processing
-e tells it to run the command which follows, eliminating the need for a perl script file.

The perl command itself is fairly readable:

print $F[0] if /^>/ || $_

This command prints the first field if the line starts with >.  Otherwise, it prints the whole line.


suspend not working: Dell i15-5505, Ryzen 7

SUCCESS.
I found a posting online that provided the outline of a solution.  The short version is that the Dell's ACPI configuration had to be modified. Apparently Windows uses something called "connected standby" in place of the familiar "sleep to RAM" suspend, and Dell's ACPI did not have the S3 deep sleep mode available.  The solution entailed adding it back in.
The outline of the solution is here: https://dev.to/epassaro/fix-suspend-issues-on-dell-7405-2-in-1-3l1b.
Here are some specific changes to the procedure outlined in the above.
Step 0: Use a recent Linux Kernel
I'm running Mint 20.1, which uses a 5.4 kernel.  According to the post, a 5.8 kernel or later is required.  The 5.8.0 kernel did not work for me, but the 5.10.0-1013-oem kernel did.
Step 2: Recompile DSDT and examine errors
The iasl_errors.txt file has lots of stuff but only three errors, which, as the post says, you have to look for with a text editor.  In my ACPI, the error lines were 3981, 4018, 4046.
I followed the rest of the procedure, and my laptop sleeps!  And wakes up!


After upgrade to 20.04, no sound from Firefox

Install pavucontrol:

sudo apt install pavucontrol

Select required sound device on the Playback tab if a few are installed:

Try different output channels on Output Devices tab if a few are available:


To be able to do that, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo nano ~/.profile

And add the following line:

export PATH=path_of_mono:$PATH

Replace path_of_mono with the correct path of mono.


You can download *.deb file from skype website, navigate to file location, press F4 to open terminal window and type:

sudo dpkg -i filename.deb

You may need to do

sudo apt-get -f install

to install some dependencies

The last step is to install Pulse audio, because without it you won't be able to play/record sound with skype:

sudo apt-get install pavucontrol

Happy skyping!


I can't run graphical programs with sudo (Ubuntu 12.10)

From the bug report:

This is just a warning to get people to migrate to XDG configuration layout, it is no bug in backintime.
To get rid of the warning move ~/.fonts.conf to ~/.config/fontconfig/fonts.conf or if $XDG_CONFIG_HOME/fontconfig is set to that directory.


avoid reinstall virtualbox and update to the latest release

You won't lose your settings or files if you reinstall.
Just install the package with dpkg and it will upgrade it. That's all.

(In case you are really cautious, you can backup the .virtualbox folder under your Home.)
More info on that can be found here.

Default machines folder       $HOME/VirtualBox VMs
Default disk image location   In each machine's folder
Machine settings file extension .vbox

There should be an another folder in your Home with the global Settings.


How can I receive files on ubuntu via dukto app from my Android device

Try disabling the firewall, if there's one in your PC. I faced a similar problem: files could be transferred from my Symbian Nokia N8 to my Windows 7 PC, but not vice versa. I temporarily disabled the firewall in my PC, and the transfer worked just fine after that.


Ubuntu 12.10 Keyboard & Touchpad not working on Acer Aspire V3-551-7844

After many hours, I found it!

Open terminal and enter:

sudo gedit /etc/default/grub

Find the line:

  GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

and change it to:

  GRUB_CMDLINE_LINUX_DEFAULT="quiet splash i8042.nopnp=1 i8042.dumbkbd=1 acpi_osi=Linux acpi_backlight=vendor"

Then enter in terminal:

sudo update-grub

That will also solve the problem of screen brightness.

PS: This solution stopped working after updating system to Kubuntu 13.04 (and probably will happen updating to Ubuntu 13.04 as well). Even setting grub back to default, rebooting, changing it again and rebooting, the problem persists.

A simple detail has done the magic, after that: go to System Settings > Input Devices > Keyboard > Hardware > change Keyboard Model to something else > Apply > reboot > change Keyboard Model back to Generic | Generic 101-key PC > Apply > reboot. Done!!!


Ubuntu boot USB has recursive infinite file called "Ubuntu" is that normal?

That ubuntu file is a link, and was added years ago to the ISO.  Unfortunately, that link killed the possibility of just making a boot media on a FAT32 device, since the FAT32 filesystem does not support links.  It might be used by something in the preseed arena, but it can just be ignored.

It's normal and nothing to worry about.


How can I share my screen with Skype for Linux 5.3?

"Skype for Linux Beta currently lacks the support for group video calling and outgoing screen sharing. We are working hard to add these features for you as soon as possible."
From Skype.com.

Teamviewer is a good screen sharing app IME but has had security issues. AnyDesk is recommended on alternativeto.net.


Setting up fresh Ubuntu install for programming assignment - Nvidia, CUDA, NSight

Looking at the questions you've already asked in the past and the answers you've already given, I deduce you're primary a windows user who needs specific help with NVidia development. (Please correct me if I'm wrong)

Xorg/edgers is the bleeding edge for NVidia, so you are installing drivers that are in beta (or worse) and you might run into problems using them. On the other hand, they give you the flexibility you apparently need. This is advanced stuff and frankly, you're a computer wiz under Windows but you should not forget you're a newbie under Linux! (You are now where I was about 9 months ago.)

So take a less "let's first install all this stuff and see what happens" and more a "let's install one single thing and see if that works" approach:

First of all, install plain vanilla Ubuntu.  That works? Clonezilla Disk to Image file your Ubuntu partition so you can roll back.
Now install xorg nvidia latest drivers and play a few games, open a few spreadsheets and see whether it works.  If it does not, use xorg/edgers to install a previous driver and keep going back until it works.
CloneZilla again to an additional image. (keep the previous CloneZilla Image)

keep doing this until you have everything installed and working.  If you break something really serious, you can easily restore to a previous version using the Clonezilla live CD.

You're on the bleeding edge Very few people will be able to help you with specific questions.

Tip: read all of the Ubuntu user manual.


Downloading 64-bit applications doesn't work on Ubuntu 20.04

The error lists:
supports the following Linux distributions:
CentOS
openSUSE
Red Hat Enterprise Linux
Scientific Linux

So no Ubuntu/Debian listed there and then also states:
This installer does not support 32-bit kernels.

So its mainly due to the software does not support Ubuntu/Debian.


You don't actually compile it, but merely package it. Compiling is where you translate your source code into machine-readable object code in the native instruction set of your computer. So for example, you compile C code into an executable.

Python isn't compiled, it's interpreted. But you can still execute them by prepending #!/usr/bin/env python to any script and marking it as executable.

In terms of packaging a Python application for distribution, it's a little more of a hassle than you'd hope, but there are official instructions from Ubuntu.

As an aside, if you're developing with Ubuntu Quickly, it has a command for packaging.


This is what you need to know before attempting this:

How to connect your router via SSH or Telnet to configure IP and getway from router to your computer.
How to connect to the wifi.
How to create a LAN wired connection between computer and router.

If you know (more or less) these things, the process is this:

connect your computer to the wifi using this procedure: How do I connect to a WPA wifi network using the command line?.
once connected, check your connection in terminal using a command like ping www.google.com and wait for a positive response

$ ping google.com
PING google.com (172.217.23.14) 56(84) bytes of data.
64 bytes from lhr35s01-in-f14.1e100.net (172.217.23.14): icmp_seq=1 ttl=53 time=14.0 ms
64 bytes from lhr35s01-in-f14.1e100.net (172.217.23.14): icmp_seq=2 ttl=53 time=14.8 ms
[...]

connect via SSH or Telnet via cable to the router and set correct IP and Gateway. The gateway mus be the IP of the ethernet card (not wifi) of the computer connected to wifi, but the IP can be random.
disconnect the router and create on the computer an ad-hoc wired connection with the  IP set as your router gateway. To do this, you must set in the conf file "shared" type of connection.
connect again to the router using the PC cable and enter in it via SSH or Telnet and check with ping if you have internet. I couldn't find any guide to "how to create ad hoc connection via terminal" and I'm not sure it's possible to connect a router via ad-hoc connection. So, as you can see, it's very very tricky.

Moreover, if you can do all this stuff and it works, my experience with ad-hoc connections tells that they are crap, they are slow, they go down for no reason if you have too much traffic, so I don't suggest using them.

The best way for you is to buy a range extender (repeater) and configure it with a computer using the GUI, with a fixed IP and getway etc, then set up (via SSH or Telnet) your cabled router, and connect them via LAN cable.

A second option is this: you need 2 computers: take computer number 1 and connect it to the wifi, check ping, if you have internet, connect via LAN cable to computer number 2, after connecting it create on computer number 1 an ad-hoc connection.

Then create on computer number 2 a new ethernet connection with the right IP and Gateway for the ad-hoc connection. You will have 2 computers connected.


The first challenge is generating a random date. Here's what I came up with.

date -d @$(shuf -i "0-$(date +%s)" -n 1) +%Y%m%d%H%M.%S

Working from the inside-out:

date +%s gets the current date as a Unix timestring (seconds into the Epoc, since 1970)
shuf uses that as an upper bound for a random number from 0
date converts that back into something we can use.

Then there's the setting the mtime on a file. Thankfully touch makes this really simple:

touch -mt <[[CC]YY]MMDDhhmm[.ss]> <filename>

So we just need to loop over files and chain these two together:

find -type f -exec sh -c 'touch -m -t $(date -d @$(shuf -i "0-$(date +%s)" -n 1) +%Y%m%d%H%M.%S) "{}"' \;

There's a bit of padding in there to stop the date being randomly generated outside the loop but this does work:

$ ls -l
total 0
-rw-rw-r-- 1 oli oli 0 Jan  4  2012 1
-rw-rw-r-- 1 oli oli 0 Jan 28  2009 2
-rw-rw-r-- 1 oli oli 0 Jun  8  1984 3


Remove empty space on the Ubuntu 14.04 launcher

I opened the launcher, alt+f2, typed 'unity', and pressed enter.
Log in and all should be normal.


Windows Subsystem for Linux is not designed to run a GUI. It's command line only, although some very well behaved GUI apps can be run if an x.org server is installed within WSL.

If you need to run Ubuntu from within Windows, the appropriate method is virtualization. Windows can host virtualization if your PC is capable of it. As an example, here's the system requirements for VirtualBox, a free virtualization app which supports Ubuntu as a guest and Windows as a host. (or vice versa).  Full Circle magazine issue 153 has a useful VirtualBox tutorial starting on page 23.

Other virtualization hosts will also accomplish this.


Gnome Terminal to have the same color change, based on the background, as Unity?

Change the colour
Using something like KColor chooser, select the colour you want. Then go to Profile Preferences under 'Edit', uncheck 'Use ... system Theme',  and set the colours you want under 'Custom':

Other backgrounds
Under 'Background':

You can set an image you want, something like this (as a repeating pattern) and green text works nicely for an 'old computer' effect - note the Transparency level sometimes seem s to affect image backgrounds.
You can also set a transparent background, which will will use the colour set in Colors above as the base for the transparent background.


How do I get LibreOffice to make titles for columns such that as I scroll down I see the titles instead of "A,B,C,..." for columns?

You can split the header.

Drag the little black horizontal segment that is above the scroll bar, while dragging you will see an horizontal line moving. Or: Window->Split (as seen in the 2nd image). The split will happen above the cursor. This is the end result:

You can also use freeze. Window -> Freeze.

And this is the end result (3 rows this time):

The main difference between the 2 is that split adds a second scroll bar so you have 2 windows. Freeze also works on 1 or more columns.


Why does a new Samba share show up later, but not directly after creation?

Unfortunately you are going to have to go to an entire different OS, try Debian.
This will never ever work in Ubuntu.
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1807177


I use iotop (command line tool).

sudo apt-get install iotop


I haven't tried to enable X11Forwarding, but I used to have the same problem. You can fix this in a few steps:

When you get to the graphical login screen, hit Ctrl+Alt+F2, thus you get to a textual login.
Put in your name and password (password is not displayed when you type, neither as stars or bullets).
Type sudo apt-get install gdm and hit enter, give your password and wait to get a line ending with a dollar sign again.
Type sudo dpkg-reconfigure gdm.
Hit Enter at the first screen.
Select gdm in the list you get in the second screen with the arrow keys.
Hit the Tab button (above the caps lock one). Now you see the word Ok highlighted. Hit Enter.
Type sudo reboot and hit enter. You'll get another graphical login screen, but you'll be able to log in!

P.S.:

If you are used to running some programs like ifconfig or others which are administrative ones from a terminal emulator (e.g. gnome-terminal) you'd better add a line like PATH="$PATH:/sbin:/usr/sbin" at the end of the .bashrc file in your home directory. You can do it with echo 'PATH="$PATH:/sbin:/usr/sbin"' >> ~/.bashrc.
If you want to change back to the other graphical login screen from time to time and see if it was bug-fixed and it works again you can run sudo dpkg-reconfigure gdm and select lightdm and reboot (doesn't look like it works if you just run sudo pkill X).


How to remove the syncing attribute from Nautilus icons?

Try this, maybe it works. It depends on the theme you are using.

Right click on the folder.

Click on the folder icon.

In the dialog go to /usr/share/icons/<your theme>/<size>/places/ and select the default folder's icon .


access
http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager07.html

select link
click never ask again


Help please with manually reinstalling some 'purged' packages in the right order to get back my network connection

The safest way to repair that would be to :

Download all packages from packages.ubuntu.com
Install them with the command :

sudo dpkg -i NAME_OF_THE_PACKAGE
If by misfortune, a package is missing, download it and restart from step 2.

1. Download all packages (click on i386 at the end of each page)

http://packages.ubuntu.com/raring/wpasupplicant
http://packages.ubuntu.com/raring/libmnl0
http://packages.ubuntu.com/raring/libnm-gtk-common
http://packages.ubuntu.com/raring/libnetfilter-conntrack3
http://packages.ubuntu.com/raring/ubuntu-minimal
http://packages.ubuntu.com/raring/network-manager
http://packages.ubuntu.com/raring/network-manager-gnome
http://packages.ubuntu.com/raring/dnsmasq-base
http://packages.ubuntu.com/raring/iputils-arping
http://packages.ubuntu.com/raring/libgnome-bluetooth11
http://packages.ubuntu.com/raring/libnm-glib-vpn1
http://packages.ubuntu.com/raring/libnm-gtk0
http://packages.ubuntu.com/raring/libnm-glib4
http://packages.ubuntu.com/raring/libnm-gtk-common
http://packages.ubuntu.com/raring/libnm-util2

2. Copy the packages to a new directory in your HOME (for example ~/packages)

3. Open a terminal (CTRL-ALT-T) and go to the directory containing the packages :

cd ~/packages

4. Install them with this command (it's in the right order):
NOTE: * will automatically be replaced by the right name.

sudo dkpg -i limbn-util2* libnm-glib-vpn1* libnm-glib4* libnm-gtk-common* libnm-gtk0* libmnl0* libnetfilter-conntrack3* dnsmasq-base* iputils-arping* libgnome-bluetooth11* libreadline5* wpasupplicant* ubuntu-minimal* network-manager* network-manager-gnome*

5. Run apt-get to check if it's installed. :

sudo apt-get update

You may have to do this command, if asked :

sudo apt-get install -f

6. Reboot your PC and try to connect.

7. If you are connected, run the upgrade command to update your system :

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

How did I knew the right order ?

Do a LIST of the needed packages.
Go to package.ubuntu.com .
Find the packages you are looking for, leave the page open.
Look at the dependences of each package, and open the webpage for all of them which are in your LIST.
Use documentation (or your brain) to understand that dependences must be installed before the package that needs them.
From there, use your logic to deduct the right order : each dependence must be installed before the package they depend on, and that even if multiple packages need only one dependence. The dependence need to be installed only once, then it's good to all packages needing it. => That means you start by installing the dependences that don't need any other package from your list, then proceed gradually until all packages are installed.


How to find all images with a certain pixel size using command line?

You can use identify from imagemagick, and you can use the following command:

find . -iname "*.jpg" -type f -exec identify -format '%w %h %i' '{}' \; | awk '$1<300 || $2<300'

the use of -exec <command> '{}' \; makes sure that your filename can have spaces in them, alternatively you can use

find . -iname "*.jpg" -type f | xargs -I{} identify -format '%w %h %i' {} | awk '$1<300 || $2<300'

where the -I{} takes care of the same thing.

What I like about identify is that you can specify the output format; in this case '%w %h %i' which gives the width, height and full pathname of the image. Then the awk expression only keeps those lines for which the image is smaller than the desired size.

Example of the output:

64 64 ./thumbsup.jpg
100 150 ./photomin.jpg

Edit: If you want the filenames only (for piping to rm for instance), simply change $line in the awk statement to $3, then it will only print the third column.


Gnome shell launcher is popping many pages dots after exiting app folder collections, Ubuntu 20.04

It is a known bug. You can find some references in:

Bug #1870847: App grid has too many page dots on right
Bug #1889102: [ubuntu-dock] App grid has too many page dots on right

A first fix was released, as you can see in the first link, but the discussion about the bug continued in the second link and a real fix is not yet available. The second link contains also different videos that show how to reproduce the issue.
It seems that the bug is related to the Ubuntu dock extension and that using version 69 of Dash to Dock extension may fix the bug. Similar feedbacks are available also in the first link.


Is there any application on Ubuntu equivalent to fedora's 'Connect To'?

Remmina would be a good solution. I believe it ships with 12.04, but I think you have to manually install it on 11.10.

sudo apt-get install remmina

Or, just install it from the Ubuntu Software Center:

It also works with VNC, RDP, NX and SFTP.


Appearance option missing in Gnome Control Center

I had the same problem, this solved it: https://askubuntu.com/a/1230698
Basically I was logging in using "Gnome on Xorg" rather than "Ubuntu"


How to access photos from my Genius G-Shot P7545 camera?

There is no reason why it shouldn't work, but there have been reports of the device not working from other people. The problem is that no one believes that this single mass storage device just stopped working... it's unbelievable because it's such a standard device.

Does the camera work when you boot up into a LiveCD session? Does it work with an older version of Ubuntu (such as 9.10 / 10/04) It's probably an issue with a new udev rule and I suspect (but have not proven) it's an issue with the modem rule that deals with usb modems that also have disks with windows drivers.

You may end up reporting the bug ubuntu-bug ubuntu and trying to get a developer to look into fixing it... if you can convince them.


How do I put a gnome-terminal's left border on the left side of screen, using a shell command?

You can try wmctrl:

wmctrl -r WINDOW_NAME -e 0,0,0,-1,-1

Moves the window to the top-left corner of the screen (below the menu bar, under the laucher).

The tricky part is how to determine which window to apply the command to. If you give it a descriptive title it can be used as the window name. Alternatively you can use the name of the program if you do not plan to start multiple instances.

Paramters:

-r: Move and resize window on the desktop.
-e: Specify Gravity, Position and Size (G,X,Y,W,H). Specifying G=0 and W=-1, H=-1 will allow you to position the window by using the X, Y parameters leaving other attributes intact.

More information:

man wmctrl
wmctrl --help

(If you do not have wmctrl installed, try: sudo apt-get install wmctrl.)


If you wish to continue using TeXLive 2013, change your repository:

tlmgr option repository ftp://tug.org/historic/systems/texlive/2013/tlnet-final

You can also easily update to TeXLive 2014 and install again all the packages you had in TeXLive2013.

  How is it possible that in a brandnew OS's repositories packages are
  outdated to the extend that they're not supported anymore?

TexLive 2014 was released in June (so it could not be included in Ubuntu 14.04 in April). TexLive 2013 is no longer supported from July 2014 (and it seems all CTAN mirrors follow this deprecation, except for the tug.org/historic).


Complete List of Terminal Commands and all their parameters

To list complete list of Terminal Commands use:

compgen -b

which lists all built-in commands

compgen -c

lists all commands (maybe better to use compgen -c | less since it's a long list)

Taken from All main Terminal commands answered by @Cubiq

And below commands are what you want for complete details and their parameters:

man <command>
info <command>
<command> -h
<command> --help

If you want more information, type:

info coreutils <command>


Your Windows partition will continue to work as an NTFS partition even after Windows license expires. If you wish, you can continue to use the partition just like that.

Alternately, you could take a back-up and then shrink / delete the partition. Since you mentioned that your Windows partition is large, I suspect you'll have to do this in multiple iterations. So, you should try mounting the Windows partition and then copy your files to Linux/Ubuntu/other partition. Then shrink Windows partition (which may cause data loss), and expand other partition, and repeat the copying. Since you don't want to use a LiveUSB, the expansion has to be a fresh partition, because as pointed out by Kulfy, you can't change Linux OS partition when you're booted from that partition.


Ubuntu randomly freezes when I press certain keys

It seems the issue was with the hardware membrane for the T key. I popped out the key, tried pushing the membrane hard (Ubuntu froze and got a black screen), tried lifting the membrane up a little, cleaned it. Since then, I didn't get any issues so far. It seems, moving the membrane a little bit did the trick.


Can't resize partiton on Lexar USB drive

Here's your problem:

fdisk -l /dev/sdd1

You've told fdisk to read the contents of /dev/sdd1 and treat it as a partition table; however, /dev/sdd1 is itself a partition! Chances are you should have specified /dev/sdd, not /dev/sdd1. (It is legal to put a partition table on a partition, but this is normally done only for certain specialized cases, such as if you've set aside a partition for use as a virtual disk device for a virtualization tool such as VMWare or QEMU.)


Fireofx 57.0a1 64-bit - YouTube HTML5 Video Player

By installing the nightly's builds, you like to live dangerously

The actual stable version is the 54, and you are with the version 57... Just to let you know that nightly build version are mostly experimental version.

in All cases going on the Firefox website there > https://www.mozilla.org/en-US/firefox/new/ might help you alot.
Then click on the blue button "Refresh FireFox" beside the green button
it might help you a lot by refrefreshing firefox

or go there > https://support.mozilla.org/en-US/kb/refresh-firefox-reset-add-ons-and-settings?utm_source=mozilla.org&utm_medium=referral&utm_campaign=learn-more-link
To do it from the browser itself

Note: your add-ons will be reset as well as your settings, but you will still have your passwords and so.

EDIT:  If it's for the container tabs, it's already in the "normal" Firefox (V 54), but it's disabled (false)  by default >
So, you can instal the V54 stable then go to the about:config pref privacy.userContext.enabled and set it to 'true' by double clicking on the line, I just did it ;) (that's a cool feature BTW)
you might need to restart firefox

  https://wiki.mozilla.org/Security/Contextual_Identity_Project/Containers

EDIT 2 : Might it be possible that it come from your distro too?
I am on ubuntu-MATE (the distro > https://ubuntu-mate.org/) and have not problem at all (see below the screen shot) and the FireFox i am using is the one installed by default on the distro and flash is not installed (i don't want it).


You dont need to add problematic PPA s to install rabbitvcs. It is in main Ubuntu Repository

Remove the present rabbitvcs installation. Then remove the repository. Then install as follows:

sudo apt-get install rabbitvcs-nautilus rabbitvcs-gedit rabbitvcs-core rabbitvcs-cli


Pressing backspace doesn't open previous page in Firefox

To change the Backspace mapping in Firefox to the same as in Windows:

Enter the url about:config in Firefox addressbar and click I accept the risk!
Search for browser.backspace_action
Set the value to 0

Reference: Browser.backspace_action

0
Pressing [Backspace] will go back a page in the session history and
[Shift]+[Backspace] will go forward. (Default in Windows)
1
Pressing [Backspace] will scroll up a page in the current document and
[Shift]+[Backspace] will scroll down. (Default in Linux builds before
2006-12-07) [edit] (Other)
Any other integer value will simply unmap the backspace key. In Linux
builds after 2006-12-07, the default is 2.


How to install libyajl package in ubuntu?

Please compile the yajl.

root@localhost:/tmp# git clone git://github.com/lloyd/yajl

root@localhost:/tmp# cd yajl

root@localhost:/tmp/yajl# ./configure && make && make install

If you are faced with following error message, please install cmake package.

And then compile the yajl.

root@localhost:/tmp/yajl# ./configure && make && make install
== removing old build files
== running CMake in build directory
./configure: 41: ./configure: cmake: not found
The "cmake" program is required to configure yajl.
It's available from most ports/packaging systems and http://cmake.org

root@localhost:/tmp/yajl# apt-get install cmake

root@localhost:/tmp/yajl# ./configure && make && make install

Thanks.


Have you tried enabling remote access first, then adding the the gpu after all that is set up?

I'm working on something similar, except with a FirePro V3900 on


cd /directory/whatever/ uses full pathname, starting from top-most  directory /. Usually only users with root/sudo level of privilege can create directories there, so likely directory in / does not exist , hence the error.

cd \directory/whatever/ uses relative pathname - relative to current working directory. Terminal starts out in user's home directory, aka /home/$USER aka same as what pwd or echo $PWD would report. Likely you've created directory and subdirectory whatever in your home directory. Equivalent would be cd ./directory/whatever, where ./ signifies current working directory link.

As for \d that uses the slash as escape character, which is here unnecessary but would be necessary in cases where filename contains special characters that shell treats as having different meaning. For example, cd with\ space and cd 'with space' are the same - one single string as argument to cd. By contrast, cd with space are two different strings given as arguments to cd (because unescaped spaces are treated as word separators in shell, aka word splitting) and of course it will result in an error


I wanted to know if there was any downside to installing on flash drive as opposed to other USB external drive. Also, what has been your experience of it, issues that might arise, or benefits.

To rephrase your question so as to be a little less opinion based:

  Is there any downside to installing on a flash drive as opposed to other USB external drives, also are there any issues that might arise, or benefits?

I have been using installed linux on usb drives for years. I have had/currently have multiple flash drives with multiple linux installs on the same drive. You can multiboot flash drives just like desktop/laptop hdds. The only downside i have ever run into was physical memory limitation. Booting the same drive on multiple computers sometimes you will run into a computer with less memory then the last one which may make your user experience different then the last computer you used it on. Becasue of this i always keep conky running with the physical ram listed.

I really only see benefits. You can take your computer with you (fits in your pocket). Also since your OS is running from a flash drive you will have almost SSD read/write speeds. Especially if you are using a USB 3.0 drive in a USB 3.0 port.

I guess if I had to say a downside is that you could lose your flash drive since it is small. Or accidentally run it through the wash.


There are 2 possibilities, either you are running another apt command and you need to wait till it's complete which you would solve by waiting for it to complete or killing the process, or the lock file exists in /var/lib/dpkg/lock-frontend and no process is using it, so you would have to remove it, and force package reconfiguration with the following commands

sudo rm /var/lib/dpkg/lock-frontend
sudo dpkg --configure -a


How to get gateway of network interface?

Try ip r. It will show info in the form

default via aa.bb.cc.dd ...

or  netstat -r -

Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface

traceroute goo.gl or tracepath goo.gl will show all routers (VPN-gateway at the top)


I cannot change the iso file from which to create a startup disk

It looks like this is a bug with the 13.10 version.
The question was also asked here: Startup Disk Creator not recognizing selected ISO in 13.10 with a proposed work-around.


Xiaomi RedmiBook 14" Ryzen Edition broken WiFi

Nothing worked for me except:
sudo wget http://www.killernetworking.com/support/K1535_Debian/board.bin -O /lib/firmware/ath10k/QCA6174/hw3.0/board.bin
sudo wget https://github.com/kvalo/ath10k-firmware/raw/master/QCA6174/hw3.0/4.4.1/firmware-6.bin_WLAN.RM.4.4.1-00132-QCARMSWP-1 -O /lib/firmware/ath10k/QCA6174/hw3.0/firmware-6.bin
sudo rm /lib/firmware/ath10k/QCA6174/hw3.0/board-2.bin

Now I finally can use WiFi on Redmibook 13 Ryzen Edition. Contact me if you still have this issue.


block icmp requests (from fixed network)

Sounds like the below rule should be your fix:

iptables -A INPUT -s 192.168.2.0/24 -d 192.168.1.1 -p icmp --icmp-type echo-request -j DROP

Anything from source 192.168.2.0/24 with destination 192.168.1.1 with protocol icmp with type echo-request will be DROP'd.

Hope this helps.


Remove the

Include /etc/phpmyadmin/apache.conf

from /etc/apache2/apache2.conf.

The phpmyadmin package already created the symlink /etc/apache2/conf.d/phpmyadmin.conf to include /etc/phpmyadmin/apache.conf.

You get this warning because you are including /etc/phpmyadmin/apache.conf twice now.


What do I backup prior to upgrading 16.04 to 18.04?

Your personal data, once lost, is lost forever. For that reason, you should, at any time, have a good backup (preferably a few) anytime. That is the only data you need to worry about. All the other data on your OS is replaceable and repairable.
So you are good if you have backup copies of your Documents, Movies, etc. folders. Applications typically create hidden folders in your home folder to store configuration data. In some cases, there also may be data there you want to keep. For example, if you archive local mail in for example Thunderbird, you will also need to backup the data under $HOME/.thunderbird/<your profile>.default-release/Mail/Local Folders.
In summary, just backing up your home folder, including the hidden configuration data of software, is already more than sufficient. You are fully covered as soon as you have a good backups of your personal user files.


Short answer:
sudo apt-get install gnome-icon-theme

Longer answer:
ibus ui need certain GNOME/GTK icons that is not installed on Kubuntu by default.
This is a packaging mistake actually.
https://bugs.launchpad.net/ubuntu/+source/ibus/+bug/854333


If sudo apt-get remove --purge deluge succeeded, then the deluge package was successfully removed.

If menu items still appear in your dash, it doesn't necessarily mean that the program is still installed, just that links to it remain somewhere.  Possibly, the dash keeps its own cache of what is in your menu, and it takes a little while to realise that a change has been made.

Feel free to go ahead and reinstall deluge now to see if it works.

For future reference, you should look for dotfiles in ~/ or in ~/config that relate to Deluge.  That is the most likely place it would store data for your account.  Try purging or renaming that instead.  That may solve your original problem with it (rather than re-installing it).


Warning. Boot script table modified!!! Please contact vendor. (Lenovo BIOS Issue)

The same happens on my lenovo G 50-45 too. I think disabling the suspend option is the only solution and I have done the same.


had the same problem with a similar radeon graphic card.

i installed the mainline kernel version 4.6 from here:

http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.6-yakkety/

Here is a guide for the installation:

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

After booting the new kernel, i tested the card with the following command, and the changing to the radeon graphic card was working:

$ DRI_PRIME=1 glxgears -info

(have posted this hint there too: 16.04 - Radeon R7 M260 errors)


USB shared among students: set a password just for writing

Because this drive is going to be used on systems you do not control, or that are not Linux and don't otherwise support the Linux permissions scheme, you're a bit out of luck here.
There's no real way to do the password protection you're looking for on a disk without specialized equipment, though, and that's usually not cost-effective as a solution (as detailed below).
Note that I am an IT Security Professional, so if I seem demeaning or berating in my message and response here, I don't mean it that way, I'm just hypercritical when it comes to security, as it's my job to be that way.
(Scroll down to the "If you really want a secure method for sharing a flash drive around..." section below if you don't want to hear my rant about all the security risks you're introducing.)

System Security Rule 0: NEVER share around USB drives if you want to limit the risk of malware!
I say this is Rule 0, but this is really Rule 0B - Rule 0A is about physical access to systems.
But to put it simply, this is a MAJOR security risk. By attempting to use a USB to distribute data around, you immediately run the risk of not being able to control whether malware is put on the stick or not.  This is partially circumvented by USB sticks with a read-only lock switch on them, such as the Kanguru FlashTrust 3.0, but they can easily be turned to read/write by flipping the switch.
As a security professional I strongly suggest you provide a non-USB-stick alternative method for access to the items for your class, such as a Box account or files served from a site within your educational institution's web space.
Another alternative is a fully-written-to, fully-locked CD/DVD, which would work just as well, and because it'd be fully written to and have no extra open space on it when you fully lock down the device, the disk would already be considered 'read-only'.  Unless you need to share huge files, though, in which case the DVD option might not work well.  More and more devices, however, are being released into the market without CD/DVD drives, however, which means this is not the most ideal solution either.
I'll also bet that by distributing this flash drive around, you break a few rules about "authorized devices" on your school's computer systems, but I can't speak to that.

If you really want a secure method for sharing a flash drive around...
... you start going into the world of very expensive equipment, such as the Apricorn Aegis SecureKey 3 which is a hardware encrypted thumb drive which permits you to set a passcode for admin mode but also provide read-only user passcodes as secondary codes on the device.  That way, the disk is locked into read-only mode for non-admins, and read/write mode for the admin code user.
The problem with this, is it's expensive - $129US for just a 16GB secured stick - this is mostly due to the cost of hardware encrypted devices (but devices such as these are designed for a very special set of potential use cases and as such the availability of cheaper products is zero due to the lack of industry demand).  So this is usually not a cost-effective option especially if you don't trust your students.

Ultimately, though, there's really no easy no-cost or cost-effective way to achieve what you want with just a plain USB stick, while maintaining OS cross-compatibility, and even then you can't guarantee the security.
The problem is that many different OSes are used and at play.  Even if OSes weren't a factor, any user with root power would be able to give themselves access if it were a Linux formatted stick with Linux permissions even set.  There's just no way to achieve USB stick security with no-cost or low-cost solutions.
This is one of the few times in the earth, though, that sharing via the cloud (Dropbox, Google Docs, Box, even an OwnCloud instance) is the proper solution, because there's no risk of malware infection just by downloading the file (unless the file itself is malware).  (And the likelihood of one of the aforementioned cloud services being infected by such malware that you're trying to shield against is extraordinarily low)


deleting the ~/.config/libreoffice  did the trick


How to get the Unity dash overlayed not maximized by default?

The dash is designed to open "maximised" for screens that are approximately the size of a standard netbook.  This is called "Netbook" mode.
You can force dash to open "half-way" using  "Desktop" mode through the following:
gsettings set com.canonical.Unity form-factor 'Desktop'

If you want to reverse this try
gsettings set com.canonical.Unity form-factor 'Automatic'

or
gsettings set com.canonical.Unity form-factor 'Netbook'

Alternatively, you can install the configuration editor dconf-editor from the package dconf-tools and do the same the graphical way:

for 12.04
For 12.04 and later you can use MyUnity :

There is also a rather neat overlooked method...

Click the dash maximise button as shown, followed by the dash button itself.  This changes from netbook to desktop and most importantly the setting is retained when you logout and login.
For other options:

How can I configure Unity?

See the linked question:

How to get Unity dash overlays maximized by default?


You've probably been looking at it too long.  (Been there, trust me)
The shell script is run_extraction.sh but in the crontab entry, you are missing the ".sh".  It should look like:

* * * * * /raid/myuser/database_extraction/run_extraction.sh  >> /raid/myuser/database_extraction/extraction.log

If you want stderr as well stdout logged, you might want it add the redirect on the end (this will help debug things further):

* * * * * /raid/myuser/database_extraction/run_extraction.sh  >> /raid/myuser/database_extraction/extraction.log 2>&1


Undo apt-get command that removed a large number of packages

Юрий, re-installing your desktop seems indeed the prudent way to go, but before you do re-install, I would also read this Q&A.

You're definitely user type 4!


How to reclaim and include an existing Windows partition into an Ubuntu installation?

Time to 'fess up and answer my own question. I now discover that the disk was actually 320GB not 500 as I'd thought. So I was trying to reclaim 200GB or so that just wasn't there to be reclaimed. I am a complete numpty, but I now know that and can start to set the bar a little higher. Apologies...


download manager alternative with IDM function

I think the best alternative to IDM on linux is FlareGet, but u'll have to buy the full version to get the full experience , if u want to stick to free software, you can use uget, it's free, it's powerful, and u can use Flashgot integration to make it intercept all the downloads from Firefox, you can even download youtube videos, just like with idm.


Is it possible to create read-only live USB stick for Ubuntu?

By default, while creating live usb if you don't  allocate any persistence storage, no new data can be written and USB can be said as locked.

It may looks like the above statement is not true if you try to download / install any software or other things. Those are downloaded and also  accessible. But that is only for current session. Once you reboot the system all changes will be gone. The live cd/dvd also does the same.


configure iptables to redirect traffic to a specific IP address

This feature is called DNAT. And the network architecture you are trying to build is called DMZ. See more in Oscar's Anderson's IPTABLES HOWTO. The short answer is :

iptables -t nat -A PREROUTING -p tcp \
-d ${MY_EXTERNAL_IP} --dport 80 -j DNAT \
--to-destination ${MY_INTERNAL_HOST_IP}

iptables -t nat -A PREROUTING -p tcp \
    -d ${MY_EXTERNAL_IP} --dport 443 -j DNAT \
    --to-destination ${MY_INTERNAL_HOST_IP}


DKMS (Dynamic Kernel Module Support) package (http://linux.dell.com/dkms/) provides support for installing supplementary versions of kernel modules. The package compiles and installs into the kernel tree. Uninstalling restores the previous modules. By default, installation is into the current kernel tree, but any kernel tree can be selected with command-line options. Furthermore, DKMS is called automatically upon installation of new Ubuntu kernel-image packages, and therefore modules added to DKMS will be automatically carried across updates.

  Overview

  To use a module with DKMS, one places the module installation files (could be source code or binary) in /usr/src/-, along with a configuration file dkms.conf that tells DKMS how to build/configure the module and what its name is. Under more advanced scenarios, conditional build instructions and patching can be done by the dkms system, but considering on your case this may not be necessary.

  Walk-through

  Let's say you want to install a module for your fancy "Awesome Adaptor." You are given a source tarball awesome-20091211-v1.1.tgz.

  With DKMS, we tell DKMS how to do that for you by creating a dkms.conf file with the appropriate entries. For example, after we've unpacked the tarball:

# cd awesome-20091211-v1.1/
# touch dkms.conf
# create dkms.conf file
# vi dkms.conf

  Inside dkms.conf, we might add the lines:

MAKE="make -C src/ KERNELDIR=/lib/modules/${kernelver}/build"
CLEAN="make -C src/ clean"
BUILT_MODULE_NAME=awesome
BUILT_MODULE_LOCATION=src/
PACKAGE_NAME=awesome
PACKAGE_VERSION=1.1
REMAKE_INITRD=yes

  All directories are with respect to the location of the dkms.conf file. This tells DKMS

  The command to build the module (run make in the directory src/).
  The command to clean the source tree (run make clean in the directory src/).
  The name of the module without the .o or .ko extension. This may actually be an array of modules if multiple modules are built, see man dkms.
  Where DKMS can find the built module.
  The name and version DKMS should associate with the module(s).
  To remake the initrd image after installing the module.

  You can also add options to call scripts before or after build or install, provide additional (conditional) make commands, patch commands, etc. The dkms.conf is in fact sourced into a shell script, so a fair amount of trickery can be done if necessary. These options and more are described in the dkms.conf section in man dkms.

  Next, we install the module into DKMS by copying the module installation files into the kernel source tree /usr/src/- and tell DKMS about the new module:

# ls
    README dkms.conf lib src
# sudo cp -R . /usr/src/awesome-1.1
# sudo dkms add -m awesome -v 1.1
    dkms does its thing...

  That's it! DKMS has now added our module to its list of modules to build for future kernel installations. To make sure it works and to install the module into our current kernel, we can instruct dkms to build and install the module:

# sudo dkms build -m awesome -v 1.1
    dkms does its thing.... watch for build errors... you may need to tweak dkms.conf
# sudo dkms install -m awesome -v 1.1
    dkms does its thing.... module is copied into current kernel module tree

  With some luck, your module will be installed and reinstalled into future kernel updates.

  Examples

  The DKMS man page has helpful information on setting up your favorite kernel module for use with DKMS. It is not comprehensive documentation, but it will answer lots of questions. It may help you to note the following examples, even if the modules used are not the ones you want to setup:

  RocketRaid - Two examples on how-to setup the Highpoint RocketRaid drivers RR26xx and RR62x with DKMS.

From: help.ubuntu.com

More information can be found here:

DKMS how-to with the latest Intel E1000E driver
DkmsDriverPackage. Tutorial based on two web-cam drivers: r5u870 (Sony Vaio MotionEye) and ov51x-jpeg (Playstation EyeToy and Hercules Deluxe)
Ubuntuforums nVidia driver how-to including DKMS module
Ubuntu man page (Documents some officially un-documented bits.)
Linux journal "Exploring Dynamic Kernel Module Support (DKMS)"


where can I get3D screen savers for ubuntu 12.04?

sudo apt-get install xscreensaver-gl

There should be some 3D screen savers in there. However I recommend against it. 3D screensavers will consume more resources then normal screensavers, and today, most systems do not benefit from a screensaver at all. Our screens simply no longer need saving.

http://www.howtogeek.com/128644/htg-explains-why-screen-savers-are-no-longer-necessary/

Is a high level view of why. But if you want something pretty to run up your electric bill or kill your battery, xscreensaver-gl will do the trick.


I would install a fresh copy of Ubuntu, and that will wipe the disk in the process.  That should be a sufficient "wipe" unless you are trying to hide files from a forensic investigator.  Good luck!


GParted merge unallocated space to ext4 partition

The steps:

Start GParted in live Ubuntu session,
Unmount (if it's mounted) the partition that will be involved in the resize/move operation, here /dev/sda2 (by right clicking and selecting unmount from the context menu),
Now right click your /dev/sda2 partition and select Resize/Move option, and drag the slider right to cover the entire unallocated space. And then click the Resize/Move button,

After specifying the resize options, from the menu select Edit -> Apply All Operations or click the Apply button in the toolbar. Wait patiently for the operation to complete.


Take a look at the following answer here. It appears Windows automatically is booting itself and grub is not showing to give you a choice to choose which OS to run upon boot.


The solution was simple, I installed a wrong version of vbox it was the one from the website. I uninstalled it using this command:

sudo apt-get remove virtualbox* --purge^C

This will get rid of all the necessary files but will leave the file in the home directory.

Then use this command to install the right vbox version:

apt install virtualbox-qt virtualbox-guest-additions-iso virtualbox-ext-pack

As you will see the new vbox looks much better and allows you to choose any drive as your virtual hard drive.


Trying to install Ubuntu 18.04* on Lenovo L420 Thinkpad, but cannot boot from ISO USB

Under BIOS Boot Options, you might select Diagnostics to see what it is trying to do if you can look at it quickly before it tries to boot anything.
Make sure that your BIOS menu allows you under "I/O Port Access" to enable USB.
https://www.manualslib.com/manual/434977/Lenovo-Thinkpad-L420.html?page=165#manual
And Yes, F12 is the hot key to access the boot device menu.
Don't worry, your Lenovo L420 is not entangled with UEFI.  That's one hot mess to avoid with dual boot configurations!


testdisk unable to detect deleted folder

Happy to share with you the my research on how to recover deleted files on linux system.

Two part solution

Recovering the deleted files by How To Recover Deleted Files In Linux [Beginner’s Guide]

Make sure to select the Undelete option which displays the deleted files, instead of list option.

Now that you have recovered the deleted files and copied it in the selected folder, the files' permission need to be changed from root --> owner by How can I become the owner of a file/folder that root owns?


for live stream you can use TeamViewer also . In my opinion its good tool for Live desktop streaming .

http://www.teamviewer.com/hi/download/dyngate.aspx


Thunderbird inbox still shows messages I moved to another imap folder with a different client

This is a bug, please report it by using ubuntu-bug thunderbird . See more on How do I report a bug?

To make sure its a bug, see if the message remains in the inbox with the web client


how to see grub kernels in ubuntu without restarting

Look for menuentry in /boot/grub/grub.cfg

cat /boot/grub/grub.cfg | grep menuentry


Upgrade Server 18.04 to desktop as minimal installation

I suggest that you start from an old style server iso file (with the Debian installer), that you find at

cdimages.ubuntu.com/ubuntu/releases/bionic/release/

Install a minimal system (without any extry program package).
Boot into the minimal system and install Ubuntu desktop

sudo apt update
sudo apt full-upgrade

sudo apt install ubuntu-desktop

After rebooting you should have Ubuntu. I don't know what you mean by a minimal installation, and I don't know why you want to start from Ubuntu Server.

You can install a simple window manager instead of the Ubuntu desktop to get a very light graphical system, that you can start with startx,

sudo apt install fluxbox xinit xterm

or you try with

sudo apt install --no-install-recommends ubuntu-desktop

which might produce what you want.

You get other light-weight desktop environments via

sudo apt install lubuntu-core

sudo apt install xubuntu-core


Cannot Shutdown, this is what i see while shutting down

这个问题我之前也遇到过，可以选择Ubuntu启动盘启动，选择修复模式可以更正系统出现的一些硬件不能驱动的问题。

Google Translate:

  I had also encountered this problem, you can choose
  the Ubuntu boot disk, select repair mode can correct some of the
  hardware system can not be driven.


How to merge the folders : downloads - téléchargements / pictures - images / videos - vidéos?

If you want to see again that dialog box then:

Go in System Settings > Usser Account, select your user name and change the language in french.
Logout and login back.
After login you will be asked if you want to keep your personal folders in english or to change their names in french.
If you choose to change their names in french your folders will merge.

Another way  to merge them can be from command line. See this post: Unix: How to merge two directories.

For example if you run in a terminal:

cp -R ~/Images/* ~/Pictures

then the folder Images will merge into Pictures.


Foxit Reader | Unable to find snapshot tool

I assume that you are actually looking for something that you can find in Foxit reader for Windows OS.

However, Foxit Reader available for Ubuntu(which is a Linux based operating system) seems quite different in terms of both features and UIUX design. I would say probably you didn't miss doing anything but the too just wasn't there. Fortunately there is a user manual of Foxit Reader for linux proving my point. I could not find this tool being mentioned in this manual.
http://cdn01.foxitsoftware.com/pub/foxit/manual/reader/en_us/FoxitReader1.0_QuickGuideforLinux.pdf


First download it , then do:

1- In a terminal window, extract the archive:

  tar xvf gopanda2-linux-??.tar.gz

2- Run the installation script

  ./install.sh

3 -Run the application by clicking on the icon or start it from the terminal
If you encounter a problem with libudev.so.0 (an issue with the node-webkit tool GoPanda2 is using), you need to create a link:

1- Find where libudev.so.1 is located (perhaps /lib/x86_64-linux-gnu/ or /usr/lib/) and cd to that directory

2- Create the link:

  sudo ln -s libudev.so.1 libudev.so.0

Source


How to invert touchpad scrolling on Ubuntu 16.04

The option to invert scrolling directions is called Natural Scrolling and is still present in 16.04's System Settings → Mouse & Touchpad configuration.


Asus EEE PC 1101HA won't boot after installation

I also have the very same machine.
Just replaced it as after 3 years i needed an upgrade.

I always ad success with the 2d acceleration through one of the ppa's

But just found someone re-spun a ubuntu distro that enables 3d for the gma 500's

here's the link

http://blog.bodhizazen.com/linux/ubuntu-gma500-live-cd/

hope it helps.


Remove Cairo-dock(Gnome) desktop environment from the login

Found my solution

I found the desktop environment file that loads at login in usr/share/xsessions its 'Cairo-Dock (GNOME)' i deleted that file that solved my problem.


Well, for 14.04, only libavcodec54 is available. You can choose to ignore the error by following the suggested route, i.e Pass --disable-avcodec to ignore this error. You can also try installing libavcodec-dev and see if it is working.


How to get Ubuntu guest VM to recognize second VirtualBox monitor?

I finally figured out how to get it working - I had to install:

sudo apt-get install virtualbox-ose-guest-x11

...and restart. The VM didn't boot the first time, but a hard reset seemed to sort things out.

Note: at first, Natty assumed I wanted to clone the displays... but a quick trip to System->Preferences->Monitors was able to fix that.


Dual booting with Fake Raid 0 (intel rst)

Of course, you've figured out that Ubuntu Desktop does't like the RAID.
The common way to fix this is to change RAID to AHCI in the BIOS... but then it looks like you've got a real RAID using 2xSamsung... so you may have to split the RAID to do this... depends on your actual hardware configuration.
See my procedure below, and see if any of it can be applied to your configuration...

Some folks have found the 2nd choice that I provide easier to do...
Make sure to have a backup of your important Windows files!
You've got a single/multiple SSD set up in RAID mode, and the Ubuntu installer won't recognize your SSD until you switch your disk setting in the BIOS from RAID to AHCI.
Making that switch comes with some problems though, as Windows will no longer boot.
Choice #1: Looking at this article https://samnicholls.net/2016/01/14/how-to-switch-sata-raid-to-ahci-windows-10-xps-13/ will show you how to make the change without having to reinstall Windows.

Boot to Windows with your current SATA controller configuration
Open Device Manager
Expand Storage Controllers and identify the Intel SATA RAID Controller
View properties of the identified controller
On the Driver tab, click the Update driver… button
Browse my computer…, Let me pick…
Uncheck Show compatible hardware
Select Microsoft as manufacturer
Select Microsoft Storage Spaces Controller as model3
Accept that Windows cannot confirm that this driver is compatible
Save changes, reboot to BIOS and change RAID SATA Controller to AHCI
Save changes and reboot normally, hopefully to Windows

Now you should be able to install Ubuntu in a dual-boot configuration.
Choice #2: See http://triplescomputers.com/blog/uncategorized/solution-switch-windows-10-from-raidide-to-ahci-operation/

Right-click the Windows Start Menu. Choose Command Prompt (Admin).
If you don’t see Command Prompt listed, it’s because you have already been updated to a later version of Windows.  If so, use this method instead to get to the Command Prompt:
Click the Start Button and type cmd
Right-click the result and select Run as administrator
Type this command and press ENTER: bcdedit /set {current} safeboot minimal
If this command does not work for you, try bcdedit /set safeboot minimal
Restart the computer and enter BIOS Setup (the key to press varies between systems).
Change the SATA Operation mode to AHCI from either IDE or RAID (again, the language varies).
Save changes and exit Setup and Windows will automatically boot to Safe Mode.
Right-click the Windows Start Menu once more. Choose Command Prompt (Admin).
Type this command and press ENTER: bcdedit /deletevalue {current} safeboot
If you had to try the alternate command above, you will likely need to do so here also: bcdedit /deletevalue safeboot
Reboot once more and Windows will automatically start with AHCI drivers enabled.


dell inspiron 7559 hangs on live boot HELP!

I have the same laptop as you do, I fixed the boot problem by adding nouveau.modeset=0 to the grub linux line. Detailed instructions are in the following thread! After booting, make sure that you install Nvidia drivers.

NMI watchdog: BUG: soft lockup - CPU#2 stuck for 23s! [plymouthd:305]


Install Ubuntu 15.10 by following these instructions ... Boot from the Ubuntu installation media.

When the boot menu appears : Highlight Try Ubuntu without installing and  press the E key.
Add the nouveau.modeset=0 parameter to the end of the linux line ... Then press F10 to boot.

When having entered the desktop start the installation process, once completed restart the PC.

When the GRUB boot menu appears : Highlight the Ubuntu menu entry and  press the E key.
Add the nouveau.modeset=0 parameter to the end of the linux line ... Then press F10 to boot.

Now install the latest official NVIDIA drivers and Optimus support.

When the login screen appears press Ctrl + Alt + F1.

Enter your user name and password.

Execute these commands :

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-355 nvidia-prime
sudo reboot

In case you have to adjust which card to use in BIOS select NVIDIA or  switchable graphics mode.
Open NVIDIA X Server Settings -> Prime Profiles to switch between the intel and NVIDIA GPUs.


You are trying to compile; so I believe from your error that you require the [-]dev (development) package, not the binary you have installed. The binary is for run-time only; you're trying to compile.

See https://packages.ubuntu.com/search?keywords=gnutls&searchon=names&suite=disco&section=all , where I suspect libgnutls28-dev is what you need.

As to your next question in comments, again as you're compiling you need the [-]dev package