Running jar files without using Java command

.jar file is not executable by itself.. its just a modified(compiled and ziped) text file; the executable is the /usr/bin/java which sits on a path known to the system; that is why you can type java -jar app.jar and it works

./command means this folder in another shell loaded in this one(the command shell);

. command means this folder this shell

http://www.linfo.org/dot_slash.html

you can define an alias for the repetitive part java -jar

temporary

type alias inside a terminal to see already defined aliases

type your presumed alias to see if it returns command not found so you can use it

then type alias command='java -jar' to define the alias

after that you can use it as command app.jar

permanent

edit the .bashrc file from your home folder and add an alias like the one in temporary save and exit and relog

http://www.linfo.org/alias.html


Nautilus not restoring opened windows but opens a new one

For now I installed nemo patched for unity as a workaround, it work perfectly as intended - and is somehow nicer than nautilus aswell -


I got it working by using the hciconfig answer here: https://askubuntu.com/a/660918/534356

Ironically I tried this before and it didn't work... but after re-installing Ubuntu 16 this did solve my problem!

Thanks @Tobi


Removing Installed App in 'Ubuntu Software' doesnt work?

The first time you hit Remove, it's removed. It's just some strange behavior in Ubuntu Software that causes it to show up again in the list as still installed. If you want to be sure the application is gone, you can check it with the Synaptic package manager.


How do I install openjfx on Ubuntu 14.04 / Linux Mint 17

Binaries are not available for these older systems, but you can compile from source:

sudo apt-get build-dep libopenjfx-java
sudo apt-get --compile source libopenjfx-java

You can then install the packages by double clicking on each deb file to install:

libopenjfx-jni_8u60-b27-4~trusty1_amd64.deb
libopenjfx-java_8u60-b27-4~trusty1_all.deb
libopenjfx-java-doc_8u60-b27-4~trusty1_all.deb
openjfx_8u60-b27-4~trusty1_amd64.deb


As with other GNU Coreutils utilities, the primary documentation is the info page.

From info coreutils dd invocation :

‘bs=BYTES’
     Set both input and output block sizes to BYTES.  This makes ‘dd’
     read and write BYTES per block, overriding any ‘ibs’ and ‘obs’
     settings.  In addition, if no data-transforming ‘conv’ option is
     specified, input is copied to the output as soon as it’s read, even
     if it is smaller than the block size.

There are corresponding parameters for the individual read, write and conversion block sizes:

‘ibs=BYTES’
     Set the input block size to BYTES.  This makes ‘dd’ read BYTES per
     block.  The default is 512 bytes.

‘obs=BYTES’
     Set the output block size to BYTES.  This makes ‘dd’ write BYTES
     per block.  The default is 512 bytes.

‘cbs=BYTES’
     Set the conversion block size to BYTES.  When converting
     variable-length records to fixed-length ones (‘conv=block’) or the
     reverse (‘conv=unblock’), use BYTES as the fixed record length.


How to set MS Word 2010 as default application for all docx and other types?

First of all, you need to have PlayOnLinux 4.1.1 (It won't work with 4.0.x)

To upgrade PlayonLinux to latest version, go to this link : http://www.playonlinux.com/en/download.html

Choose ubuntu, and follow the instructions regarding your distribution.

Then go to PlayOnLinux options -> File associations (.docx -> Microsoft Word 2010)
You need to enter separately each file type (xls,xlsx,dox,docx) and to associate it with the corresponding office program.

Then, tell Ubuntu to open .docx files with playonlinux. (you can do this by the usual icon right click)

If you want to make the opening of office files permanent, with MS Office, you should right click on a .doc, .docx,... and go to properties-> open with-> playonlinux set as default. You have to do this separately for each file type.


How do I integrate Byobu's copy-buffer with the X clipboard?

You can use XSel to insert the text into the X selection buffer:

echo "paste your buffer from byobu/screen here" | xsel


How to make a fail safe system image for Ubuntu Linux VM

Copy the actual VM image.

You can do this a couple of ways.  You can use Virtualbox's Snapshot/clone GUI or you can manually copy the image file.

To copy the image file manually locate it from Virtualbox GUI Manager.

Right click the Menu Item
Click on Show in File Manager
Copy your Virtual drive (by default the *.vdi file by the name of the virtualbox item.

When you need to have access to the original install, add this *.vdi image to the storage controller in your Settings for that VM.

After adding the drive, you'll have an option of which drive to boot to, or the option of deleting one and only using the other.

Note:
The terminal option has the benefit of being able to be automated and copyied to a different location.

The clone option adds an item to the Virtualbox manager.  It also adds a new directory entry to the default ~/VirtualBox VMs folder.  Since I have a number of copies of my important images, it would be cumbersome to have so many different menu items and separate directories for each image.  The most significant item is the image itself which I manually backup.


two different disks used by a root partition?

You cannot "share" the root partition over two disks. You will need to mount the second disk somewhere.

Idea 1 - Use it as a drive from file manager

Format the disk using your favorite formatting utility and mount it in your file manager. This should be the easiest option.

Idea 2 - Use it for your /home folder

You could use this other disk as your /home by following the tutorial here: How to Move Home Directory to New Partition or Disk in Linux


bash: /etc/bash.bashrc: Permission denied I have no name!@lappyname:~$

Running sudo chmod -R 777 /etc/ was a stupid thing to do. You probably recognise that now but you've set every file in /etc/ and its subdirectories to be readable, writable and executable by any account on the system. The files in there are mostly root owned and have permissions set for security... To stop just anybody or anything overwriting, deleting or maliciously editing your core system configuration.

Some applications (like the authentication and sudo systems) demand that these files are kept securely and won't function if you fight that.

Somebody with enough expertise could probably fix this... But it's an uphill struggle from the off. You need to get into recovery mode, and reset all the files permissions back to what they were. And, no they weren't all the same.

For somebody closer to the novice end of the scale, a reinstall is the recommended course of action. It's probably faster —regardless of experience— and it's almost certainly going to leave you with a better result.

Having written this I can see that the commands in the question are in fact trying to rescue the system but yeah, this requires an understanding of what's happening. For instance you'd certainly need to remount as rw before you could affect any change on the disk in recovery mode. Remounting afterwards wouldn’t help.


Ubuntu 17.10 doesn't recognize color profiles

I was able to install the profile again using colormgr. I found the device with

colormgr get-devices

and the profile with

colormgr get-profiles

(I guess DisplayCal had registered it there).
Then I could add it with

colormgr device-add-profile <DEVICE> <PROFILE>

That made it show up in the Settings->color dialogue.


Ubuntu 18.04 - What happens if I delete /var/log/syslog?

I recommend freeing space by deleting the syslog.x and syslog.x.gz files first while you work on solving the issue of the logs filling up quickly with these error messages.

My research indicates the issue is likely related to a bug in the package  nvidia-driver-435  or VLC or a combination of the two.  See the Bug Report here.

You can determine your graphics hardware and driver information by running:

sudo lshw -c display

Further details and possible root causes can be found Here.

As a start, I recommend using a media player other than VLC to see if the log entries cease.


Writing a script to rsync all directories

If at least one of the folders in ./Backups contains a Video directory,

for dir in ./Backups/*/Videos
do
    if [[ -d $dir ]]
    then
        rsync -a $dir/* ./CollectedVideos/
    fi
done

might be close to what you are looking for.

The /* after $dir is important to copy the files without including their directory.


How to run .sh through terminal without using Nautilus Ubuntu 14.04

When you have made it executable with chmod +x file/name.sh, you can run it by typing ./file/name.sh in terminal.

Edit:
Actually just read what you where trying to do. Try commenting out the "exec" line of the script, and change the second line to ./home/me/myfolder/my.jar after you have run chmod +x /home/me/myfolder/my.jar.

I don't know much about java, but I have run some java programs like this.


Boot to "single user mode" by adding single after quiet ro splash.
You should then be able to set the root password.

Just replacing the init system with bash might not do quite what you need since it is just dropping straight to the shell and not initializing the system as it normally would.


Oh, boy, this is a hard nut to crack, but I got there.
This is what to do:
There is a BIOS flashing bug that affects all sorts of motherboards, ASUS, MSI, GIGABYTE.
It leaves the Intel NIC with an invalid MAC after BIOS flash.
Great.
To fix it, you need a utility called eeupdate.exe
And as an insult to the consumer, Intel will not give it to you, and refers to the motherboard manufacturer, who only hands it out to privileged partners.
So, you are pretty much screwed, and at the mercy of random strangers leaving a copy of the executable on the Internet.
After visiting many dodgy links, I managed to find a source for the EEUPDATE.EXE utility. Note: if you download a version that is too old, it most likely wont work with your NIC.
Before you can run the tool, you need to create a DOS environment on a USB stick.
This is far from trivial. It starts with partitioning your drive as DOS. Then formatting it as FAT.
Once you have a FAT disk, you need a copy of dos.
There is a tool for that, unetbootin, but that is not available in Ubuntu.
$ add-apt-repository ppa:gezakovacs/ppa
$ apt install unetbootin

That tool will let you create a FreeDOS install.
Copy the EEUPDATE tool to this DOS drive.
Then boot into the USB drive.
Then on the DOS prompt:
C:
EEUPDATE.EXE /NIC=1 MAC=YOURMACGOESHERE.

To find your real MAC address, look at the sticker on the Ethernet jack.
Phew... I went through this convoluted path of jank, so that you don't have to, or at least will have an easier time.
PS: I also tried to change the address with the MAC.EXE DOS tool, but that did not work. Only EEUPDATE.EXE did.


If you issue command at Terminal:

  uname -r

The kernel version will be shown:

  5.0.0-32-generic

Currently I am using the Ubuntu 18.04.3 LTS and have upgraded to 5.0.0-32-generic,
that why it show 5.0.0-32-generic

So from the website provided by you Intel:

Device: Intel® Dual Band Wireless-AC 3168
Kernels: 4.6+
Firmware: iwlwifi-3168-ucode-22.361476.0.tgz

The wireless adapter is seemed to be tested on Kernel 4.6+.


emacs has inbuilt support for git. If you are using old version of emacs (say 22.1) you might want to install 'magit' plugin. I like using magit in any version since it is way better than the generic inbuilt.

here are few key bindings generate (got by pressing C-x v C-h in a git repo dir)

Global Bindings Starting With C-x v:
key             binding
---             -------

C-x v +     vc-update
C-x v =     vc-diff
C-x v D     vc-root-diff
C-x v I     vc-log-incoming
C-x v L     vc-print-root-log
C-x v O     vc-log-outgoing
C-x v a     vc-update-change-log
C-x v b     vc-switch-backend
C-x v c     vc-rollback
C-x v d     vc-dir
C-x v g     vc-annotate
C-x v h     vc-insert-headers
C-x v i     vc-register
C-x v l     vc-print-log
C-x v m     vc-merge
C-x v r     vc-retrieve-tag
C-x v s     vc-create-tag
C-x v u     vc-revert
C-x v v     vc-next-action
C-x v ~     vc-revision-other-window


Totem should support this with the right plugins installed. See this blog post http://blog.andresgomez.org/2012/09/05/nslu2-grilo-and-upnp-in-ubuntus-gnome/

It may still be true that the totem is not build with the grilo plugin in trusty.

I was able to get grilo plugin in rhythmbox by starting rhythmbox and enabling it. Go to Tools->Plugins and check the box next to Grilo media browser.

Alternately:

You can install Rygel from Ubuntu Software Center. It supports both UPnP AV MediaServer as well as becoming a MediaRenderer.

https://wiki.gnome.org/Projects/Rygel


How to get the default purple/orange wallpaper from previous versions?

I don't know how to get them by default, but you can see and download them through this website : http://www.omgubuntu.co.uk/2010/09/a-look-back-at-every-ubuntu-default-wallpaper


Checking the user executing the apache server

No, this is normal. On Debian-based systems, apache2 is started as root. It then forks off and runs under an unprivileged user (typically www-data). The actual work is done by these processes.

Only a privileged process can bind to ports below 1024. So, at least for binding to the default 80 and 443 ports, it will have to run as root.

And, among other things, the original process reads SSL certificate private keys, which are typically only read by root. From /usr/share/doc/apache2/README.Debian.gz:

The SSL key file should only be readable by root; the certificate file may be
globally readable. These files are read by the Apache parent process which runs
as root, and it is therefore not necessary to make the files readable by the
www-data user.

So, this is documented behaviour.


Add Custom Emblem in Thunar, Xubuntu 14.04

Try this link, I think it will tell you how to accomplish your objective.

  How does one create emblems to work with Thunar?

  [...] Add the correct files to the "emblems" folder of your icon theme. Make sure you prefix the name of the file with "emblem-" and run "gtk-update-icon-cache" on the theme's directory file containing the "index.theme" file. Should show up immediately.


Install extension to all Firefox profiles in my Ubuntu user account?

Start Firefox with every profile and install the extension...firefox -P  or firefox -ProfileManager


Ubuntu 18.04.02, default (Gnome) spin, live session: am I right in thinking one can't change theme, fonts?

Once you are in livesession

Connect to Internet
run sudo add-apt-repository universe
run sudo apt install gnome-tweaks
Open gnome-tweaks

Play with the fonts and themes which are available out of box.. Or you can download from the web and play..

Example:

ubuntu@ubuntu:~$ nmcli device wifi list
IN-USE  SSID         MODE   CHAN  RATE        SIGNAL  BARS  SECURITY
        PRATAP       Infra  11    270 Mbit/s  54      ▂▄__  WPA2
        iBall-Baton  Infra  5     270 Mbit/s  12      ▂___  WPA1
ubuntu@ubuntu:~$ nmcli device wifi connect PRATAP
Device 'wlp2s0' successfully activated with '9bfef13f-b77a-442c-aa9c-fa3db9177f12'.
ubuntu@ubuntu:~$ sudo apt install gnome-tweaks
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package gnome-tweaks
ubuntu@ubuntu:~$ sudo add-apt-repository universe
'universe' distribution component enabled for all sources.
Ign:1 cdrom://Ubuntu 18.04.2 2019.06.06 LTS amd64 _Custom Bionic Beaver_ (20190606) bionic InRelease
Hit:2 cdrom://Ubuntu 18.04.2 2019.06.06 LTS amd64 _Custom Bionic Beaver_ (20190606) bionic Release
Hit:4 http://archive.ubuntu.com/ubuntu bionic InRelease
Get:5 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:6 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:7 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [382 kB]
Get:8 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [8570 kB]
Get:9 http://security.ubuntu.com/ubuntu bionic-security/main Translation-en [137 kB]
Get:10 http://security.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [14.9 kB]
Get:11 http://security.ubuntu.com/ubuntu bionic-security/main DEP-11 48x48 Icons [10.4 kB]
Get:12 http://security.ubuntu.com/ubuntu bionic-security/main DEP-11 64x64 Icons [20.9 kB]
Get:13 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [4296 B]
Get:14 http://security.ubuntu.com/ubuntu bionic-security/restricted Translation-en [2192 B]
Get:15 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [257 kB]
Get:16 http://security.ubuntu.com/ubuntu bionic-security/universe Translation-en [145 kB]
Get:17 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [35.8 kB]
Get:18 http://security.ubuntu.com/ubuntu bionic-security/universe DEP-11 48x48 Icons [16.4 kB]
Get:19 http://security.ubuntu.com/ubuntu bionic-security/universe DEP-11 64x64 Icons [95.7 kB]
Get:20 http://archive.ubuntu.com/ubuntu bionic/universe Translation-en [4941 kB]
Get:21 http://archive.ubuntu.com/ubuntu bionic/universe amd64 DEP-11 Metadata [3287 kB]
Get:22 http://archive.ubuntu.com/ubuntu bionic/universe DEP-11 48x48 Icons [2151 kB]
Get:23 http://archive.ubuntu.com/ubuntu bionic/universe DEP-11 64x64 Icons [8420 kB]
Get:24 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [641 kB]
Get:25 http://archive.ubuntu.com/ubuntu bionic-updates/main Translation-en [237 kB]
Get:26 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 DEP-11 Metadata [276 kB]
Get:27 http://archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 48x48 Icons [66.7 kB]
Get:28 http://archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 64x64 Icons [123 kB]
Get:29 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [6996 B]
Get:30 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [945 kB]
Get:31 http://archive.ubuntu.com/ubuntu bionic-updates/universe Translation-en [279 kB]
Get:32 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 DEP-11 Metadata [227 kB]
Get:33 http://archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 48x48 Icons [190 kB]
Get:34 http://archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 64x64 Icons [395 kB]
Fetched 32.1 MB in 21s (1540 kB/s)
Reading package lists... Done
ubuntu@ubuntu:~$ sudo apt install gnome-tweaks
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  gnome-tweaks
0 upgraded, 1 newly installed, 0 to remove and 424 not upgraded.
Need to get 218 kB of archives.
After this operation, 1245 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu bionic/universe amd64 gnome-tweaks all 3.28.1-1 [218 kB]
Fetched 218 kB in 11s (19.1 kB/s)
Selecting previously unselected package gnome-tweaks.
(Reading database ... 143252 files and directories currently installed.)
Preparing to unpack .../gnome-tweaks_3.28.1-1_all.deb ...
Unpacking gnome-tweaks (3.28.1-1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
Setting up gnome-tweaks (3.28.1-1) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
ubuntu@ubuntu:~$

to play with shell themes, you need to Install User-Themes gnome-shell extension.. to install it.. try from Software if Its not Installing.. then run the below commands

sudo apt install gnome-shell-extensions

gsettings set org.gnome.shell enabled-extensions "['user-theme@gnome-shell-extensions.gcampax.github.com']"

Close gnome-tweaks
Refresh the shell Alt+F2 type r and press enter..

Now you can play with shell themes also..


Upgrade from 14.04.4 to 16.04.1 LTS with do-release-upgrade doesn't offer new version when run with sudo

Problem was with rubbish in files contained in directory:

/var/lib/update-manager

as are

meta-release-lts
meta-release-lts-development

They contained some nonsense information but their modification attributes were later then web version of these files so they weren't downloaded.
For common user it worked because files from directory

~/.cache/update-manager-core/meta-release-lts

were used.
Solution: delete files in directory /var/lib/update-manager (backup it before!!!).


Intel AC 3160 adapter: Can't connect to router after restarting

I solved the issue by modifying the configuration for the driver. I took this steps.

Open terminal, and type:

sudo nano /etc/modprobe.d/iwlwifi.conf

There I added this line of code:

options iwlwifi fwlps=N swcrypto=1 11n_disable=1

Save changes & reboot.

The connection has been stable ever since, the speed of the wifi doesn't go above 54Mbps as the 11n_disable option disables the 802.11N protocol. The swcrypto disables the software implementation of the cryptography interface and fwlps disables the power management option for the wireless adapter.

I tried using this options separately, or combinations of pairs but the only solutions that helped me solve my issue was using those three at the same time.


NFS won't unmount "/mnt/nfs: not mounted"

Note: mounting network drives is not supported in Bash/WSL at present. If you would like to see this feature in future releases, please upvote here.


In the .conkyrc the alignment on the screen is is set to top_left:

alignment top_left
gap_x 60
gap_y 300

Simply change the alignment to top_right instead of increasing the gap_y variable:

alignment top_right
gap_x 60
gap_y 60

  config file settings

  alignment Aligned position on screen, may be top_left, top_right, top_middle, bottom_left, bottom_right, bottom_middle, middle_left,
  middle_middle, middle_right, or none (also can be abreviated as tl,
  tr, tm, bl, br, bm, ml, mm, mr). See also gap_x and gap_y.


Issue with gcc/g++ while cmake building (./bootstrap)

Well. I really don't know why, but sudenly I compiled it with ./bootstrap --with-curl --prefix=/usr/local in diferent repository. But some another scripts are failing with testing and some test says:

  g++ is not enabled by -std=gnu++11 (or -std=c++11).

So some issues still occures. (And I am not able cmake it and compile opencv_contrib on the next step. Which is my main goal)

EDIT:
After I could build ./bootstrap, the last released version in opencv worked for me. The key was just compile cmake with libcurl (using bootstrap) and then make one more completly clear build and compile the last release framework.
[Allready solved]


Is mount filesystem as /tmp delete filesystem content?

The directory /tmp is periodically deleted. Therefore, there is a chance that the contents of your /dev/sda2 has been deleted.
You can inspect the contents of your /dev/sda2 partition by mounting it, obviously not again under a critical system folder. The easiest way will be to click the icon of the drive in your file manager. From the terminal, you could temporarily mount under /mnt with the command
sudo mount /dev/sda2 /mnt

after which the command
ls /mnt

will show the contents. Again, if you persistently mounted the partition on /tmp and rebooted, the contents of /dev/sda2 may be gone. If this are personal data, it is hoped that you have a backup. Otherwise, your only hope is file recovery, but that is a difficult process where full recovery is not always possible.


Try:

sudo apt-get update

sudo apt-get upgrade -y

sudo apt-get install -f

You might have some dependencies fixed through that process. If not, please provide the log file of yours for additional troubleshooting.


Not able to install VLC and other programs due to strange dependency problems

As you can see in the output of apt-cache policy … there are some packages without an installation candidate and that should not be the case. Therefore a quick search here shows, that all packages are available in the universe repository, e.g. for the package libsdl-image1.2.

Add the repository:

sudo apt-add-repository universe
sudo apt-get update
sudo apt-get install vlc


Does linux have a hybrid "deep sleep" mode like the Mac?

In Ubuntu 18.04 LTS and above suspend-then-hibernate works similarly
In this mode laptop sleeps or suspends to RAM when the lid is closed or a button is pressed. After a certain time that has been pre-set, the laptop will wake up and write the data in RAM to disk, and enter hibernate mode.
The advantage is, the laptop suspends (sleeps) more quickly when close the lid. If you wake it up before the pre-set time it resumes quickly as well. If you don't wake the it up before the pre-set time it automatically saves battery in hibernate mode shut-down.
In Ubuntu 17.10 and below hybrid-sleep was the closest
In this mode the data in RAM is written to disk for hibernating before the laptop entered sleep (also known as suspend) mode. If the battery gets critically low while sleeping, the laptop goes into hibernation before turning off power, so the data in RAM is not lost.
In case the battery is drained out while the laptop was in hybrid sleep mode, plugging it into the power socket and powering it up will bring it back to the state when the lid was closed to put the laptop to sleep.
See What is hybrid suspend for some more explanations.
From the Ubuntu manpage on systemd power-saving mode:

systemd supports four general power-saving modes:
suspend
    a low-power state where execution of the OS is paused, and complete power loss might
    result in lost data, and which is fast to enter and exit. This corresponds to suspend,
    standby, or freeze states as understood by the kernel.

hibernate
    a low-power state where execution of the OS is paused, and complete power loss does
    not result in lost data, and which might be slow to enter and exit. This corresponds
    to the hibernation as understood by the kernel.

hybrid-sleep
    a low-power state where execution of the OS is paused, which might be slow to enter,
    and on complete power loss does not result in lost data but might be slower to exit in
    that case. This mode is called suspend-to-both by the kernel.

suspend-then-hibernate
    A low power state where the system is initially suspended (the state is stored in
    RAM). If not interrupted within the delay specified by HibernateDelaySec=, the system
    will be woken using an RTC alarm and hibernated (the state is then stored on disk).

Settings in these files determine what strings will be written to /sys/power/disk and
/sys/power/state by systemd-sleep(8) when systemd(1) attempts to suspend or hibernate the
machine.

See this answer if you want to enable either suspend-then-hibernate or hybrid-sleep in your Ubuntu laptop.
Hope this helps.


Bright flash when resuming from sleep, ubuntu unity

Open your favorite text editor with sudo (command-line) or pkexec privilege; e.g. pkexec gedit
paste the following script

#!/bin/bash
case "$1" in
    hibernate|suspend)
        cat /sys/class/backlight/*/actual_brightness > /tmp/saved_brightness
        ;;
    thaw|resume)
        cat /tmp/saved_brightness > /sys/class/backlight/*/brightness
        ;;
esac

save as /etc/pm/sleep.d/10_brightness_recall
ensure it is executable with sudo chmod +x /etc/pm/sleep.d/10_brightness_recall
Attempt to suspend. If it doesn't work, attempt to reboot and test again


Using SSL with redirects from non http causes redirect loop?

Try to add ssl on; under the line listen 443 ssl; and disable disable SSLv3

server {
listen      80;
server_name example.com www.example.com;
listen 443 ssl;
ssl on;
server_name example.com;
ssl_certificate     www.example.com.crt;
ssl_certificate_key www.example.com.key;
ssl_protocols       TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers         HIGH:!aNULL:!MD5;

location / {
  rewrite     ^(.*)   https://example.com$1 permanent;
}
...

Or you can also use return its way faster than rewrite in niginx location blocks:

location / {
  return ^(.*)   https://example.com$1 permanent;
}

Once SSL Done You can test your ssl certificate at https://www.ssllabs.com

To create chain certificate:

 cat www.example.com.crt bundle.crt > www.example.com.chained.crt

 ssl_certificate     www.example.com_chain.crt;
 ssl_certificate_key www.example.com.key;


Figured it out!

In the software centre -> Software sources under the updates tab you must change "Notify me of a new Ubuntu version:" set to "For long term support versions" then in a terminal run

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

Running the update command seems to be critical, so don't forget it!


The white on my screen is too bright, how should I adjust the gamma?

Search on the dash for 'Startup Applications' and then click on the Application manager. Then Add a new startup application by clicking on the 'Add' button.

Give a name, and paste the line of this code in the 'Command' field. Click 'Save'.

PS: Change the number 0.7 to whatever the best. Lower number shows the best result.

/usr/bin/xgamma -gamma 0.7


Games Gish & Polynominal, the "A" key  is automatically in key-down state

(Answer by OP in the question)

  Managed to find my own answer: It's the gamepad inputs that seem to be doing strange things. If anybody gets the same problem, go into the controls and strip out all the gamepad/joystick inputs.


Some general observations :

Ubuntu 10.04 is end-of-line. You should upgrade to 12.04 LTS at a minimum.
NComputing clients use proprietary server software that AFAIK only runs on Microsoft operating systems.

Now for your questions. Basically, all you need is install Ubuntu server 12.04.3 LTS on your server (PC-1). It comes packed with everything you need. All you have to do is configure things.

For Q1, you might like to use DHCP configured to assign IPs based on client MAC Address, or avoid DHCP and just assign IPs manually on each client (not recommended if you plan to extend your network)

For Q2, you need to setup DNS and the LAMP stack that comes with 12.04

For Q3, just export the desired folders as NFS shares

For Q4, you need to configure PC-1 to act as a router gateway for your network.

For more information on how to set thing up, take a look at the official documentation. You can even download it in pdf format from the same link.

Edit in response to the comment: Since you have decided to do this by yourself, there is no easy way or workaround for it. You have to read and understand the documentation, then (design and) implement according to your specific needs. Having said that, it's not terribly difficult if you have some basic knowledge on networks and you're not afraid to type commands in a console.

How to install and configure Dynamic Host Configuration Protocol (DHCP)
How to install and configure Domain Name Service (DNS)
How to install and configure LAMP stack (Linux Apache Mysql PHP)

Apache2 Web Server
MySQL Database Server
Network File System (NFS)

If you encounter any error or difficulty at any stage of the process, just take a look around the site. Chances are somebody else stumbled upon it before you. If you cannot find an answer, feel free to open a new question. Just don't forget to include any error messages that you encounter.


Any way there to get my amd to vga controller? for UBUNTU 18.04 lts

You will need to install the radeon driver for the 8670 AMD graphics:

In 16.04 and above there is a default open source radeon driver:

How to install the open-source "radeon" driver

On 14.04 there is fglrx binary driver available from AMD.

Installing fglrx driver Ubuntu


new homelab server: internal/external network is unreachable

The default configuration file is:
/etc/netplan/00-installer-config.yaml
Netplan.io has documentation and examples. I reckon setting up your network any other way is "unsupported" on Ubuntu.


You can't resize the root partition.

If I were you, I'll Backup my data and try GParted with Live CD.

Kindly notice that you don't have a swap area.


How to overwrite previously dual booted Ubuntu with fresh install?

From Windows, you can delete the partition, re-create the partition, then reinstall. I did this a few weeks ago.


How to install SubtitleEdit on Ubuntu 16.04

Download SubtitleEdit 3.5.9 from their GitHub site, the portable version works best.

wget https://github.com/SubtitleEdit/subtitleedit/releases/download/3.5.9/SE359.zip

Download full mono package.

sudo apt install mono-complete

Extract SE359.zip, then run SubtitleEdit.exe-cutable file from terminal.

mono SubtitleEdit.exe

Subtitle Edit 3.5.9 on my 18.04


How to have Ubuntu be recognized by host name from a Windows network

The issue you have is name resolution. You need your LAN PCs to correctly resolve the name 'david_samba'.  Everything else is working - if you enter the IP manually, you can browse the share on david_samba.

So, all you need to do is get name resolution working. This is called DNS. You need to get your LAN PCs to resolve the host name 'david_samba'. Your LAN PCs can get local name resolution from your LAN's DNS resolver - so if the LAN's DNS resolver knows the IP of the david_samba machine, then so too will the LAN PCs.

You mention DHCP in your LAN. If it is correctly configured, your DHCP server will update your LAN's DNS resolver with any IPs it issues.  You can configure your DHCP server to issue a specific IP to your david_samba machine, and this will then update the DNS resolver in your LAN.

So, if your DNS and DHCP servers (they may be services on the same machine) are correctly configured, then all you need to do is set your DHCP server to issue david_samba with a static IP. The david_samba machine should be configured to get its ip via DHCP.

So long as the other machines on the network use the same DNS resolver, they will then be able to resolve \david_samba to \xxx.xxx.xxx.xxx.

Once this is working you will be able to access the share on Windows with \hostname\sharename.

A simple test is to use 'ping':  ping david_samba  and see if the name is translated to an IP address and then replies are received. What you are looking for is that the test machine can use the name to find the IP address of the david_samba machine.

If you don't have control over your LAN's DNS and DHCP servers, you can do a quick workaround by adding an entry into your local machine's hosts file.
add an entry like this: (all on one line)
xxx.xxx.xxx.xxx machine_name
eg:  192.168.1.25  david_samba

On a Windows 10 PC the hosts file is here:  c:\windows\system32\drivers\etc\hosts

you need Administrator permissions to edit this file.

This will work immediately and is great for testing or if you just want to get this working on your own PC.  It is not a suitable solution for lots of PCs because the hosts file on every one has to be edited (and again if ever the IP of david_samba changes).  If you want the solution to work across multiple PCs you need to get your local name resolution (DNS) working.


Gents, I'd spent hours researching the selfsame issue with the STM32CubeProgrammer, so thanks for taking this most of the way. I came to this late and having assumed that my installation of Ubuntu would, by default, provide all the required ingredients. In any case, I've gone ahead and purged the java that I had installed under my faulty assumptions.

Step 1 java -version produced the following:

openjdk version "11.0.6" 2020-01-14
OpenJDK Runtime Environment (build 11.0.6+10-post-Ubuntu-1ubuntu118.04.1)
OpenJDK 64-Bit Server VM (build 11.0.6+10-post-Ubuntu-1ubuntu118.04.1, mixed mode, sharing)

Step 2 sudo apt-get purge openjdk* produced:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'openjdk-9-jre-headless' for glob 'openjdk*'
... and so on

Step 3 sudo apt-get install oracle-java8-installer produced:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Package oracle-java8-installer is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'oracle-java8-installer' has no installation candidate
... Ok, just another setback most of you would have anticipated!

Step 4 sudo apt install openjfx=8u161-b12-1ubuntu2 libopenjfx-java=8u161-b12-1ubuntu2 libopenjfx-jni=8u161-b12-1ubuntu2

Reading package lists... Done
Building dependency tree
Reading state information... Done
libopenjfx-java is already the newest version (8u161-b12-1ubuntu2).
libopenjfx-java set to manually installed.
libopenjfx-jni is already the newest version (8u161-b12-1ubuntu2).
libopenjfx-jni set to manually installed.
The following packages were automatically installed and are no longer required:
  efibootmgr libfwup1 libwayland-egl1-mesa openjfx-source
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  ca-certificates-java openjdk-8-jre openjdk-8-jre-headless
Suggested packages:
  icedtea-8-plugin fonts-ipafont-gothic fonts-ipafont-mincho
  fonts-wqy-microhei fonts-wqy-zenhei
The following NEW packages will be installed:
  ca-certificates-java openjdk-8-jre openjdk-8-jre-headless
The following packages will be DOWNGRADED:
  openjfx
0 upgraded, 3 newly installed, 1 downgraded, 0 to remove and 3 not upgraded.
Need to get 27.6 MB of archives.
After this operation, 101 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 openjdk-8-jre-headless amd64 8u242-b08-0ubuntu3~18.04 [27.5 MB]
Get:2 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 ca-certificates-java all 20180516ubuntu1~18.04.1 [12.2 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 openjdk-8-jre amd64 8u242-b08-0ubuntu3~18.04 [69.7 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 openjfx amd64 8u161-b12-1ubuntu2 [33.6 kB]
Fetched 27.6 MB in 5min 59s (76.7 kB/s)
Selecting previously unselected package openjdk-8-jre-headless:amd64.
(Reading database ... 164080 files and directories currently installed.)
Preparing to unpack .../openjdk-8-jre-headless_8u242-b08-0ubuntu3~18.04_amd64.deb ...
Unpacking openjdk-8-jre-headless:amd64 (8u242-b08-0ubuntu3~18.04) …
...

Step 5 Hold the package: as per post by Ehsan in a related thread

sudo apt-mark hold openjfx libopenjfx-java libopenjfx-jni

Step 6 ls -l of the STM32 install directory
/usr/local/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin
total 17220
drwxr-xr-x 6 root root    4096 Apr  2 04:47 ExternalLoader
drwxr-xr-x 2 root root    4096 Apr  2 04:47 FlashLoader
drwxr-xr-x 3 root root    4096 Apr  2 04:47 HSM
-rw-r--r-- 1 root root 2715616 Feb 20 17:35 libcrypto.so
-rw-r--r-- 1 root root  548696 Feb 20 17:35 libssl.so
-rw-r--r-- 1 root root  382309 Sep 11  2019 libstp11_SAM.so
-rw-r--r-- 1 root root     354 Apr  2 04:47 libstp11_SAM.so.conf
drwxr-xr-x 2 root root    4096 Apr  2 04:47 PersoPackages
drwxr-xr-x 2 root root    4096 Apr  2 04:47 platforms
drwxr-xr-x 3 root root    4096 Apr  2 04:47 RSSe
-rwxr-xr-x 1 root root     163 Dec  9 23:30 STM32CubeProgrammer
-rwxr-xr-x 1 root root 7727803 Feb 20 17:44 STM32CubeProgrammerLauncher
-rwxr-xr-x 1 root root 1645912 Feb 20 17:35 STM32MP_KeyGen_CLI
-rwxr-xr-x 1 root root 1673192 Feb 20 17:35 STM32MP_SigningTool_CLI
-rwxr-xr-x 1 root root 1808746 Feb 20 17:42 STM32_Programmer_CLI
-rwxr-xr-x 1 root root     147 Apr 18  2018 STM32_Programmer.sh
-rwxr-xr-x 1 root root  803594 Feb 20 17:42 STM32TrustedPackageCreator
-rwxr-xr-x 1 root root  277313 Feb 20 17:42 STM32TrustedPackageCreator_CLI

Step 7 launch of the Cube Programmer shell

  -------------------------------------------------------------------
                    STM32CubeProgrammer v2.4.0
  -------------------------------------------------------------------

Usage :
STM32_Programmer_CLI.exe [command_1] [Arguments_1][[command_2] [Arguments_2]...]

Generic commands:

-?, -h, --help         : Show this help

Step 8 launch of the Cube Programmer from the terminal produced a lot of messages as follows:

/usr/local/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin$ ./STM32CubeProgrammer
Gtk-Message: 12:37:27.325: Failed to load module "canberra-gtk-module"
No properties file found
java.io.FileNotFoundException: /home/carlos/.STM32CubeProgrammer/config.properties (No such file or directory)
    at java.io.FileInputStream.open0(Native Method)
    at java.io.FileInputStream.open(FileInputStream.java:195)
    at java.io.FileInputStream.(FileInputStream.java:138)
... but it did launch, also screen shot of Cube Programmer as tested from the desktop and connected to the "blue pill" via serial

Hope this helps! Rgds, C


How to prevent scripts/commands hijacking your session's cached sudo ability?

You can run

sudo -k

before you run your script.  It will clear the cached credentials and the next sudo will ask again for your password.

Here's a way to do what you want (I think).

Move your sudo elsewhere:

mv /usr/bin/sudo /usr/bin/sudo_real

Put the following into usr/bin/sudo:

#!/bin/bash -i
# Allows 'sudo' to be run with cached credentials from the command line,
# but clears the cache if run from within a script.
# Get the last command executed manually from the history
LAST_COMMAND=`history | tail -n 1 | cut -c 8-`

if [[ "${LAST_COMMAND}" == "sudo "* ]]; then
    # The last command was 'sudo' - i.e. the user ran sudo
    sudo_real "$@"
else
    # The last command was NOT sudo - so this sudo was called from within a script.
    # Force the cached credentials to be cleared.
    sudo_real -k "$@"
fi

Make the new /usr/bin/sudo executable:

chmod a+x /usr/bin/sudo

Alias sudo to update the bash history when you run it from a shell by putting this in your ~/.bashrc:

alias sudo="history -a;sudo"

Now, when YOU run sudo ... it will put the sudo ... into the bash history and the script will find it and run sudo_real.  But when another script runs sudo, it won't be in the history, and it'll call sudo_real -k.

I think this is incredibly hairy, and I'd just live with the risk or use a new shell for scripts I didn't trust, personally :-)


Can I create a LiveUSB for installing Lubuntu without using a CD?

I'd like to avoid using a CD if possible, but if a CD is necessary to create a LiveUSB, then I expect that I would just skip the USB entirely

A physical CD is not necessary to create a LiveUSB; you just need the ISO image. Use UNetBootin to create the LiveUSB; just point it to the ISO and to the drive/device that is your USB stick.

However, depending on how old your computer is, it may not support booting from USB; in that case you can use a CD to "kick-start" the USB.


Cannot set default gateway to specific LAN

The command you have to run is:

sudo route add -net 192.168.20.0 netmask 255.255.255.0 gw 192.168.1.254


Right click on the panel which is present on the desktop and uncheck the option "Lock Panel"
Right click again on the panel and select "Add New Panel".
Once the new panel is added, right click on the panel and "Add to panel" .  A window will pop up with the list of applications for the panel.
Select "Main Menu", "Notication Area", " Indicator Applets" and " Sessions Indicator".
Close the Window. If you wish, you can lock the panel to avoid deleting it again.

Hope this helps.


How do I get images to appear on buttons in Glade Designer?

The steps below should work (from the look of your question you can start at step 5 but I've included all of them for future users).

Make sure the icon image you want to use is in your_app/data/media
select the widget you want to apply the image to in glade
choose icon widget in edit image on the right tool button properties panel to add an image widget to your button
edit the image widget you just created to add an image using the right panel (select file name in edit image and browse to your image
prefix the file name that appears in file name with ../media/ so glade can see it.

You can see a screencast of this process from about 33 minutes onwards in the create your first app video Jono Bacon released.


Where can I find a driver for my pretty old graphic card?

Intel integrated graphics GPUs use the built-in open source graphics driver in Ubuntu. In order to show all the drivers that are available to be installed from the default Ubuntu repositories and are compatible with your hardware, open the terminal and type:
ubuntu-drivers devices

Lubuntu 14.04 has more frugal hardware requirements than Lubuntu 18.04. Try installing Lubuntu 14.04 on this computer with Extended Security Maintenance (ESM) which is free for personal use on up to 3 machines.


By looking at the output, I could find that the maximum time is consumed by plymouth-quit-wait but note that it cannot be disabled since Plymouth is the application which provides the graphical "splash" screen when booting and shutting down an Ubuntu system. I can give a workaround for you so that the machine starts faster.

Disable plymouth in grub using

sudo nano /etc/default/grub

and change the line GRUB_CMDLINE_LINUX_DEFAULT into

GRUB_CMDLINE_LINUX_DEFAULT="noplymouth video=SVIDEO-1:d"

Save the file by using Ctrlx + y + Enter

sudo update-grub

and then restart the machine

Do you use snap packages on your system? if no, you can diable snap

sudo systemctl disable snapd

Similarly, disable the services listed below
using the above command. just replace the package name.

sudo systemctl disable <packagename>
ModemManager.service
apport.service
accounts-daemon.service
avahi-daemon.service
systemd-journal-flush.service
apparmor.service

If you do not use bluetooth, disable it using sudo systemctl disable bluetooth


As this is something I have a need for and until a formal release is out, I patched makefile and ckucmd.c and Kermit compiles normally.

first of all, you'll need to install libpam development->
sudo apt-get install libpam0g-dev

C-Kermit can be obtained from:
http://www.columbia.edu/kermit/ck90.html

and finally, a link to the two files changed:
https://mega.nz/file/DL4nnZhD#1-Wr-QnywqsjNFxMstz4L0b8cf3eBPv6vt9DycpGoUY

build with->
make linux

Hope this has helped those who use kermit for file transfer, through ssh or telnet.

Thanks.


in Ubuntu 14.04.3 UCK tool,I can't install wine 1.6 or wine1.7

i have same problem.
If you using ubuntu > 14.04, try this:

sudo apt-cache policy libvpx1

libvpx1:
Installed: 1.3.0+git20150219-1~gd~t
Candidate: 1.3.0+git20150219-1~gd~t
Version table:
*** 1.3.0+git20150219-1~gd~t 0
    100 /var/lib/dpkg/status
 1.3.0-3~trusty 0
    500 http://ppa.launchpad.net/mc3man/trusty-media/ubuntu/ trusty/main amd64 Packages
 1.3.0-2 0
    500 http://ru.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages

And downgrade this package:

sudo apt-get install libvpx1=1.3.0-3~trusty


Cannot create a steam library on my 4tb hard drive as its read only

You should try to give next time some more info I think, but I'll try....
If external disk, search first if there's a little qwitch button or knob on the disk drive, and switch it to unlock if neccesary.
Else
See if the disk partitioned/formatted and how?
To see disk partitions do:

Open Disks.(program)
Find your drive.
See if it is partitioned and use one of them and see if it is formatted.
Find out the characteristics of the partitions.(little wheel under disk layout)
See if it is writable or read only(rw or ro)
Change the option if neccesary
Save changes and unmount disk.(upper right menu)
Remount disk in the left list....
Should work... Use help menu if neccesary!


After an upgrade, Unity system settings are transparent

Try to delete this package gnome-settings-daemon using :

sudo apt-get remove gnome-settings-daemon


I installed chruby/ruby-install on Ubuntu 20.04: cannot execute ruby from within bash-script

I do not know, what is happening: but after reboot ruby in bash script is working fine! Seems to be a "wackelkontakt"!


There are several ways to control mouse buttons.
I am going to use xbindkeys (because I know how)

sudo apt-get install xbindkeys

Now, before we can use xbindkeys we need to create its configuration file

xbindkeys --defaults > $HOME/.xbindkeysrc

Now we need to figure out what the number of the mouse button we want to map is.  We do this with a program called xev

xev

When we run xev a small windows will appear.  Put your mouse in that window and click the button you want to map.  After you press the button several times you should be getting output like:

ButtonRelease event, serial 41, synthetic NO, window 0x4400001, root 0x2e9, subw 0x4400002, time 21579213, (28,34), root:(818,86), state 0x110, button 1, same_screen YES

In this example 'button 1' is the button we want to map.

After we have the name of the button we have two options:

You can map the button to a keyboard shortcut

Or you can map the  button to launch an application

To Launch an application:

We need to edit the xbindkeys configuration file:

gedit $HOME/.xbindkeysrc

This will open the xbindkeys configuration file in gedit. (note: If you use another text editor, like kate, substitute 'gedit' for 'kate')

Scroll to the bottom of the file and create a new line.
If you want 'button 1' to open, say, firefox type:

“firefox”
b:1

This will map application 'firefox' to 'button 1'.

To Execute a keyboard shortcut:

We need another application called xte.

sudo apt-get install xautomation

Now we need to edit the xbindkeys configuration file:

gedit $HOME/.xbindkeysrc

Scroll to the bottom of the file and create a new line.
To map 'button 1' to a keyboard shortcut, say, Ctrl+C type:

“xte 'key Ctrl_C' “
b:1

Restart the computer.


I too had this problem. How did you burn the iso? By simply writing it to the cd using some cd burning application? If so, the boot loader might not have been installed. Try using a pen drive and make it bootable using the "Startup disk creator" utility.


How to find backlight is managed by which card?

A possible way to find which card is in charge of managing your backlight is by looking at the full sys/class path of your devices:

In my case the intel_backlight refers to card0-LVDS-1, where LVDS usually refers to your laptop LCD monitor.


Before I start, please note that the JDK also contains the JRE within it.

Method 1:

To install the openJDK JDK and JRE 8 use (replace 8 with the version you want, such as 7 or 6):

sudo apt-get install openjdk-8-jdk

Method 2:

If you instead want to install the official Oracle JDK and JRE and definitely want to install through apt-get then do (you can replace the 8 with other versions such as 9, or 7):

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

Method 3:

Or if you want to install the official Oracle Java version manually:

Go here and click the download button:

Select the Accept License Agreement radio button (once you have read the license agreement).
Select the file you want to download, if you are running on a 32-bit machine click jdk-[javaversion]-linux-i586.tar.gz ([javaversion] replaced with the Java version, such as 8u60), if 64-bit then jdk-[javaversion]-linux-x64.tar.gz.
Launch Terminal (CTRL + ALT + T), then cd to the directory where you downloaded the file to (probably ~/Downloads), and run tar -xvf /path/to/file.tar.gz to unpack that archive into the directory the file is in, you may then move that unpacked archive into a desired location, such as the /opt directory (storing executable files in your home directory is a security risk).
Once you have done the above you may delete the original .tar.gz file, and then open up your ~/.bashrc file in a desired file editor such as gedit or vim, I will be using vim in this example (install it with sudo apt-get install vim if it is not already installed). So run vim ~/.bashrc and then insert two new lines at the bottom of the file which read (that is with /path/to/unpacked/archive replaced with the path to the archive you just unpacked):

JAVA_HOME=/path/to/unpacked/archive
export PATH=$PATH:$JAVA_HOME/bin

Either restart Terminal or run source ~/.bashrc to start using the new .bashrc file.

Note: With this method you will have to carry on doing this every time there  is a new Java version released which it will not notify you about.


You can use this simple command:

grep -E '^[0-9.]+\.DBP' TEST.LOG

If you want your just change your command to this:

grep -E '^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\.DBP' TEST.LOG

+ means: Matches the one or more occurrences of numbers.


The first project to fork GNOME2, EXDE, did not suceed.
According to our own blog: the exde project died. This was supposed to be the "fork" of GNOME2, but it never became anything useful.

Fortunately, the old components are still being updated, and there is still hope. The plan is to keep them around for a while, being updated to the new technologies in GNOME3 (this has already been mostly done), and given a few new features as well.*

The better solution is to "fork" this newer code.

**As mentioned by Wojox (I implied this but didn't state explicitly), the fallback mode of GNOME3 is actually the panel, and this will be maintained for a while. It is also the "newer code" that I was referring to.*

Mate:

As mentioned by Perberos, there is now the Mate Deskstop, which is doing pretty well and being picked up by some distributions.


GNOME Night Light Setting from the Command Line

To turn on:

gsettings set org.gnome.settings-daemon.plugins.color night-light-enabled true

To turn off:

gsettings set org.gnome.settings-daemon.plugins.color night-light-enabled false

To schedule on time, here I want to schedule night light from 23:06 hrs (that is 06/60=0.1):

gsettings set org.gnome.settings-daemon.plugins.color night-light-schedule-from 23.1

To schedule off time, I want to schedule night light off at 23:25 hrs (that is 25/60=0.416666666):

gsettings set org.gnome.settings-daemon.plugins.color night-light-schedule-to 23.416666666

You can also set the night light temperature which will increase and decrease the brightness, 4000 is the default value for Ubuntu 18.04, you can try different values for example 2000, 3000, 5000, 6000, 10000 and set the preferred ones:

gsettings set org.gnome.settings-daemon.plugins.color night-light-temperature 4000

To get the current values for above commands, run the below commands

gsettings get org.gnome.settings-daemon.plugins.color night-light-enabled
gsettings get org.gnome.settings-daemon.plugins.color night-light-schedule-from
gsettings get org.gnome.settings-daemon.plugins.color night-light-schedule-to
gsettings get org.gnome.settings-daemon.plugins.color night-light-temperature

Example:

$ gsettings get org.gnome.settings-daemon.plugins.color night-light-enabled
false
$ gsettings get org.gnome.settings-daemon.plugins.color night-light-schedule-from
23.1
$ gsettings get org.gnome.settings-daemon.plugins.color night-light-schedule-to
23.416666666000001
$ gsettings get org.gnome.settings-daemon.plugins.color night-light-temperature
uint32 1000
$


I had the same problem when installing xubuntu 16.04.3. I reinstalled the version 16.04.2 and that solved my problem. I tried solutions like Why does kworker cpu usage get so high? but it didn't help me.


Try at a terminal

sudo apt-get purge skype
sudo apt-get update
sudo apt-get install skype

Skype is known to not run after an upgrade to 11.10, the new package is a different version.


Which directory should I be in when installing ATP packages?

It doesn't matter from which directory you call ´apt-get`. The files will always places in fixed directories specified by the specified and the APT configuration.

After you installed a package you can see where its files are installed by using

dpkg -L package_name

for example

dpkg -L gimp


Adding the Wine PPA from: http://www.winehq.org/download/ubuntu solved the problem for me.

sudo add-apt-repository  ppa:ubuntu-wine/ppa
sudo apt-get update && sudo apt-get upgrade
winetricks  mfc42


Have you tried disabling Secure Boot? If not, do so. If that doesn't help, go ahead and install rEFInd from Windows, or try using the rEFInd USB flash drive or CD-R. (The latter is safer, in that it won't write anything to your hard disk or modify your NVRAM settings, so if it doesn't work there won't be any non-functional stuff left behind.) Note that rEFInd requires extra configuration to work with Secure Boot, so if you want to use rEFInd with Secure Boot enabled, you'll need to jump through those extra hoops.


There are 2 ways to do this.

I will call your pc the "server", and the client which is on the private network "client".

Enable NAT on your PC connecting the 2 networks. To test, I would use fixed ips, or you can use DHCP. Check in this order:

Can you ping the server from the client?
Is the default gateway on the client the server's ip?
Can you ping the proxy from the client? 10.0.0.5
Did you set the proxy on your client? Your server only routes to the proxy, but doesn't do any NAT to proxy conversion.

Or you set up a proxy on your server, which will use the organisation's proxy as parent: http://www.christianschenk.org/blog/using-a-parent-proxy-with-squid/

If this doesn't work, check
 * Can you ping the server from the client?
 * Did you set the proxy on your client? It's now the private ip of your server.


Kernel Error during upgrade or update commands

Short answer: Do a fresh install.

Long answer: I know this may seem discouraging, but to date only one of my upgrades of Ubuntu has been entirely successful. I have been using Ubuntu since version 8.04 or 8.10, and I have always, except for one time, first tried upgrading and then ended up doing a fresh install after backing up everything that matters to me. I barely have anything on my computer that is not constantly synced to a cloud service or backed up on an external device.

My experience leads me to believe that my misfortune has been caused by excessive customization of my computer and user interface, so now I tend mostly to refrain from this. Good luck!


Gtk-WARNING **: cannot open display: on Ubuntu Server

Did you install xserver or a display server like unity,cinnamon, or gnome?

gedit or any graphical programs need a display server to be able to run.


I'm experiencing similar problem with VLC player. But the difference is I'm using it often. Here is one possible (not fully proofed) workaround for this issue on Ubuntu 16.04 with Unity.

According to this answer we can test whether there is a running application desktop file named vlc or so. If there is no one we can try to kill all VLC's processes. For this purposes create an executable file, named ~/bin/vlc-killer.sh, and add the following lines as its content (here is a reference about the exported envvars):

#!/bin/bash

# Check whether the user is logged-in: if not then exit
if [[ -z "$(pgrep gnome-session -n -U $UID)" ]]; then exit; fi

# Export the current desktop session environment variables
export $(xargs -0 -a "/proc/$(pgrep gnome-session -n -U $UID)/environ")

# Test whether there is any VLC RunningApplicationsDesktopFile
/usr/bin/qdbus org.ayatana.bamf /org/ayatana/bamf/matcher \
org.ayatana.bamf.matcher.RunningApplicationsDesktopFiles | grep -q 'vlc'

# If not killall VLC processes
if [[ $? -ne 0 ]]; then /usr/bin/killall vlc; fi

Then open the user's Crontab for edit (crontab -e) and apply the following job (that will execute our script each minute) at the bottom:

* * * * * $HOME/bin/vlc-killer.sh >/dev/null 2>&1


How do I disable search-as-you-type text in Ubuntu 17.10 and later?

Gnome decided to remove the navigation feature type-ahead and replace it with search. They fail to see this is a big problem for many users.

Up until Ubuntu 17.10 Canonical provided a patched version of Nautilus that retained this feature. This is not the case anymore and type-ahead is gone for good.

You are of course welcome to join the Nautilus mailing list and state your reasons why this feature is still needed. I don't see much use in that, though. One of the maintainers told me "This has been discussed to death and we have likely heard all the arguments."


How to disable screen lock in Ubuntu 14.04 / Unity?

There is two steps involved into completely disabling the lock screen in Unity.

Go to Brightness & Lock panel from the Unity Launcher. And set Turn screen off when inactive: to Never
Install "Unity Tweak Tool" with sudo apt-get install unity-tweak-tool. Run it from the Launcher and select System > Security > Enhance system security by disabling Desktop lock


That's right, for there's no single place to put an app in Linux.  There's no monolithic One Way To Do Things in Linux, no mandate from above, and the well-written guidelines (e.g., http://www.tldp.org/HOWTO/HighQuality-Apps-HOWTO/fhs.html which explain why take some time to find and read.

/bin, /usr/bin, /sbin, /usr/sbin, /usr/local, /usr/local/bin, /opt, /opt/bin and /usr/games all can contain executables, and echo $PATH shows you the directories which are automatically searched on your system when an app is entered in CLI mode.  Instead, Synaptic package manager is the way to go to find app executables; search on the app you want, and Synaptic will show you where the app's executable is.

If you do not have Synaptic, open a terminal window and do sudo apt-get -y install synaptic to add it.


What if a file is changed at the same time rsync is copying it to destination?

When rsync is started it builds up a file list and then starts to copy those files. This file list is not being updated during the run. The actual data is then copied.
There's a chance that rsync might actually corrupt your file. When rsync starts to read a file and an application is writing that file at the same time, you might end up with a corruped file.


"invalid EFI file path" while booting Windows

you should try to add windows as workaround manually to grub.

At first run

sudo blkid

Here you should see the UUID from your windows partition

open /etc/grub.d/40_custom and paste/edit following code but replace
UUID_FROM_WIN8 with your UUID mentioned above.

menuentry "Windows 8 UEFI" {
    search --fs-uuid --no-floppy --set=root UUID_FROM_WIN8
    chainloader (${root})/efi/Microsoft/Boot/bootmgfw.efi
}

The chainloader should look the same for all windows versions, as far as i know..

After editing grub files you have to run

sudo update-grub

Please test it first and give me some feedback because it could be possible that the efi file won't be found.. but i don't want to give multiple advice in one answer..

hope this helps!


Unable to activate the Desktop Art plug-in for Rhythmbox

Sigh

Apparently, somehow, the pythongnome-desktop package got removed or deleted at some point. Re-installing it seems to have made Rhythmbox much happier and far more amenable. The plug-in's back, and gracing my desktop.


How to connect to hard drive that is connected to router?

Your windows and Ubuntu 12.04 should already be able to transfer files between each other over the network using samba/windows shares.

In the file browsers search your Browse Network/Network Places and see if you can find each of the computers. If not you can type the IP address into the location such as \192.168... or on Ubuntu type smb:///192.168..... (might have to press ctrl-L to show the location bos to type into in the Ubuntu file browser)

As for your router, without more info about what it can do... can't really help but it is possible that the router is able to setup samba/windows shares. This might be what you have done with the "set it up on windows".

Hope this point you in the right direction.


Quickly can't package, but raises no errors

The problem was in the file project/po/POTFILES.in. When I removed all references to the files, which the Quickly package couldn't find, which can be seen with

quickly package --verbose

it worked like a charm.


How can I insert an APA style bibliography in a document using LibreOffice?

There are multiple alternatives you available to you. The first is a stand alone app, the second is also stand alone but can integrate with Libre Office, and the third is built to integrate with Libre Office.

The first, available in the Ubuntu Software Centre, is a neat app called Referencer. With it you can organise documents or references, and ultimately generate a BibTeX bibliography file. Referencer includes a number of features to make this process easier.

The second, with many positive reviews in the USC, is JabRef. You can customize the entry information shown in the main window, and sort by any of the standard BibTeX fields. JabRef also lets you easily link to PDF or web sources for your reference entries. I great feature is that JabRef can integrate with Libre Office.

And third, Bibus, again in the Ubuntu Software Centre. Bibus is a bibliographic database which has been developed with LibreOffice in mind. It can directly insert citations and format the bibliographic index in an open Writer document.

Each one of these Apps excels in different ways, so try them all out. They available on Windows as well, if you ever have to do work on Windows and want the same tools.


How to install a `.deb` package, when the install button is disabled?

Open a terminal and go to the directory where the .deb file in loacated.

Then execute

sudo dpkg -i b43-fwcutter_015-9_i386.deb

This should work.

Note: Most of the time, this should not work if you don't have all dependent packages installed. But I inspected this package, and see that, it is only dependent on libc6 package, which is automatically installed by Ubuntu. Hence it should work.


How to remove wireless LAN "whitelist" on Compaq QC-60-419wm?

Are you sure you have the broadcom card?  Apparently some of the QC60 shipped with an Atheros card.  A couple of things to try: sudo apt-get install linux-firmware-nonfree might help with some of the hardware issues. you should reboot after doing that install.

Type into a terminal window sudo lshw -C network  If you see the broadcom BCM4311 network card listed, try the following command:

sudo apt-get update
sudo apt-get install firmware-b43-installer
sudo reboot


Logisim is not in the repos, but being a single java jar, should be fairly easy to get going. It is purely digital, without the discrete and analogue components. It is however quite sophisticated - I've been putting together a simulation of a single instruction CPU with it.

Instructions for getting and running it:

Download the .jar file from http://sourceforge.net/projects/circuit/
If you saved the file to ~/apps/logisim-generic-2.7.1.jar, you can run it from a terminal with:

java -jar ~/apps/logisim-generic-2.7.1.jar

To save yourself from typing that the whole time, create the executable ~/bin/logisim containing

#!/bin/sh
java -jar ~/apps/logisim-generic-2.7.1.jar

Make it executable:

chmod +x ~/bin/logisim

If ~/bin existed before, it's already in your $PATH. Otherwise, re-login to update your $PATH. From now on, you can start it by running:

logisim

If you update logisim later, it's as easy as putting the new file in ~/apps/ and change the filename in ~/bin/logisim

Well, now it's there in the ubuntu 14.04 repositories as well, just type :-

   sudo apt-get install logisim

to install it.


Should I choose exFat or NTFS for a "shared" partition in a dual-boot system?

If you're using both Ubuntu and Windows, then yes, you should probably store files you want accessible by both in an NTFS partition. exFAT and FAT32 partitions are other options, but:

exFAT is patent-encumbered, so support for it is not built in to Ubuntu by default. You can add it without too much trouble, but this is still more trouble than not having to add it at all.

Remember, if you have to boot from an Ubuntu live CD for recovery purposes, the live CD won't have exFAT drivers even if your installed system does.
You may also want to check your local laws before installing exFAT, to determine whether or not you might incur civil liability due to patent problems. (I'm not trying to discourage you, and I'm not a lawyer. I just want you to be aware of potential issues.)

FAT32 doesn't support files larger than 4 GiB. These days, you may well have files that large, depending on what you're using your computer for.
Neither exFAT nor FAT32 support file ownership and permissions. This is usually quite minor when comparing them to NTFS, since while NTFS does support ownership and permissions, it's somewhat complicated to get them properly respected/used when mounting an NTFS volume in a non-Windows operating system like Ubuntu. You can do it, though.

Unless you have a specific reason to do otherwise, your partition for sharing files between Ubuntu and Windows should probably be NTFS. Furthermore, it could even just be the Windows partition, as that is of type NTFS. You cannot install Ubuntu to an NTFS partition, though (except with Wubi, which installs it to a rewriteable disk image that resides inside an NTFS partition).

Since Ubuntu is not as good at repairing damaged NTFS partitions as Windows (though there are Ubuntu utilities for this), you should probably avoid NTFS for machines where Ubuntu is the only operating system. (But for such a machine, you could use use Ubuntu's default partition type, ext4.)


Command line move file with long directory path without repeating directory path

You can use bash's brace expansion. This:

mv my/file/that/has/a/really/long/path/foo.{bar,baz}

will expand into:

mv my/file/that/has/a/really/long/path/foo.bar my/file/that/has/a/really/long/path/foo.baz

and then mv is run with those two arguments. See http://wiki.bash-hackers.org/syntax/expansion/brace for more on brace expansion.


Fast, lightweight alternative to Compiz' Expo Plugin?

As mentioned before, unity is stuck with compiz.

But if you are willing to experiment, I suggest the Gala WM of elementary

sudo add-apt-repository ppa:elementary-os/daily
sudo apt-get update
sudo apt-get install gala
gala --repĺace

I am unaware if this plays ok with Unity, I removed Unity on my mschine. I personally pair this with MATE Desktop.

For expo you would also need dconf-editor to tweak when its Expo is used. It does have default keypress but you can also assign a hot spot to activate Expo.


Could Not Deactivate Swap in Gparted Error

Compare the free mem: line with the swap: used line and you can see that there isn't enough available RAM to turn swap off.

Edit: The maximum RAM available  is free mem + cached but in this case it doesn't matter as the combination of the 2 still is less than swap in use.

You will need to increase the amount of RAM available to the VM. You do this in the setting for the machine in the manager by moving the Base memory pointer or keying in a higher value in the box to the right of the pointer as below:


How to set label to secondary IP address with netplan

Netplan does not support interface aliases (what you are calling here a "label").  The convention is to assign multiple addresses to the interface instead.


Ubuntu 13.10 does not show up on windows 8.1

I would be shocked if that actually worked.  As of right now, it is not possible.  Windows runs on NTFP format of disk partition, meanwhile Ubuntu (Linux) runs on swap, ext-4 and these structure will not work for Windows.  The only way for both of OS to be able to see each other is if partition is being preppared in FAT32 format.


How can I figure out what polkitd is doing with so much of my system's resources?

I had the same problem with high CPU usage after closing the lid on my Acer C710 Chromebook running chrUbuntu 13.04.  On my system, dbus-monitor --system shows a swarm of NameOwnerChanged messages, about 30 per second.  These repeatedly wake up everybody on the dbus, particularly polkitd, but also network manager, nm-applet, etc.

But DBus is only doing this because acpid keeps repeatedly running the /etc/acpid/lid.sh script.  This, in turn, is due to an overactive ACPI interrupt line, exactly the same problem as on this question:

Why does kworker cpu usage get so high?

For my system, the problem was in /sys/firmware/acpi/interrupts/gpe1F, and echoing "disable" to this interrupt immediately stopped the CPU usage.  This results in a system that does exactly nothing when the lid is closed, but I can still "sudo pm-suspend" from the console, and opening the lid or pressing a keyboard wakes normally.

And more importantly, CPU usage is down to nearly zero!


Ubuntu stuck asking to remove installation medium on Hyper V install

Taken from https://www.eightforums.com/tutorials/5078-hyper-v-create-linux-virtual-machine-windows-8-a.html:

  When Ubuntu reboots and stops telling Please remove installation media, click Stop to stop and close vm. This ejects the installation media

  and now Restart vm, and you will be able to log in


In your operating system I think you have not updated driver plugins,
For that
Go to terminal and update and install plugin or VLC by typing

sudo apt-get update

sudo apt-get install vlc* y

That may be your solution


Problems whit MySQL workbench in ubuntu 20.04 'cannot connect to database server'

By default the root user is configured to use auth_socket authentication. Have a read here, specifically the section titled Socket Peer-Credential Authentication
You must either create a user with the relevant privs and use that to login or change the authentication method for mysql root user.


What is the option "host-name" for in /etc/dhcp/dhcpd.conf?

The host-name option is used to tell the client host to take this specified host-name
An option host-name statement within a host declaration will override the use of the name in the host declaration.
But, as the man dhcpd.conf says:
It should be noted here that most DHCP clients completely ignore the host-name option sent by the DHCP server, and there is no way to configure them not to do this. So you generally have a choice of either not having any hostname to client IP address mapping that the client will recognize, or doing DNS updates. It is beyond the scope of this document to describe how to make this determination.

For more insformation:
 - How to get the hostname from a DHCP server
 - https://www.isc.org/wp-content/uploads/2017/08/dhcp41conf.html


"npm install -g grunt-cli" installs grunt in ~/.nvm but nvm is uninstalled

Trick was in ~/.npmrc file. It contained line:

  prefix=/home/XXX/.nvm/versions/node/v8.11.4

It is leftover of nvm installation. After commenting this line installation was done to correct location.


Update:

Please follow this question to install the driver first. The answer is dependent on the kernel version. To know your kernel version you can execute uname -a

Broadcom 4365 wireless driver with 3.4 / 3.5 kernel

eth0 is not wireless adapter. It is Ethernet adapter.

Try sudo iwlist wlan0 scanning | egrep 'Cell |Encryption|Quality|Last beacon|ESSID'

Better, first enable wireless adapter using hardware switch.

then click on top panel network manager button to see the available networks.

Related:

How do I scan for Wireless Access Points?


How to encrypt external devices using a cross-platform solution?

You could also consider installing Truecrypt on your USB. Once installed, use TrueCrypt to  create an encrypted container, which can be opened with the software on the key. Saves you time installing software on multiple computers, still leaving you with the encryption you wanted.

Update since 2014, from TrueCrypt site:

WARNING: Using TrueCrypt is not secure as it may contain unfixed security issues
This page exists only to help migrate existing data encrypted by TrueCrypt.
The development of TrueCrypt was ended in 5/2014 after Microsoft terminated support of Windows XP.


Gromacs not available in repository in ubuntu 12.10?

there is a ubuntuUpdates packages in the following link which will solve your problem
http://www.ubuntuupdates.org/package/core/quantal/universe/base/gromacs


Having the same problems with f.lux and there doesn't seem to be any fix for this right now.

But Redshift seems to work fine on Ubuntu 12.04.

gtk-redshift in Ubuntu Software Centre


How to set systemd hybrid-sleep instead of suspend to be used on idle?

I got an answer at Russian Ubuntu forums.

http://forum.ubuntu.ru/index.php?topic=282013.msg2221520#msg2221520

In /etc/systemd/logind.conf change

#IdleAction=ignore
#IdleActionSec=30min

to

IdleAction=hybrid-sleep
IdleActionSec=1800

For some reason 30min does not work. It works in seconds, that is OK.

Another option is to change the systemd.suspend service. It allows to use the GUI setting for idle timeout. But I do not recommend to use this one, since there is a perfect CLI solution.

I changed the systemd suspend service, but I do not think it is a perfect solution. But for a desktop without a UPS it may be a good option.

I changed a line in /lib/systemd/system/systemd-suspend.service from

ExecStart=/lib/systemd/systemd-sleep suspend

to

ExecStart=/lib/systemd/systemd-sleep hybrid-sleep


How to allocate more disk space to ubuntu?

To resize /dev/sda5 open GParted and follow these steps carefully:
1. Unmount /dev/sda7.
Unmount /home patition at /dev/sda7 by right click then click on umount option. If any error occurs use this command to unmount.
sudo umount -lv "/home"

unmounting will dissappear lock key simbol.
1. Make some free space.
To make some free space right click on /dev/sda7 and click on Resize/Move option and resize the partition. It will make some unallocated space.
2. Unmount /dev/sda5
To resize /dev/sda5 partition first you have to unmount the /dev/sda5 partitoin to be able to make changes. unmount using step 1.
3. Resize /dev/sda5
To resize /dev/sda5 right click on /dev/sda5 and click on Resize/Move option and resize according to your need.


Mouse pointer missing after suspend / Lenovo X200 / Ultrabase / 2 monitors / Displays configuration issue?

https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/1568604

Check out Post #143 in that thread.

  Argh, missed a “”→"" (I stupidly copy-pasted my script from another
  place I'd posted it instead of from the actual file …). Trying again:

sudo mkdir -p /usr/local/bin

echo '#!/bin/sh
        n="$(fgconsole)" || exit 1
        case "$n" in
            [0-9]) /bin/chvt 1; /bin/chvt "$n";sleep 1;;
                *) echo "error from $0; fgconsole gave $n" >/tmp/VTswitch.log
        esac ' | sudo tee /usr/local/bin/VTswitch

sudo chmod +x /usr/local/bin/VTswitch

sudo mkdir -p /etc/lightdm/lightdm.conf.d

echo '[Seat:*]
        session-cleanup-script=/usr/local/bin/VTswitch
      ' | sudo tee /etc/lightdm/lightdm.conf.d/50-vtswitch.conf
sudo systemctl restart lightdm

I'm running Ubuntu Studio 16.04 (XFCE) on an Asus laptop, after being on 14.04 until just this June.

The 'Lock Screen' function (or 'Suspend w/ Screen Lock') would cause my mouse cursor to be invisible upon waking/unlocking.

Running the instructions in post #143 quoted above logged me out and as soon as I logged backed in and locked/unlocked the screen- I could no longer reproduce the bug.

I am examining the details of the commands to better understand them, I think it's just a work around, not a true fix though...


Fullscreen mode in chrome flicker the screen with Gnome Wayland

I found the solution here: Screen flickers on fullscreen in chrome and gnome-mpv. Basically it is to disable chrome hardware acceleration. How to disable is shown here: How To Disable Hardware Acceleration


Boot keeps dropping to a (initramfs) prompts/busybox after every upgrade

From the comments...

re: Do you dual-boot with Windows? If so, have you installed a driver there that allows you to read/write to Ubuntu EXT4 partitions?

If DiskInternals-Linux-Reader software is like other similar Windows drivers, the result is the same... corrupted Ubuntu file systems.

Uninstall DiskInternals-Linux-Reader software, and fsck your Ubuntu partition once again, and I suspect that your problem will be solved.

If you really wish to share files between Windows and Ubuntu, create a new NTFS partition on your disk, and both can read/write to it.


My Windows 8.1 installation is not being detected

Try 'Boot-repair' option:

 sudo apt-get install boot-repair
 boot-repair

Fixes almost all GRUB/bootloader problems.


I will start with the ~/.snippy creation first:

In Linux and in Ubuntu ~ means /home/your_username so ~/ simply means /home/your_username/, and the . simply says that folder (ie snippy) is invisible and will only be seen if you ask the file browser nautilus to make it visible.

Now to create ~/.snippy you can do it in two ways:

From terminal:

mkdir ~/.snippy OR mkdir /home/your_username/.snippy

Form nautilus in your home directory right click anywhere and select command new folder from context menu and most importantly name it .snippy

Creating short cut for snippy:

go to system settings > keyboard > shortcuts > custom shortcuts

click on the + sign then add a name say snippy then enter the command to start snippy from terminal. Which should be say snippy
If not sure of the command check it with which snippy or whereis snippy it should return something like:

/usr/bin/snippy
# this is the binary file that launches snippy.

Then Click Disabled in the row that was just added. When it changes to New accelerator…, hold down the desired shortcut key combination.

Note:

When adding snippy to your path as demonstrated in the tutorial please do $ sudo mv snippy.sh /usr/bin/snippy. Not what is stated in the tutorial, so you can run just snippy from terminal..

Source:

https://help.ubuntu.com/stable/ubuntu-help/keyboard-shortcuts-set.html


I recommend leaving at least two kernels installed. The reason is that the redundancy can be helpful in case one kernel file (or its associated RAM disk file) is damaged. If this happens, you should still be able to use the other file to boot the computer.

That said, you can delete old kernel packages. I recommend using dpkg for this task rather than just brute-force deleting the files. If you get more than two or three kernels, you can remove all but two or three of them by typing sudo apt-get autoremove. (I don't recall offhand if that leaves two or three in place.)


How to correctly report startup issues via ubuntu-bug?

According to the wiki page, "DebuggingSoundProblems", you can report audio bugs by opening a terminal (press Ctrl+Alt+T) and running:

ubuntu-bug -s audio

You might get lucky looking at similar issues posted online, some with solutions.


One possible cause to your problems is the combination of the nvidia graphics card and the Intel on-board one. When you are on first boot - installation process - also try the following:

### Add nvidia drivers
sudo add-apt-repository ppa:graphics-drivers/ppa
# More Info on https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa
sudo apt update
# nvidia-375 is the lts branch usable with CUDA/CUDNN. Change if you want
sudo apt-get install nvidia-375
# Nvidia Xserver Settings from dash
# Swap GPU's from Prime Profiles

Note: My system doesn't shut down (i5-7300hq + 1050Ti) when I select the on board cpu on the prime profiles instead of the on board card. So after the installation of the relevant drivers make sure you select the dedicated gpu option at the prime profiles.

Further note: This is kinda expected. System76 - a dedicated Linux vendor - fuses the Intel iGPU so it's like it is not there at all. They do it Optimus because support in Linux needs more work :(


USB ethernet adapter: 'Cable unplugged' message while plugged in

Okay, after doing some more digging I found that you can easily install drivers by:

Opening a terminal (CTRL+ALT+T)
Installing udav sudo apt-get install udav
Then rebooting. There maybe another way, but this is easy.

Other info I found is in another question.


Solution, Use Ubuntu on wayland to modify the screen order


What is extended file system and how to merge it?

Old style MSDOS partitioning had a 4 partition limit so the workaround was extended partitions containing logical partitions. The extended partition counts as one of the 4 allowed and it enabled several logical to be created. I forget the limit for logical partitions.
It doesn’t matter that your / partition is a logical partition inside an extended partition.
To make sda5 a primary partition you would need to copy it off somewhere using GParted in a live environment, delete sda5 and sda2 and finally copy the backup of sda5 back into the unallocated space.


Confirm if entire drive is encrypted on Lubuntu 19.04

Everything but /boot/efi is encrypted, yes.

This is indicated by the fact that sda2 only holds a Luks volume (which is the encryption feature used by Ubuntu and many other Linux distros), which is in turn mounted on /.

The grub prompt is perfectly normal, given that the kernels reside on an encrypted partition, and /boot/efi only contains the bootloader itself. It has to ask for passphrase to read the kernel it has to load.


Networking - Install wifi Adapter HP laptop Ubuntu 18.10 rtl8723be

The GitHub repository link for Ubuntu 18.04 and earlier returns 404 Not Found now. It seems it has been removed. On Ubuntu 19.04 and later you don't need to download drivers from GitHub anymore.

18.04 and earlier
Realtek RTL8723BE wireless network adapter has problems managing the antenna in Ubuntu which leads to weak wifi signal problems. To fix it follow these steps.

Disable the Secure Boot option in the UEFI setup utility in order to make the wifi option visible in Ubuntu.

Open the terminal and type:
iwconfig

Note down the wlp number. In this example it's wlp13s0.

Go to this link, download the driver zip file to your desktop, and unzip the archive.

Run these commands from the terminal.
cd ~/Desktop
cd rtlwifi_new-master
make
sudo make install
sudo modprobe -rv rtl8723be
sudo modprobe -v rtl8723be ant_sel=2
sudo ip link set wlp13s0 up
sudo iw dev wlp13s0 scan

Run the following command to make the settings permanent.
echo "options rtl8723be ant_sel=2" | sudo tee /etc/modprobe.d/50-rtl8723be.conf


How do I playback a DVD in Ubuntu 17.10?

sudo dpkg-reconfigure libdvd-pkg

fixed it.

Thanks to myself and for future reference if only for myself...


Run the command with sudo:

sudo /usr/sbin/sshd

If you still get the privilege separation directory error:

sudo mkdir /var/run/sshd && sudo chmod -R 755 /var/run/sshd


Navigate to your "Software Sources" ( I do not know which "buntu" you are using). Try a different server either in your country or in a nearby country. It works for me, when I occasionally get this problem.

Good Luck

Mal


Can I install Ubuntu over Win 8 without disabling UEFI?

removing bios password can be performed by contacting support of fujitsu

then just disable secure boot, set boot devices order and you should be good to go

if you want to learn your win8 key for future purposes just install this program


Please open a terminal and do:

sudo apt-get remove --purge bcmwl-kernel-source

Hook up the ethernet temporarily and do:

sudo modprobe b44

Now your ethernet should be working and able to connect. Then do:

sudo apt-get install linux-firmware-nonfree

Everything should be working correctly after a reboot.


I got it working by removing some settings folders and just configuring everything from scratch. I found some valuable information in this answer: https://askubuntu.com/a/558450/548635

What I finally did is:

mv ~/.config/dconf ~/.config/dconf.old
mv ~/.gnome ~/.gnome.old
mv ~/.gconf ~/.gconf.old


I want to take my videos folder in my home folder and add locations to it from an external hdd on Ubuntu x64. Is it Possible?

Yes: I have the same thing: on my local HDD I have the videos I still have to watch, and on my NAS I have the videos I have already watched.  When I'm home, and the NAS is mounted I see them all, when on the road, I only see the ones on my local HDD.

How to do this?
Every time I move a Video directory to the NAS, I go to a terminal and do:

cd ~/Videos
md /media/user/Video_Archive/Summer_2014/
mv Summer2014/* /media/user/Video_Archive/Summer_2014/
rmdir Summer2014
ln --symbolic /media/user/Video_Archive/Summer_2014/

(actually I have a script called av (for Archive Video) that loops through the command-line parameters and moves them in one go, but you could also do the moves and create links with the file manager too)


How to get screen output from a background python program

If I understand what you're trying to do correctly, you could use screen to run your python program. Then, at any time that you want to check on it you can reattach to the pid. The way it usually works is:

screen -S <name_your_screen>

Is not necessary to name the screen but makes it easier to find them later if you run more than one screen. At this point you will be in the screen's interactive shell. Run your python program as your normally would. Later when you want to check on the program via Putty or something:

screen -list
screen -r <pid>.<name_of_screen>

Another option is tmux. Hopes this helps.


Mysql show error /etc/profile.d/wsl-integration.sh: cannot create //.cache/wslu/integration: DirectoryWSL: Ubuntu

Maybe you can find the file .cache/wslu/integration in /home/<your_name>/. There, you can modify the file /etc/profile.d/wsl-integration.sh like this:
HOME=/home/your_name

and remove the checking of ${HOME}


Wireless mouse stops working, when in battery, for a couple of seconds now and then

I found my problem to be laptop-mode-tools.

I removed that and installed TLP instead. Everything is perfect now.


How Can I Make /bin/sh point to /bin/bash?

As shown on this Ubuntu wiki page, you should run

sudo dpkg-reconfigure dash

and select the option not to use /bin/dash as the default shell. Making the change this way will not only fix the symlink /bin/sh, but will also configure other parts of your system to behave correctly, such as making sure that man sh points to the bash manpage instead of the dash one.


How can I disable Ctrl+Q shortcut in Ubuntu?

It appeared that I mistakenly considered Ctrl+Q as a system-wide shortcut because it closed Firefox, files explorer and Atom editor.
But in fact, it is just a common shortcut for many apps, so it has nothing to do with Ubuntu/Gnome.
The solution in my case was to disable the shortcut separately in each app.


Ubuntu installer does not see windows 8 after changing partitions

I assume you are doing the "do something else" when asked to where to install the OS, not alongside windows, not by itself, do "do something else" choose a partition for ubuntu make it / so it knows where the root is. if you have more than 3-4 gb ram I dont even recommend swap, just waste of space, its for older computers and assuming your pc is win8 then it has to be new. at the same place where you choose partition for the OS, choose a device you put bootloader on and thats it, I always do it that way on any computer with any OS combination and never had a problem, hope it helps!


Well i'm not too sure what you asking as it seems kinda unnecessary and self explanatory. As far as I know all you can do in ubuntu or any linux, is split the screen. Even then you can only split the windows...this can be done by clicking and dragging a window, to the far right or left of the screen. What this will do is maximize the window on half of the screen. You can also do the same by running [ctrl] + [super], then using the up left and right arrow keys...Now i'm not sure why you would want to
trisect your screen, as it would make the windows harder to read or see...But if you want you can adjust the size of the windows, and throw one in the middle...Now keep in mind you do have multiple workspaces in Linux, and if you dont you'll have to enable them. to do this simply go into your system settings, and inside of the behavior settings for the appearance you want to click enable work spaces. and that will give you some more space to work arround with. I hope I answer your noob like question...I only wish I was high enough reputation to down vote this waste of time question.


Wifi keeps getting disconnected in ubuntu 18.04LTS

Try the firmware listed on kernel.org from kvalo/ath10k-firmware. Follow the instructions to replace your existing one with it. Also, this manual from Gentoo may be helpful.


Unable to play video in Hotstar (ubuntu 14.04 LTS)

Okay.. Looking at the screenshot again, and it looks like you have a couple of other Flash related packages installed as well. So I'd suggest that you clean it up a bit by running these commands:

sudo apt-get purge browser-plugin-freshplayer-pepperflash pepperflashplugin-nonfree adobe-flashplugin
sudo apt-get install adobe-flashplugin

Then restart your browsers.


can any one recommend me free stock market software?

From the source:

Stock Market monitoring software

BeanCounter - A stock portfolio performance monitoring tool. Install:

sudo apt-get install beancounter

Smtm - Show Me The Money is a configurable Perl/Tk stock ticker program. Written by the creator of BeanCounter.

sudo apt-get install smtm

JStock -- a Java based portfolio manager and stock market monitoring tool. See these installation instructions.

qtstalker is available from 'precise'  http://packages.ubuntu.com/precise/qtstalker
I found a .DEB here: http://mirrors.ccs.neu.edu/ubuntu//pool/universe/q/qtstalker/qtstalker_0.32-3.3ubuntu1_i386.deb so might be worth a shot to try and install it in 13.04 (download it and double click the download and USC will take over).


Install software from an AUTOPACKAGE  on 18.04

autopackages from autopackage.org have been replaced by flatpak ("the future of application distribution") packages from Flathub. Flathub is the home of hundreds of apps which can be easily installed on any Linux distribution.

Flatpak installs, manages and runs sandboxed desktop application bundles. Application bundles run partially isolated from the wider system, using containerization techniques such as namespaces to prevent direct access to system resources. Resources from outside the sandbox can be accessed via "portal" services, which are responsible for access control; for example, the Documents portal displays an "Open" dialog outside the sandbox, then allows the application to access only the selected file.

Each application uses a specified "runtime", or set of libraries, which is available as /usr inside its sandbox. This can be used to run application bundles with multiple, potentially incompatible sets of dependencies within the same desktop environment.

The flatpak package from the default Ubuntu repositories contains the services and executables needed to install and launch sandboxed applications, and the portal services needed to provide limited access to resources outside the sandbox.

In Ubuntu 18.04 and later open the terminal and type:

sudo apt update
sudo apt install flatpak
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

In Ubuntu 16.04 open the terminal and type:

sudo add-apt-repository ppa:alexlarsson/flatpak
sudo apt update
sudo apt install flatpak
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo


Enhanced Session Mode not working - Hyper-V Guest

It's a little scary how I did it, since auto-remove didn't seem to work. I deleted all the kernels under boot, downloaded linux-azure deb, installed via dpkg, updated initramfs & grub. Powered off and upon boot got it working again!


What will I see after I kill the /sbin/init?

PID 1 (init) is the exception to the usual signal-related rules.
Here’s what Linux manual (man 2 kill) says about it:
The only signals that can be sent to process ID 1, the init process,
are those for which init has explicitly installed signal handlers.
This is done to assure the system is not brought down accidentally.
Since it’s impossible to set a handler for SIGKILL, a SIGKILL would
never be delivered to PID 1. The process who sends the signal,
however, would get 0 return code, indicating that everything went
fine.
In fact killing PID 1, if it were allowed, would cause disaster,
because it’s the ancestor process of all the other processes, and
there’d be be nowhere to re-parent them to. If PID 1 calls exit()
itself, the Linux kernel would panic, that is, immediately abort
everything and print a stack trace, like Blue Screen of Death on
Windows. You can try this yourself by making your shell the PID 1:

Reference


In your /etc/logrotate.d/apache2 file you have:

if [ -f "`. /etc/apache2/envvars ; echo ${APACHE_PID_FILE:-/var/run/apache2.pid}`" ]; then
                /etc/init.d/apache2 reload > /dev/null
fi

. /etc/apache2/envvars ; echo ${APACHE_PID_FILE:-/var/run/apache2.pid} means it will first source the file /etc/apache2/envvars, then if the variable APACHE_PID_FILE exists it will print its value which would be a file containing the PID of apache, if the variable does not exist it will default to value /var/run/apache2.pid.

The -f of test ([) command indicates to check for the existence of the PID, if found then run:

/etc/init.d/apache2 reload > /dev/null

Which will reload the configuration of apache.

In you case the file /etc/init.d/apache2 is missing, hence apache is not reloading the configurations leading to the misbehavior of logrotate in saving new logs in /var/log/apache/access.log and /var/log/apache/error.log.


List of all available WiFi APs and their signal strength

Or any other way to list the available WiFi APs along with their
  signal strength in dBm.

Please compare:

sudo iwlist scan

Here is a snip from my temporary location:

wlp3s0    Scan completed :
          Cell 01 - Address: xx:40:96:A0:E3:xx
                    Channel:11
                    Frequency:2.462 GHz (Channel 11)
                    Quality=63/70  Signal level=-47 dBm
                    Encryption key:off
                    ESSID:"hhonors"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s
                    Mode:Master
<snip>


Will I have problems updating to 13.04 when 12.10 was installed using WUBI?

I got a pop-up asking me if I wished to upgrade to 13.04 an hour or so ago, I would think it would be the same way for everyone. (Well it was after I did a software update)

Hope this helps.


No, you do not need a swap file or partition as long as

You are not going to hibernate.
You do not use RAM heavy apps such as virtualizaion or audio - video editing or burning DVD.

For "standard" desktop tasks (web browsing, email, text editing) with a single user you do not need swap.

With 4 gb and the type of apps I listed, I never even use swap.

It sort of depends on what you do with your box.


How to install VMware Workstation in Ubuntu 12.04 LTS?

Very clearly written... you can find a detailed guide at http://hashprompt.blogspot.in/2012/10/vmware-workstation-804-installation-on.html


Can't install M720 Thriatlon on Ubuntu 16.04 lts

Solaar software let you manage Logitech’s Unifying Receiver with ease. for Ubuntu 16.04LTS, it's available to download from Ubuntu Software.