Dump a database and scp it to a remote server with date hour suffix

Outside of typos, DNS, network, client/server file permissions and port issues (requiring a -P flag to scp) the only other thing that sticks out to me is that you haven't specified a path after the colon.

root@x.x.x.x:myDb_$(date +\%Y\%m\%d\%H\%M\%S).tar.gz

This means that the server gets to decide where that file is dumped.  If it's /tmp (which can be a security precaution) then it may not end up where you expect.

If you meant root's home folder, then you can either use

...x.x.x.x:/root/myDb_...

or you can use the shorthand for "user's home folder" the tilde (~)

...x.x.x.x:~/myDb_...

If that's not the solution, can you please update your question with the output of each command. :-)


Lubuntu 'Digital Clock' lags behind the system time

This is a bug that was fixed in late 2017 by the LxQt developers:

https://github.com/lxqt/lxqt/issues/1245

If you upgrade and the problem persists I suggest adding to that bug report (as the LxQt developers have requested)

If you cannot update your system for whatever reason you can run this command when resuming to restart your desktop manager:

xfce4-panel -r && xfwm4 --replace


One way to do this is with xrandr.  Assuming your native resolution is 1366x768, you can emulate a larger screen by running the command

'xrandr --output LVDS1 --mode 1366x768 --scale 1.50x1.50 --panning 2049x1152'


What is the Mime type to display notifications?

Turns out notifications do not use Mime Type. They go straight to the DBUS.


What have I to do to change from BIOS to (U)EFI after installation?

The last I checked, Ubuntu's version of GRUB 2 places a GRUB binary on the EFI System Partition (ESP), which is mounted at /boot/efi in Linux. The GRUB configuration files (grub.cfg and various support files) remain in /boot/grub, which is on another partition. (IMO, this is a bad design, but that's another matter....) Thus, if you use Ubuntu's GRUB binary, GRUB's menu should be updated automatically.

If you installed GRUB from source code, or perhaps from somebody else's binary, though, it could work differently, with grub.cfg and its support files on the ESP along with the GRUB binary. This setup is actually safer, but Ubuntu's scripts don't support it, so you'd have to manually update things after every kernel update. From your description, you seem to have this setup, although the site to which you linked seems to describe setting it up using Ubuntu's binaries, which is a puzzling inconsistency. Did you try something else at some point, or deviate from the site's instructions to get it working? You could test by making a change to the description of a boot option in one of the grub.cfg files (assuming you've got two of them) and seeing if that change appears in GRUB's menu when you reboot.

Assuming you really do have a GRUB binary that looks on the ESP for its grub.cfg file, there are a number of possible solutions, including:

Install Ubuntu's version of GRUB over whatever you've got now. This is risky because it might not work, and could therefore leave you with an unbootable installation. (Your initial description says that your initial installation in EFI mode was unbootable, which suggests you might have a problem with Ubuntu's version of GRUB.)
Switch from GRUB to another boot manager/boot loader as your primary boot program. My own rEFInd is likely to be easy to get running, and it will handle kernel updates automatically. There's some risk of creating an unbootable installation if you try this, but the risk is less than that of replacing your working GRUB with another one, since you should be able to use your firmware's boot manager to boot via GRUB even if the new boot program fails completely.

One more comment: New computers invariably ship with Secure Boot active, which creates an extra hurdle to overcome. Ubuntu 12.10 and later come with Secure Boot support, but that doesn't always work. Most third-party boot loaders, including rEFInd, require extra work to get working with Secure Boot. Thus, if you haven't already done so, I recommend you disable Secure Boot in your firmware. If you want to boot with Secure Boot active, it's better to enable it after installing your boot loader, since you'll be able to test the boot loader without Secure Boot first, and then add Secure Boot to the picture and debug it with the knowledge that your basic boot loader configuration is working.


I want to save the data which is display on the command prompt while compiling a process

You can pipe the output to a file using the > symbol:

install-command > file.txt

If you want to review the inputs (commands) that you made during the install, type history to dump the contents of your history file.


How to remove npm and reinstall npm completely in 18.04?

I was having the same problem. After a lot of search online I managed to find a solution.

The following is what solved it for me:

Remove old nodejs installation and update packages.

sudo apt-get remove nodejs npm
sudo apt-get update
sudo apt-get upgrade

For 8.x node installations:

curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -

For 12.x node installations:

curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -

Install:

sudo apt-get install -y nodejs

Test the installation:

~$ nodejs -v
v8.11.3 // <- node 8.x
v12.13.1  // <- node 12.x

~$ npm -v
5.6.0 // <- node 8.x
6.12.1 // <- node 12.x


Custom keyboard shortcut not working in Saucy

There seems to be a bug https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/1224732

It has only recently affected me. I was fine on 13.10, but some recent updates have killed my shortcuts.

They work fine in a gnome session, but do nothing in ubuntu. I'm not knowledgeable enough with the workings of this area to debug it though :/


How to avoid grep command finding commented out strings in the source file?

Try this:

if grep -qwE '^[^#]*(ana|mini)conda' "$HOME"/.bashrc ;then
    echo "miniconda/anaconda is found in .bashrc"
fi


Thank you for raising this issue.  To track status, please check the launchpad bug.

Additionally, I am curious if you observe this with Juju 1.24.5?

That is the current version available in the Juju stable ppa.


Ubuntu 14.04 LTS cannot login 'invalid password' (not redirect loop)

You can't do it from guest account. And next time be more careful while typing your password.

Get an Ubuntu Live media (the same you used to install it) and boot your computer from it. In a terminal, run:

sudo mount /dev/sdXY /mnt

Replacing XY with the appropriate letter/number to your Ubuntu partition.

sudo chroot /mnt

sudo passwd username

Replace username with (captain Obvious) your username. A new password will be asked and you'll have to type it again to confirm. nothing will be showed on the screen while you type. Double check every single character before typing it. Reboot and you should be able to login with your new password.


Installing Ubuntu 13.04 on an 8G memory stick

The default maximum size for your casper partition (persistence) is 4gb, and you can set this pretty easily if you use a tool like UNetBootin. Just set persistence to the maximum of 4gb. But if you want more storage space, select no persistence. Then you can use a partitioning tool to create a casper partition to use the full 8gb of your flash drive. Here is a good tutorial.

Good luck


Ubuntu 18.0.4 LTS: Realtek Wifi adapter RTL8723DE HP laptop WIFI SIGNALS TOO WEAK

I also got myself an HP Laptop, and had to install the driver, and configure ant_sel=2, don't forget that the wifi card is a single band so it will be slower, try a speed test on your Ubuntu and Windows machines to see whether they have different network speeds. as the_mighty420 answered, remember to echo "options rtl8723de ant_sel=2" | sudo tee /etc/modprobe.d/rtl8723de.conf so the configuration will stay on ant_sel=2 after you reboot.
Just a pointer (if you are a noob like me) write down the commands you ran to install the driver, as you will need to reinstall it after every new linux kernel update.


Nexus 7 Freezes on lockscreen on Ubuntu Touch Preview

same happened to me. swipe left to right from the extreme left edge of the screen. you should see the application bar appear from left.


Make numerical keyboard (num lock) active by default on Ubuntu Server

Please open a terminal window, then run

sudo -i && xhost +SI:localuser:gdm
su gdm -s /bin/bash
gsettings set org.gnome.settings-daemon.peripherals.keyboard numlock-state 'on'

then advise, after a reboot of the virtual machine, if NumLock is now on.


Switching terminals with `Ctrl`+ `Alt`+`Fn` does not require password

It turns out that a similar question has already been asked before on ru.stackoverflow.com, but there it was only about a greeting.
The old bug 878836 is to blame for both problems, for the login without a password and for an unusual greeting.
Currently, the bug has been partially repaired, and it's already impossible to enter without a password.  However, now the password is asked twice, but it's better than not asking at all.
According to the latest comment on the launchpad (from 2016-04-04), it will be finally fixed after switching to Unity8 + Mir. Which is not relevant for Ubuntu 18.04 that is using Gnome instead Unity.


Restrict access from another user to the NTFS partition

Create a group called ntfs. Then edit the group to add all of the users that you want to be able to access the ntfs partition.

sudo addgroup <groupname> ( ntfs )

Then

    sudo chgrp ntfs /media/disk (ntfs )
    sudo chmod 770 /media/disk (ntfs )

  To add a new user to a existing group you would do this:

sudo adduser  (username)  ntfs

For More Detail plz have look

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

http://ubuntuforums.org/showthread.php?t=1100120


How do I change the name of a printer in GNOME 3?

I've had a lot of issues setting up networked printers in GNOME. The only way I found to get everything set up was by installing the package system-config-printer-gnome and then running the command system-config-printer. From here I'm able to do some advanced printer setup as well as rename my printers (just checked it ;)


According to this page, you need to have Flash Player 11.3 or higher in order to have wireless presenters work with Prezi on fullscreen.

Unfortunately, support for Flash Player for Linux stopped just before that, and if you use Firefox or Chromium you're stuck at version 11.2. One easy way to work around this is by installing Google Chrome. Unlike Chromium or Firefox, Chrome comes with its own, up-to-date Flash Player (currently, version 12).

Google Chrome is not available in the Ubuntu Software Center, so you'll need to get it somewhere else. I recommend the official website: https://www.google.com/intl/en/chrome/browser/


What are the command-line alternatives to Network Manager (nm-cli), Wicd (wicd-curses), wpa_supplicant for managing wireless?

I suggest you do:

sudo vim /etc/network/interfaces

Add the wireless stanzas similar to:

auto lo
iface lo inet loopback

#auto eth0
iface eth0 inet dhcp

auto wlan0
iface wlan0 inet static
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.1
wpa-ssid <your_network>
wpa-psk <your_secret_key>
dns-nameservers 8.8.8.8 192.168.1.1

Please be certain the address is outside the pool used by the DHCP server in the router or access point. Proofread, save and close vim. Of course, substitute your details here.

On boot, the wireless should be connected at the requested address automatically.


Mailing list software with easy to use GUI

GNU Mailman is the most popular. I looked at other mailing list software like phplist and dadamail as well. Here's my findings when I tested them a year ago:

GNU Mailman

written in Python
very widely used (Sourceforge, Ubuntu, Debian, and many other large scale installations in the wild)
does not require a database
primitive web ui but reliable
package provided by just about every distribution, very easy to install
very reliable bounce detection
I still cannot create list from webui and must be done via shell. but all other admin tasks work fine for me
I had to write a custom script to export subscriber lists for backup

phplist

written in php
nice web interface
pretty easy to install
pretty popular, many distribution provide packages
requires mysql database
I was alarmed by many reports of insecurity

dadamail

written in perl (CGI)
requires mysql database
I never tested it as installation was difficult

I ended up with GNU Mailman and am very happy with it.


LibreOffice 5 : 2 x Different Toolbar Icon Sets - Same Config - Ubuntu 16.04 Gnome Flashback

A big thank you to danielnl on #libreoffice for online assistance.

I have posted his helful advice here to close my own question

Here is the (somewhat trivial) solution:

There are user preference choices available for Icon size and style

[ Tools ]
-> [ Options ]
-> [ View ]
-> [ User Interface ]
-> [ Icon size and style ]

-> [ selectionbox#2 ]

Automatic (Galaxy)

shows my reference above to UI 2 - Chunky & dated

Breeze

shows my reference above to UI 1 - Slick & fresh

Here is a pretty useful help page with screenshots for installing and setting more Icon Sets:

http://www.debugpoint.com/2016/08/quick-tip-change-the-default-libreoffice-look-and-feel/

That gives quite a few options, but I like the slick minimal Breezy.


Trackpad and keyboard does not resume after sleep

Probably something changed in the kernel and updates fixed the issue many months ago.


Is chroot the right choice for my use case?

I won't answer point by point as I don't know all the answers, but I will give you these pointers:

A chroot isn't terribly difficult to break out of. A VM is somewhat harder.
A VM is much easier to set up and manage as it is a full OS.
A chroot can have a smaller footprint as it's not necessarily a full OS.
In either case, the guest environment will not be updated when you run updates on the host. You'll have to enter the chroot or VM and update it manually.
A VM has a feature which may be good or bad for you: You typically have to provision a fixed amount of memory for it. Minecraft can be very memory hungry, so you might run out with a VM. On the other hand, a VM would be an easy way to put a hard limit on the resources it can use.
Neither a VM nor a chroot will place any intrinsic limits on what users can do over the network. Only a firewall can do that.


Disk check on startup, can't connect with ssh

If a regular file system check is performed, user input should not bee needed. However, if something unexpected happened, user input may be required. To tell fsck to Perform the check and fix errors without user intervention, add

FSCKFIX=yes

into

/etc/default/rcS

as stated in e.g. https://stackoverflow.com/questions/9932250/how-to-auto-respond-to-fsck-prompt-at-boot.
In general, be careful when performing automatic file system repairs.

Just to double check that file system checks on a regular basis are performed without user intervention, do a

sudo touch /forcefsck

and reboot your system. Now yor file system gets checked as it would regularly.

For the record:
To change or disable regular file system checks, use tune2fs, e.g.

tune2fs -c 0 -i 0 /dev/sda1

to disable checking /dev/sda1 after x mounts as well as time-dependent checking. It's also possible to edit /etc/fstab and set the last digit after a fs entry to 0, e.g.

/dev/sda1 /home ext4 defaults 1 2

to

/dev/sda1 /home ext4 defaults 1 0


Is it safe to downgrade libgl1-mesa-glx?

Those packages which caused unmet dependencies problem are installed from a repository that is from other sources. So it isn't cause a problem. So those should be removed.

Try with this :

sudo apt-get remove libgl1-mesa-glx libqt4-opengl-dev && sudo apt-get install qt-sdk

If you want to use that version somehow, you need to find a repository that gives the qt-sdk also. You are lucky if you can find. But rare chance.


Any Android managers like iTunes available for Ubuntu?

You can sync your media with apps like Banshee, but your phone must be recognized as a media player. Information about media devices is provided by the media-player-info package. Unfortunately, HTC Wildfire S is not there yet. You can help to integrate it in the next release by following instructions @ freedesktop: http://www.freedesktop.org/wiki/Software/media-player-info

Please create a bug report as described and post the link here. I will be able to provide a file that you need.

As for the Market integration - I don't think there is a software you can use.


The field for entering password freeze if no text is enter quickly after i install cinnamon on 12.04

Yes, this problem is due to the Cinnamon and you have to remove the cinnamon completely from your system.To do that ,open terminal and type this:
sudo apt-get --purge autoremove cinnamon


Firefox opens new window instead of link

Turns out, my .desktop file was incomplete. To make sure it works, I copied the stable Firefox .desktop file, and changed it so that the Exec lines pointed to the Developer's edition executable and the Icon clause pointed to Developer's edition icon. Also changed the launcher name wherever needed - for English language only though. Now the links work as intended.


how to open port 22 ssh for PuTTY while in repair mode

You can disable ufw by editing /repair/etc/ufw/ufw.conf.

# /etc/ufw/ufw.conf
#

# Set to yes to start on boot. If setting this remotely, be sure to add a rule
# to allow your remote connection before starting ufw. Eg: 'ufw allow 22/tcp'
ENABLED=no

Once disabled you can login normally and add the rule and re-enable ufw.


How to specify location of file with wget download?

Like this :

mkdir -p /var/www/html/wp-content/uploads/movies/2019
wget -O /var/www/html/wp-content/uploads/movies/2019/love.mp4 \
    https://example.com/video.mp4


How can I accelerate my Radeon 9200 graphic card?

ATI dropped support for that video card years ago, leaving the open source driver as the only option for older ATI hardware. If you really get that bad performance with the default Ubuntu driver, you might want to try the latest xorg (the basis of displaying graphical stuff in Linux, including drivers) from this package repository. The software is not stable though, so there's always the chance it doesn't work at all and gives you a black screen. And I have no idea if they provide packages for PPC, but you can try.

So if you're willing to risk it you can try the driver by typing the following commands in terminal (Applications > Accessories > Terminal):

sudo apt-add-repository ppa:xorg-edgers/ppa
sudo apt-get update
sudo apt-get upgrade

Then reboot and hope for the best.

If things go wrong but you still have a somehow usable system, you can revert back to the safe driver with:

sudo ppa-purge xorg-edgers

Good luck!


Dual Booting UEFI After bad Install, What happens to old Boot Loader?

A UEFI install keeps bootloaders on the EFI System Partition, while an MBR install like you did before keeps one bootloader in MBR or unformatted BIOS_GRUB partition on GPT partition table.

No matter what you did before, if you re-install in UEFI mode no old and new bootloaders will interfere with each other. If you hadn't accidentally installed from 32-Bit installation media, you would even be able to just install the other bootloader setup and be able to boot (Ubuntu) both ways. (You can also boot Windows 8 in legacy mode if the BCD configuration is setup correctly to boot both ways.)

Probably related:

Reinstalling Ubuntu without formatting partition - what folders are deleted?


How do I get a SPC 300nc working on a 64-bit system?

Ok, i fixed it in ubuntu 12.04 64 bit. I installed the lib32v4l-0 package and LD_PRELOAD'ed skype with LD_PRELOAD=/usr/lib/i386-linux-gnu/libv4l/v4l1compat.so skype


As taken from here,

You can use this command :

sudo rm -rf ~/.local/share/Trash/*

The rm command removes (delete) files or directories.

-f, --force     Ignore nonexistant files, and never prompt before removing.
-r, -R, --recursive     Remove directories and their contents recursively.

The trash folder is found at: $HOME/.local/share/Trash

Be careful how to use rm command because any misuse may cause deleting sensitive system folders and files .


That would be bug 1616609 https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1616609 -- ldd reports incorrectly "not a dynamic executable" when the executable's loader is not present .
Do add yourself to the bug by clicking on the "Does this affect me?" icon.  Basically, the fix is to add the 32 bit loader, /lib/i386-linux-gnu/ld-linux.so.2 -> ld-2.27.so, from package libc6-i386 so the ldd wrapper can use a working link loader.


Libre office is not auto capitalising or automatically putting in apostrophes

Maybe you've turned off auto capitalization by a mistake? If this is the case, you can turn it on again with this method:

Choose Tools – AutoCorrect Options.
Click the Options tab
Check the "Capitalize first letter of every sentence" check box.

Also you should check out Word Online before you consider installing MS office suite, since Word Online is platform independent and free if I recall correctly.


Ubuntu installed on USB doesn't boot propely on other computers

Here are a couple suggestions:
1. Check the bios settings on other computers and check if the boot mode for the usb is set to 'Windows UEFI.' If it is, try to change it to an option labelled 'other OS' or something along those lines
2. from grub, navigate to 'extra options for ubuntu' or something similar (I forget the exact text), navigate to recovery mode and boot normally from there.

I hope I was able to help, or at least put you on the right track


How can I get Ubuntu 16.04 onto a USB flash drive USB

Consider the size of the usb stick you are gonna use. You only need 8GB so a larger one could be partitioned to reserve space for data

Install Ubuntu program : unetbootin

Download the iso from the Ubuntu site or use the internet option in unetbootin program (not tried)

start unetbootin and make your usb stick, pointing to your downloaded iso or via internet

To boot from the USB, change BIOS to boot USB first or hit the key to access the boot menu

You made need to use Gparted to set the boot flag


SSH from Ubuntu to Lubuntu on a local network

On your lubuntu machine run ifconfig -a to find the ipaddress assuming you don't recall the host name. Then open a terminal on your Ubuntu machine and type ssh user@ipaddress(or host name) and then type in the password for the user. Alternatively you can setup a private key for your Ubuntu machine and upload the public key to your lubuntu machine, eliminating the need for entering a password.

ssh-keygen
Leave pass phrase blank or enter one. Entering one is more secure.
ssh-copy-id user@ipaddress
Enter password for user
Enter pass phrase if created

From then on, you will only need to type ssh user@ipaddress to log on to your server. You can research ssh config file to make it even simpler if you prefer. Hope this helps.

If not... What error or problem are you actually having? Detail is everything.


Is it possible to have the same effect of the ALT F2 like Gnome Shell

There are many standalone launchers. I think lxde comes with a Alt+F2 run command. If you would like to have a look in something else, there are:

gmrun

grun

bashrun

If you want something more than just a run dialog, have a look at

gnome-do

synapse

kupfer


Batch Search Folder for Movies Under 1080p

The mediainfo program can give video size information

sudo apt install mediainfo

For 1080p height size must be 1080
Display Video Height with mediainfo

mediainfo --Output='Video;%%Height%' /path/to/video-file.mkv

Now lets batch and find video files under 1080p

#!/bin/bash

# Working Dir SETTINGS, Adapt to your needs
MFolder=~/Video
# script may be modified to be passed as parameter

# Files list: find Video files and output filename
# find $MFolder -type f -exec file -N -i -- {} + | sed -n 's!: video/[^:]*$!!p' | sort

# Will loop an array. Could run a read while
# Save IFS
OLDIFS=$IFS
IFS=$'\n'
# Find all VIDEO files and store names into an array
fileArray=($(find $MFolder -type f -exec file -N -i -- {} + | sed -n 's!: video/[^:]*$!!p' | sort))
# Restore IFS
IFS=$OLDIFS

# Length of array: total num of found videos
NbTotal=${#fileArray[@]}

# Cosmetic
bold=$(tput bold)
normal=$(tput sgr0)

# The loop
for (( i=0; i<${NbTotal}; i++ ));
do
    VidHeight=$(mediainfo --Output='Video;%Height%' "${fileArray[$i]}")
        if [ "$VidHeight" -lt 1080 ]; then
            ((NbUnder1080++))
            echo "${fileArray[$i]} "${bold}$(mediainfo --Output='Video;%Width% x %Height%' "${fileArray[$i]}")${normal}
        fi
done

# Output report
echo "---"
echo "Folder scanned: $MFolder"
echo "$NbTotal Videos found"
echo "$NbUnder1080 are under 1080p"


Can't lock Touchpad on Ubuntu 18.04.2 LTS

Since Toggling Button on Keyboard is not working as expected..

here is a workaround..

run xmodmap -pke | grep TouchpadToggle
check the symbol on keyboard which is given for Toggling of Touchpad.. in mycase it is on F5 #Change F5 with your key on keyboard
run xmodmap -pke | grep F5
run xmodmap -e "keycode 71 = XF86TouchpadToggle" #Change 71 with your output.

Example:

$ xmodmap -pke | grep TouchpadToggle
keycode 199 = XF86TouchpadToggle NoSymbol XF86TouchpadToggle
$ xmodmap -pke | grep F5
keycode  71 = F5 F5 F5 F5 F5 F5 XF86Switch_VT_5
xmodmap -e "keycode 71 = XF86TouchpadToggle"
$

that's it.. Please note that you will loose the original function of F5 key with this workaround.. eventhough xmodmap shows upto 8 keys can be configured, but it seems with Function Keys it is not happening..

From man xmodmap

The  list of keysyms is assigned to the indicated keycode (which may be specified in decimal, hex or octal and  can be  determined  by running the xev program).  Up to eight keysyms may be attached to a key, however the  last  four are  not  used in any major X server implementation.  The first keysym is used when no modifier key is  pressed  in conjunction  with  this  key, the second with Shift, the third when the Mode_switch key is used with this key and the  fourth  when both the Mode_switch and Shift keys are used.

Please note that you can bind XF86TouchpadToggle to any key you wish, all you need is just go through man xmodmap

I have tried this in dual boot Windows10 and Ubuntu 18.04.. as you said in comments, in Windows10 Fn+F5 key worked as expected and my F5 key has the symbol for TogglingTouchPadOn/Off and this did not work in Ubuntu 18.04.. seems the reason is clearly visible that by default it is mapped to keycode 199 which I dont have with my present keyboard. So it is need to map the keysym XF86TouchpadToggle to any desired key.

.


Is it possible to install Ubuntu 16.04 LTS in AMD A10-5800K APU with Radeon(tm) HD Graphics?

Yes, it is possible to install Ubuntu 16.04 LTS on this system. Canonical has has discontinued support for the proprietary fglrx driver but the existing radeon/amdgpu drivers are sufficient replacement.

Note: I had "vanilla" Ubuntu 15.10 installed on this system from USB drive and then upgraded to 16.04 LTS.


Run this command and reboot:

echo "options rtl8723be fwlps=N ips=N" | sudo tee /etc/modprobe.d/rtl8723be.conf


On the Swiss Canon support site, I found the driver source code for the PIXMA MG5400. Just scroll all the way down and hit "Akzeptieren & Herunderladen" (Accept and Download).

You'll receive a tar.gz archive containing the source code. Extract it and open a terminal in the directory cnijfilter-source-3.80-1 where you extracted it.

Execute the command chmod +x scripts/install_deb/install.sh, then execute scripts/install_deb/install.sh

The make, make install way doesn't work, as the Makefile is corrupted...

This might do it. However, I don't know how old this is and how well it is maintained.

EDIT: The other answer points to Canon Singapore, which provides a prepackaged version of the driver for Debian: http://support-sg.canon-asia.com/contents/SG/EN/0100467602.html?r=s&q=

Download, extract, and run the installer script.


Thanks for the video, very useful!

I don't think your problem is anything to do with MAAS but I'd be tempted to check that there's no firewall preventing iSCSI access from the node to the server.

Otherwise I would take this to the kernel and/or server people.


From the example and your script it seems, that your original file is sorted by the first column ( i ) but you want it to be primarily sorted by the second column ( z ) instead and than by i.

This can be achieved much easier with sort

tail -n +2 data.dat | sort -n -k 2 -k 1 >> avg_SD.dat

It is also probably much faster than looping through two loops and doing at least one million comparisions for every line in the input file.

Explanation:

tail -n +2 data.dat prints data.dat starting with the second line, thus removing the header.
| redirects the output of the command on the left to the input of the command on the right.
sort -n -k 2 -k 1 sorts the input numerically (-n), first by the second field (-k 2) than by the first field (-k 1)
>> avg_SD.dat prints the output to avg_SD.dat keeping previous content. If you want to overwrite the previous content, use a single > instead of >>.

If there is no header in the original file, you do not need tail and can pass data.dat directly to sort as an argument:

sort -n -k 2 -k 1 data.dat >> avg_SD.dat


What are ways to synchronize LibreOffice dictionaries across multiple computers?

Okay, this is what I did after a few days of tinkering.

Simply adding a Dropbox folder to Tools > Options > LibreOffice > Paths > Dictionaries wasn't working. "Add to Dictionary" would not come up in the context menu.

What I did was copy "home/.config/libreoffice/4/user/wordbook/standard.dic" to a folder in Dropbox then I included that folder in my dictionaries path. I restarted LibreOffice, although this may not be necessary. "Add to Dictionary" now comes up and the added words show up in my Dropbox dictionary which I confirmed by opening the dictionary in a text editor.

I will try this from a second computer when I can and will update.


Ubuntu Budgie 18.04 LTS System Tray Icons not all showing

This problem is common for both Ubuntu 18.04 and Ubuntu Budgie 18.04.

The reason of issue is lack of the libgtk2-appindicator-perl package in main Ubuntu 18.04 repository. A workaround is to install libappindicator-dev:

sudo apt install libappindicator-dev

and Gtk2::AppIndicator perl extension:

sudo cpan -i Gtk2::AppIndicator

Restart your applications, now all of missing icons have to appear in system tray.


Mounting Windows Share using SMB 2.1 or greater

If I use ver, it realy types "Invalid argument"
but
man mount.cifs says that the option name is "vers", not "ver".

       vers=
       SMB protocol version. Allowed values are:

       ·   1.0 - The classic CIFS/SMBv1 protocol. This is the default.

       ·   2.0 - The SMBv2.002 protocol. This was initially introduced in
           Windows Vista Service Pack 1, and Windows Server 2008. Note
           that the initial release version of Windows Vista spoke a
           slightly different dialect (2.000) that is not supported....

it works for me in Mint 18.1:

mount -t cifs //192.168.1.1/public /home/user/Desktop/share --verbose -o vers=2.1,user=winuser


When will Linux Kernel 4.3-rc7 be included in Ubuntu 15.?

I would assume it will never going to be installed in 15.10. It will be included in the next release.

If you REALLY need it then why wait if you can install it yourself?

For 15.10 64-bit a method is ...

 $ cd /tmp
 $ wget kernel.ubuntu.com/~kernel-ppa/mainline/v4.3-unstable/linux-headers-4.3.0-040300_4.3.0-040300.201511012034_all.deb
 $ wget kernel.ubuntu.com/~kernel-ppa/mainline/v4.3-unstable/linux-headers-4.3.0-040300-generic_4.3.0-040300.201511020846_amd64.deb
 $ wget kernel.ubuntu.com/~kernel-ppa/mainline/v4.3-unstable/linux-image-4.3.0-040300-generic_4.3.0-040300.201511020846_amd64.deb
 $ sudo dpkg -i linux-headers-4.3*.deb linux-image-4.3*.deb

if there is a new one change the digits
mind the "unstable"

And you can revert back with

sudo apt-get remove linux-headers-4.3* linux-image-4.3*

The * here removes anything related to 4.3.* so so not do this in say 6 months when 4.3 is the default.

But this ...

  I found a way to get it going using modprobe, but that only works once per reboot.

will not be true. If it does not stick permanently with "modprobe" then if it works when done from commandline you can always just add it to a script and have it execute during a reboot. Bit of a hack but it will do the job.


From command line, run:
sudo apt-get update && sudo apt-get -f install

First time-error, right off the bat, probably an installation issue.


See If I chose "Replace Windows with Ubuntu", do I lose the other partition too? for a similar question.

Here is a step by step direction for you

Step one: Make two backup copies of all the files and folders from all the partitions in your computer. Since you will not be restoring them in a Windows system, do not use any Windows backup program to make backup. Use Copy to copy the folders. Make two copies preferably in two external USB hard drives.

Step two: Download and prepare the Ubuntu Live DVD/USB and boot from it. Use the Try Ubuntu without installing option. Once Ubuntu loads make sure all the different parts of the computer works. Then plug in the USB drive where you made the backup and make sure you can read and open some of the files. If this step fails go back to step one.

Step three: click on "Install Ubuntu" only when you are satisfied with steps one and two. Use the "Replace Windows 7 with Ubuntu" option during Ubuntu installation.

Warning: This option will delete all the partitions in your hard drive and you will lose all the data.

Once Ubuntu is installed. You will be able to copy back the all the files and folders from the external hard drive into their respective folders within Ubuntu's /home/[user]/ folder.

Answer to your second question: Ubuntu can read most USB drives. However, you can test this while you are trying Ubuntu without installing.

Hope this helps


Randomly getting logged out on Ubuntu-Gnome 15.10

The same happens to me with Gnome 3.14.1 in debian stable (jessie).

If it's useful, it happens in a HP ProBook 4G with an "VGA compatible controller: Intel Corporation Broadwell-U Integrated Graphics (rev 09)"

It happens both in "gnome classic" and in "gnome" modes.


Thunderbird remove and purge not working

These comments answered my questions. Thanks for the help guys.

Rename the hidden .thunderbird folder in your home directory to something else (e.g. .thunderbird_old) and start Thunderbird: it will start up with factory default settings. – vanadium 2 days ago

Purging a package does not remove data stored in your /home dir. That's YOUR data, and the package manager won't remove it. – user535733 2 days ago


Replace prebuilt package with self-compiled version

In ubuntu, this manual represents a wrong way to install from source something, that exists in the library. The right one is this:

apt-get source <package>
sudo apt-get build-dep <package>
dpkg-buildpackage -rfakeroot -uc -b
dpkg -i <package>.deb.

Full instructions here
For kernel and libs procedure is different.


Generating new grub table after new installation

As @bcbc said delete or format the partition but BEFORE rebooting, run sudo update-grub. If you don't you may end up with a Grub rescue prompt.


Laptop Displays on External Monitor by Default

The solution is to run xrandr then find the name of your default display. In my case it was LVDS-1-0.

Then to make it the default, I ran this command: DISPLAY=:0 xrandr --output LVDS-1-0 --auto

That solved everything for me, I can now use my laptop without having to  plug in a HDMI cable connected to a monitor anymore.


Dolphin/Nautilus Both Cause System Wide Freeze On Access NTFS Partition

Deleting the contents of C's .Trash directory from within Windows solved this issue.  I guess it became corrupt, maybe from changes made within Windows itself?


Is putting swap on a USB2 flashdrive practical?

Flash drives are slower.
My SSD is older and half the speed of newer systems and my system is all SATA2 and USB2.

sudo hdparm -t /dev/sdd4

  older SSD drive:
  Timing buffered disk reads: 626 MB in  3.01 seconds = 208.20 MB/sec

  Older 160GB rotating drive:
  Timing buffered disk reads: 212 MB in  3.01 seconds =  70.46 MB/sec

  USB2 flash drive
  Timing buffered disk reads:  50 MB in  3.07 seconds =  16.26 MB/sec

Or my flash drive is only 10% as fast for reading as my slow SSD. And writes are notoriously slow on flash drives.

You can set swappiness to use RAM first.

cat /proc/sys/vm/swappiness
gksudo gedit /etc/sysctl.conf

Add this:

vm.swappiness=10

https://help.ubuntu.com/community/SwapFaq#What_is_swappiness_and_how_do_I_change_it.3F

There is the swapspace or dynamic swap manager. Looks like not maintained, but still in repository of 12.04.

sudo apt-get install swapspace

http://pqxx.org/development/swapspace/


How To Use an iPad as a Graphics Tablet?

Most likely a little too late for you, but there is a solution now: Weylus. Screen mirroring, pressure sensitivity and multi touch is supported.
Instructions for installation and running can be found in the readme, make sure to follow through the instructions regarding uniput otherwise things like pressure sensitivity will not work.
Disclaimer: I am the creator of this project.


How to copy custom Xorg.conf settings automatically on each boot

Found Solution:

I needed to create this directory:

/etc/X11/xorg.conf.d

Then place a file called xorg.conf within containing the sections I am modifying, in my case the the file contained these settings to fix the DPI:

Section "Screen"
    Identifier "intel"
    Device "intel"
    Option "DPI" "96 x 96"
EndSection

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "AllowEmptyInitialConfiguration" "on"
    Option "IgnoreDisplayDevices" "CRT"
    Option "DPI" "96 x 96"
EndSection

Each time XServer is loaded, it will first generate the default Xorg.conf file, then it will load any changes from xorg.conf.d/*.conf files. Finally the service will start.

I was losing my settings made to xorg.conf because I had to place my modified xorg.conf file in /etc/X11/xorg.conf.d/


How can I get Chromium to download PDF files automatically?

This is no longer a problem - I am now using the version from the 11.04 repositories (Chromium 11). I assume this was a bug that was fixed. A solution for people on Ubuntu 10.10 who are having this problem would be to use a PPA to upgrade to a later stable release.


Ubuntu 17.10 is not booting due to hard disk being full of recovered files

Boot your system and tap Esc after the BIOS screen to enter the GRUB menu, then press e to edit and append init=/bin/bash to the line starting with linux. Press Ctrl+x to boot, log in, and make your filesystem writable via mount -oremount,rw /. Navigate to the folder where the recovered files are and delete them as needed.

Alternatively, you can boot a live CD/USB and delete your recovered files from the live session after mounting your disk.


How do I fix broken LibreOffice packages

Try doing sudo apt-get purge libreoffice*

Then do sudo apt-get install libreoffice

If it finds dependence problems:

Type

sudo apt-get purge libreoffice*

sudo add-apt-repository ppa:libreoffice/ppa

sudo apt-get update

sudo apt-get install libreoffice


getting directory of a specific file in a folder and save it into a variable

Assuming you have two files, one you want to list/use and one you want to ignore with the one to ignore containing - in it's filename as in -busybox:

 ls *.config | grep -v '-'

From man page about grep -v option:

      -v, --invert-match
          Invert  the  sense  of matching, to select non-matching lines.  (-v is specified by
          POSIX.)

Which basically means list all files ending with .config, pipe to grep and exclude those containing -

Or something that gives more control over the selection:

 ls | grep ".*[^-busybox].config"

Which means:

List all files in directory pipe them to grep and using a regular expression filter them to include * for everything but not those in brackets [^-busybox], ending with .config

[^] excludes.


Can't Drag & Drop text to unity launcher (e.g. url's, highlighted text)

You can't drag/drop arbitrary clipboard contents onto launchers. The MimeType entry in the .desktop file specifies what file and content types the application can open, for the MIME system, and is as I understand the code, not used by the drag and drop handling. However, rather, the content of the drop is simply passed as an argument to the program, and must be a URI or file path, replacing %u, %U, %f, or %F, as specified in the Desktop Entry Specification, here: https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#exec-variables


Is there any Ubuntu translation indicator?

If you have gnome-shell installed, you could use this extension

https://extensions.gnome.org/extension/397/traductor-gnome-shell/

It doesn't work if you're using Unity


The command you entered

sudo chmod u+w myfolder

grants write permission to the owner... There it is:

drw-r--r-- 13 myuser www-data
  ^--owner may write

You wanted execute permission

chmod u+x myfolder

(you won't need sudo if you own it). That will give you

drwxr--r-- 13 myuser www-data
   ^--owner may enter and search

(octal 744) - but there's not much point in that setting - probably you either want 755 (all can access) or 750 (owner and group can access) or 700 (only owner can access), since read permission for directories isn't much use without execute permission.


Is it possible to have the remote host name appear in X11 windows?

As soon as I typed the question it occurred to me that there is probably a compiz plugin for that...and there is. Title Bar Plugin


First things first, there is actually nothing as a circular image. Images that appear circular are due to the fact that the corners are made transparent and shaped such that a circle is portrayed.

With that clarification, I believe you have a clue about what you will do.

So you can go about it as follows:

First, make sure that your layer has an “alpha channel”.

Layer → Transparency → Add alpha channel

If it’s greyed out it means you already have one

Create a circular selection with the “Ellipse select tool” (the 2nd one in the toolbox).

Use the “Tool options” dialog

Windows → Dockable dialogs → Tool options

a) If you want a true circle, use the Fixed option: select Aspect ratio and enter 1:1.

b) Depending on what kind of marks you have, you can use:

i) The diagonal framing (default): click on one corner, drag across a full diagonal and release at the opposite corner.

ii) The radial framing (check Expand from center in the Tool options): click on the center, drag across a half diagonal release on a corner.

If the selection isn’t perfect on the first try, you can move it (click around the middle) or extend it (click inside, near a border or a corner).
Once you have the required selection, invert the selection (Select → Invert, or Ctrl-I) so that everything is selected, except your circle.
Erase the selection (Edit → Clear or [Delete] key). You should have your central circle left, surrounded by a checkerboard pattern. (this checkerboard is not part of the image, it just indicates the transparent parts of the image).
You can reduce the checkerboard to the minimum by auto-cropping the image (Image → Autocrop image)
Last, save the image in a format that supports transparency, like PNG (JPEG doesn’t support transparent images…)
If you are going to work further on the picture, save it as XCF (Gimp native format).

You may equally visit this link for more clarification: https://www.gimp.org/tutorials/CircleImage/


I rebuild with following packages and repositories.

You need those packages:
    -

    - "build-essential"
    - "fakeroot"
    - "dpkg-dev"
    - "python-software-properties"
    - "software-properties-common"
    - "rsync"
    - "ubuntu-keyring"
    - "ubuntu-extras-keyring"
    - "debian-keyring"
    - "debian-ports-archive-keyring"
    - "debian-archive-keyring"
    - "emdebian-archive-keyring"
    - "ubuntu-cloudimage-keyring"
    - "ubuntu-cloud-keyring"

You should use those repositories:

- "deb http://archive.ubuntu.com/ubuntu precise main restricted universe"
- "deb-src http://archive.ubuntu.com/ubuntu precise main restricted universe"
- "deb http://us.archive.ubuntu.com/ubuntu/ precise-updates main restricted universe"
- "deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates main restricted universe"

And recompile:

apt-get build-dep -y gcc-4.9-multilib
apt-get source -y gcc-4.9-multilib

dpkg-source -x gcc-4.9_4.9.2-0ubuntu1~12.04.dsc
cd gcc-4.9-4.9.2
dpkg-buildpackage -rfakeroot -b


How to access Ubuntu 12.04 from a multi-boot system?

You have to repair Windows booting first.

This will write Windows MBR !

Can be done using StartUp Repair from Windows 8 DVD/USB
or use "Dual-boot Repair" utility.

Then you can either triple-boot over Windows boot manager
or over GRUB - it is your choice:

Dual-boot Windows and Linux (Windows boot
manager in control)
Reinstall GRUB to MBR - Using Live CD - section 13


Kubuntu Graphical Desktop Not Displaying $HOME/Desktop Files

KDE doesn't show files on the desktop in the usual way. It has this weird feature where you add folders to be displayed in resizable and draggable boxes. They're essentially widgets that show files.

To add a folder, open the Widget Options (Alt + D) and select the Folder widget. You can then configure it to show whichever folder you want.

Alternatively, right click on the desktop and choose the Folder View option. Make sure the desktop is "unlocked" (configurable).


is there a version of kdiff3 without kde dependencies?

Unfortunately the K in kdiff3 stands for KDE and so relies on many KDE dependencies. Also, I understand development has ceased some time ago on kdiff3.

There is also Kompare for visual diffs, with even more dependencies (as shown by apt show kompare).

There's a chance that kdiff3-qt might suffice for you though, it doesn't have all the features:

  This version of KDiff3 [kdiff-qt] is stripped-down so that it doesn't depend on the KDE libraries. The package "kdiff3" contains the full-featured
   version of the program.

Instead you might want to try Meld (link to alternativeto.net as it shows other alternatives and pros/cons) which also does 3 way compares and has a similar style. It's open source and cross platform.


Based on the good suggestion by PocketSam

Look with aptitude why blcr-dkms why the package is installed, and remove that package if possible. For me, this was the package r-cran-rmpi which I actually don't use but installed with a apt-get install r-cran-* command.

Don't forget to do a apt-get autoremove to really uninstall the blcr-dkms package automatically.

The reason for this package not working is explained here


Lenovo Ideapad s340 running Ubuntu 18.04 does not reboot/shutdown

This is a bug on AMD Ryzen CPUs on kernel versions!
This bug has been solved:
https://askubuntu.com/a/1244512


I have similar hardware configuration in my Asus k56cm, and same questions.

I tried to use flashcache, but I'm having problems. You can see in my historical questions.
Flashcache on Xubuntu 13.04

The better solution I found is using flashcache, instead the others, because kernel recompilation is not necessary, but having only 24gb in the ssd, I think that caching /root is too large. I think the better thing is cache /home


What does suspend mean in Xubuntu 19.10?

The power management sleep states are described in the Linux kernel documentation here. If you take a look in there, the deep sleep corresponds to:

State:      Suspend-to-RAM
ACPI State: S3
Label:      "deep"

And right below that, there's also a more detailed explanation of what this state is all about:

  This state, if supported, offers significant power savings as everything in the
  system is put into a low-power state, except for memory, which should be placed
  into the self-refresh mode to retain its contents.  All of the steps carried out
  when entering Power-On Suspend are also carried out during transitions to STR.
  Additional operations may take place depending on the platform capabilities.  In
  particular, on ACPI systems the kernel passes control to the BIOS (platform
  firmware) as the last step during STR transitions and that usually results in
  powering down some more low-level components that aren't directly controlled by
  the kernel.

  System and device state is saved and kept in memory.  All devices are suspended
  and put into low-power states.  In many cases, all peripheral buses lose power
  when entering STR, so devices must be able to handle the transition back to the
  "on" state.


This just happened to me.  The reason was that there was a package dependency inconsistency that interrupted my upgrade from trusty to xenial, so some package versions were inconsistent.  In my case the inconsistency was caused by squid3 and ca-certificates-java.

I restored the network connection by running just dhclient eth0.  After resolving the package inconsistency by removing the offending packages and running apt-get install -f, I ran apt-get dist-upgrade and apt-get install ubuntu-standard.  This resolved my problem completely.

What led me to suspect the inconsistency is that /sbin/ifup binary contained the outdated dhclient command line with the no longer supported -I option.  It must be a package version inconsistency.


Why does my system show blank screen during startup?

You press Ctrl + Alt + F1 and install newest nvidia driver using the following line:

sudo apt-get install nvidia-current

If you still can't login after restart, boot into recovery mode and run xfix:

login into machine, then go to drivers and activate the nvidia driver.
It's likely that you will have weird boot screen after using proprietary nvidia driver, you can repair it with THIS solution.
good luck.


Juju bootstrap fails with "Temporary failure in name resolution" using Amazon AWS

Alright, so it turns out the ubuntu server I was running the juju commands on wasn't setup properly.

It had a static IP address, gateway and netmask but no dns name-servers listed.
There was no resolution to any dns requests.
I added the the dns-name servers and it all went swimmingly!

Thanks heaps for checking in. I hope listing my resolution here can help someone out one day!


Your /etc/hosts file should look like this:

127.0.1.1 example
127.0.0.1 localhost
104.236.247.139 www.example.com example.com

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

For 127.0.1.1 you have put two same hostnames whereas just one will do. For the IP 104.236.247.139 you have used two different lines to express hostname and alias but you should put the hostname and aliases all in a single line separated by whitespaces, for example:

<IP_Address> <hostname> <alias_1> <alias_2> <alias_3>
104.236.247.139 www.example.com example.com foo.com bar.com


How to reduce free memory to certain number for specific time duration

One could use the kernel trace buffer as a way to reduce available memory left for the system and/or user. Example, using my system with 16 gigabytes and 8 CPUs:

First flush memory, giving our starting point (note that I am running as root):

root@s15:/home/doug/temp-k-git/linux# sync
root@s15:/home/doug/temp-k-git/linux# echo 3 > /proc/sys/vm/drop_caches
root@s15:/home/doug/temp-k-git/linux# free -m
              total        used        free      shared  buff/cache   available
Mem:          15719          88       15472           1         159       15343
Swap:         16085          35       16050

Now, calculate and allocate the memory to the kernel trace buffer: 5% of 15719 megabytyes is 786 megabytes. Starting from 15472 megabytyes, Then 14686 megabyytes need to be used. The kernel trace buffer is per CPU, in my case 8 CPUs, so 1835 megabytes per CPU. Allocate:

root@s15:/home/doug/temp-k-git/linux# echo 1835000 > /sys/kernel/debug/tracing/buffer_size_kb

And check it:

root@s15:/home/doug/temp-k-git/linux# free -m
              total        used        free      shared  buff/cache   available
Mem:          15719       14476         858           1         385         730
Swap:         16085          35       16050

You can observe that it resulted in 5.46% of memory still available (tweek the allocation, if needed). Once you have done whatever testing, then you can de-allocate the kernel trace buffer with (0 does not work):

root@s15:/home/doug/temp-k-git/linux# echo 1 > /sys/kernel/debug/tracing/buffer_size_kb

And check it:

root@s15:/home/doug/temp-k-git/linux# free -m
              total        used        free      shared  buff/cache   available
Mem:          15719          88       15470           1         160       15342
Swap:         16085          35       16050

If you want the time to be 180 seconds, then bundle up the above into a script with a 180 second sleep time. However, you will still have to check the available number as your starting point.


If I were to guess it sounds to me like your Pendrive is corrupted.
the simple solution is to back-up and reformat however if you want to find out if it is really corrupted or not which could be a sign of a failing flash drive use fsck

first back-up your pendrive/card then find out what mount point its under eg. /dev/sdb , /dev/sdc etc.

You can find this information in disk utility under the heading Device:

in the screen shot it is /dev/sdb1

You can then modify these commands and run each

sudo umount /media/disk

sudo fsck -favVr /dev/sdb1

Alternatively you can click "check file system" after unmounting the drive in disk utility

Edit:

I have found another solution to this problem the steps are as follows

Mount the USB Drive you are having the problem with
Open Disk Utility as root open a terminal and enter gksu palimpsest
Unmount the Drive and remove
Plug it back in

Hopefully this will work if all else has failed


If you don't want to hash a trailing newline, use:

printf '%s' 'string' | md5sum >outfile

Most often, one computes a hash, such as an MD5 sum, of the entire contents of a file. You can compute the hash of any string, but there is a twist: many methods of producing a string append a trailing newline character.
Thus, with the newline:
$ echo 'Hello, World!' | md5sum
bea8252ff4e80f41719ea13cdf007273  -

$ md5sum <<<'Hello, World!'
bea8252ff4e80f41719ea13cdf007273  -

$ md5sum <<'EOF'
Hello, World!
EOF
bea8252ff4e80f41719ea13cdf007273  -

$ printf '%s\n' 'Hello, World!' | md5sum
bea8252ff4e80f41719ea13cdf007273  -

Without the newline:
$ printf '%s' 'Hello, World!' | md5sum
65a8e27d8879283831b664bd8b7f0ad4  -

$ echo -n 'Hello, World!' | md5sum
65a8e27d8879283831b664bd8b7f0ad4  -

In all of those methods, you can redirect the output of md5sum such as by writing >outfile next to it to write to outfile instead of your terminal. Depending on your goals, any of them may be reasonable. However, if your goal is to compute the MD5 hash of Hello, World! (or whatever your string is), rather than Hello, World! with a newline appended, then you must not use any of the methods that append a newline.
As shown, echo without -n, here strings, here documents, and printf with \n produce a newline, while printf without \n and echo with -n leave it off. Note that, if your string doesn't contain any % or \ characters (which printf treats specially in its first argument), you can even write:
$ printf 'Hello, World!' | md5sum
65a8e27d8879283831b664bd8b7f0ad4  -

Note that printf is generally preferable to echo.

Finally, for interactive use, there's another way to do it:

Run md5sum (or md5sum >outfile to redirect to outfile).
Enter your string.
If the string you entered didn't end in a newline, press Ctrl+D. This flushes the buffer even though you're in the middle of a line and the buffer is (probably) not full.
Press Ctrl+D again. This flushes the buffer, but it is empty, so md5sum reads zero bytes. This is the "end of file" condition, so md5sum stops reading and gives a result.

This is simpler and faster in practice than I've made it sound. It works because terminals treat Ctrl+D specially. (In the rare event you wanted to send that character literally as part of your string, you could press Ctrl+V followed immediately by Ctrl+D.)
If your string ends with a newline, then skip step 3 as the buffer has already been flushed. That is, if the last key you pressed was Enter (or if you pasted text in and that text ends in a newline, so you are at the beginning of a line) press Ctrl+D just once instead of twice.
Note that, subject to the caveat that you must actually be entering the string into your terminal, this method is fully general. Your string can have other newlines in it. For example, you could type md5sum, then Enter, then hello, then Enter, then world, then Ctrl+D twice, and this gives the same result as printf 'hello\nworld' | md5sum.


How to connect camcorder to Ubuntu via HDMI

The software here is only a half of the solution. The HDMI on laptop is only output, but you need input.
So you need to get USB video capture device first.
Like this for example. I have tested it in Ubuntu, it works.
Then use gUVCview or VLC Player to view the stream, OBS Studio to record it multiplex.


Cannot pair my beats 3 bluetooth headset with Ubuntu 16.04 LTS

Try executing the following commands:

sudo apt install pulseaudio-module-bluetooth
sudo killall pulseaudio
sudo service bluetooth restart

Then, try to connect your device again using Blueman (Bluetooth Manager).


Create User Account on Persistent Live USB Drive

Yes, I have created such an account, and at least one other person has done it too. I did it while running the persistent live system and macho3 did it via chroot.

See these links

Posts #428-432 in 'Howto make USB boot drives'

Post #708 # in 'Howto make USB boot drives' - Persistent live drive with a standard user, that cannot mount internal drives

  Persistent live drive with a standard user, that cannot mount internal drives

  I made a persistent live drive with mkusb from
  ubuntu-16.04.1-desktop-amd64.iso, which has the longest support of the
  present iso files.

  A standard user ID (alongside the normal live system's user 'ubuntu')
  cannot run programs that need sudo: 'standard is not in the sudoers
  file. This incident will be reported.' Partitions on the internal
  drive are not mounted. To mount them, you need sudo permissions both
  for mount and udisksctl.

  The persistent live system will boot into the ubuntu user, and you log
  out in order to switch to the standard user.

  Encrypted home

  It is possible to create the standard user ID with encrypted home and
  login with a [good] password. This can be done easily, if the program
  users-admin is installed by activating the repository universe and
  installing the package gnome-system-tools.

sudo add-apt-repository universe
sudo apt update
sudo apt install gnome-system-tools

  Tick the box according to the screenshot in order to create the new user
  with encrypted home.

  The computer should be shut down or rebooted after using the encrypted
  home. Otherwise the live user (or another user) gets access to
  encrypted data.

  Persistent live drive with a standard user and a user with administration permissions

  I made a persistent live drive with mkusb from
  ubuntu-16.04.2-desktop-amd64.iso, which is a newer LTS iso file, in
  order to test that these tasks work with more than one iso file.

  In some computers, the system may leave you with a black screen after
  logging in (after a logout). This might depend on the graphics driver.
  If it happens, you can do something with the mouse or keyboard to get
  to the desktop. If still no luck you can enter a text screen and then
  return to the graphics screen with the hotkey combinations

  Ctrl + Alt + F1   Ctrl + Alt + F7

  It is possible to create another user ID with administration
  permissions, that can manage system tasks, for example install and
  upgrade program packages (if you want to separate the tasks because of
  security reasons). One (or both) user ID(s) can be made with encrypted
  home if you wish.

  With these two user IDs it will be possible to remove the live
  system's normal user 'ubuntu'. You can do it from the user ID with
  administration permissions after killing the processes that are
  running with the user 'ubuntu'

ps -Af | grep ubuntu  # identify which processes to kill
sudo kill <the PID numbers that you found (without any brackets)>

sudo deluser ubuntu

  After that you can also remove the content in the 'casper-rw'
  partition (or file) concerning the deleted user (if you wish), but
  there is probably not much data, so not very important unless you
  suspect there is some confidential data.

  Now after removing the live system's normal user 'ubuntu', the
  persistent live system will boot to the login screen, and you can
  select which user ID to log in to, the standard user or the user with
  administration permissions. I like this behavior, and I think it is
  worth the extra effort (compared to a system with a standard user
  alongside the normal live system's user 'ubuntu').

  Backup is important

  Frequent backup is important, because it is a

  persistent live system (makes it sensitive)
  an encrypted system (makes it difficult to repair/recover).

  See this link: Backup and restore of persistent overlay
  data

  Security - turn off swapping

  If this kind of system finds a swap partition in the internal drive,
  it will probably use it, and might leave traces that are not
  encrypted. So please turn off swapping if there is a linux swap
  partition in an internal drive in the computer, where you are running
  the system.

  You must log in or 'su' into the user ID with administration
  permissions, 'guru', to turn off swapping

su - guru
/sbin/swapon -s  # check
sudo /sbin/swapoff -a
/sbin/swapon -s  # check
exit

  Comparing this kind of persistent live system to an installed system
  (in a USB pendrive in both cases),

  Advantage:

  more portable (than an installed system).

  Disadvantages:

  less stable (than an installed system).
  less secure (encrypted home is less secure than encrypted disk, which is possible with an installed system). But it might be secure
  enough.


How to run already installed Windows in Ubuntu?

Sure you can't do that since every OS has different kernel to be loaded and other things related to its core image to run correctly.

But you can install windows applications using wine inside ubuntu.


This is perhaps on what is expected as a desktop icon. The answer for me was to install the menu:

$ xdg-desktop-menu install --novendor test.desktop

Only after that xdg-desktop-menu command (and not the -icon command) the .desktop program appeared when searching it in the dash (a.k.a. the menu).

A reboot was not necessary.

Tested on Ubuntu 18.04.1 LTS.


Error when try to enable fingerprint validity vfs0050

Not sure if you are the same bug reported but see this: https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/1878285

I have the same issue with the same model of fingerprint reader device and it looks like it is a known issue upstream and fixed here: https://gitlab.freedesktop.org/libfprint/libfprint/-/commit/90ccf9a0af6df135be09cebb0eeb5906e49d92a6


How to change the login notice on a custom shell?

You can easily disable the printing of the motd with:

touch ~/.hushlogin

as documented in login.1.


Force UEFI installation with LVM now can't boot windows

If the screen shot you've posted accurately represents your current disk state, then I'm afraid you've trashed your Windows installation. If so, it will be very difficult to completely recover it at best, and probably impossible, unless you have a recent backup. I suggest you check out:

How to recover files from a partition that was previosuly NTFS under Wndows but after Ubuntu installation had been converted to ext4?
How do I recover my accidentally lost Windows partitions after installing Ubuntu?
Adam Williamson's blog entry on how EFI works
My page on installing Linux on EFI systems
My page on the CSM

The first two of those links point to questions and answers on this site relating to data recovery. The remaining three provide information on the Extensible Firmware Interface (EFI) and its 2.x variant, the Unified EFI (UEFI), which is the type of firmware your computer has. When you re-install Windows, and eventually Ubuntu, it's important that you understand EFI issues, since you ran into a mixed-mode problem (as described in the final linked page) on your first attempt, and you made the wrong choice. That wrong choice (to force an EFI-mode install) wasn't the key cause of your problem, but if you hadn't wiped your Windows partitions, it would have created another (lesser) type of mess anyhow. Thus, you should understand the EFI so that you can install both Windows and Ubuntu in the same boot mode (both EFI or both BIOS).


How can I find files quicker than find or locate?

I haven't seen an answer that comes near the wishes of Chaitanya. If you want to search on filename, a combination of locate, find, ls and grep could be sufficient. But I think Chaitanya want to search for example for 'all files created before 2011'. This can perfectly done with find, but I can imagine it will take a long time searching through 1TB (depends more on the amount of files, not necessarily the total size). To speed this up I think indexing is inevitable. The problem of locate (indexing with updatedb) is that it doesn't index creation time.

So what Chaitanya need is something that indexes the needed attributes of files (file name, file size, creation date, more?). And later something that can search on these attributes.  As far as I know there is no out-of-the-box solution for this on Ubuntu.

An important comment of Chaitanya: "Now the thing is that I am designing a php based web gui...". Because your problem sounds quite specific, maybe you want to build somehting yourself. Some suggestions:

Index the files in a database (with cronjob) and use SQL to search.
Use Lucene to index and search (Zend Lucene for PHP)


I think the issue is with your screen syntax, try

screen -dmS 'NAMEofSCREEN' bash -c "mono MinecraftClient.exe (user) (password) (IP)"

This would be the correct syntax for giving commands to screen, you can omit the -Sand NAMEofSCREEN but that might make it easier for you to find the screens you are looking for.


UbuntuStdio jackd and Ardour scrambles all sound

be sure to match all sampling rates ( e.g. not mix a 44.1k and a 48kHz Project) , it sounds like you have exactly this problem
check your jackd for xruns , and increase buffers if necessary


Boot full Ubuntu install from external drive through SATA

Installing Ubuntu on Different drive than Windows 10
GRUB will only boot Windows and Linux if they are installed in the same Legacy/UEFI mode

Determine Windows 10 boot mode. Type System Information in Windows Start panel. Under "BIOS Mode" it will say if Windows is Legacy or UEFI.

Unplug the Windows HDD.

Boot a Ubuntu 20.04 Live USB in the same mode as Windows boot mode. A USB made with Rufus MBR partition scheme option will boot either way. If Windows is UEFI use Rufus GPT scheme, See Unable to access Ubuntu from UEFI

If the HDD is empty, at "Installation type" select "Erase disk and install Ubuntu", then complete the installation as directed. For encrypted drive that will boot BIOS or UEFI see: Installing Ubuntu on a LUKS encrypted USB thumb drive

If there is data on the disk you wish to preserve, Install Ubuntu using the "Something else" option.

if asked by Something else, create a 500MB EFI system partition on the Ubuntu HDD.

In Something else, Select the Ubuntu HDD for bootloader installation.

Continue installation as directed.

When complete, Plug in the Windows HDD. Set the New Ubuntu HDD as first hard drive, run sudo update-grub to ensure all bootable drives are on the boot menu.

With drive plugged in you have a choice to boot Ubuntu or Windows if drive is unplugged Windows will boot as normal.


Your errors don't occur for me with VMware Player 6.0.1-1379776 X86-64 on Ubuntu 12.04 - Desktop X86-64. It would be helpful if you could mention whether you are running a 32bit or 64bit operating system, what version number of Vmware Player you are attempting to install, and whether you have done any kernel upgrades.

How To Graphically Install VMware Player 6.0.1-1379776 X86-64 on Ubuntu 12.04 - Desktop X86-64:

Step #1: Navigate to the directory you've saved VMware Player in.

Step #2: Right click on the .bundle file and open the properties menu.

Step #3: In the permissions tab check the box for "allow executing file as program".

Step #4: Open terminal and type "sudo nautilus" as root privileges are needed.

Step #5: Click "ok" on the error message regarding nautilus.

Step #6: Navigate to the directory you saved the .bundle file in, right click, and choose "open" from the menu.

Step #7: Choose "run" as it will allow for graphical installation.

Step #8: Accept the Vmware Player End User License Agreement and click "next".

Step #9: Accept the VMware OVF Tool Component For Linux License Agreement and click "next".

Step #10: Choose appropriate update option to your liking and click "next".

Step #11: Choose appropriate statistics option to your liking and click "next".

Step #12: If you have a plus key you can enter it now, if not don't worry about it, and click "next".

Step #13: Click "install".

Step #14: The installation will begin, please wait for it to finish.

Step #15: Click "close".

Step #16: Search for "vmware player" in your unity search area. Click on "Vmware player".

Step #17: VMware player will open and be ready for use. [You may need to run vmware player as root to download the vmware tools.]


Volume and other indicators disappeared in the classic desktop

from your screenshot, it looks like you have removed the indicator applet complete applet

Alt+Win+ right click the panel to add the applet.  You can similarly remove the other gnome-applets.

If the applet doesnt appear in your list, install the applet from software-center:

or via the command line:

sudo apt-get install indicator-applet-complete


Ubuntu 12.04 , Fan noise, Dell Inspirion 15 R (7520)

(Elaborating on my comment as an answer, to provide more info and in case it is the cause.)

Laptops with Nvidia cards and Intel processors come with a technology called "Optimus." What it does is dynamically switch between the onboard video (Intel graphics) and the discrete video (Nvidia card), depending on the graphics needs. This is designed to help save battery life, while still providing good graphics performance.

The only problem is that Optimus is not supported under Linux by default. As such, it can cause a number of different issues, usually obviously graphics related (screen freezes, generally). That's where the Bumblebee project comes in.

Bumblebee is designed to bring Optimus support to Linux. It's still a relatively recent software, so it's somewhat hit or miss as to whether it will work for you, but it's worth trying.

If Bumblebee doesn't work, there is also the option to turn off Optimus in your BIOS settings. Simply go into your BIOS setup/settings when you first boot your computer (before the operating system loads), find the setting for Optimus, and turn it off. That will then force the operating system to use only one of the graphics cards (usually the discrete one). Do note, however, that doing this will likely make your battery life shorter, due to the increased power requirements of running the discrete card all the time (how much shorter depends on what you're doing and how smart the discrete card is when it comes to power consumption).


LibreOffice "automatic file name extension" box missing

Something is screwed in the settings. I confirmed this on a separate fresh install. Anyway you need to change UseSystemFileDialog from TRUE to FALSE. If you create TSV files this is good to know.

The setting can be found at Tools > Options > LibreOffice > Advanced > Open Expert Configuration > org.openoffice.Office.Common > UseSystemFileDialog > FALSE.


How to copy a file with a filename containg a ":"?

# Creating a mount-point
mkdir Test
# Creating a dummy file to be transferred to the NTFS-partition
touch file:test.txt
# Mounting the external drive on the mount-point
sudo mount -t ntfs -o utf8 /dev/sdc1 ./Test
# Copying file
cp file\:test.txt Test


Wallpaper Clock Screenlet not working in 12.04

Refer this link.

http://www.webupd8.org/2012/08/use-wallpaper-clocks-live-earth.html


How to create the Minecraft launcher button?

The script should read:

#!/bin/bash
cd $HOME/MCserver
java -Xmx1024M -Xms512M -cp minecraft.jar net.minecraft.LauncherFrame

After writing it, you should make it executable, so open a terminal and if the script
is in a file called minecraft.sh (check if the casing is right, upper and lower
case matter!):

$ cd $HOME/MCserver
$ chmod +x minecraft.sh

Finally you must put minecraft.desktop in /usr/share/applications or
in $HOME/.local/share/applications (not both, only one of the two):

Do this if you want all users to have the Minecraft icon:

$ sudo mv minecraft.desktop /usr/share/applications
Or do this if you want only the current user to have the Minecraft icon:

$ mv minecraft.desktop $HOME/.local/share/applications

The launcher should appear in the Unity Dash (so you can search for it typing "Minecraft"). Then you can just drag it to the panel.


Ubuntu 20.04 on W10 PC via Oracle VirtualBox 6.1 cant use USB's of host

I see that yes indeed Extension Packs are something different than Guest Additions.

I found this tutorial helpful:
https://linuxconfig.org/virtualbox-extension-pack-installation-on-ubuntu-20-04-focal-fossa-linux

Now Ive got USB 3 working while Im in Ubuntu... fingers crossed it stays that way


How to Create Persistent USB Key with Ubuntu

In Ubuntu, Debian and many but not all 're-spins' [operating systems] based on them, you can install mkusb and create a persistent live drive according to the following links,

help.ubuntu.com/community/mkusb

help.ubuntu.com/community/mkusb/persistent
In Windows, you can install and use

Rufus, an extracting tool, which is easy to use.
Win32 Disk Imager, a cloning tool, and clone an image file with [a persistent live operating system and] mkusb. See the following links,

wiki.ubuntu.com/Win32DiskImager/compressed-image_2_USB-or-SD

Compressed image file with a persistent live system

In most operating systems (including MacOS), you can also try with Unetbootin according to the following link,

unetbootin.github.io/


How can automatically print a page bigger than an A4 on multiple A4 pages?

That's not an automatic solution, but I found PosteRazor, which allows to "cut" the image in multiple smaller ones with the desired settings (output size, margin size, border overlaying and some others)


Try "R-Linux", it might recover your data and it's got nice GUI:

http://www.r-tt.com/free_linux_recovery/Download.shtml

There's probably also a way to repair broken partition, but I would recover data to another partition with R-Linux first (just in case).

After doing that backup, run DOS tool "HDAT2" from boot disc (like Hiren's Boot CD) and see if those were really bad sectors (it might even fix them for you - but don't count that drive will not fail again).


How can I see/stop current running crontab tasks?

Firstly, use only one command per line in crontab. Change this crontab line:

00 10 * * * /usr/bin/wget LINK ; shutdown -h now

so it looks like:

00 10 * * * /path/to/my/crontab/script1.sh

and create /path/to/my/crontab/script1.sh with this content:

#!/bin/bash
/usr/bin/wget LINK
shutdown -h now

Of course, don't forget to give it execution permission:

chmod +x /path/to/my/crontab/script1.sh

Secondly, you can see running crontab tasks, in a useful and readable format, in the output of:

ps -o pid,sess,cmd afx | egrep -A20 "( |/)cron( -f)?$"

They will appear in the first lines, something like this:

1108  1108 cron
4288  1108 \_ CRON
4289  4289     \_ /bin/sh -c /path/to/my/crontab/script1.sh
4290  4289         \_ /bin/bash /path/to/my/crontab/script1.sh
4295  4289             \_ /usr/bin/wget LINK

First column is PID, second is Session ID and third is the command started by cron. You can kill all the processes related to a specific cron task using the Session ID, so in the example above you should kill Session ID 4289:

pkill -s 4289


How do I create a shortcut to Gnome 3 Activities menu?

This is the correct entry with correct syntax:

[Desktop Entry]
Name=btsync
Exec=/home/ohto/Progs/btsync
Icon=un-reboot.png
Type=Application
Terminal=true


Package jack is not available on Ubuntu 20.04, is it not required?

You can still install it using packages from Ubuntu 18.04 LTS:
cd ~/Downloads
wget http://archive.ubuntu.com/ubuntu/pool/universe/p/pygtk/python-gtk2_2.24.0-5.1ubuntu2_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/main/p/python-pathlib/python-pathlib_1.0.1-2_all.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/e/eyed3/python-eyed3_0.8.4-2_all.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/p/python-cddb/python-cddb_1.4-5.3_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/j/jack/jack_3.1.1+cvs20050801-29.2_amd64.deb

sudo apt-get install ./python-eyed3_0.8.4-2_all.deb ./python-gtk2_2.24.0-5.1ubuntu2_amd64.deb ./jack_3.1.1+cvs20050801-29.2_amd64.deb ./python-cddb_1.4-5.3_amd64.deb ./python-pathlib_1.0.1-2_all.deb


How to install and launch grub-customizer through the GUI?

How have you installed the grub-customizer? It sounds like you downloaded it from their webpage ... well, in Ubuntu installing things is actually even simpler. You have to start the Software-Center and look for the application you want to install (see here for the full description on installing things on linux) - it basically works like the iOS store for Apple or the Play store for Android ...

Then, after installing the grub-customizer in that way, you can start it in many ways - you can go through the list of installed applications, or just hit the Super-key (probably the windows key) and type the apps name (grub or customizer should give you a match in this case)


Automatically do a two-way sync of two directories

Unison

  Unison is a GUI and terminal-based tool which allows files and directories to be kept in sync with each other, between different local directories and drives or on a network, which could be on different operating systems. The application is available for Unix operating systems (Linux and Mac OS X) and Windows. Changes can be made on the different places, and Unison will update the machines with the correct versions of files and folders, copying, deleting, renaming or deleting files and directories as necessary.

Unison sync app is probably the most used and trusted by the Ubuntu/Debian community. It is available at the Software Center and at the package manager. It has a command-line and a graphic user interface (GUI)(GTK).

Unison Homepage

Ubuntu Help Community Wiki - Unison

Ubuntu Manual - Unison

A short use example, close to your request, can be found at Rmano answer (screenshot below).

FreeFileSync

  FreeFileSync is a free data backup software that helps you synchronize files and synchronize folders. It is designed to save your time setting up and running data backups while having nice visual feedback along the way. FreeFileSync is Open Source software, available for Windows, Linux and macOS.

I've never tried but it seems to be worth a shot. It has a default GUI and is under active development.

FreeFileSync Homepage

Synkron

  Synkron is an application that helps you keep your files and folders always updated. You can easily sync your documents, music or pictures to have their latest versions everywhere. Synkron provides an easy-to-use interface and has lot of features. Moreover, it is free, open-source and cross-platform.

Synkron Homepage


why nothing happens when booting through usb?

no it won't check your BIOS setting and enable booting from USB.

If thats already done, i suspect there is some problem with the USB boot disc you created, you may want to recreate a new one, or rather try CD installation method.


Is there something like Tasker (Android) for Ubuntu

If you're discarding cuttlefish because is not available for 13.04, you could install the 12.04 version manually. First you must download and install its dependences:
https://launchpad.net/ubuntu/raring/+package/liblaunchpad-integration-common
https://launchpad.net/ubuntu/raring/+package/liblaunchpad-integration-3.0-1
https://launchpad.net/ubuntu/raring/+package/gir1.2-launchpad-integration-3.0

Then add the 12.04 cuttlefish ppa to your source list and later install it:

echo ' deb http://ppa.launchpad.net/noneed4anick/cuttlefish/ubuntu precise main ' | sudo tee -a /etc/apt/sources.list
sudo apt-get update
sudo apt-get install cuttlefish


Why am I seeing two nm-applets in Xubuntu panel?

Right click on one of the network manager applets, and remove the applet.


Thunar saves its metadata in a special file. You can find it at $HOME/.cache/Thunar/metafile.tbd.

This is a database and can be accessed using tbdtool (that is part of tdb-tools)

Use it like this:

tdbtool $HOME/.cache/Thunar/metafile.tdb

To show the contents of the database use the dump command.

  dump
            Dump the current database as strings.

In your question you also wanted to insert emblems. You can use insert for this:

  insert KEY *DATA*
            Insert a record into the current database.


Problem solved. I misunderstood one of the error messages quoted above, and one of the solutions at the article I referenced did indeed work:

sudo rm /var/lib/apt/lists/partial/*
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install ...

Thank you, WinEunuuchs2Unix. My bad.


Missing date & time from top panel of Unity Desktop - Ubuntu 14.04

Try reseting its configuration

dconf reset -f /com/canonical/indicator/datetime/

If it didn't show up try kill it, it should restart

pkill -f datetime

For similar cases, better to explain how you may get it:

Check if it is running, if yes then possibly a configuration problem

$ ps ax | grep -i indicator-datetime
 2863 ?        Ssl    0:00 /usr/lib/x86_64-linux-gnu/indicator-datetime/indicator-datetime-service
 4043 pts/0    S+     0:00 grep -i indicator-datetime

Check for where is its configuration. Look for /etc/ or dconf in /usr/share/glib-2.0/schemas/. List package files using:

$ dpkg -L indicator-datetime
[...]
/etc/xdg/autostart/indicator-datetime.desktop
/usr
/usr/share
/usr/share/glib-2.0
/usr/share/glib-2.0/schemas
/usr/share/glib-2.0/schemas/com.canonical.indicator.datetime.gschema.xml
[...]

Locate its dconf path:

$ grep path /usr/share/glib-2.0/schemas/com.canonical.indicator.datetime.gschema.xml
    <schema id="com.canonical.indicator.datetime" path="/com/canonical/indicator/datetime/" gettext-domain="indicator-datetime">


hamster database is in ~/.local/share/hamster-applet/hamster.db.

The best way to keep it synced is by moving the file to the Ubuntu cloud or Dropbox folder and then symlinking it back to where it was on all the boxes. hamster is watching for file changes and following symlinks so this way you can have same hamster database on several computers.


Is there a way to show the plugged in removable drives on the {unity} desktop?

Install and try the Unity Tweak Tool, it has lots of options to customize your desktop.

Go into Unity-Tweak-Tool and under System>Desktop Icons, change which ones you want to enable.


How to change unity greeter logo position?

it's not clear really on where you want it. from playing with changing my logo on the login screen, it seems that if you go higher than about 90 pixels for height then it will drop it below the screen..this may vary based on resolution and then to make it move side to side you would need to change your canvas size to something wider and move the image to the appropriate location on the canvas. If you're trying to place it in some completely other location, that's beyond me. some other location like the top


This works for me with Lubuntu 14.04 and Geany 1.23.1:

Open Geany. Click on Edit, Preferences and, in there, view the Startup tab. Make sure "Enable Plugin Support" is ticked. Click Apply. You should now see the Plugin Manager as an entry in the Tools menu.

Changing this option will need to restart Geany.


Since this package is already available in the ppa:the-warl0ck-1989/xfce-appmenu-plugin, you can proceed as follows:

Create a personal PPA using your Launchpad account.
Go to ppa:the-warl0ck-1989/xfce-appmenu-plugin and access View package details > Copy packages.
Select the desired package (say, the one for Precise) and copy it to your personal PPA. Change Destination series to whatever you need (here, 12.10 or Quantal). Ensure that Rebuild the copied sources is selected, which will allow the binaries to be built using the available libraries on the chosen distro.
Click Copy Packages.

These instructions are generic and will work for any package that is already available on a Launchpad PPA, and for any distribution currently supported by Launchpad. They can fail, especially if the chosen distribution does not provide a needed library or a specific version of a library.

But it seems to work in this case. For proof of point, check out the xfce4-appmenu-plugin that I copied to my testing PPA. (Ignore that the version string contains 0.10-0~2~precise1: the package was built against Quantal, as you can check in View package details in the Series column.)


How do I stop Ubuntu from suggesting to upgrade to a non-LTS release?

Open the Dash (By pressing the "Super-Key" / "Windows-Key" / "Ubuntu-Key" / "Command-Key")
Search for "Software"
Open the application "Software & Updates"
Select the "Updates" tab
Next to "Notify me of a new Ubuntu version:" select "For long-term support versions":
Enter your password and press enter
Close the "Software & Updates" application
Allow the system to search for updates:


Eclipse image shows not found image in unity launcher

I created an eclipse.desktop file based on gimp.desktop in /usr/share/applications and with the file manager I clicked on properties, browsed for the proper icon.xpm and then launched it. Funny thing is that if I use a desktop file from another location where eclipse is installed, the icon is still there :)


Please note that we intend to shut off SHA1 completely on January 1, 2017.

Google Chrome's repositories is half-broken since March 18th 2016. So it is issuing the warning.
The problem with the Google source is on Google's end so apt-get is just reporting the issue as a warning. This issue does not stop you from upgrading packages.

You can find the list of all broken and half broken repositories here.

You need to follow sudo apt-get update with sudo apt-get upgrade to see if any package upgrades are available.


I can't install ubuntu... it just boots to windows!

most ppl are smarter than me. But this is how I did it: log in in windows. go to unetbootin.sourceforge.net  download GParted, while you are at unetbootin, make a bootable cd, or usb (of 4 gb size at least) with Ubuntu 14.04 on it, then go back to windows desktop. take out cd, or usb and set it down beside you.  start GParted, and make a seperate partition for ubuntu. I split my HDD 50/50. when you are done with the partitions, close all programs, and then shut down computer. insert cd, or usb and restart computer (be sure to enable boot from cd or usb in bios) press F12 or F2 when given the option. if you did things right, you should boot from cd, or usb. you will then be able to install ubuntu onto the new partition on your HDD, from the cd or usb.  There are great articles on how to use GParted on the web or at unetbootin... I printed the article called "Using GParted" that is at unetbootin. it has screen shots and step by step instructions, to help get you up and running in no time. using_gparted.txt  by patrick. take my advice and learn all you can about GParted FIRST... and have fun


Solved by:

sudo apt-get remove linux-server

sudo apt-get install linux-server


Why does Ubuntu One Files for Android app create an entry in the 'Accounts and Sync' section of the Android settings menu?

The account entry is there to store your Ubuntu One credentials.  This has two benefits:

You can delete your credentials from the phone the same way you would for any other account.
Multiple applications can use the same credentials to access your data on Ubuntu One rather than each application having to request access independently.


That maximum possible number of serial ttys is hard-coded to be 32 via the kernel config setting CONFIG_SERIAL_8250_RUNTIME_UARTS

The /dev/ttyS* char devices will only be functional when the 8250 UART driver finds the serial UARTs on the machine.

The kernel is configured with such a high value because some machines support that many UARTs.


17.04 Wireless dropping randomly on Intel 8265 / 8275

First, I suggest that you turn off power saving in Network Manager. From the terminal:

sudo sed -i 's/3/2/' /etc/NetworkManager/conf.d/*

Next, check the settings in the router. WPA2-AES is preferred; not any WPA and WPA2 mixed mode and certainly not TKIP. Second, if your router is capable of N speeds, you may have better connectivity with a channel width of 20 MHz in the 2.4 GHz band instead of automatic 20/40 MHz, although it is likely to affect N speeds. I also have better luck with a fixed channel, either 1, 6 or 11, rather than automatic channel selection. Also, be certain the router is not set to use N speeds only; auto B, G and N is preferred. After making these changes, reboot the router.

Next, I recommend that your regulatory domain be set explicitly. Check yours:

sudo iw reg get

If you get 00, that is a one-size-maybe-fits-all setting. Find yours here: http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 Then set it temporarily:

sudo iw reg set IS

Of course, substitute your country code if not Iceland. Set it permanently:

sudo nano /etc/default/crda

Change the last line to read:

REGDOMAIN=IS

Proofread carefully, save and close the text editor.

Finally, we notice that the name of the SSID is NETWORKNAME-5G 1. If there is really a space in the name of the SSID, I recoomend that it be changed to something like  NETWORKNAME-5G_1; that is, without a space.

After these changes, reboot the router and the computer and let us know if there is any improvement.


How do I program the GNOME Clock Calendar with Python?

The Evolution-python library lets you access Evolution Data Server in Python.


Sure, first of all, you should be able to install a regular graphical environment after installing the server based ISO.

If you can log into a recovery environment, first choose the networking option to mount your system in read write mode. Then, choose the root prompt option and run the following commands:

apt-get update
apt-get install tasksel
tasksel

This should give options for installing a desktop environment.

If you cannot boot due to the grub error, you should reinstall grub from a live DVD or USB in a chroot environment or just use boot repair if you are not sure how to do that.


I formatted my usb to exFat and started with the Pendrive universal installer.  I got a small error message saying the installation would not be bootable. Is it possible you did as well and missed the error message?
I went back and let the universal installer format the usb stick to Fat32 for me and it now works fine.


How did I do this? - File content removed!

You're looking at output redirection (Bash). By redirecting the regular output 'stdout' to filename, you're overwriting it. Error output, 'stderr' is still shown (in your terminal by default), though. That was the help text you saw.

To actually use the > character in grep as a character to match on, escape it in your shell (Bash), e.g.

grep -c \> myfile

Putting it between quotes, '>' will also work.

A snippet from the above link explains redirection more generally:

COMMAND_OUTPUT >
  # Redirect stdout to a file.
  # Creates the file if not present, otherwise overwrites it.

  ls -lR > dir-tree.list
  # Creates a file containing a listing of the directory tree.
[..]
1>filename
  # Redirect stdout to file "filename."
1>>filename
  # Redirect and append stdout to file "filename."
2>filename
  # Redirect stderr to file "filename."
2>>filename
  # Redirect and append stderr to file "filename."
&>filename
  # Redirect both stdout and stderr to file "filename."


How can I enable bluetooth at boot in Lubuntu 18.10?

After some playing around added the line

bluetoothctl connect "mouses unique id" to rc.local (run at startup)

and now the mouse connects at boot.  Not sure why it wasn't attempting to connect automatically as all settings in bluetoothd main.conf say that it should and its a trusted device.  Maybe a lubuntu or apple issue (magic mouse)


Kernel load time isn't that much affected by using a SSD. It's a small file that gets decompressed to RAM and then runs from there. What is probably taking time is hardware initialization, not I/O.

Check dmesg messages and see if you can find any hardware that is taking that long to init, 12 seconds is indeed slow for current hardware. What is your CPU?

The plot is useless, as it only lists userspace, and your userspace boot time looks good.


Computer gets slow after some time. Sound starts to stutter

I also got same error with VLC. I simply change my Player to KMPlayer.

Its working fine with my lap.

You Can download on here or

sudo apt-get install kmplayer

As well as you can check VLC Player Bugs on launchpad.net , askubuntu.com Question and ubuntuforums.org


get a recent, real ffmpeg build

The fake version in the repository from the Libav fork can not do this. You can download a Linux build of ffmpeg or follow a step-by-step guide to compile ffmpeg.

concatenate/join/combine the audio

Generally the concat demuxer or the concat filter can be used if all of the inputs are similar, but that may be difficult with so many inputs of various formats and properties. Usually I tend to avoid creating temporary files since the concat demuxer or the concat filter alone usually work, but perhaps you can encode them to PCM in WAV and then use the concat demuxer. Assuming there are only audio files in the directory, and your audio files are in ~/Desktop/test:

$ cd ~/Desktop/test
$ mkdir audio
$ for f in *; do ffmpeg -i "$f" -acodec pcm_s16le -ar 44100 -ac 2 audio/"$f".wav; done
$ for f in audio/*.wav; do echo "file '$f'" >> mylist.txt; done
$ ffmpeg -loglevel error -f concat -i mylist.txt -acodec libmp3lame -aq 4 -metadata title="Your Title" -metadata author="Levan" output.mp3


Problem with software-properties-gtk in Ubuntu 18.04 LTS

You have to reinstall two packages - the Software & Updates itself and package with Ubuntu.info:

sudo apt-get install --reinstall software-properties-gtk python-apt-common

and then retry.

Also I would recommend to check integrity of the whole system by using debsums.


Blender 2.91 constantly crashing in Ubuntu 20.04.1

Found the solution! Just had to start the Software Update Manager, go to Additional Drivers, and change to nvidia-driver-450.


You're correct to ask questions about this, so here's a couple of points for you.

Generally, it's somewhat troublesome to install Windows AFTER you've installed Ubuntu. Not impossible though.

Your hard disk was setup as an LVM, and as such, requires some very specific commands to repartition. Not impossible though.

For your case, I'd recommend installing Oracle Virtualbox 5.1. It's a virtualization product that allows you to run another operating system INSIDE of your current operating system. You can find it in Synaptic, or probably the Ubuntu Software Center/Ubuntu Software too (scratch the latter, as it's only the 32-bit version, use Synaptic). You install Virtualbox, then you install Windows to a virtual disk inside of Virtualbox, then you permanently enable a USB connection to your blood glucose meter. All relatively easy, without any chance of messing up your current data.


I'm suffering the same issue and I'm debugging it. While I haven't found the root cause, I've found that the issue is in cogl's glyph cache for Pango. You can use a debugger to clear this cache. I'm going to detail the steps here, but I should warn you that this is a bit of an expert option.

Preparation you need to do once to make the workaround work:

sudo apt-get install gdb gnome-shell-dbg libclutter-1.0-dbg libcogl-pango20-dbg

Then whenever you run into the issue, clear the font cache by running the following command line:

sudo gdb -p `pgrep -u $USER -x gnome-shell` <<<"print /r _cogl_pango_renderer_clear_glyph_cache((CoglPangoRenderer*)(_cogl_pango_font_map_get_priv(clutter_context_get_pango_fontmap())->renderer))"

This works splendidly for me, but I should warn you that if this command goes awry for any reason, it may hang your system. If that happens, a reboot is the only thing that fixes it.

I'm going to investigate further what, exactly, is wrong with the glyph cache, and open a bug report upstream.

Hope that helps!

Explanation of the command line: the part between backticks finds the process id for gnome-shell. That is used to attach the debugger gdb to the process; you need to be root (sudo) to do that. The part between <<<" and " is the function call for clearing the glyph cache.


How do I install and apply a theme for CairoDock?

Open the folder where you have downloaded the tarball with the theme. Do not extract it.

Then go to the Cairo Dock settings : right click on a dock > Cairo-Dock > Configure (first option). Once the configuration window is opened, go to the Themes tab (the last one) > Load a theme (first tab in the second of of tabs). On this tab there is a line which offers to drag and drop the tarball. So drag and drop your tarball for its folder to the text entry at the end of the line. You can also click on Open and select the tarball in the dialog window. Once you do it, click on Apply at the bottom of the window and your theme will be installed.

You can also install the themes which are on the list at the left side of the tab by selecting the theme and then click on Apply at the bottom.

For further informations, you can refer to these web pages :

Cairo-Dock themes' French wiki page : http://glx-dock.org/ww_page.php?p=Gestion%20des%20th%C3%A8mes&lang=fr (fr)
Overview of Cairo-Dock themes : http://glx-dock.org/ww_page.php?p=Our%20Themes%20(an%20overview)&lang=en (en) or http://glx-dock.org/ww_page.php?p=Nos%20th%C3%A8mes&lang=fr (fr)