Why did my Canon or Epson printer stop working after a recent update on 12.04?

This problem was a known bug with Ubuntu's printing subsystem (CUPS), introduced by a recent update towards the end of July.

It has now been fixed (as of August 7, 2012).

The fixed version should be installed as part of your regular Update Manager process within the next few days; if you would like to fix it now, please do the following:

Open a terminal with Ctrl+Alt+T.
Select and copy the below with Ctrl+C, and paste it in the terminal window by right-clicking inside it and then clicking on Paste:

sudo apt-get update && sudo apt-get install cups

Enter your password when asked.
This should fix the problem (a reboot may be needed for some). If you have this printing problem but get the message cups is already the newest version. when you try the above, please wait a few hours and try again - the updated version may not have made it to your local Ubuntu update server (mirror).


Move the files of the tarball and correct permissions/owners

move extracted directory of tarball to /usr/local/
make symbolic link from btsync application from /usr/local/bsync/... to /usr/local/bin/ etc ln -s ...


Try ifconfig wlan0 up or ifconfig ath0 up.


Cannot connect to FTP via Nautilus but FileZilla can

I already solved this problem by implementing a solution from here.
The problem is proxy related, and then by running the following command now, I can connect to ftp by using nautilus.

gsettings set org.gnome.system.proxy autoconfig-url ''
gsettings set org.gnome.system.proxy ignore-hosts ['localhost', '127.0.0.0/8']
gsettings set org.gnome.system.proxy mode 'none'
gsettings set org.gnome.system.proxy use-same-proxy false
gsettings set org.gnome.system.proxy.ftp host ''
gsettings set org.gnome.system.proxy.ftp port 0
gsettings set org.gnome.system.proxy.http authentication-password ''
gsettings set org.gnome.system.proxy.http authentication-user ''
gsettings set org.gnome.system.proxy.http enabled false
gsettings set org.gnome.system.proxy.http host ''
gsettings set org.gnome.system.proxy.http port 8080
gsettings set org.gnome.system.proxy.http use-authentication false
gsettings set org.gnome.system.proxy.https host ''
gsettings set org.gnome.system.proxy.https port 0
gsettings set org.gnome.system.proxy.socks host ''
gsettings set org.gnome.system.proxy.socks port 0

To make it permanent, change the proxy configuration in system settings > networks > proxy to use manual proxy and apply system widely.


I had to kill firefox through terminal. Next time I opened firefox the pop-up reappeared.

FF by default restores your previous session automatically if it detects a crash, hence reloaded the pop-up. (This behavior stops after multiple consecutive crashes.)

  So what do you suggest me to do to be sure about firefox integrity

It is unlikely your system is infected, though you can create a new browser profile or refresh your current one if you are worried your browser has been hijacked.


Timed Shutdown - shutdown after 30 minutes

Install xprintidle. This tool gives the idle time of a user.

sudo apt-get install xprintidle

Make a script autoshutdown.sh which checks for the idle time and instructs the computer to shutdown if idle for 30 minutes.

idle=$(xprintidle)
if [ $idle -gt 1800000 ]; then
    shutdown -h now
fi

Make a cronjob for this that checks from time to time if the system has been idle for too long and if it has been idle for a longer than 30 minutes it will shutdown. Note that the cronjob has to be made for the root user.


One alternative is to backup to a file system in an encrypted container, for example LVM with LUKS encryption, 'encrypted disk'). This is one install option of Ubuntu (I think mainly intended for laptops).

Maybe this link will help you,

help.ubuntu.com/community/ManualFullSystemEncryption

Edit: You can try use the easy method, simply install Ubuntu with 'encrypted disk' in the external drive. You can boot into it in another computer and run rsync via a local network, but you can also connect the drive directly, mount the partition with the correct credentials and use it directly.

It is also important to protect the backup from fire or theft physically (for example by keeping one backup drive in another house or in a safe vault).


I agree with Bodhi, that you can create bootable USB media that fit only slightly more data than the size of the original ISO image. I ran Ubuntu 12.04 (~800 MB) as a live system and installed it off a 1 GiB USB drive without any issues.

Alternatively, you can use a Minimal CD image or create your own Ubuntu remix.


This is a known issue within ipheth that has plagued a couple of projects ever since the iPhone 12 was released. The solution appears to be reducing the MTU value from 1516 to 1514 in the ipheth.c source file, but this breaks ipheth for other iOS devices that are not the iPhone 12. More than this, editing driver source files and isn't something that "anyone" is going to do.
From what has been seen in the field so far:

WiFi tethering with an iPhone 12 running any version of iOS 14 is broken
USB tethering with an iPhone 12 running any version of iOS 14 is broken
Bluetooth tethering with an iPhone 12 generally works ... so long as you don't mind Bluetooth transmission speeds. Note:— Bluetooth 5.0 is 2Mbps— Bluetooth 4.2 is 1Mbps

Ubuntu 21.04 should see this update included in ipheth, and it will likely be back-ported to 20.04 LTS as well. There is little chance of seeing it in 16.04 LTS as that release is nearing EOL.
While this is not a great answer, I hope it gives you something to work with.


Laptop screen shows colors tending to gray

I had several windows from screenshots open.
Each of them lightly shifted colors towards gray, with the result being a noticeable change.
Closing each one of them gradually removed that tendency, finally leading to a "healthy" image.


Don't worry. Kernels can have older brothers.

Kernel versions can just live next to each other on a Ubuntu system. Grub will be configured to boot from the most recent one by default.

I would recommend keeping the one shipped with Ubuntu. In case something is faulty with the ones you've installed yourself, you can easily boot a supported version by holding down Shift in the early boot stage to select the version you want.

To see which versions of the kernel you have installed right now, do:

ls -al /boot/vmlinuz-*

or using the package management:

dpkg -l linux-* | grep ^i

Use packages

As stated in the comments, it's important to use packages rather than compiling and installing from source. Building a kernel yourself is fine, but it's fairly easy to make it a package and use that instead. It's to avoid confusion of your package management and easy uninstallation in case something turns out to be not quite what you expected.


How can I make a folder in a Pen-Drive using terminal?

Actually all mounted devices including system partitions will be in a directory named as media.

Open your terminal and type the following one after one

cd /

cd media

There you can find your partitions including your Pen-Drive or USB device.

Next with cp command you can copy and paste the data from Pen-Drive to system and vice-versa.

Syntax:

cp  <source-path> <destination-path>


Forgot to unblock port 22 for SSH when setting up UFW. FTP port still open. What are my options?

If you've done nothing else yet, blow-away the instance, and redo it. That's the best, simplest, and fastest solution.

Does Amazon have a recovery console for instances? I seem to recall they do. If they do, you could reboot the instance into a rescue mode, chroot into it, and change UFW settings that way.

You might also be able to upload a replacement sshd_config and move sshd to listen on port 80.

Then upload an httpd config that changes its listening port to, say, 8080.

Then reboot, and ssh on port 80.


How can I circumvent MitM attacks on hostile networks?

The same applies for any network you do not trust completely:

Only use TLS (that is to say, only use URLs that begin with https://)
Don't accept any certificates that aren't globally trusted.
Remove certificate exceptions from your browser
If in doubt, use another encrypted network layer like socks over SSH, or use a VPN to a safe network.

You could argue that we should all be doing these all the time anyway.

However, even with these in place, if somebody has had physical access to your computer though, all bets are off. They could add certificates and change certificate settings so your browser, VPN client, etc wouldn't know it was using an intercepted connection when your network proxy re-encrypted it.

Full-disk encryption can help there but I wouldn't put money on it being fool-proof.

Somebody completely paranoid might suggest only ever using a bootable USB stick, with Tor over VPN, but the same applies... If that stick leaves your side for more than a few minutes, it's worthless.


How to List certain amount at the time when running a command that returns lots of lines?

Pipe the result through a pager such as less or more:

apt list --installed | less

Page through using SPACE and quit with Q


I won't go into detail and line out entire Upstart scripts for you since you appear to know how to write them already but I'm going to show you the crucial parts.

From your question I'll use

some_boot_event as the "earlier" boot event that's supposed to trigger the initialisation of the Python program and
stopped hw_boot as the even that's supposed to trigger the execution of the Python program.

This is how it can work:

Refactor your Python program to include a callable entry point that can be called later at an arbitrary time from other modules. (Ideally your Python module/program is already written that way.)     If the program currently executes any non-initialisation task at module load time, i. e. at global scope, you should wrap them inside a method.

E. g. if your module currently looks like this,

#!shebang
import foo, bar
# ... various constant, class and method definitions ...
print("Hello World")

you should refactor it to this:

#!shebang
import foo, bar
# ... various constant, class and method definitions ...

def main():
    print("Hello World!")

if __name__ == "__main__":
    main()

Write a Python module that imports the main module of your Python program, waits for a signal and then invokes the main method of the main module:

#!/usr/bin/env python3
import signal, MyMainModule
# Perform other initialisation tasks if necessary
signal.sigwaitinfo((signal.SIGCONT,))
MyMainModule.main()

If you can’t use Python 3 you can refer to Python 3's Signal.sigwaitinfo equivalent in Python 2.7? for something equivalent in Python 2.
Start an Upstart “service” task with the previous Python program at some_boot_event. Let’s call it my_service_task.
Start a second Upstart “one-shot” task at stopped hw_boot that sends a CONT signal to the previous task:

set -e
kill -s CONT -- "$(initctl status my_service_task | grep -oEe '[0-9]+$')"

If you need to report status information from my_service_task to the task in step 4 you can set up a FIFO before sending the signal in the latter:

#!/usr/bin/env python3
import errno, signal, MyMainModule
# Perform other initialisation tasks if necessary

signal.sigwaitinfo((signal.SIGCONT,))
try:
    return_value = MyMainModule.main()
except Exception as ex:
    return_value = ex
try:
    with open("/var/run/my_service_task.status") as status_fifo:
        print(return_value, file=status_fifo)
except OSError as ex:
    if ex.errno not in (errno.ENOENT, errno.EPIPE):
        raise ex
if isinstance(return_value, Exception):
    raise return_value

On the reading end:

set -e
STATUS_FIFO=/var/run/my_service_task.status
mkfifo -m 0600 "$STATUS_FIFO"
trap 'rm -f "$STATUS_FIFO"' 0 INT QUIT TERM

kill -s CONT -- "$(initctl status my_service_task | grep -oEe '[0-9]+$')"

read return_value < "$STATUS_FIFO"
# Do stuff with $return_value


htaccess not prompting for credentials on Ubuntu server

Just check your browser console in the network menu for the current page request in the header tab.

if you sow 500 Internal Server Error then there is some thing wrong in your server (.htaccess or .htpassword file). You should see 401 Unauthorizedif every thing is working fine.


It depends on the type of application. Graphical apps should be launchable from the Dash. So for example, if you install the calculator app with:

sudo snap install ubuntu-calculator-app

You should be able to:

Open the Dash by pressing the Super key or the Ubuntu button in the launcher
Start typing the first letters of "Calculator"
Click on the Calculator icon to launch the app

Note: if the icon does not appear in the Dash, you might need to log out and log back in. You should only need to do this the first time after you've installed snaps support on the desktop.

Alternatively, you can launch the calculator app from the command line:

ubuntu-calculator-app.calculator

Notice the syntax is $SNAPNAME.$COMMAND. If $SNAPNAME is the same as $COMMAND, as a shortcut you can simply run $SNAPNAME


The best way to install E17 is to install it from the official repositories. You can install it from the Software Center or using

sudo apt-get install e17

You can then select it as your session in GDM (the login screen) using the dropdown menu in the bottom right hand corner, once you have selected your user.

 (image source)

The first time you run it it asks you to choose some preferences. Choose the option for the standard desktop or the netbook desktop if you are on a netbook.

It is quite interesting in a retro kind of way and will take a lot of getting used to if you are used to GNOME (or KDE) and I find it harder to use than GNOME and it doesn't look as nice. However it is certainly functional and seems quite suited to power users.

Note Pingus has no window border because I pinned it to the desktop (an action which is apparently irreversible).


I've been using Clonezilla on and off for perhaps four years and rather heavily for the past year.  Its menus can seem obtuse at first but I find it easy to use.

If you were to create an image of your Corsaire on your raid, you certainly ought to be able to restore that image to the next SSD you purchase, but there's another way to go.  You could use clonezilla to clone the Corsaire DIRECTLY to the new drive and save a step.


How can I share files over a Windows network?

Right-click a folder and select "Sharing Options". Then check off "Share this folder".


According to WineHQ Lucius unless you are trying to run it via Steam using Wine is rated Garbage.

That means that the game will not run in Wine properly or wont run at all.

By the screenshot it looks like you have copy of the game installed, not via Steam, installing the game via Steam would mean you need to buy the game again and risk encountering further issues.


Kernal panic on fresh 14.04 install on Barebone Brix Pro i5-4570R

I run the first update and restart and then I get that log.

Try this AFTER the update, before the restart.

sudo apt-get install linux-image-3.13.0-24-generic
sudo apt-get purge linux-image-3.13.0-30-generic
sudo update-initramfs -u
sudo update-grub2

... or if you have the "-24" kernel (or any earlier kernel) under Advanced options ... - try it.

I've had trouble with all kernel updates AFTER -24.


Installing xvst on ubuntu 14.04? ffmpeg missing

You can install ffmpeg from a personal archive with:

sudo apt-add-repository ppa:jon-severinsson/ffmpeg
sudo apt-get update
sudo apt-get install ffmpeg

Take note of this topic regarding the end of ffmpeg: Is FFmpeg missing from the official repositories in 14.04?


This is a Unity bug.

https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1586491

Looks like it's fixed and will soon be in Xenial's repository. If you want the fix right now, you can enable pre-release updates, then run sudo apt-get install unity/xenial-proposed.


How to make it so that a file can only be executed by root, but not as root?

This answer is complementary to Heather's one (which will work).

First of all, take into account that in Unix (and Linux) if one is able to take root privileges, they can do anything. In the case of Heather answer, nothing will stop your user to just sudo /usr/bin/applicationcommand (with a bit of search for the real path or whatever). But I suppose this is ok with you.

In that case, why do not simply(1):

sudo chgrp sudo /usr/bin/applicationcommand
sudo chmod 750 /usr/bin/applicationcommand

? If the users are able to use sudo, it means(2) they are in the sudo group; the above commands make the applicationcommand readable/executable only to members of the sudo group. When they run it, however, they will run it as their real user, as any other command.

However, the "classic" Unix solution is:

create a group, call it privileged.
sudo chgrp privileged /usr/bin/myapp and then sudo chmod 750 /usr/bin/myapp.
add the user(s) (unprivileged!) that you want to be able to run the app to the group privileged

and now the user will run myapp as its user, without any need to have sudo privileges.

Notice that if you want the application to run as a different user, you can use the set-uid mechanism combined with the above techniques.

Footnotes:

(1): Notice that you can't do this if the application has a set-gid flag (it happens with some mailer, for example). Check it before changing the group of the binary.

(2): in most configurations. sudo can be fine-trimmed (see man sudoers) in zillions of way, so the effectiveness of this simple hack will vary depending on how much you have customized it.


From the terminal run:

sudo apt-get install python3-numpy

This package contains Numpy for Python 3.

For scipy:

sudo apt-get install python3-scipy

For for plotting graphs use  pylab:

sudo apt-get install python3-matplotlib


Hard Drive Partition: Optimal Transfer Size

I have a similar drive, the WD20EFAX-68FB5N0, accessed through UAS. I am not 100% sure, but after reading the links below I think this line in itself is no reason for concern. It seems it actually indicates the kernel you use has an important fix.

It seems it is caused by the drive incorrectly reporting an optimal transfer size of 0xFFFF, which if you multiply it by 512 bytes is 33553920 bytes. The Linux kernel does a sanity check on that value and in this case concludes it must be incorrect because it is not a multiple of the drive's physical block size of 4096 bytes. Therefore, the kernel ignores the reported optimal transfer size and reports that by logging the line you mentioned:

Optimal transfer size 33553920 bytes not a multiple of physical block size (4096 bytes)

Probably when you run lsblk -t, OPT-IO is now reported as 0.

# lsblk -t
NAME                                             ALIGNMENT MIN-IO OPT-IO PHY-SEC LOG-SEC ROTA SCHED       RQ-SIZE  RA WSAME
sdb                                                      0   4096      0    4096     512    1 mq-deadline      60 128   32M
├─sdb1                                                   0   4096      0    4096     512    1 mq-deadline      60 128   32M
└─sdb2                                                   0   4096      0    4096     512    1 mq-deadline      60 128   32M

Before the Linux kernel implemented this sanity check, the wrong optimal transfer size actually led to partitioning tools choosing wrong partition start locations, see http://gparted-forum.surf4.info/viewtopic.php?id=17839

The sanity check was introduced and also backported to some older kernels around February/March 2019:

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.1&id=a83da8a4509d3ebfe03bb7fffce022e4d5d4764f
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v4.19.13&id=852a4ab292bbc878eb137cbc2197b7282c71ba5e

If you created partitions before that time, you can use fdisk -l to see if their start locations are divisible by 8 (sectors of 512 bytes) or 4096 (bytes). Normally fdisk -l will complain quite clearly about partitions not starting on the physical sector boundary. See Partition does not start on physical sector boundary? for that.


I did something similar, but without LVM and encryption. You may perhaps still find something from the instructions here, especially if your system boots via EFI.


Changing Wine dlls overrides configuration from terminal

You can use WINEDLLOVERRIDES environment variable

export WINEDLLOVERRIDES="shell32=n,b"
wine ...

or inline:

WINEDLLOVERRIDES="shell32=n,b" wine ...

May be its better to create a new profile that specific application.

Open Wine Configure or winecfg from command-line.
Go to Applications tab → Add application
Select that profile then go to Libraries tab and add needed DLL overrides.

Reference:

man wine


Connected to ethernet but no internet or outgoing connections

If enp3s0 is your default interface for Ethernet connection, then we can see that there is no IP assigned to it.

Try the following command:

  ping www.google.com

If the pong is successful then there is internet  connection. If you find the output as

  cannot resolve host

Then you need to check your network configuration page to find whether DHCP and DNS is enabled or not.
Can you please provide the output of

  /etc/network/interfaces

file. For Ubuntu 16.04 location may vary.


Need to deploy Windows 8 and Ubuntu to multiple machines

One possible solution could be to use something like FOG or CloneZilla. I haven't used CloneZilla, but I have used FOG. With FOG, you set up a sample computer the way you want it to be (partitions, LVM, GRUB, Windows, the whole shebang), then upload the image to FOG, and deploy that image on the other systems. You can have multiple images, and a lot of other things which I haven;t tried yet.


High noise in background while playing audio in Ubuntu 16.04

try installing reinstalling latest audio driver for your system, and if that does not work , try installing gnome alsa mixer through terminal with the following command
sudo apt-get install gnome-alsamixer


Changing the line options nvidia-drm modeset=1 to options nvidia-drm modeset=0 solved my issue. To find in which file this setting is present, run the following command:

grep modeset /etc/modprobe.d/*
grep modeset /lib/modprobe.d/*


How can I open irc:// links in Pidgin from Chromium?

OK I found it!So I will answer here.

FOR UBUNTU(>=11.04)

Gconf settings(/desktop/gnome/url-handlers) didn't do anything since as of Natty the file-open functionality is handled by gvfs-open, which doesn't use gconf settings. Rather, gvfs-open looks at the ".desktop" files bundled with each application to determine what file types can be handled.if it is not installed, run :

   sudo apt-get install gvfs-bin

In all x-scheme handler urls( like irc://, xmpp://, sip://, aim://) are handled by purple-url-handler.We are going to create a desktop file for it.

gksudo gedit /usr/share/applications/purple-url-handler.desktop

& put following content in it:

[Desktop Entry]
Name=Purple URL Handler
GenericName=Internet Messenger
Comment=URL handler forGoogle Talk, Jabber/XMPP, MSN, Yahoo and more
Exec=purple-url-handler %U
Icon=pidgin
StartupNotify=true
Terminal=false
Type=Application
MimeType=x-scheme-handler/irc;
Categories=Network;InstantMessaging;
X-Ubuntu-Gettext-Domain=pidgin

Now to make irc:// links open with purple-url-handler run :

xdg-mime default purple-url-handler.desktop x-scheme-handler/irc

This informator is stored in ~/.local/share/applications/mimeapps.list.

Now when you click any irc:// link in chromium for the first time, the following prompt will appear:

Select remember my choice & launch application. If you are already logged in it will open the room in pidgin.

DONE!


How to stop all "play" commands currently running in other shells?

Well, as you already intuitively thought, killall play is the way to go.

What it does is to terminate all running processes with the name "play" by sending them the signal SIGTERM.

You can read more about it in its manpage by typing man killall or visiting it online.


What can I do when Ubuntu 12.10 begins to work slow?

check you boot up service and install BUM (Boot Up manager)

sudo apt-get install bum

install ubuntu tweak and try janitor to clear cache files

sudo add-apt-repository ppa:tualatrix/ppa
sudo apt-get update
sudo apt-get install ubuntu-tweak

try to install preload service

sudo apt-get install preload

I hope these tips may be able to help you


Why does my Windows 10 installed in a KVM virtual machine, need an installation iso?

Windows 10 is booting from the iso Virtual Disk instead of booting from the installed Windows 10 guest OS that is listed in Virtual Machine Manager. Remove the Source path to the Windows 10 iso in the CDROM in Virtual Machine Manager as shown in the below screenshot.


Is there a way to install i386 packages w/ it's i386 dependencies?

In 12.04, gdebi will install i386 packages on amd64, but it doesn't on oneiric.

Also, on oneiric, libxcb-render-util0 isn't available. (It was moved to a separate package, which was only added in precise.


What do I do when APT (or another process in a terminal) seemingly stalls on an empty line?

I would check the /var/log/apt/term.log. This is the default location for the apt-get log.

Next, but this is what @Sergiy Kolodyazhnyy  already mentioned I would use the
strace¹ to check what exactly is happening in here.

Probable I would use, apt-get update and check what will happen, then I will do the apt-get upgrade.

Hopefully this all makes sense.

You can also use strace -p to check the process and strace -o to a file.

¹ strace apt-get update


You'll first have to set up the NTFS partition to be automounted (see this answer), then you can set up the appropriate links as @mikewhatever suggested.

Along with this you might also need to update the entries in the ~/.config/user-dirs.dirs file for it to apply a specific user, or /etc/xdg/user-dirs.conf for all users.

In my case (under Ubuntu 12.10) I moved my Documents folder to a backup location before replacing it with a link to a folder on an NTFS partition. But afterwards Nautilus, LibreOffice, etc. still defaulted to the old folder until I updated the user-dirs.dirs file.

For more detail, see this answer.


Solved with updated packages from the Ubuntu repository, specifically:

libsmbclient:amd64 (3.6.3-2ubuntu2, 3.6.3-2ubuntu2.1)
smbclient:amd64 (3.6.3-2ubuntu2, 3.6.3-2ubuntu2.1)
samba-common:amd64 (3.6.3-2ubuntu2, 3.6.3-2ubuntu2.1)
samba-common-bin:amd64 (3.6.3-2ubuntu2, 3.6.3-2ubuntu2.1)

My error was not listed in the changelog, therefore it is feasible that a simple reinstall might be the only thing that was needed.


Have you tried a paper clip? Many CD drives, particularly older models, have a small hole into which you can insert the end of a paper clip and force the tray open.


Was my bios updated? Scary two minutes with black screen, system beeps and total unresponsiveness

A BIOS will never ever update itself and will only update when you tell it to do so. At the moment it requires a manual download, setting the download executable and follow the instructions for installing (sometimes you can load it from bios, others tell you to make a bootable medium).

Regarding the article: Lenovo is joining the Linux Vendor Firmware Service, better known as the LVFS. That is still in the future.

  The laptop started system beeps every 5 seconds or so

Beeps are an indication of hardware failure.  Here is a list of hardware errors for Lenovo. But you need to also remember if those beeps are short or long ;)

  I do know that a package with the word "firmware" in it was updated that day

Most likely linux-firmware and that is "Firmware for Linux kernel drivers".


I don't think you can use the same port for both HTTP and HTTPS. Try changing HTTPS to a different port in Firefox and your cntlm configuration file.


How to revert VLC media player to its original state?

You can reset your VLC media player settings by renaming your current VLC media player configuration folder.  Execute the following command in a terminal:

mv ~/.config/vlc ~/.config/vlc.old

If VLC media player  still does not open correctly you can try reinstalling VLC media player:

sudo apt-get remove --purge vlc
sudo apt-get install vlc

Before running VLC media player , make sure it is not still running:

ps ax | grep vlc

This should not return anything. If it does execute the commands below until the ps command keeps quiet (does not return anything any more). Start with the first, and then use the next until it gets killed successfully:

pkill vlc
killall vlc
killall -9 vlc

Notes:

You can probably delete your old configuration folder with rm -rf ~/.config/vlc.old.


Switched greeting on Ubuntu System; now doesn't Work

How did you switch it?
If the text-mode login screen says your password is wrong, then your password is wrong. The end. If you used special characters that are not on a plain US English QWERTY keyboard then maybe you can't enter it without it being configured. In which case, Google for instructions on how to reset the password and pick one that can be entered with only any plain ASCII characters.


I had the same exact problem in Ubuntu 20.04
Funny enough, as well wanting to compile SFML.
You were almost there actually with the CMAKE_C_COMPILER_WORKS. However the correct options is CMAKE_CXX_COMPILER_WORKS


Using init 0 shouldn't harm the system itself, as it should run through all the necessary stuff. But you should make sure that you manually exit out of all your apps first. The safest thing would be to log out, then hit Ctrl+Alt+F1 to log in on the console and shut down from there.


Which packages cannot access physical hardware under virtualized environment?

If you start with Ubuntu's cloud images, then there's nothing hardware-related to remove. This won't help with your current VMs, but is an easier starting point for your future VMs.

Here's an example of getting started using KVM and cloud-images:

Everything you need, including KVM, is a dependency of the wonderful uvtool package. No PPAs, this is all stock Ubuntu main.

$ sudo apt install uvtool

Download a cloud image. It's 400MB, so it takes a couple minutes. Don't panic about a lack of feedback - let it run.

$ uvt-simplestreams-libvirt sync release=disco arch=amd64

Create the VM:

$ uvt-kvm create my_VM_name release=disco

There - it's running now. You can use virsh to control the VM (suspend, resume, shutdown, start, list, etc). You can SSH into it, or use virt-viewer.

Alternately, if you don't want to use uvtool, you can download cloud images from https://cloud-images.ubuntu.com/


How to open a desktop shortcut from commandline

You can do the following to make the association between the launcher and its command stronger:

1.) Launch eclipse from the command line

2.) Execute xprop WM_CLASS from a terminal and note down one of the quoted strings

3.) Edit your launcher with the following line:

StartupWMClass=$WM_CLASS

where $WM_CLASS is one of the quoted strings.

For this to work please make sure your .desktop launcher is located somewhere, where it's recognized by the system, e.g. $HOME/.local/share/applications or /usr/share/applications.


Easystroke was a great gesture's app, but it hasn't been actively supported for many years.

There is a small community that's still generating patches to keep it running. See here for some info.

I stopped using it as it got very difficult to keep up with the patches, and to keep it working.


You need to change

Alias /p5.js/ "/home/ut/programmes/Programmation/p5-linux/Projets/"

to

Alias "/p5.js/" "/home/ut/programmes/Programmation/p5-linux/Projets/"

Or:

Alias /p5.js/ "/home/ut/programmes/Programmation/p5-linux/Projets/"

to

Alias "/p5.js" "/home/ut/programmes/Programmation/p5-linux/Projets"

Source:

https://httpd.apache.org/docs/2.4/mod/mod_alias.html#alias


Why lspci outputs the wrong id of my discrete graphics card?

lspci is using a table of pci codes coming from http://pciids.sourceforge.net/v2.2/pci.ids
According to that list the device 10de:0df5 is NVIDIA Corporation GF108 [GeForce GT 540M]

Maybe this is wrong and should be reported there, that eventually the next release of pciutils includes the corrected information? http://pci-ids.ucw.cz/read/PC/10de/0df5

(I do not have such device myself, so I cannot confirm)


Can we get Xenserver VMs provisioned by MAAS?

We don't support managing VMs with MAAS - though I'm glad it's working for you - so the answer is that we don't support Xen VMs directly from MAAS either. MAAS really is intended only for managing physical machines.

However, you can use MAAS with Juju to deploy OpenStack; the nova-compute charm has support for Xen.


How to build a 32-bit deb file on a 64-bit machine?

you can simply specify the architecture via -a in debuild:

debuild -a i386

Although in most cases that won't work. pbuilder is a fantastic tool which provides you with a clean Ubuntu/Debian system inside you environment which you can specify the architecture of.

man pbuilder has all the info you need you create your 32-bit archive. Here's a couple of useful commands for you inside pbuilder:

sudo pbuilder --create --architecture i386
sudo pbuilder --build mypackage.dsc

pbuilder's user manual


Has the support for the Python language been removed from the SDK?

Scopes are transitioning to C++

The reason you might find it hard to find official tutorials for python is because Canonical is transitioning scopes to C++ (this is linked from the official Cookbook page).

You can still use python to write scopes, but it's not the primary target of Canonical... which is sad, I personally love python.


Where can I get hold of SPICE guest tools for Lubuntu?

By now you might have noticed Lubuntu’s screen resolution is small
with extra black spaces on the left and right side, and folder sharing
is not enabled too. This brings up the need to install guest tools on
Lubuntu.
Launch terminal program from the guest session (not your
host terminal program) and install the guest tools using the below
command:
sudo apt install spice-vdagent spice-webdavd

Reference


Is it safe to update an iPhone's firmware with VMWare?

Short and simple answer:

  No, it generally is not safe to upgrade firmwares through a virtual machine.

Having said that I have to admit that I have done firmware upgrades through a Virtual Box Windows guest (though not with an iPhone) without any problems. It may work fine in most cases. But as soon as the VM has proplems related to the virtualization you may end up with an incomplete firmware upgrade that may render your device unusuable.

Therfore it is recommended and much safer to upgrade a firmware by using another machine running with the OS the upgrade software is designed for.


-bash: syntax error near unexpected token '('

You have to use quotes to protect

function(){%output%}).call(window);

from the shell:

java -jar -XX:-TieredCompilation node_modules/google-closure-compiler/compiler.jar --flagfile="/tmp/499a750e-98bc-4afa-b333-fb08fa71351e" --js=/home/ubuntu/santa-tracker-web/components/closure-library/closure/goog/base.js --externs=node_modules/google-closure-compiler/contrib/externs/google_universal_analytics_api.js --compilation_level=ADVANCED_OPTIMIZATIONS --warning_level=VERBOSE --language_in=ECMASCRIPT6_STRICT --language_out=ECMASCRIPT5_STRICT --define=santaAPIRequest.BASE="https://santa-api.appspot.com/" --output_wrapper='(function(){%output%}).call(window);' --rewrite_polyfills=false --generate_exports=true --export_local_property_definitions=true --jscomp_warning=accessControls --jscomp_warning=const --jscomp_warning=visibility --js_output_file="santa.min.js"


How do I prevent 'cd' command from going to home directory?

Use gedit ~/.bashrc and insert these lines at the bottom:

cd() {
    [[ $# -eq 0 ]] && return
    builtin cd "$@"
}

Open a new terminal and now when you type cd with no parameters you simply stay in the same directory.

TL;DR
If you want to be really elaborate you can put in a help screen when no parameters are passed:
$ cd

cd: missing operand

Usage:

    cd ~            Change to home directory. Equivelent to 'cd /home/$USER'

    cd -            Change to previous directory before last 'cd' command

    cd ..           Move up one directory level

    cd ../..        Move up two directory levels

    cd ../sibling   Move up one directory level and change to sibling directory

    cd /path/to/    Change to specific directory '/path/to/' eg '/var/log'

The expanded code to accomplish this is:
cd() {
    if [[ $# -eq 0 ]] ; then
        cat << 'EOF'

cd: missing operand

Usage:

    cd ~            Change to home directory. Equivelent to 'cd /home/$USER'

    cd -            Change to previous directory before last 'cd' command

    cd ..           Move up one directory level

    cd ../..        Move up two directory levels

    cd ../sibling   Move up one directory level and change to sibling directory

    cd /path/to/    Change to specific directory '/path/to/' eg '/var/log'

EOF
        return
    fi

    builtin cd "$@"
}


How to install Synaptics touchpad manager with terminal?

sudo apt-get install kde-config-touchpad

See this answer on how to download apps via the terminal by copying their names.


What is the format of .img files created by gnome-disk-utility?

Yes the .img files should be restorable with dd but you can also do it from the disks tool itself if you are less confident with the command line.

To restore using the disk tool , select the partition you want to restore to , click the cog and select 'restore partition image'

If you are unsure about the type of a file you can check it using the 'file' command, this knows how to recognise pretty much any file format.

heres the output from an image i took of a windows restore thumbdrive using gnome disks. We can see that its a whole disk image because

amias@rome:~$ file windows-restore-thumbdrive.img
windows-restore-thumbdrive.img: DOS/MBR boot sector, code offset 0x58+2, OEM-ID "MSDOS5.0", sectors/cluster 8, reserved sectors 2306, Media descriptor 0xf8, sectors/track 63, heads 255, hidden sectors 2048, sectors 15628288 (volumes > 32 MB) , FAT (32 bit), sectors/FAT 15231, reserved 0x1, serial number 0x1e112916, unlabeled

To restore using dd to the fifth partition of the second disk (/dev/sdb5):

dd if=yourimage.img of=/dev/sdb5

You can only create images of a partition using the disk tool and not an entire disk.

Don't forget to update your boot loader after changing your disks if you want to boot from them. For the vast majority of cases this is done by running :

update-grub2


How to copy 12GB file from Ubuntu 19.10 to Android if My RAM size is 8GB

1/ You just have to split your file with the following command:

zip --split-size 1g zipfilename name_of_your_movie

This will split your file to multiple zipped parts of 1Gb each, that you can move one by one.

2/ Then re-assemble the parts with the following command:

zip --split-size 0 zipfilename.zip --out unsplitted

This will create a unified zip file named unsplitted (this would be ironic if the movie your moving is "Split" :P )

3/ Unzip the unsplitted.zip file: unzip unsplitted.zip, and voila!


How do I clone Ubuntu and Kali Linux (dual boot) from an old internal HDD to a new internal HDD without losing any data?

Copy the entire drive from one to another. The destination drive needs to be bigger or at least the same size as the source:
Boot into an install cd/usb, "try without installing"
Open gnome-disks or gparted or sudo fdisk -l: So you can identify which drive is which.
Open a terminal
sudo dd if=/dev/sdX of=/dev/sdY bs=1M status=progress
substituting X and Y for the device names you found on your system
/dev/sdX - (the old drive) the entire device, not just a partition(ie sdX1,sdX2).
/dev/sdY - (the new drive) again your writing to the entire device.
Should take a while depending on the size.


Dual boot Windows 8.1 and Ubuntu on a hybrid drive via LiveUSB

I recommend you read the following two pages:

My Web page on installing Linux on EFI-based computers
The Ubuntu community documentation on EFI installations

Keep in mind that your disk probably appears to be a single disk to any OS, including both Linux and Windows, so you shouldn't need to do anything special with it -- at least, not compared to other EFI installations. (EFI normally uses the GUID Partition Table [GPT] rather than the older Master Boot Record [MBR] partitioning system.)

Your claim that you installed Ubuntu via WUBI is suspect. The last I heard, WUBI did not work with EFI-based Windows installations, which essentially all Windows 8 and 8.1 pre-installs are. Furthermore, WUBI is on the way out, so using it on a new installation is inadvisable because it may become difficult to support such installations in the near future. Overall, I suspect that you installed in some other way and for some reason you think it was WUBI, but it wasn't.

If you need more advice, I recommend you run the Boot Info Script, post the RESULTS.txt file that it produces to a pastebin site, and post the URL for your document here. That will give us a better idea of your current configuration.


How can I regain internet access? (Lost after power outage)

fsck starting and stalling looks like a known bug in recovery.
Go to "root shell" and type mount / -o remount,rw. Then exit that shell and try "Enable Networking" again.


How much space does Ubuntu use on a persistent pendrive with the updates?

A Full install of 12.10 will work on an 8GB stick leaving about 3 1/2 GB for data, updates etc.

A persistent install will work on a 4GB stick, but don't do updates, they will quickly fill the drive and make it unbootable.  The max size of the casper-rw persistence file is 4GB, (unless you are using persistent casper-rw and home-rw partitions).

If you absolutely need to do mass updates do a Full install.


No Sound Using Ubuntu 12.10 on Toshiba Satellite P100

I had this same problem. open your start menu, go to media playback, go down to PulseAudio volume control. go to output devices sand click the little speaker icon to the left of the green checkmark at the top left corner of the window. hope this helps!


How do I change the default file manager back to Nautilus?

This did it for me, after I google for a while:

xdg-mime default nautilus.desktop inode/directory application/x-gnome-saved-search

I also typed:

gsettings set org.gnome.desktop.background show-desktop-icons true


Googling it comes mainly to specific solution taking about presence of gcc and other packages.

Check if gcc is installed else install it:

sudo apt-get install gcc

Also you need to install those packages:

sudo apt-get install build-essential python-dev


How do I rename photos based on their shotwell titles?

As there is no other answer showing how to actually rename photos with the titles added in Shotwell, here is a quick way to script it using bash, as you say in the comments that you already have a python alternative. There may well be other ways of doing it, but this one might be useful for someone.

As you have already given your pictures a title in Shotwell and exported them, and found out where the metadata is stored that Shotwell adds, it is relatively straightforward to put a script together.

Please install libimage-exiftool-perl, as that will be necessary for the script.

1) If you use exiftool -a G1 -s pic.jpg, you can see all the metadata types and tags embedded within a picture, and also where Shotwell places the metadata:

[XMP-photoshop] Headline                        : 002
[XMP-dc]        Title                           : 002
[IPTC]          Caption-Abstract                : 002
[IPTC]          Headline                        : 002
[IPTC]          OriginatingProgram              : Shotwell
[IPTC]          ProgramVersion                  : 0.13.1+trunk

2) Now either the XMP-photoshop or the IPTC tags can be used with exiftool in our script to show the metadata (and then use that resulting value to rename the file).

Entering exiftool -IPTC:headline pic.jpg results in

Headline                        : 002

and this can be parsed with awk and fed back as the variable to rename the file:

mv -i "$i" "$(exiftool -IPTC:headline "$i" | awk -F ': ' '{print $2}').jpg"

3) The final script would be like this:

#!/bin/bash

for i in *.jpg
do
    mv -i "$i" "$(exiftool -IPTC:headline "$i" | awk -F ': ' '{print $2}').jpg"
done

So, now all your files have been renamed with their Shotwell titles, as we see when we examine one with exiftool -a -G1 -s pic.jpg:

ExifTool Version Number         : 9.12
File Name                       : 002.jpg

Notes:

The repository version of exiftool is fine, but is quite old, so if you need support for various new features and bugfixes, see the official site for how to build and install the more recent version.
All of the metadata is preserved unchanged by the script, as only the actual file itself is being renamed.
The script will obviously only work if your pictures have titles created with Shotwell embedded within them, but it could be adapted for other purposes.
There may also be an alternative way to do this with exiftool, without invoking awk, so I will investigate further.

For more general information, see man exiftool or the Ubuntu manpages online.


When I redirect to a "tty" where does it actually go on that "tty", is it "stdout" or "stderr"

Presumably your command is not right; As it stands it will save the string "Hello" to a file named 2 i.e. tty/pts/2 (if the intermediate directories exist).

Perhaps you meant:

echo "Hello" > /dev/pts/2

which will send the string "Hello" to the 2nd pseudo terminal.

Now, the STDIN, STDOUT and STDERR of the process running inside the terminal are bound to the pseudo terminal itself, so it is not really possible to single out the file descriptor of the process running within the terminal.

You can check that in /proc, by reading the file descriptor the shell that is running within a terminal, you will see that the standard streams are actually symlinked to the pseudo terminal.

For my zsh runing on pseudo terminal /dev/pts/46:

/proc/self/fd% tty
/dev/pts/46

/proc/self/fd% ls -l
lrwx------ 1 foobar foobar 64 Jun 13 15:07 0 -> /dev/pts/46
lrwx------ 1 foobar foobar 64 Jun 13 15:07 1 -> /dev/pts/46
lrwx------ 1 foobar foobar 64 Jun 13 15:07 2 -> /dev/pts/46


How can I make xrandr customization permanent in Lubuntu 14.04?

Remove LXRandR configuration file.

Create a ~/.xprofile (ensure that it is executable) with xrandr command as content. Solution was found via https://wiki.ubuntu.com/X/Config/Resolution#By_Session_with_.xprofile

With external monitor unavailable it will cause message to appear and it will not cause further problems.


Ubuntu 20.04 not starting without nomodeset on Lenovo Titanium

I solved it by applying this patch: https://crazy.dev.frugalware.org/Intel-i915-backport-MSO-fixes-to-kernel-5.12.patch
to the 5.12 kernel source from here https://github.com/xanmod/linux.
This sounds difficult but is fairly easy. Takes around 10 minutes of work (and another hour where your computer works for you).
The result is a kernel that seems to work nicely with Pop!_OS, so it should also work with Ubuntu and other Debian-based systems that can run xanmod kernels. Detailed steps how this is done are found here: https://gist.github.com/simonheb/b54b91358c3d7e2960a4f6e13e95ac54


geany 1.32 - change color of bracket matching 18.10 MATE

Visit geany-themes. The README describes how to download and install color schemes for Geany 1.22 upwards.

Once that's done, in Geany, View > Change Color Schemes … will allow you to scroll through available color schemes such that you can see the effect of each theme on how matching occurs.

In the image below, I've opened /etc/skel/bashrc and placed the insertion cursor immediately to the right of one }. With the Slush and Poppies theme, both } and the matching { are highlighted. The same applies to {} and () pairs.


Can't use sudo and couldn't access root user to fix it after running chmod -R 777 /usr/

sudo chmod -R 777 /usr;sudo chown www-data:www-data /usr/ broke your system irretrievably. There are two methods of recovering from such an error. First, and by far the easiest, is to reinstall Ubuntu. The second is to find the correct ownerships and permissions of each of the approximately 542,574  files and directories in /usr, and change each file or directory to the correct value for each one.


How to install Open Broadcaster Software (OBS) on Ubuntu 15.10 :/

To install OBS on Ubuntu 15.10, simply run these two commands in a terminal:

sudo add-apt-repository ppa:obsproject/obs-studio
sudo apt-get update && sudo apt-get install obs-studio

It should automatically resolve and install the right dependencies.


How to set console language to English in KDE?

You need to edit /etc/default/locale. This command should do it:

sudo update-locale LANG=en_US.UTF-8

Then, after next reboot, the language should be English also in console.


proxy setting in network option doesn't work. Ubuntu 18.04

The problem was with Firefox, I installed google chrome and it works very well with proxy added in network options, but still I don't know what was the problem with Firefox.


size of snmp package is 154 kB
installed version is 550 kB

Installing for an off line system can be done with several methods:

You can start at the Ubuntu packages site.

Search for the package name in the Ubuntu version you need.
Download all the DEBs that state "depends" unless you can determine your system already has that version Do the same for all the DEBs that are inside the link to that package.
Decide if you need the "recommends" packages and if so download them too. Including all the DEBs in the link of that DEB.

From a running system that is the same version (ie. both are 17.10):

If you have a running system you can have that system download all the packages. By downloading snmp it will also download all the needed dependencies. The DEBs will be in /var/cache/archives/ and can be copied to another system. Mind though this assumes the systems are similar; otherwise you might end up download just some of the required packages that the other system wants. You can always use method 1 to download missing packages.

Installing without apt is done with dpkg -i {debian install file} in the order of lowest dependency first. You can not install snmp without having the correct libc6 so libc6 would go 1st (if you need libc6 that is).


first method
step 1:
you can try using --force so, try using sudo apt-get --force-yes remove --purge grub* or with dpkg sudo dpkg -P grub*
step 2:
after this you can use  sudo dpkg -C or dpkg --list | grep -ve 'ii\|^rc' (I would suggest trying both) and confirm that there is no grub-efi-(anything after this) package listed.
step 3:
if you confirm this then you can go with sudo apt-get install grub-efi and install it and then do sudo update-grub.else go with second method
Second method
step 1:
sudo rm /var/lib/dpkg/info/grub*
sudo dpkg --configure -a
sudo apt-get update

now do step 2 and then step 3 of first method.
IMPORTANT
if you successfully remove grub-efi by any method then I would suggest do not turn off your computer before installing it again


If your laptop is "HP 250 G6 i3-6006U 4G 500G 15.6", in this site they are selling it with Ubuntu 16.04.3 LTS, this means that this laptop model is compatible with Ubuntu, hope it helps.


How do I get Ubuntu 16.04 from Ubuntu 15.10?

To get rid of it do:

Open system settings --> Software & Updates --> Other software
Click on the repo in question and click remove. See image below:

Software & Updates will updated the repo list and then go ahead and try that upgrade.


Try this:

Open a terminal an run

gsettings set org.gnome.settings-daemon.plugins.cursor active false

OR run dconf-editor

Navigate to org.gnome.settings-daemon.plugins.cursor and set the key active to false.


whiptail comes preinstalled on Ubuntu and many other distros, and will show full-screen (but still terminal-based) progress elements.

dialog is a superset of whiptail, so this example will work equally well with both. It does provide more advanced UI elements, so it may come in handy if you're looking for user interaction such as file pickers and forms, but it has the disadvantage of not coming preinstalled on many systems.

for i in $(seq 1 100)
do
    sleep 0.1
    echo $i
done | whiptail --title 'Test script' --gauge 'Running...' 6 60 0

Note that the script output is interpreted as a percentage, so you may have to adjust your output accordingly.

Whiptail and Dialog also allow you to modify the text at run time via a rather cryptic syntax:

phases=(
    'Locating Jebediah Kerman...'
    'Motivating Kerbals...'
    'Treating Kessler Syndrome...'
    'Recruiting Kerbals...'
)

for i in $(seq 1 100); do
    sleep 0.1

    if [ $i -eq 100 ]; then
        echo -e "XXX\n100\nDone!\nXXX"
    elif [ $(($i % 25)) -eq 0 ]; then
        let "phase = $i / 25"
        echo -e "XXX\n$i\n${phases[phase]}\nXXX"
    else
        echo $i
    fi
done | whiptail --title 'Kerbal Space Program' --gauge "${phases[0]}" 6 60 0

pv shows the progress of a file or stream being piped through it. It cannot however be (easily?) used to show progress of a custom operation such as a loop. It's designed specifically for streams.

$ head -c 1G < /dev/urandom | pv -s 1G > /dev/null
 277MB 0:00:16 [17.4MB/s] [========>                           ] 27% ETA 0:00:43

Some real-world examples where pv comes in handy:

# progress while importing a DB dump
pv mybigfile.sql | mysql -uroot -p dbname

# importing straight from a remote server
ssh user@server 'cat mybigfile.sql.gz' | pv | gzip -cd | mysql -uroot -p dbname

# taking a snapshot of a btrfs partition
btrfs send /snapshots/$date | pv | btrfs receive /mnt/backup/root

I don't know of any commands that give one-line progress bars in the style of pv or wget, but there are plenty of simple Bash/Perl/sed scripts that will add that functionality, as others have shared here.


unexpected behaviour while using redirection manipulation

Bash does exactly the same thing for <& and >&, namely it uses the dup() system call to make a copy of a file descriptor.

Any errors due to an attempt to write to a file open for reading and so on will happen when the file descriptor is used for reading or writing contrary to the way it was opened.

Initially, an interactive Bash has  /dev/tty opened for read-write as file descriptors 0, 1, and 2.

See What does exec 3<&1 do on Unix & Linux SE, where user cuonglm took the trouble to document this behavior using strace.


Install Java 6 besides Java 7 on ubuntu 13.10

Lets ask aptitude:

aptitude why-not openjdk-7-jdk openjdk-6-jdk
Unable to find a reason to remove openjdk-6-jdk.

(the first line reads: aptitude why not install openjdk-6-jdk if I have openjdk-7-jdk installed)

So, the short answer is: yes.

Long answer: if you use apt-get to do it you can. If you try to do the same with Oracle's Java, prepare to have some problems.


You need to install the manpages-posix-dev package

sudo apt-get install manpages-posix-dev
man unistd.h


Recovered Ubuntu, but it still launches corrupt version

It appears that you have a problem with a recent kernel version. I have seen this happen before. I think an easy way to resolve this is with grub customizer. First install it. information is here: https://launchpad.net/~danielrichter2007/+archive/grub-customizer

When you run it you'll get something similar to this:

Simply uncheck the boxes for the kernel that is giving you problems and keep the ones you want to use checked.

Then click Save and Then File and Install to MBR

This should get you through until the next kernel update by which time you may find the problem is resolved.


The Intel graphics are built in. Its your RAM thats low but again, video should not hang. Try turning off other applications when you run video. Also make sure your system has latest updates.


Backup keeps asking for Encryption Password while restoring

Sounds like a bug?  File one at https://launchpad.net/deja-dup/+filebug, provide the logs it asks for, and I might be able to help.

One thing though is that you mention entering what you want the password to be?  When restoring, you should be entering the same password you used when originally backing up.


Persistence is not working on Lubuntu live (USB)

Simple Hand Made Persistent USB
This exercise should show you how to build a Persistent USB from the ground up. It has a casper-rw/writable Persistence partition, a NTFS/FAT32 Data partition and will boot in either BIOS or UEFI mode. It can be easily modified to multiboot etc.

Boot Installed Ubuntu or Live USB.
Insert Target USB.
Start GParted.
Create a GPT partition table on Target USB.
Create a 1MB BIOS boot partition on the left, formatted as unformatted.
Add a 300MB FAT32 EFI boot partition next to it.
Add an ext4 root partition large enough for the Ubuntu ISO's contents, (~ 3GB for 20.04).
Create an ext4 partition labeled casper-rw
Add a NTFS data partition if desired.
Apply all operations.
Flag partition 1 bios_grub.
Flag Partition 2 boot, esp
Close GParted.

Open the ISO's folder as Administrator, open the ISO using Archive Manager.
Extract the ISO's contents to the Target's root partition.
Drag and drop the boot and EFI folders from Archive Manager window to the EFI boot partition.
Edit sdx2/boot/grub/grub.cfg adding set root=(hd0,3) after the "Try Ubuntu ..." line.
Add a space and the word "persistent" after ---.

Install grub, if in BIOS mode or booted from Live USB drive run:
  sudo mount /dev/sdx2 /mnt

  sudo grub-install --boot-directory=/mnt/boot /dev/sdx

If in UEFI mode on installed system, boot into the Target drive and run the above commands.

*Booting based on mkusb by sudodus


Commands to freeze display / make computer unresponsive

the best solution that I've found is xtrlock. Unresponsive to any keyboard / mouse input besides password input.

However you can bypass password unlock by looping the command for a certain timeframe.


Geary email client how can I make it a dark theme

Geary 0.12 and later uses whichever GTK+3 theme your desktop environment has been configured to use, so if you want Geary to use a dark theme you'll need to configure your desktop's settings to enable that.

There is some support for customising the CSS used to display individual messages in a conversation, see the Geary FAQ for details. This does not currently apply to the Composer at the moment, but there is an open ticket requesting that.


what is proper formatting of xorg.conf file and what improper can do?

The xorg.conf man page documents the correct format, and the generic options.   Driver-specific options are usually (but not always) covered in the man page for the driver.   In most cases, you can simply rename xorg.conf to another name to get X to start with a safe set of default options - xorg.conf is only needed when you want to change a setting from the default value to customize your setup.


I had the same problem.  I followed the suggestion in the Launchpad bug and removed the libpam-smbpass package with this command:

sudo apt-get remove libpam-smbpass

This fixed the problem. However, you should read the bug report about the repercussions of removing this package.  It has something to do with Samba (file sharing) and password synching, but I don't totally understand it myself.  If anyone here can explain it better in a comment, I would appreciate it (i.e. from the point of view of a user, what behavior would I experience exactly after removing the package and what exactly would I have to do to work around it)


How do I revert from 4.15.0-72 generic back to 4.15.0.70 generic?

backup old version

sudo cp /etc/default/grub /etc/default/grub.backup

edit grub config file

 sudo nano /etc/default/grub

Change

#GRUB_DEFAULT=0
GRUB_DEFAULT="Advanced options for Ubuntu>Ubuntu, with Linux 4.15.0-70-generic"

save, then

sudo update-grub
sudo reboot


Getting stuck with Upgrade from 18.04 to 20.04

I have also the fontconfig -warning on crontab, but it's not fatal (just a warning).
You could investigate what is going on by opening a tty -terminal (ctrl-alt-F1/F2/F3/F4) and take a look to the log files under /var/log
ls -lart

Shows which files have been written the most recently.


Need more information about API for 'Ubuntu for Phones'

You can read about how to get the Ubuntu SDK preview and a tutorial showing how to write an app here: http://developer.ubuntu.com/get-started/gomobile/

The QML API docs are available here: http://developer.ubuntu.com/api/ubuntu-12.10/qml/mobile/overview-ubuntu-sdk.html


Opening Home Folder in XFCE changes the XFCE desktop to Gnome

If you are using nautilus, and not thunar, use the --no-desktop option

nautilus --no-desktop $HOME

Thunar is the file manager normally used by XFCE, you might want to try it.


To stabilize a specific video file I import the file into kdenlive, right-click on it, select "clip jobs" and then "stabilize".

This will start a "job" which produces a file with .mpi appended to the end of the original video file name.

Then remove the original video from the project file list, add the .mpi video file, put that in the timeline and render it.

The problem is that this .mpi file will only work in the project environment in which it was created. It also takes a lot more time than the length of the original video because the processing is single-threaded. Then there are possible memory issues with large files. So creating a large video and then stabilizing it is a very time and memory-intensive process, requiring at least as much memory and swap-space and multiples of the time required to create that large video in kdenlive without stabilizing it. It's a good argument for an IS video camera or at least breaking the unstabilized final product into chunks and stabilizing the chunks in groups which will not require use of the swap file, then combining all the stabilized chunks into one final project and rendering it.

Then there is the effectiveness of the stabilization pass...kdenlive gives you a lot of options to play with, all affect speed, memory requirements, IQ and stabilization. Or you can try using the ffmpeg tools directly which requires a new level of understanding and effort...but at least it's possible.

Deshaking videos using script

in any case it will help immensely to do this at low-res and figure it all out before trying to do it on unstabilized files straight from the camera shot at high resolutions especially at high frame-rates. My 4Gig laptop just spent 5 days stabilizing a 30min 5GB 4k-30fps h265 mp4 video. Now I'm trying to figure out how best to render the .mpi file. I'm considering just rendering the final product at 720p or at least at 1080p. It took 8 hrs or so to render the original unstabilized 5GB 4k product at moderate IQ and encoding settings that was a mixture of 12MP stills and 1080p video...and that was for 30 minutes of 4k video. My fear is that trying to render a final product at 4k is going to ask too much of the 4GB ram + 1GB swap that I have currently and it simply has to be done at 1080p to match the original video components. So I'll try that first and update this later.


compiz config settings manager how to operate an enable

Probably the best resource would be:

http://wiki.compiz.org/ (index with links)

It can be taken as official documentation...

Some links from the site you might find useful.

http://wiki.compiz.org/CompizPlugins
http://wiki.compiz.org/CompizFusionPlugins
http://wiki.compiz.org/GeneralOptions

Also Youtube has tons of videos about Compiz usage.


After installation, Ubuntu 16 will not boot

Did you verify that the drives are both ok on a windows machine, or on your linux machine. Try each of them separately before you try them together.  It sounds like a hardware problem. Not a software problem. Make sure you set the jumpers to show one as master, and the other as secondary.


How to fix the Dell Mini 10v (1010) touchpad with Ubuntu 12.04.1

To disable a strip at the bottom, you'd use synclient AreaBottomEdge=xxx, where xxx is a number which is less then the vertical width of the touchpad.

For example, on my Dell mini 10 (1010) with an Elantech touchpad, I had to use the following:

synclient AreaBottomEdge=690

...while the touchpad dimentions are:

~$ cat /var/log/Xorg.0.log | grep range
[    24.008] (--) synaptics: ETPS/2 Elantech Touchpad: x-axis range 0 - 1152
[    24.008] (--) synaptics: ETPS/2 Elantech Touchpad: y-axis range 0 - 768

You can use AreaLeftEdge, AreaRightEdge and AreaTopEdge options in a similar manner, if needed.

To make the change permanent, I had to create /etc/X11/xorg.conf with the folloing content:

Section "InputClass"
        Identifier "ETPS/2 Elantech Touchpad"
        MatchProduct "ETPS/2 Elantech Touchpad"
        MatchDevicePath "/dev/input/event*"
        Driver "synaptics"
        Option "AreaBottomEdge" "690"
        Option "AreaRightEdge" "1070"
        Option "AreaLeftEdge" "110"
EndSection

PS: You can find out how your Mini 10v's touchpad is identified by looking at the Xorg log info - cat /var/log/Xorg.0.log | grep touch.


Kernel Panic - not syncing - Attempted to kill init ! exit code 0x00007f00

I was able to access the data by using a ubuntu disc and using the try ubuntu options. (hopes this help people who are trying to access their data)


What is Gparted doing when scanning for partitions?

GParted scans through all devices using libparted and third-party tools.  It not only reads the partition table, it looks for many things such as for file systems, labels, UUIDs, whether the partition is in use, where the partition is mounted or active, how much free space is available within the file system and within the partition, is the file system encrypted, and is the partition part of a Logical Volume Manager and if so the volume group details.

Tools like fdisk or gdisk read the partition table.

Parted reads the partition table and tries to determine the type of file system.

For exact commands/arguments/parameters used by GParted I suggest reading the source code starting with GParted_Core::set_devices_thread because this is where scanning of device and partition information begins.


In Ubuntu 14.04, logind.conf is provided by the package systemd-services, but this package does not exist in 12.04. I suppose that the source where you read about it was about 14.04, not 12.04.


Searching Window Spread in Ubuntu 13.10?

The filter by window option is available through the plugin "Scale Window Title Filter".
You'll need to install the extra package:
compiz-plugins-extra

Once done you'll be able to filter your windows by typing part of the window title:


Install Ubuntu on unbootable Acer Aspire E5-575 "Default Boot Device Missing or Failed."

We made many Ubuntu installs, which failed to boot.
Finally, in BIOS we did "Security > Restore Secure Boot to Factory Default". We reinstalled Ubuntu; it still failed to boot. Then in BIOS, "Security > Select an UEFI file as trusted for executing", we kept on HDD0, selected , and set "grubx64.efi" , "Wish to add this file?" to YES. [F10] Save and Exit. THAT booted up into Ubuntu (17.04). NO reinstall was required.


Increasing resolution for external monitors

If you enable fractional scaling you can set a different scaling for each monitor. You can also check this post.


You try to do in a terminal:

sudo apt-get update
sudo apt-get dist-upgrade

If you get an error, please paste it on another comment to this message.


Sometimes Gnome suspend immediately resumes, ubuntu 18.04 on pure intel laptop

Based on this similar problem with a Dell Inspiron

https://gist.github.com/ioggstream/8f380d398aef989ac455b93b92d42048

I installed in

/lib/systemd/system-sleep

the script here:
https://gist.github.com/timrs2998/77b3c2c2567cbd38f38cde64f1155956#file-system-sleep-xhci-sh

authored by: Roberto Polli (ioggstream)

After creating the file, don't forget

sudo chmod u+x

...

#!/bin/sh
#
# This script should prevent the following suspend errors
#  which block suspend on Dell Inspiron laptop & Thinkpad T480.
#
# Put it in /usr/lib/systemd/system-sleep/xhci.sh
#
# The PCI 00:14.0 device is the usb xhci controller.
#
#    kernel: [67445.560610] pci_pm_suspend(): hcd_pci_suspend+0x0/0x30 returns -16
#    kernel: [67445.560619] dpm_run_callback(): pci_pm_suspend+0x0/0x150 returns -16
#    kernel: [67445.560624] PM: Device 0000:00:14.0 failed to suspend async: error -16
#    kernel: [67445.886961] PM: Some devices failed to suspend, or early wake event detected

if [ "${1}" == "pre" ]; then
  # Do the thing you want before suspend here, e.g.:
  echo "Disable broken xhci module before suspending at $(date)..." > /tmp/systemd_suspend_test
  grep XHC.*enable /proc/acpi/wakeup && echo XHC > /proc/acpi/wakeup
elif [ "${1}" == "post" ]; then
  # Do the thing you want after resume here, e.g.:
  echo "Enable broken xhci module at wakeup from $(date)" >> /tmp/systemd_suspend_test
  grep XHC.*disable /proc/acpi/wakeup && echo XHC > /proc/acpi/wakeup
fi


If you can connect to internet by wire, then just run in terminal

sudo apt-get install bcmwl-kernel-source
sudo modprobe -r b43 bcma

If you can't connect another way, then use THIS METHOD


Mythbuntu restore : how to find out database password?

To answer my own question:

I was barking up the wrong tree. Mythbuntu's backup and restore correctly backs up and restores the password for the database with the database, but apparently not quite everywhere that it's needed (not in ~mythtv/.mythtv/config.xml). Manually editing the password in there to match the other config files (such as mysql.txt in the same directory) solved the problem.

For anybody who does actually need to know the MySQL password for a given user: I don't know if there's a way to find that out, but this page gives a way to reset it to a known value: http://www.mythtv.org/wiki/Category:MySQL


Can I configure notification period of webapps?

For Webapps

There is no easy GUI configuration to do this.

To set some the refresh delay you need to edit the file  Twitter.user.js located under  /usr/share/unity-webapps/userscripts/unity-webapps-twitter

Look for function : function messagingIndicatorSetup() { and introduce the time delay in it.

You can use

setInterval()

or

setTimeout()

to set the time delay

For Gwibber

Open dash and search for "Broadcast Preferences" and open it.

and the bottom of the window you will find Update

Minutes between refresh: change it to desired refresh time.


Ubuntu 12.10 won't boot after Nvidia drivers upgrade

First I need to say that, from experience, do not use the Nvidia drivers from the Nvidia site. Yeah sure, they will work for some people and even be the most recent ones but:

When a kernel upgrade appears, they might (will) fail
They create more problems when trying to upgrade from an older version or even downgrade.
They are not automatically handled like the ones found in the X-Swat or Xorg-Edgers PPA.

So to save the trouble or several things associated with the Nvidia drivers coming from their site, do not use them. Instead go with the PPAs. Either the X-Swat or Xorg-Edgers.

For this case I see the following:

(EE) Failed to load module "nv" (module does not exist, 0)

This also happen to me one time when I used the Nvidia drivers from their site, it basically did not get loaded correctly.

Remove it by adding the --uninstall parameter to the .run file you executed to install the said driver. Then proceed to reboot. This will leave you with a system that is depending on the nv or nouveau drivers for the moment. Note that you need to press CTRL+ALT+F1 to go to a terminal after the error you mention in your question appears. Then type your login and password and then kill the GUI environment by issuing the following command:

sudo service lightdm stop

Remove the driver as I mentioned above first. Now make sure you have upgraded your system:

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

Then proceed to install the Xorg-Edgers PPA which is the one I recommend for 12.10:

sudo add-apt-repository ppa:xorg-edgers/ppa -y

Followed by another Update and Upgrade so it reads the new Nvidia drivers:

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

Now depending on your video card you would want one of the 3 types of Nvidia drivers in there. More info can be found in How do I install the Nvidia drivers?

The one I would recommend is the Nvidia 313 drivers. Install them like this:

sudo apt-get install nvidia-313 and reboot.

If by chance the Unity panel does not appear or you just get graphical glitches everywhere, then simply downgrade from the 313 to the 310. Do it again if the problem persists from 310 to 304. The versions available in 12.10 (And related to newer, middle or older versions) are listed here:

313 Series - Newest drivers for newest cards. Package: nvidia-313
310 Series - Newer drivers for newest cards. Package: nvidia-310
304 Series - Newest drivers for old/new cards. Package: nvidia-304
173 Series - Older drivers for old cards. Package: nvidia-173
96 Series - Oldest drivers for very old cards. Package: nvidia-96

So just do a sudo apt-get install PACKAGE where PACKAGE is one of the ones in the list. Again, for your case it would be the latest 313 drivers.

Apart from this I recommend opening Dash, typing Software Sources and on the Ubuntu Software Tab and Updates Tab, activate all 4 options in each one, including the options "Unsupported Updates" and "Pre-Released Updates". You will need to update and upgrade the system like I mentioned above. But this should solve any video problems you might have.


igb_uio kernel module is not getting inserted?

This is an out of tree module so it is not available in general.
But in Ubuntu 17.04 and later there is the package dpdk-igb-uio-dkms which will make that available.
Before that you could only use some cards with the generic uio-pci-generic module which is in kernel.


install SQL server express 2008 r2 on ubuntu 18.04?

Don't use wine because the instructions from Microsoft provide details for installing using Linux without it. Also, the Wine HQ entry for that app rates it as "Garbage", meaning it uses features not yet supported by wine.

Instead follow the instructions for adding their Ubutun repository and installing the software:

wget -qO- https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
sudo add-apt-repository "$(wget -qO- https://packages.microsoft.com/config/ubuntu/16.04/mssql-server-2017.list)"
sudo apt-get update
sudo apt-get install -y mssql-server

However, be aware this is installing the 2017 version of Microsoft SQL Server, not the 2008 version, if that matters. If for some reason you need that specific (old) version of SQL Server you'll need to install VirtualBox and run Windows within it.


How to install ‘Nautilus’ on VirtualBox and use it with ssh?

If you use "Bridge adapter" in the virtualbox network settings, try

ssh youruser@virtualboxhostname.local -X
nautilus


14.04 Missing login prompt after screensaver

It's mostly there...  Can you try booting with nomodeset in the kernal options?  Since this only happens every 10 or 20 times, I don't expect that you would see a difference for quite a while.


If the TV has more than one VGA ports make sure you select the TV output to the right one (like VGA1 or VGA2). That has to be done with the TV remote controller.

If that does not help, what graphic card do you have?


how to create partitions when just computer is the only drive?

You cannot create partition for any drive won which operating system is running. The only way to create partition on the system drive is by running ubuntu through a live cd. You may use lili to create a pendrive and using that you can run ubuntu from pen drive, and create partition of the system drive using gparted.


Versions newer than the ones in current Ubuntu - where to find them?

The main reason that you do not find the "newer-bleeding-egde" packages in the Ubuntu repositories is the stability issue. Those packages are use-at-your-own-risk and do not enter the Ubuntu Release Repository. Caution is always stated, or suggested when utilizing the newest untested packages.

Before its released (any package) it is tested for the main stream of users. This is how the distro maintains integrity.

This is also a how Alphas Betas and RC's come about.

Testing. If you are willing to compile and test them it is suggested that you give some feedback as to what works and what doesn't. We ALL would like more development.

If you are looking for the most current/stable projects then GO HERE

For researching those projects GO HERE ---> favorite of mine


How To Set System Wide Proxy Using Shell Script

Okay,

Here is what i did...

I just needed a 'Proxy Mode Changer'...
Setting the proxies , i did through gui... Now i just needed changing mode...

Here is the script i made... SIMPLE as anything ->

#!/bin/bash

state=$(gsettings get org.gnome.system.proxy mode)

if [ $state == "'none'" ]; then
        gsettings set org.gnome.system.proxy mode 'manual'
elif [ $state == "'manual'" ]; then
        gsettings set org.gnome.system.proxy mode 'none'
fi


Program to make text annotations in PDF files that are always visible?

If you would like to use true (editable) PDF annotations, then I guess you will have to live with how your PDF viewer (Okular, Evince, Adobe Reader, …) displays those annotations.

However, if you are ok with annotations which are ‘baked into’ the PDF (by actually editing the PDF and not just adding removable/editable PDF annotations) then you may want to have a look at PDF editing software like Xournal. With Xournal you can add highlighting, text annotations, etc.

After installing Xournal, you go to “File” → “Annotate PDF” and open the PDF file to annotate. Make your annotations and then go to “File” → “Export to PDF” to save the result.

Note: I had to uncheck “Use XInput” in the “Options” menu for being able to annotate anything – YMMV.


How to turn off my graphic card led Logo (Gigabyte Nvidia GTX970)

nvidia-settings --assign GPULogoBrightness=0

All attributes can be found by nvidia-settings -q all

Refer to this post for starting it at boot

The solution I choosed is to put in my ~/.xinitrc according to this post you can do it by the following command echo "nvidia-settings --assign GPULogoBrightness=0" >> ~/.xinitrc if you want it systemwide put it into your /etc/X11/xinit/xinitrc


How resolve WARN when run ansible: [WARNING]: Skipping plugin as it seems to be invalid?

It look like Python 2 deprecation.
ansible --version

if you get
python version = 2.x.x (…)

You should change ansible runtime to Python 3.
Changing ansible runtime is quite complicated, safer is upgrade OS to version which support Python 3 only.
But it could be also difficult, if you need use any other Python2-depend software.


Are you running Linux 3.2.0-29-generic-pae? Try uname -r. To clean out OLD kernels, try:

Kver=$( uname -r)
( dpkg -l linux-image\*; dpkg -l linux-doc\*;dpkg -l linux-headers\*) | egrep -v "$Kver"

to get a list of obsolete packages you can apt-get purge.

You will be a sad bunny if you manage to delete your current kernel. Do you have a Live CD or install disk handy?


Ubuntu 18.10 opening system settings logs me out (Intel graphic card)

Okay, it seems installing a newer version of Mesa helped me. (I followed the instruction here but just in case I repeat the steps in this answer, in case the original post disappears).

Adding ppa:ubuntu-x-swat/updates:

sudo add-apt-repository ppa:ubuntu-x-swat/updates

After that, the following packages are upgradable:

$ sudo apt list --upgradable
Listing... Done
libegl-mesa0/cosmic 18.2.8-0ubuntu0~18.10.1~ppa1 amd64 [upgradable from: 18.2.2-0ubuntu1]
libegl1-mesa/cosmic 18.2.8-0ubuntu0~18.10.1~ppa1 amd64 [upgradable from: 18.2.2-0ubuntu1]
libgbm1/cosmic 18.2.8-0ubuntu0~18.10.1~ppa1 amd64 [upgradable from: 18.2.2-0ubuntu1]
libgl1-mesa-dri/cosmic 18.2.8-0ubuntu0~18.10.1~ppa1 amd64 [upgradable from: 18.2.2-0ubuntu1]
libglapi-mesa/cosmic 18.2.8-0ubuntu0~18.10.1~ppa1 amd64 [upgradable from: 18.2.2-0ubuntu1]
libglx-mesa0/cosmic 18.2.8-0ubuntu0~18.10.1~ppa1 amd64 [upgradable from: 18.2.2-0ubuntu1]
libosmesa6/cosmic 18.2.8-0ubuntu0~18.10.1~ppa1 amd64 [upgradable from: 18.2.2-0ubuntu1]
libxatracker2/cosmic 18.2.8-0ubuntu0~18.10.1~ppa1 amd64 [upgradable from: 18.2.2-0ubuntu1]
mesa-va-drivers/cosmic 18.2.8-0ubuntu0~18.10.1~ppa1 amd64 [upgradable from: 18.2.2-0ubuntu1]
mesa-vdpau-drivers/cosmic 18.2.8-0ubuntu0~18.10.1~ppa1 amd64 [upgradable from: 18.2.2-0ubuntu1]

Do upgrade:

$ sudo apt dist-upgrade

Checking the version:

$ glxinfo | grep "OpenGL version"
OpenGL version string: 3.0 Mesa 18.2.8

Log out and log in again. Everything seems to work fine and I can open Settings without any problem.

After this, the output of inxi -SCG is as follows.

System:
  Host: mypc Kernel: 4.18.0-13-generic x86_64 bits: 64
  Desktop: Gnome 3.30.1 Distro: Ubuntu 18.10 (Cosmic Cuttlefish)
CPU:
  Topology: 6-Core model: Intel Core i5-9600K bits: 64 type: MCP
  L2 cache: 9216 KiB
  Speed: 800 MHz min/max: 800/4600 MHz Core speeds (MHz): 1: 800 2: 800
  3: 800 4: 800 5: 800 6: 800
Graphics:
  Device-1: Intel driver: i915 v: kernel
  Display: x11 server: X.Org 1.20.1 driver: i915 resolution: 3840x2160~30Hz
  OpenGL: renderer: Mesa DRI Intel HD Graphics (Coffeelake 3x8 GT2)
  v: 4.5 Mesa 18.2.8

P.S. Uninstallation (although for me it brought the problem with Settings back, hence, it seems this is indeed the solution for my problem):

$ sudo apt install ppa-purge && sudo ppa-purge ppa:ubuntu-x-swat/updates


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

sudo /usr/lib/vmware/bin/vmware-vmx-debug --new-sn 12345-abcde-67890-fghij-1a2b3

The key in the command is not functional, replace with your own key

Also try this.  Start VMWare as root

sudo -i

type your password

vmware

Note: its not necessary to run VMWare as root for any other reason.  This is only needed when changing or adding a license key.


Your boot loader will install on /boot partition.  For mount point you must use /.  Plus
if you only have one partition, then it has to be root
/.

/ The root (/) partition stores the core system files and remain relatively fixed. Being separate from everything else should give it extra security.


You have tot mount the disk first, you can not list a device.To do so you need to type:

sudo mkdir /mnt/sdb3

(Or a different location)

Then:

sudo mount /dev/sdb3 /mnt/sdb3

Now you will able to access the drive:

ls /mnt/sdb3


This is a download error issue.

A.  Try that step again.

OR

B.  Use the manual install method: Manual Installation (near bottom of page)

PS: I have successfully installed this (Nexus 7 Core) several times on different Nexus 7 devices.


Where is the declaration of execution of ecryptfs for on user login automount?

Setting up the Private on Ubuntu utilizes:

http://manpages.ubuntu.com/manpages/oneiric/man8/pam_ecryptfs.8.html

to modify the pam stack. However, it differs from the man page on
at least 12.04.3:

auth    optional        pam_ecryptfs.so unwrap

In common-auth as opposed to:

auth    required        pam_ecryptfs.so unwrap


The other answers aren't wrong but an easier way to mitigate special characters (like spaces and slashes) is to quote the whole string:

wine 'C:\Program Files (x86)\Steam\Steam.exe'


Someone already opened an issue on github.

https://github.com/Microsoft/vscode/issues/60664

Not a permanent soluation, but delete/mv the xdg-open handler /usr/share/applications/code-url-handler.desktop and/or .local/share/applications/code-url-handler.desktop will fix current issue until next installation if they do not fix it.


If you are using US (international) layout you need to press
SHIFT + 2.


Sync highlight pdf between ubuntu and android

I think you could easily do this with Ubuntu One.  Save your PDF to your Ubuntu One folder.    Then go and get the Ubuntu One Android app, which should allow you to view your PDF.  Any changes you make to it will then be sync'd through the cloud.


There is no need to install another service than SSH.

On your mobile device, install https://play.google.com/store/apps/details?id=com.estrongs.android.pop .

So go to LAN -> FTP and add an SFTP server.
Servername is either the ip or the hostname of your desktop, user and password ist the same like your desktop's.


how to undo unsuccessful package upgrade

It isn't possible using apt or apt-get, because you don't have this version offline anymore, but you can do this by downloading older version in .deb package and installing it by dpkg -i filename.deb.


How to use a percentage character in the Exec line of a desktop entry file

Use two percentage characters.

[Desktop Entry]
Type=Application
Terminal=false
Icon=vinagre
Name=RDP
Exec=/usr/bin/rdesktop -g 90%%x90%% SomeHostName

Desktop Entry Specification: https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html


Problem with setting static ip on Ubuntu Server 14.04

When I needed to set a static IP address for my ubuntu pc, I did it from the router rather than trying to set it from the pc.

The router then sets the IP address given in the router table for the device on each power up.


Splitting a large package into smaller ones/upgrade path for users?

Yes, making packageX a virtual package that depends on the others is the usual way to handle this.

That way everyone who has packageX installed now will have all packageX-* packages after the upgrade. Plus it makes it easy to install all of packageX for those who want that.

Depending on your software it may be worth thinking about creating additional virtual packages which depend on often used subsets of packageX-*` to simplify the installation of those subsets.


CPU Throttling Occurring Despite No Need For It

You could disable pstate but I've never done that on a live session.
  – mchid Mar 2 at 10:59

This is the right path forward for anyone else who comes looking here. As I said in the comments as well, the strategy for anyone seeking to do this (and to my forgetful self in the future when I inevitably end up wanting to do this on another of my "funny" PCs) would be to follow the advice set forth in a phoronix article "...fall-back to using ACPI CPUfreq on modern Intel systems is by setting intel_pstate=disable as a kernel command-line argument when booting the modern kernel."

On a live session, you can edit the options by pressing F6 and then by pressing ESC.

Add the following option to the command line displayed and then proceed as normal:

intel_pstate=disable

link here: www.phoronix.com

and here: BootOptions - Community Help Wiki


Why OpenDialog.py don't work on Jotty application

im use

def on_openclicked(self, widget):
    dialog = Gtk.FileChooserDialog("Please choose a file", self, Gtk.FileChooserAction.OPEN,(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL, Gtk.STOCK_OPEN, Gtk.ResponseType.OK))
    dialog.set_default_size(100, 50)

    self.add_filters(dialog)

    response = dialog.run()
    if response == Gtk.ResponseType.OK:
        print "Open clicked"
        print "File selected: " + dialog.get_filename()
    elif response == Gtk.ResponseType.CANCEL:
        print "Cancel clicked"

    dialog.destroy()

def add_filters(self, dialog):

    filter_py = Gtk.FileFilter()
    filter_py.set_name("Text files")
    filter_py.add_mime_type("text/plain")
    dialog.add_filter(filter_py)

    filter_any = Gtk.FileFilter()
    filter_any.set_name("Any files")
    filter_any.add_pattern("*")
    dialog.add_filter(filter_any)


how to close/restart phpstorm from command line

All "processess" that are active can be seen with the "ps" command. From command line you can type ...

ps -ef | grep phpstorm

it will list all the process IDs

$ ps -ef| grep phpstorm
rinzwind  2819  2812  0 11:28 ?        00:00:00 phpstorm
rinzwind  2849  2820  0 11:29 pts/1    00:00:00 grep --color=phpstorm

The line with the "grep" is what you search for. The other one the executable. A simple ...

kill -9 2819

will stop "phpstorm".

A shorter method:

pgrep -f phpstorm

will list just the process ID and ...

kill -9 $(pgrep -f phpstorm)

will kill it.

Programs like "top" and "htop" can be used to list running processes.


Likely the header of the image is corrupt. So, data exists but header is broken.

A couple things to try:

Rename the JPEG. This works in a lot of cases.
Re save from an image editor like PhotoShop or Gimp. Sometimes resaving the file will fix the headers.
Sometimes bad sectors on the disk can cause this. Try running fsck on Ubuntu or CHKSDSK ( from Windows command line ) on the drive.

sudo fsck /dev/sdb


I'm not familiar with the gnome process monitor.  However I'm aware of the following application indicator which you can use display process usage of running applications.

Since the developer of the ppa doesnt have a natty version I did the following to get the application to work

sudo dpkg -i indicator-monitor_0.1.0-1_i386.deb
cd /usr/lib
sudo ln -s libappindicator.so.1.0.0 libappindicator.so.0
sudo ln -s libdbus-glib-1.so.2.1.0 libdbus-glib-1.so.1
sudo ln -s libdbusmenu-glib.so.3.0.14 libdbusmenu-glib.so.1
indicator-monitor &


If you are trying to blank a rewritable CD-ROM try this instead:

wodim dev=/dev/cdrom blank=fast

Make sure that you have the correct device name before attempting.


Program with particular MS Paint feature?

It is possible to do this with Gimp, although there are some limitations.
Gimp is available on Ubuntu from the software center.

Step One: Add Alpha Channel

Once your image is open, right click on the thumbnail of your image inside the Layers - Brushes tab/window and select Add Alpha Channel.  If this option is greyed out, you can skip this and go the next step.  If you don't have an alpha channel, this will not work.

Step Two: Select Color to Erase

Use whatever method you prefer to select the color you wish to erase.  It is important that this color be set as the foreground color.

Step Three: Color Erase Mode

From the Toolbox - Tool Options tab/window, select the Paintbrush tool.  In the Tool Options, set the mode from Normal to Color Erase.  The paintbrush will now erase the selected foreground color and set it to transparent.

This will work with the Paintbrush, Bucket Fill, Pencil and Airbrush tools.


I can't share internet in Ubuntu 13.04 with a windows device like I could in 12.10

Testing right now with Wireless and Wired device. Both are working, so most probably it is a bug right now. It would be good if you could include the wired device you are using. You could try searching for the option Launchpad's Bug Search.

What I did notice in another computer is that the wired connection was not working because I updated from 12.10. After doing a fresh install with 13.04 it worked perfectly. This last info might help if you did an upgrade from 12.10 to 13.04. I would also recommend checking the output of dmesg out to see if it says something related to the problem.


Ubuntu 17.10 and later: Don't suspend when lid is closed, just lock screen

To disable suspend on lid-close

Install Tweaks (gnome-tweak-tool) by running

sudo apt-get install gnome-tweak-tool

Launch Tweaks, go to the "Power" section and disable suspend on lid-close.

To enable lock on lid-close

Undo the above steps before following this. Also, SAVE ALL YOUR WORK, the second command would require you to reboot.

Add the lines below in /etc/systemd/logind.conf

[Login]
HandleLidSwitch=lock

Run

sudo systemctl restart systemd-logind

Sources

freedesktop.org - logind.conf
How to Change Lid Close Action in Ubuntu 18.04 LTS - Tips on Ubuntu


How do I get this GNOME desktop in Ubuntu 16.04?

What you see in the screenshot is regular Gnome desktop. It shows that particular view when you open Activities menu - the Gnome's equivalent of Unity dash or Start Menu in windows.

To get it, just run sudo apt-get install gnome-shell. If you want full blown Ubuntu Gnome just like official installation, then run sudo apt-get install ubuntu-gnome-desktop


This was answered here for Windows 8. It is the same with Windows 10.

Go into Windows 10 and launch Command Prompt as Administrator. Then, enter this command:

bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi

If that doesn't work, then follow the steps in the original answer.


Probably you have secure Boot enabled. Try to disable it. If the setup of Ubuntu does not work for you try the Boot repair Disc and let your Boot Problem get fixed automatically:

https://sourceforge.net/projects/boot-repair-cd/

I cannot recommend this thing enough. It is awesome! It can handle both Legacy BIOS and UEFI.

Good Luck!


How to add a pygtk Widget to the Glade palette?

Okay, this is going to be step by step:

Our widget is going to be named AwesomeTextView, the module it's in will be called awesome_text_view. These are the only names we need.

A glade widget consists of two parts, the module and the catalog.

We create a catalog, awesome_text_view.xml, and (as root) save it at /usr/share/glade3/catalogs/

This is what it looks like:

<glade-catalog name="awesome_text_view"
    library="gladepython"
    domain="glade-3"
    depends="gtk+">

 <init-function>glade_python_init</init-function>

 <glade-widget-classes>
   <glade-widget-class title="Awesome TextView"
    name="AwesomeTextView"
    generic-name="awesome_text_view"/>
 </glade-widget-classes>

 <glade-widget-group name="python" title="Python">
   <glade-widget-class-ref name="AwesomeTextView"/>
 </glade-widget-group>
</glade-catalog>

You should copy and adapt this template, as it works. :-)
We create a module, awesome_text_view.py, and (again as root) save it at /usr/lib/glade3/modules/

Here's what that looks like:

import gobject
import gtk
import pango

class AwesomeTextView (gtk.TextView):

    __gtype_name__ = 'AwesomeTextView'

    def __init__(self):
        gtk.TextView.__init__(self)

    def set_font(self, font_description):
        self.modify_font(pango.FontDescription(font_description))

It's now displayed in Glade, and you can add it to your application.
Finally, you'll just need to

    export PYTHONPATH="$PYTHONPATH:/usr/lib/glade3/modules/"

That's it!

Here's a little test app showing how to use your widget:

import gtk
import awesome_text_view

class App (object):

    builder = gtk.Builder()

    def __init__(self):
        self.builder.add_from_file("test.glade")
        self.builder.connect_signals(self)
        self.builder.get_object("awesome_text_view1").set_font("mono")
        gtk.main()

    def on_window1_destroy(self, widget):
        gtk.main_quit()

App()


Run docker Kaggle/python on Ubuntu 20.04

if you launch
docker run -v $PWD:/tmp/working -w=/tmp/working -p 8080:8080 --rm -it gcr.io/kaggle-images/python
you can then visit http://127.0.0.1:8080
you could also run
docker run -v $PWD:/tmp/working -w=/tmp/working -p 8080:8080 --rm -it gcr.io/kaggle-images/python jupyter notebook --no-browser --ip="*" --notebook-dir=/tmp/working --allow-root


Check that your mysql server is running, if not enable it. From a terminal,

$ sudo systemctl enable mysql

Synchronizing state of mysql.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable mysql

$ sudo systemctl status mysql

● mysql.service - MySQL Community Server
   Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2018-06-25 10:23:56 PDT; 56min ago
 Main PID: 1364 (mysqld)
    Tasks: 28 (limit: 4915)
   CGroup: /system.slice/mysql.service
           └─1364 /usr/sbin/mysqld --daemonize --pid-file=/run/mysqld/mysqld.pid

Check that you have it listen on port 3306.

$ sudo netstat -plunt

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      1364/mysqld

If not, you'll have to modify /etc/mysql/mysql.conf.d/mysqld.cnf

Check that you have root access, enter password when prompted.

$ mysql -u root -p

If you don't have root access or need to reset root password, follow the steps from here. Which basically says the simplest way is do the following and choose a new root password.

$ sudo mysql_secure_installation

Securing the MySQL server deployment.

Enter password for user root:

Now, if you want simply want to connect to a remote database, specify the host and port along with the login user/password when creating the mysql connection.

If you run into password validation problem, you may consider moving validate_password plugin

$ mysql -h localhost -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 5.7.22-0ubuntu18.04.1 (Ubuntu)

Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> uninstall plugin validate_password;


Why can't I access my Bq Ubuntu phone on Ubuntu 14.04?

Sounds like your device vendor is not known to adb.

adb shows a device only when it knows the vendor of the device. The vendor of the bq E4.5 seems not known by default.

To change that edit or create the file ~/.android/adb_usb.ini and add the following line

0x2a47

That is the vendor id of the bq E4.5.

Restart the adb server after you edited the file

sudo adb kill-server;  sudo adb start-server

You can find out the id by yourself with lsusb. (I made the id bold so you can see where to look for it in the lsusb output)

Bus 003 Device 002: ID 2a47:0c02

(Or you could execute lsusb -v and look for the idVendor field.)


First check available NIC by typing "ifconfig -a"
Go to you /etc/network/interfaces file and edit according to the interface
appeared after previous command or that you want to select.

auto eth0
iface eth0 inet static
address 192.168.x.x
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 8.8.8.8 8.8.4.4

Change things that are in bold and enter below commands to restart networking -

sudo ifdown eth0
sudo ifup eth0