Remove useless entries from messed up grub?

In your case Grub-Customizer might come in handy.

Install it :

sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer

Open it, and remove all unwanted entries :

Click on save. done.

  Personally, I don't prefer these types of automated tools. I will update this answer soon if I find a manual way of doing this.


How do I convert a PNG to SVG, using software?

Inkscape has got an awesome auto-tracing tool.

Install Inkscape using sudo apt-get install inkscape
Import your image
Select your image
From the menu bar, select Path > Trace Bitmap Item
Adjust the tracing parameters as needed

Check their tracing tutorial for more information.
Once you are comfortable with the tracing options. You can automate it by using CLI of Inkscape.


who to resolve the issue )--- Error of the failed to scan error communicating (Samsung scanner )

Samsung has a great install kit;

http://org.downloadcenter.samsung.com/downloadfile/ContentsFile.aspx?CDSite=UNI_HK_EN&CttFileID=6283513&CDCttType=DR&ModelType=N&ModelName=CLX-3305W&VPath=DR/201510/20151027115542328/uld_v1.00.36_00.91.tar.gz

Install it and verify that your user belong in the sane group


Unable to find a medium containing a live file system with boot from iso

Resolved as:

set iso_path=/lubuntu-12.10-desktop-i386.iso


How do I swap Escape and Caps Lock in 14.04?

Install the GNOME Tweak Tool (gnome-tweak-tool), under the Typing tab there is an option to swap Esc with Caps Lock. This worked for me in Ubuntu 14.04.


New to the Ubuntu Game any one want to help me with an AMD install?

You don't have to build Ubuntu, you just download it from here and create a LiveCD or Live USB. Then, boot from it and the installation steps are on screen.


Installing Ubuntu on an External Hard Disk

Partition your HDD (resize and then Create New Partition out of free space)
Then Install everything to that Partition. You can make two partition one for /home and another for /

That is the safest way I can think of and if you do it careful enough (that you do not mistaken your HDD for the one with data) you are 100% sure that your data is untouched

On Second part of your Question, do not use Installer. Its purpose is to make bootable stick for thos who cant install Ubuntu with CD/DVD. Though you can have it with persistence, but its the Worst idea! Just do normal installation!


Is there a way to tag folders with colors?

One thing you can do very easily within nautilus, is to give them emblems, I agree, not quite as immediately recognisable but nonetheless a visual way of telling the difference between them.

Right-click on the folder, and click
Properties.

Select the Emblems tab.

From here, you can add your choice of
emblems to the folder's icon.

(Do note that they change
to match the emblem style of your icon theme.)


Grub OS prober script will check if timeout is 0, and if other OS is present, will force timeout=10.

You can edit, as sudo, /etc/grub.d/30_os-prober file and comment these lines (close to line 36):

if [ "\${timeout}" = 0 ]; then
  set timeout=10
fi

Comment using # so they'll be like this:

#if [ "\${timeout}" = 0 ]; then
#  set timeout=10
#fi

Save it and close it.

Now you can run sudo update-grub and your timeout=0 will be respected.


minidlna on Ubuntu 14.04 LTS cannot access /media folders

I had a similar issue and it was all permissions.
Create a group for the users that are going to need access to the media
sudo groupadd mediausers

(use whatever group name is appropriate in the place of "mediausers")
Add a media admin user to manage the media, you should use this user to FTP media to the media folder
sudo useradd --ingroup mediausers mediaadmin

Store your media on a non-system partition and mount that partition in a non-system default folder, we'll make one, assign ownership, and fix permissions on it
sudo cd /media
sudo mkdir servedmedia
sudo mount /path/to/partition /media/servedmedia
sudo chown -R mediaadmin:mediausers servedmedia
sudo chmod -R 775 servedmedia

"-R" means to recurse into the folders, so that everything is changed.  775 is Read/Write/Execute for the owner and group and read and execute for the generic users.  It's advisable to go through and only assign execute to the folders and not the files.  For a file, it should be "chmod 774 -filename-" and for a folder, "chmod 775 -folder name-" or use FileZilla's properties to fix the folders and files separately.  "Execute" must be allowed on folders for users that need to browse or change to that folder.  It is inadvisable and bad form to allow Execute to generic users to all files, so that last line is really poor, but will work.
To make that mount point persist across boots, look up how to add that partition to /etc/fstab
Check to see if the minidlna user exists
sudo id -u minidlna

If it comes back with "no such user", add a user minidlna can use and add it to the mediausers group and disallow logins from it as it is a system user and doesn't need a login (-L) or a home folder (-M)
sudo useradd -M --ingroup mediausers minidlna
sudo usermod -L minidlna

You'll have to verify that minidlna is configured to use that user
sudo nano /etc/minidlna.conf

Find the line that says
# Specify the user name or uid to run as (root by default).
# On Debian system command line option (from /etc/default/minidlna) overrides this.
user=minidlna

Change that (or leave it if your user is "minidlna")
While you're in that file, look for
# Path to the directory you want scanned for media files.
#
# This option can be specified more than once if you want multiple directories
# scanned.
#
# If you want to restrict a media_dir to a specific content type, you can
# prepend the directory name with a letter representing the type (A, P or V),
# followed by a comma, as so:
#   * "A" for audio    (eg. media_dir=A,/var/lib/minidlna/music)
#   * "P" for pictures (eg. media_dir=P,/var/lib/minidlna/pictures)
#   * "V" for video    (eg. media_dir=V,/var/lib/minidlna/videos)
#   * "PV" for pictures and video (eg. media_dir=PV,/var/lib/minidlna/digital_camera)
media_dir=/media

Make sure "media_dir" reads the path to your media (/media/servedmedia)
Before you close it, look for
# Automatic discovery of new files in the media_dir directory.
#inotify=yes

Un-remark "#inotify=yes" so that it says "inotify=yes"
Close and save it with Ctrl-X / Y / [enter]
Make sure minidlna starts at boot-time
systemctl enable minidlna

Start (or restart) the minidlna daemon
systemctl restart minidlna

There are some issues with iNotify, but those can be a different google search.  The default max is 1000 so it should only be an issue if you are flooding your server with file changes.


What about

#!/bin/sh

i=1
n=2

if [ "$i" -gt "$n" ]; then
    echo "i is bigger"
elif [ "$n" -gt "$i" ]; then
    echo "n is bigger"
else
    echo "same"
fi

second...

#!/bin/bash

i=1
n=2

if ((i > n)) ; then
    echo "i is bigger"
elif ((i < n)); then
    echo "n is bigger"
else
    echo "same"
fi

and last one...

#!/bin/bash

i=1
n=2

if [[ $i -gt $n ]]; then
    echo "i is bigger"
elif [[ $i -lt $n ]];  then
    echo "n is bigger"
else
    echo "same"
fi


Is it just me or has Mutter stopped unredirecting full screen program displays?

I have problems with windows not being unredirected with 19.10 as well. Probably due to this bug: https://gitlab.gnome.org/GNOME/gnome-shell/issues/1788

Updated:

I looks like this problem is fixed in Ubuntu Proposed (you can enable this extra repository in Software Sources under "Developer Options"). I upgraded mutter / libmutter-5-0 as well as gnome-shell (though only the mutter upgrades was probably necessary).

mutter/libmutter-5-0: 3.34.1+git20191107-1ubuntu1~19.10.1
gnome-shell: 3.34.1+git20191024-1ubuntu1~19.10.1

Fixed unredirecting for me!


Progressively resizing a pane, by keeping an arrow button pressed

The arrow keys to resize repeat by default (unless you've changed them), but you need to let go of the prefix key. So you need to press C-b Left then keep pressing Left.

If you hold down the arrow key rather than pressing it several times then it should work so long as repeat-time is longer than the system key repeat interval.


Edit /etc/lightdm/users.conf, add the user to the hidden-users setting.


Problem detecting Wifi on Asus A74A with Ubuntu 13.04

You have the correct driver loaded for your device but it is problematic in ubuntu sometimes adding driver parameters help if not compiling the latest driver is usually the only way to get it to work.

Please do:

echo "options rtl8192ce swenc=1 ips=0" | sudo tee /etc/modprobe.d/rtl8192ce.conf
sudo modprobe -rfv rtl8192ce
sudo modprobe -v rtl8192ce

Edit:

sudo modprobe -r rtl8192ce
sudo rfkill unblock all
sudo modprobe rtl8192ce

Edit:
If you have windows installed make sure wireless is on in window before you boot ubuntu.

Also go into bios and make sure wireless is enabled if you have that option in the bios if not reset the bios.

Edit:

sudo gedit /etc/rc.local

add the following three lines:

rmmod -f rtl8192ce
rfkill unblock all
modprobe rtl8192ce

Proofread carefully, save and close gedit.
Reboot


How to input commands on the Live CD mode selection screen

Press F6, then Escape. It should drop down to something like this:

You can then proceed to add options, as shown on the screenshot. The input will already be focused on that text field. To boot, hit Enter.


Unable to upgrade from 18.04 to 20.04 LTS

Since you did use the -d option, 'Failure to connect' indicates everyone else and their second cousin are also trying to upgrade.

Patience is a virtue; use this time to make a backup of your system to an external drive or cloud, and verify the backup matches the source files; then, make another backup to a different external drive or different cloud, and verify that.


Installing guest additions on Xubuntu guest

so, the problem was indeed, that the kernel in the guest was newer than in the host. I don't know how to really solve this, but i just installed Xubuntu 16.04 in virtual box and then it worked well.


I have a Toshiba Satelite A100 and for me the following command works:

echo 0 | sudo tee  /sys/class/backlight/acpi_video0/brightness


"the system is running in low graphics mode" I get this message when I boot my ubuntu

It is not related to nvidia drivers. Because by default Ubuntu uses non-nvidia drivers even though you might have nvidia GPUs. I have an  nvidia GPU too.

My Ubuntu used to boot fine until something happened which caused the same issue. After reading posts, reading logs and little bit trial and error, turns out the problem is related to lightdm GUI server.

I dont know solution to the problem but there is a quick work around in 3 steps. This will save you from reinstalling Ubuntu.

Step 1: When the error shows up, hit Ctrl+Alt+F1. This will open the commandline interface. Login as root.
Step 2: Remove a particular X11 config file. This file is not really required.

rm /etc/X11/xorg.conf.failsafe

Somehow the existence of the above X11 configuration file causes the OS to throw that error.
Step 3: Restart lightdm with:

service lightdm restart

This will restart lightdm and voila your desktop is back!


Try:

service --status-all |& grep network

Command-line applications can print to two text streams known as standard out (stdout) and standard error (stderr). By default, the terminal just displays the output for both identically.

Stdout is given the number 1, and stderr is given the number 2. By default, redirection operators, like >, | and < apply only to stdout, number 1.

|& pipes both stdout and stderr together to the process on the right's standard input (stdin) stream, which makes grep work as you expected.

I don't know why service --status-all is printing to stderr here, but in general, having a separate stderr stream is very useful, as it lets you see errors even when stdout is silenced.


develop or contribute to ubuntu community

For PC apps, you may try learning python as it will help you in many aspects. For developing linux apps, you can use python library pygtk (search for it online) for developing graphical interface for apps.
These are some links which may help you out:

http://www.linuxuser.co.uk/tutorials/build-a-twitter-client-using-pygtk

http://python-gtk-3-tutorial.readthedocs.org/en/latest/


mcedit runs differently when it's linked

Can't really get it working with ln or cp, maybe mcedit checks argv[0]. I've solved it with a bash script which does "mcedit $*".


add touchscreen right click options unity

There is a setting under the accessibility to have right click work.  I am not sure why, but your right click will only work this way once you set it.  I have no clue why they cannot have both a long click and a right click at the same time, but that is how it is.  File a usability bug.


I had the same problem on my late-2011 Macbook Pro. I dual-boot this old Mac with High Sierra & Ubuntu 20.01.1. It had been working almost perfectly until today. I started up & no WiFi. ip a didn't even show a wireless adapter - what a rude mess!
I verified hardware was OK by booting into High Sierra - it worked... So - a software issue. A search turned up this question, but no answer (as I write this). The search also turned up this: "How to Fix No Wireless Issue...", which ultimately solved the issue. Here's the relevant part:
Skip ahead to Method 2: Fix no WiFi in Ubuntu with broadcom wireless adapters
$ sudo lshw -C network

...

product: BCM4331 802.11a/b/g/n

OK - that was as expected...

$ sudo apt remove broadcom-sta-dkms bcmwl-kernel-source

The response here was to the effect that there was nothing to remove?

$ sudo apt install firmware-b43-installer

Fortunately, the late-2011 MBP has an RJ45 jack & I was close enough to a switch to plug in.

After completing this step & re-booting, all is well again - as promised. I found my WiFi AP, re-entered the password & disconnected the Ethernet again.
FWIW:
I tried Method 1 before going on to Method 2, which uncovered an oddity:

When I reached Step 3, the Software & Updates window, Additional Drivers tab showed that a driver was already loaded for my WiFi device. The .iso file download seems unnecessary. In fact, for users with Broadcom w\WiFi adapters, perhaps the following procedure is more to the point:

Verify Broadcom hardware product installed:

$ sudo lshw -C network

Install Broadcom 43-series firmware

$ sudo apt install firmware-b43-installer

sudo reboot


How do I turn off battery charging in Ubuntu?

There are no way to do this in Ubuntu.
This option is specific for your laptop. Try to find appropriate software for Linux on manufacturer's site.


You can decompile, edit, and recompile SWF using swfmill. This tool turns a SWF into XML and back again, e.g.:

swfmill swf2xml movie.swf movie.xml

swfmill xml2swf movie.xml movie.swf

However, whether this will be useful to you depends on how the SWF is put together. You can edit images, videos, audio etc within the movie using this method. They are present in the XML file as base64 encoded blocks which you can replace.

Editing text is much harder because text in SWF files is usually converted to curves so that the fonts do not need to be embedded.


Ubuntu 14.04 LTS won't boot with USB ( Windows )

unetbootin has been broken for a while, the best way to create the USB now is to create it using Win32diskimager, the install process should then work.


Will Ubuntu support my machine features?

Generic Answer:

In general, all of those things are fairly well supported by popular Linux distributions such as Fedora and Ubuntu.

If you wish to get a good idea of how well Ubuntu will run on your hardware prior to actually trying it, you could just use a search engine like Google or Yahoo to search specific hardware components for known incompatibilities.

If something is going to be an issue out of that list, it will most likely be the HDMI output or webcam. USB ports and wired networking devices do not tend to experience functionality issues with the Linux kernel.

Best Option (imo):

One route you could go is to try Ubuntu on live CD or USB-drive and test all of these functions out yourself before installing. Instructions for that here:
Try Ubuntu before you install it - Ubuntu

Unetbootin is a great way to create a live USB stick from Windows using a downloaded Ubuntu ISO image.

Unetbootin download:
Unetbootin download for Windows

Ubuntu ISO download page (choose image for your architecture):
Ubuntu 14.04.1 CD ISO downloads - mirror.anl.gov


Can't install both libmyodbc and iODBC at the same time on Ubuntu 12.04?

Okay figured this out.  I ended up installing just libmyodbc and configuring odbc using the /etc/odbc.ini file:

[ODBC Data Sources]
odbcname = MyODBC 3.51 Driver DSN

[the_db]
Driver = /usr/lib/i386-linux-gnu/odbc/libmyodbc.so
Description = The Database using MyODBC 3.51 Driver DSN
SERVER = localhost
PORT =
USER = root
Password = someOldPassword
Database = the_db
OPTION = 3
SOCKET =

It works great!


finding a serial number of a jpg file in linux terminal

Change directory to the target directory

cd /path/to/dir/with/files

To find jpg (JPEG) files if the extension is removed.

OIFS="$IFS";IFS=$'\n';for f in `find ./ -type f -exec file --mime-type {} \;|grep image/jpeg|cut -d ":" -f 1`;do echo "$f";done;IFS="$OIFS"

For the Serial Number of the camera in EXIF data.
The command is:

exiftool <file-name> | grep '^Serial Number'

Example

exiftool IMG_0277 | grep '^Serial Number'
Serial Number                   : 078073094979

Both commands combined to find jpg (JPEG) files and get the Serial Number.

OIFS="$IFS";IFS=$'\n';for f in `find ./ -type f -exec file --mime-type {} \;|grep image/jpeg | cut -d ":" -f 1`;do echo "$f" `file --mime-type "$f"|cut -d ":" -f 2` `exiftool "$f"|grep '^Serial'`;done;IFS="$OIFS"

Example:

OIFS="$IFS";IFS=$'\n';for f in `find ./ -type f -exec file --mime-type {} \;|grep image/jpeg | cut -d ":" -f 1`;do echo "$f" `file --mime-type "$f"|cut -d ":" -f 2` `exiftool "$f"|grep '^Serial'`;done;IFS="$OIFS"
./IMG_9862 07.JPG  image/jpeg Serial Number                   : 078073094979
./008  image/jpeg
./IMG_0277 06  image/jpeg Serial Number                   : 078073094979
./new folder/IMG_0277 06  image/jpeg Serial Number                   : 078073094979
./new folder/008 03  image/jpeg
./DSC04592 05  image/jpeg
./008 03  image/jpeg

Note: Not all jpg files have 'Serial Number' in EXIF data.
The Serial Number of the camera is written by most newer DSLR cameras in EXIF data


How to disable the logout button, while keeping the possibility to power off?

you may achieve this by creating a gnome-shell extension for the user you want this for..
Extension UUID: remove_logout_button@username.domain Change this in below command (and further) if you wish to have other name.. Other wise just copy paste the below command and run.
run
install -D /dev/null $HOME/.local/share/gnome-shell/extensions/remove_logout_button@username.domain/extension.js

run
install -D /dev/null $HOME/.local/share/gnome-shell/extensions/remove_logout_button@username.domain/metadata.json

copy paste the below content in extension.js file
'use strict';

const Main = imports.ui.main;
const System = Main.panel.statusArea.aggregateMenu._system;

class Extension {
    constructor() {
    }

    enable() {
    System._sessionSubMenu.actor.label.set_text(_('Power Off'));
    System._sessionSubMenu.menu.box.remove_actor(System._logoutItem)
    }

    disable() {
    if (System._loginScreenItem.visible) {
    System._sessionSubMenu.menu.box.remove_actor(System._loginScreenItem);
    System._sessionSubMenu.menu.box.add_actor(System._logoutItem);
    System._sessionSubMenu.menu.box.add_actor(System._loginScreenItem) } else {
    System._sessionSubMenu.menu.box.add_actor(System._logoutItem); }
    System._sessionSubMenu.actor.label.set_text(_('Power Off / Log Out'));
    }
}

function init() {
    return new Extension();
}

copy paste the below content in metadata.json file
{
  "name": "Remove Logout Button",
  "description": "Remove Logout Button",
  "uuid": "remove_logout_button@username.domain",
  "shell-version": [
    "3.38"
  ]
}

Save the files & close..
If you are on Xorg session. you can refresh the gnome-shell with Alt+F2 r Enter method and then turn on the extension.
If you are on Wayland session. logout and login and then turn on the extension.


You need to use the exit builtin function so that terminal may close automatically.Just add exit at the end of the command as

unison Folder -silent -ui text;exit

This will exit the terminal after command executes.


How to resize a Folder View widget on the desktop?

Found!

You need to click and hold into a widget in order to have the handles appearing.

It's quite different from KDE4 where the handles appeared by hovering the pointer on one side of the the widget!


You can format non-system partitions as exFAT and they will be compatible with both Linux and Windows.
You can use the Disks application to do this.
Your Ubuntu installation might require exfat-fuse and exfat-utils packages, depending on the kernel in use.


Google Drive / Owncloud Alternative for Ubuntu

Owncloud runs nicely on an ubuntu server.
see installation documents here:

http://software.opensuse.org/download/package?project=isv:ownCloud:community&package=owncloud


Xfce: some notifications not disappearing

The problem is related to notify-send, it ignores the timeout parameter: https://bugs.launchpad.net/ubuntu/+source/notify-osd/+bug/390508

Jupiter uses notify-send to create the desktop notifications. As a workaround the Jupiter's notify script can be edited and all -t parameters removed:

sudo sed -i 's/-t [0-9]\+//g' /usr/lib/jupiter/scripts/notify

The notifications will be shown for a few seconds then they'll vanish.


you can only get google chrome from here:
https://www.google.com/intl/en/chrome/browser/


It's a way to express the formatted time by printf.

The format is:

%(FORMAT)T

Where FORMAT is defined by strftime(3).

So to get the epoch time (Time in seconds since 1970-01-01 00:00:00 UTC), we need strftime(3) format %s:

printf "%(%s)T\n"

Note that you also need \n at the end to add a newline as printf (unlike echo) does not add it by default.

Example:

$ printf "%(%s)T\n"
1454300377

$ printf "%(%Y-%m-%d)T\n"
2016-02-01

$ printf "%(%Y-%m-%d %H:%M:%S)T\n"
2016-02-01 10:20:27

Just for the sake of completeness, you can also use date command in a similar strftime(3) formatted manner to get the time:

$ date '+%s'
1454300542

$ date '+%Y-%m-%d'    ## Short form: date -I
2016-02-01

$ date '+%Y-%m-%d %H:%M:%S'
2016-02-01 10:22:47

NOTE: This behavior is specific to bash's and ksh's  built-in function printf, and doesn't work with /usr/bin/printf , csh, and zsh built-ins.


Reduce request latency on an FTDI UBS-to-RS-232 adapter

OK, so here's the answer ( haven't tested it yet but looks good):

# cat /sys/bus/usb-serial/devices/ttyUSB0/latency_timer
16
# echo 1 > /sys/bus/usb-serial/devices/ttyUSB0/latency_timer
# cat /sys/bus/usb-serial/devices/ttyUSB0/latency_timer
1

The only annoying thing is that it looks like I may have to manually set it every time a unplug then plug back in the device, or at least on every reboot.


Installing Ubuntu 18.04 on SSD + two joined (2TB) HDDs

To close this question, I have found this:

mkdir /var/www/folder/stuff
mount --bind /home/user/ftp/files/ /var/location/stuff

I takes my other Drive location, which is an additional 2T and reference it as it was the same folder.

Thank you all.


Grub 2.02 Command-line from USB, load windows 10 from HDD

In my dual boot computer I have edited the file /etc/grub.d/40_custom to add a menuentry for another drive,

menuentry "External drive on (hd2) [hd{0,1,2,3} edit if necessary]" {
        insmod part_msdos
        insmod part_gpt
        insmod fat
        insmod ext2
        set root='(hd2)'
        drivemap -s (hd0) ${root}
        chainloader +1
}

Your internal drive will probably not be seen by grub as (hd2). Please edit to make the menuentry point to the correct drive specification, I guess (hd1) or (hd0).

If you have a full installed system in your USB drive

it might work directly to run

sudo update-grub

and grub will find Windows 'automatically' and add it to the grub menu.
otherwise edit 40_custom inspired by my menuentry.

After writing the edits, you should run the command

sudo update-grub

If you have a bare-bones grub system in your USB drive

edit the menuentry directly into the file

grub.cfg

often but not always located in the directory /boot/grub


how to avoid this bug installing PHPMyAdmin on Ubuntu 16.04?

I found a solution. Apparently it's a system localisation problem. I ran

sudo locale-gen en_US.UTF-8
export LANG=en_US.UTF-8

and the ppa could be used without any problem.


Can't run apt-get upgrade ubuntu 14.04 gnome

manualy download it from here: https://launchpad.net/ubuntu/trusty/amd64/gnome-accessibility-themes/3.10.0-1ubuntu2 and install using sudo dpkg -i package-name.deb


How can I output a single word in the terminal

With a single grep:

solaar show mouse | grep -oP 'Battery.*, \K.*'


How to auto add desktop icon for all new likewise-open users

When a new user logs in, his home directory is created by copying /etc/skel/ to /home/<username>/.

You only have to create the directoy /etc/skel/Desktop/ then put your .desktop file in there.


Is it okay to upload a binary 'source' archive to Launchpad for building?

Launchpad's PPA terms of use don't explicitly prohibit a Debian "source" package that contains a pre-compiled binary. It does require the use of an acceptable license (i.e OSI Approved, FSF Approved, or DFSG Compliant). So as far as I can tell, the real question is whether the licences of the pre-compiled libraries allow you to distribute them without the corresponding sources.

Of course, if you hope to have your package included in the proper Ubuntu archives this is prohibited. All packages in the archive must be build from source.


Why (again) Ubuntu's recommended version (for 11.04) is 32bit, not 64bit?

There are more 32-bit packages supported compared to the 64-bit set.
And, there is still a wider footprint of 32-bit platforms.
This is the reason we still see 32-bit being 'recommended'.

You might be interested in some history -- related to Ubuntu 10.04/10.10, Why not use 64-bit Ubuntu?
Refers to Launchpad bug 585940, from 26th May 2010 titled,
Text reads "not recommended" for 64-bit.

Guess, it is better to see a 'recommended' tag on 32-bit;
rather than a 'not recommended' tag on the 64-bit version :-)
Maybe that too will go away by the next LTS release...


Took me a bit of digging to find out what is going on here.  Basically, the new systemd nonsense has forced itself into the DNS space.  If you read /etc/resolv.conf, you'll see it refers to systemd-resolved.  You'll also see your nameserver entry is 127.0.0.53.

netstat -pntul | grep :53 show:
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN      29133/named
tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN      27505/systemd-resol

But systemd-resolved passes queries NOT to your bind9 server, but to glibc.  Unfortunately, glibc isn't a resolver.  It will pass queries, but does so in a way that breaks +trace.  +notrace works just fine.

To get around this, I removed resolvconf, turned off systemd-resolved, and changed the /etc/resolv.conf entry from 127.0.0.53 to 127.0.0.1.

Before you make the change, you can dig @127.0.0.1 +trace google.com and see that dig +trace works as expected proving the systemd implementation is broken and should be removed.


Your normal chat related UDP packets are fairly short. Bad guys are using longer UDP packets. The idea is to identify bad guys based on UDP packet length. Although typical chat related UDP packets should be much shorter, 640 bytes was your request.
Change this:

#udp

$IPTABLES -A INPUT -i $EXTIF -d $EXTIP1 -p udp -m connlimit --connlimit-above 20 -j add-to-connlimit-list
$IPTABLES -A INPUT -i $EXTIF -d $EXTIP1 -m state --state NEW -p udp -j ACCEPT

To this (using the same list name)(untested):

#udp

$IPTABLES -A INPUT -i $EXTIF -d $EXTIP1 -p udp -m connlimit --connlimit-above 20 -j add-to-connlimit-list
$IPTABLES -A INPUT -i $EXTIF --protocol udp -m length --length 640:65535 -j add-to-connlimit-list
$IPTABLES -A INPUT -i $EXTIF -d $EXTIP1 -m state --state NEW -p udp -j ACCEPT

Now, you may get some collateral damage, because you haven't mentioned which port. Suggest you add a port specification to the rule.

Additional suggestion (no functional change, just less confusing):
Change this:

#allow TcpPorts
$IPTABLES -A INPUT -i $EXTIF -m recent --update --hitcount 1 --seconds 432000 --name BADGUY_CONN -j DROP
$IPTABLES -A INPUT -i $EXTIF -d $EXTIP1 -p tcp -m connlimit --connlimit-above 20 -j add-to-connlimit-list

To This:

#Deal with previously identified Bad Guys
$IPTABLES -A INPUT -i $EXTIF -m recent --update --hitcount 1 --seconds 432000 --name BADGUY_CONN -j DROP

#allow TcpPorts
$IPTABLES -A INPUT -i $EXTIF -d $EXTIP1 -p tcp -m connlimit --connlimit-above 20 -j add-to-connlimit-list


You can't. One Touch Upgrade is designed just for Windows.
Why you don't upgrade via OTA? (Settings > About phone > Upgrade)


You have to install aircrack-ng first from the repositories (Synaptic or Ubuntu Software Center, what you prefer). Then try to install fern-wifi-cracker again.


How to make and application for Ubuntu phone OS in QT creator?

From the official Ubuntu Phone developer page:

  Going native

  The Ubuntu SDK includes everything you need to create your own scopes, repurpose your web/HTML5 content and develop native apps.

  QtCreator IDE (2.8.1) with improved device detection and management

So start here


Desktop not fluid, mouse and screen jump every seconds

I "Believe" that there isn't a fix for 11.10, but i am told it has been fixed in 12.04.
Someone correct me if i'm wrong, but I am running 12.04 and its seems to be completely fixed.

So maybe just wait for next release.


Guides to download videos with wget don't work

If you have the URL of a YouTube video, you can download it just normally with wget. Even the continue option -c works.

The problem is to get the URL.
The URL is part of the inner workings of the YouTube system software.
It is generated by one system component, and used by another - not intended to be used anywhere else.

You need to know how to find this URL. The problem is that the way to get the URL can cange if something in the system changes.
Then, you need updated instructions.

Looking at your links, these instructions are from 2007 and 2008. Since then, it may have changed hundreds of times - no wonder it does not work.

I see two ways to get up to date information on how it currently works to get the URLs:

Learn how to do it yourself.
Find someone who updates a description about it when there are changes.

I would guess the most up-to-date descriptions are used be youtube-dl or something similar.

To use them without using youtube-dl, you need to look at the source code of youtube-dl, and then rebuild youtube-dl yourself with wget. That should be possible for sure.


Search with diacritics / accents characters with `locate` command

If we take a look at updatedb.conf(5), we'll find that there is no much we can do with configuration items.

So we are going to write a script using locate; At the end we are able to run something like my-locate.sh liberacion or my-locate.sh liberâciòn and it will brings us all the possible combinations.

Lets start

First create a simple file as our database anywhere you want it to be, e.g: ~/.mydb; then add your accents characters into that file like this:

aâàáäÂÀÂÄ
eêèéëÊÈÉË
iîïíÎÏ
uûùüÛÜÙ
cçÇ
oôöóÔÖóòòò
...
...

Then we need a small script which does the job for us, I wrote a simple one:

#!/bin/bash

# Final search term
STR=""

# Loop throughout all characters of desired string
for (( i=0; i<${#1}; i++ )); do

  # Split the string in one char
  CH="${1:$i:1}"

  # Find all possible combinations of this char
  CHARS=$(grep "$CH" ~/.mydb)

  # Add an "or" operator between characters
  REG=$(echo "$CHARS" |  sed 's/.\{1\}/&\|/g' )
  REG="($REG)"

  # Append all possible combination of this character
  # to our final search term as an or statement
  if [ "$REG" == '()' ];
  then
   STR=$STR$CH
  else
   STR=$STR$REG
  fi

done

# locate it using regex
locate --regex "$STR$"

Now save it somewhere in your PATH with a desired name, e.g: in ~/bin. It should be already in your PATH environment.

After all simply use something like this to search all possible combinations.

my-locate.sh liberacion

Will find for me all of these:

~/lab/liberacion
~/lab/liberaciòn
~/lab/liberación
~/lab/liberâciòn
~/lab/liberäciòn
~/lab/libÈrâciòn


Download Ubuntu 12.04.4 LTS iso image, and next download Unetbootin and write the iso image to your USB pendrive with Unetbootin. You have to format first the pendrive to FAT32. What operating system do you use for writing the USB pendrive, is it Windows?


Is it possible to list the keymaps available on Ubuntu 14.04? And why is the behavior different in login shell and non-login shell?

loadkeys loads a keyboard map into a virtual console. It has nothing to do with X.

In Ubuntu the preferred way of setting up the console is to use setupcon. See man 5 keyboard.

setxkbmap loads a keyboard map in the X server. It has nothing to do with virtual consoles. I don't understand what's the relationship between setxkbmap and a login shell or non-login shell. The shell is not a graphical application.


Bluetooth speaker no sound in Ubuntu 16.04

I had the same problem after upgrading to 16.04.  For me, there isn't a real fix, but I can get the speaker to work. I'm running Kubuntu so these steps are for KDE, and I'm not sure what the equivalent Unity steps are, but I'd imagine they're similar.

Here's what I did:

Let the speaker connect.
In your audio settings, change the profile to "Headset Head Unit (HSP/HFP)" or equivalent
Power off Disconnect the speaker
Restart the bluetooth service

sudo service bluetooth restart
Power the speaker back on and reconnect
In your audio settings, change the profile back to "High Fidelity Playback (A2DP Sink)" or equivalent

A2DP should now work. So far, it seems that things only go wrong when I try to connect in A2DP mode. Until there is a real fix/workaround, I am going to try to remember to always switch to HSP/HSF mode before powering off or disconnecting the speaker.

UPDATE:

It's sufficient to connect, switch to HSP/HFP mode, disconnect, reconnect, and switch back to A2DP mode. There is no reason to restart the bluetooth service.


Unity icon issue and desktop icons not appearing

Had the same problem. Restart and at the password prompt, click on the small ubuntu logo in the upper most right of the sign in box. click on the "cario-dock (gnome) and then continue to sign in.Your icons should appear. you may have something other than the above but it should return your desktop.


fully track of a mail in evolution. Thread of a mail

Click the message you want to read in thread
Choose Show as Message Thread

Make sure you have View -> Group By Threads checked


It appears, that you don't have any logical volumes on your system. Your root partition is a regular device (/dev/sda5).


Can't create ext4 partition while installing ubuntuGnome 15.04

i used before openSuse, maybe format the PC with a windows disc and install the OS, or try using Gparted using a Ubuntu 12.04 install disc and give it the Ext4 Format.<-------------i recommend that option also make a backup because it could fail and make you loss the data stored in the PC.

Btw srry for the bad english.
Cheers!


You can make the application appear in your Unity menu by creating a desktop launcher of the application.

It will appear if you place this launcher either in either of these two folders:

Folder fo all uesrs:

/usr/share/applications

or

Local Folder for just your login:

~/.local/share/applications

Creating the Launcher

While there are many details and option you can place in your launcher, this is the basics:

Create a file with the extension .desktop.   Place this information.

LogMx.desktop file:

[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Icon[en_US]=[Full path of your icon]
Name[en_US]=LogMx GUI
Exec=/opt/logmx.sh
Comment[en_US]=My LogMx GUI installation
Name=LogMx GUI
Comment=My LogMx GUI installation
Icon=[Full pathname of your icon]
Categories=GUI;software

You can find details of creating Desktop Launcher files at:
https://help.ubuntu.com/community/UnityLaunchersAndDesktopFiles


Maybe you also would like to uncomment the line

deb http://archive.canonical.com/ubuntu precise partner

in /etc/apt/sources.list and install the graphical adobe configuration tool for flash:

apt-get update && apt-get install adobe-flash-properties-gtk adobe-flashplugin

BTW: you can get it for your kde settings too: adobe-flash-properties-kde


Using linux Steam

You can use this page to get an idea of the number of games per platform (please note this may not be totally correct: DLC's, demos, etc should be counted as well). At this moment:

April 2014

PC (Windows): 2880 games
Mac: 781 games
Linux: 401 games

Original data (July 2013)

PC (Windows): 2046 games
Mac: 452 games
Linux: 131 games

If you have an idea of the games you want to play you can check if they are available or not. If not you are a lot more restricted on the choices you can make. Also it should take some (a lot?) time to Mac/Linux catch up with Windows. It really only depends on the creators of games.

Using win Steam on wine

As you are using the Windows Steam client, every game should be available to install. The real question is how well each game works, or if they work at all. You can check Wine Application DB how well each game works and tricks/tips.

Every game I tried with Wine worked, but with some glitches. I have never installed any from windows Steam, but installation should be as easy on Windows (you may have then to make some change to make it work with Wine).

Also as wine translates Windows API's you can expect a performance hit.


Ubuntu 14.04 cannot print through Canon MF8200 series printer

I have solved the problem. The problem is indeed caused by missing 32 bit libs. Parts of the 64 bit driver are provided as 32 bit libs which have unresolved dependencies on a (K)ubuntu 64 installation. You have to find out which 32 bit libs are missing on your system. On my system it was only libstdc++.s0.6. Depending on your setup there my be more  libs missing. To find out, unpack the sources (two tgz-files in the Sources subfolder) and do a

find . -name \*.so\* -exec ldd {} \;|grep not

from the directory where you unpacked the sources.
 This should list all unresolved dependencies. You have to install these libs and then the driver should work.

For me a

apt-get install lib32stdc++6

was all I had to do.


System Monitor -Network History shows activity when internet not being used

open a terminal and type  . netstat -a
yo can save the command output by using netstat -a > /home/user/folder/file.txt


I have a 32-bit zoom_i386.deb file version 5.0.398100.0427 from February that I was able to install and run on Ubuntu 18.04. I can send it to you if you wish.
https://zoom.us/client/5.0.398100.0427/zoom_i386.deb


Qt Creator cannot run HTML5 apps on Ubuntu 13.10, is it broken?

It should be fixed now, it was a packaging issue.


How do I remove the application title from global application menu?

Check out the "Disable the AppMenu ... for all applications" part.

http://www.webupd8.org/2011/03/disable-appmenu-global-menu-in-ubuntu.html

There is one other step, and more packages removed.


How to install Ubuntu 12.04 on Ubuntu 14.04

I think that... unless you intend to get into VMware, what you need to do is install 12.04 "side by side" with 14.04 in separate partitions, so that what you will have is a dual boot.  This is easier than you might think.  If you boot to an ubuntu live 12.04 and select install, it will detect the current installation and offer you the choice of installing 12.04 alongside the current installation.  It will then proceed to partition the hard drive to make room for the new installation.

If instead you are literally interested in making 12.04 run UNDER 14.04, then you need to enter the Ubuntu Software Center, and type "virtualbox", sans quotes.  Virtualbox is remarkably easy to figure out and use, and I've found that the online tutorials for Oracle vmware for Windows appear to apply to this application as well.

I've never actually installed any versions of ubuntu, under virtualbox, only versions of Windows, but I suppose you have your reasons.


scsi_id is in /lib/udev.

So either write the whole path as

/lib/udev/scsi_id

or append /lib/udev to the PATH variable and export the path.

/lib/udev/scsi_id <OPTIONS>

or

PATH=$PATH:/lib/udev
export PATH
scsi_id <OPTIONS>


Ubuntu 15.10 wouldn't boot until I remove nomodeset in grub

Look in /etc/grub.d and /etc/delault/grub. You should find a place where the option is added. Once removed, run update-grub.


How to make keyboard shortcut for wine application?

(I know this wont benefit long-time Linux users, but for new Linux users like me, coming from Windows, I would appreciate if such a guide was created. so here it is :))

OK, I've found the solution!

Xbindkeys is a nice program, given that you can try your newly made shortcut and it'll give you a reply from the terminal, but in my case it would not work any time but when I would push the run command button. I've heard its because gnome-shortcuts has higher priority.

This may be because my particular type of Ubuntu is Zorin.

But, regardless, after you have tried you shortcut and are ready to use it, open system setting, keyboard, shortcuts, new shortcut and just paste the path into the command box, setup button configuration, done!

and remember, any spaces in your path name must be preceded by a \. So
since you are using wine to run the program, put wine before everything, like this;

wine /home/yourrealusername/.wine/drive_c/Program\ Files/Adobe/Adobe\ Photoshop\ CS2/Photoshop.exe

I have it set so this will open when I press Ctrl+., and you must logout and login after doing this (or reset any way doesn't matter). Then it should be smooth sailing!


Extract only package name without version using awk or sed

If you are confident that the delimiter combination is "-" followed by a digit, you can use sed to replace that dash with a space.  You can the pipe this through awk to do some formatted printing.  Something like this:

sed -e 's/-\([0-9]\)/ \1/' _file_ | awk 'BEGIN {printf("%-30s %s\n", "PkgName", "Version")} {printf("%-30s %s\n", $1, $2)}'

Hope this helps.


Copy and paste between Mac and Ubuntu using keyboard shortcuts via VMware Fusion

First verify that "Enable Drag and Drop" and "Enable Copy and Paste" are enabled in the "Isolation" settings.

Then, execute the following commands in Ubuntu :

sudo apt-get autoremove open-vm-tools
Install VMware Tools by following the usual method (Virtual Machine --> Reinstall VMWare Tools)
Reboot the VM
sudo apt-get install open-vm-tools-desktop
Once again, reboot the VM, after the reboot copy/paste and drag/drop will work!


How do I get and install more themes, icons, and pointers?

Installing new themes in Ubuntu 11.10 and 12.04 LTS

Ubuntu 11.10 and later versions switched to GNOME 3, and in the process lost the ability to add new themes easily through the Appearances window. However, new themes can be installed in other ways.

11.04 and earlier uses GTK+2 themes; for Ubuntu 11.10 and up, you'll want GTK+3 themes. These can be found easily at a site like gnome-look.org.

Once you have your themes, extract them to the appropriate folders.

GTK+3 themes go in ~/.themes (or /usr/share/themes to be available for all users)
Icon themes go in ~/.icons (or /usr/share/icons to be available for all users)

To install and use the themes you download, you'll need to either:

install the GNOME Tweak Tool. You may also want to install the User Themes Extension (gnome-shell-extensions-user-theme); see the source below for more information.
install MyUnity

Use these instructions to change to your newly installed theme.

Source: http://maketecheasier.com/install-custom-gnome-shell-themes/2011/09/27


How to enter a declared variable in the mail body, while sending mail using perl script?

Use double-quote " instead of single-quote ' in the $message.  You have blocked expansion of variables/arrays.

$message = "The % HDD usage is @hdd and the % RAM usage is @ram";


Are there really security risk when running Wine?

This ultimately depends on your own computing habits. If you constantly download free screensavers and mouse pointers, you'll probably find a WINE-compatible virus in no time. However, if you stick to malware-free programs, you're pretty much safe. The best way to ensure that no malware is installed is by exclusively using Free Software or Open Source Software, as the temptation to add malware in such programs is much less than Proprietary Software, as there is less chance of being able to do so successfully.

Please note running a virus on WINE is much safer than running that same virus on Windows, since WINE prevents Windows programs from having Super User privileges, so critical Ubuntu files cannot be (easily) modified. If you want to remove a virus, you can erase the entire WINE prefix (which is the equivalent of wiping an entire Windows installation, except it can be removed and reinstalled from scratch much quicker), wiping the virus with it.


How should I add Korean Keyboard on Ubuntu 16.04?

IBus is no longer the default IM framework in Ubuntu for typing Korean; Fcitx is. Hence the fcitx-hangul package was installed when you installed the Korean language, not ibus-hangul.

Either you can switch to fcitx in Language Support, or if you want to use IBus you can install ibus-hangul manually.

Then next time you log in you should find Hangul in Text Entry.

Reference: https://help.ubuntu.com/stable/ubuntu-help/keyboard-layouts.html#complex


Which distribution to choose while downloading Skype from its official site for Ubuntu 13.10?

These worked for me:

Download Skype for Ubuntu 32-bit Precise i386 (it does not matter if your system is on 64-bit).
When the download has finished, open the downloaded file as normal from Nautilus.
When prompted, select Open with Ubuntu Software Center (default).
In the right side of the Ubuntu Software Center window that opens, select Install.
Just in case that the step 4 doesn't work, try from terminal:

sudo dpkg --force-depends -i skype-ubuntu-precise_4.2.0.11-1_i386.deb

Note that this step 5 is not ideal, but I'm almost sure that this will work.

Source: Getting started with Skype for Linux.

The command sudo apt-get install skype didn't worked for you because first you must to add some partner repositories to your sources list. See this answer in this sense.


Probably...

Depending on your hardware, more modern versions of Windows might not run any more, but if you free up all space on the first internal hard drive on the first primary partition installing Windows again should be possible.

Why 1st HD, 1st partition?  Microsoft has a near-monopoly and can dictate how and when Microsoft products need to be installed... ;-)

Before you try this out, however, read this Q&A first!  You've now been promoted to user type 4!!!


Wifi is not working on an Acer-Aspire E 15 (Ubuntu 16.04, Kernel: 4.4.0-21-generic)

You have backports installed and they are not needed in 16.04, so we need to uninstall
cd backports-20151120
sudo make uninstall

Reboot and wifi should work if the firmware has been installed

Not many people have more than one version of backports so you can use the autocomplete that is built into terminal
Type cd backports then press TAB and it should finish the command for you.  Then once in the backports directory run the sudo make uninstall to uninstall backports and reboot


Errors showing while booting 16.04: "AMD-Vi: Event logged [IO_PAGE_FAULT..."

gksudo gedit /etc/default/grub
edit the line that says GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" and add iommu=soft Resulting in something like

GRUB_CMDLINE_LINUX_DEFAULT="quiet iommu=soft splash"

if you haven't changed kernel parameters previously

The order of the parameters doesn't matter, the spaces between them are however important.

save the file
Issue the command sudo update-grub
Reboot

Props to @Zanna who confirmed the required kernel parameter in chat.

For a complete list of kernel parameters check https://www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html


Unity is gone. All window buttons gone. how to fix it?

Try this:

    sudo apt-get update
    sudo apt-get install --reinstall ubuntu-desktop
    sudo apt-get install unity


How to mount disk.root into my new Ubuntu?

You should be able to use the following command to mount your virtual disk:

mount -o loop /media/66CC2BC0CC2B88FF/ubuntu/disks/disk.root /mnt

After running that, the files from your wubi installation should be available in /mnt


If you have an icon defined by the .desktop file, I would have thought that would work.

Personally, when I have non-standard programs on my system, I put a symbolic link to the executable in a directory in my $PATH - I tend to put them in $HOME/bin. For example, with the film script writing software celtx, I created a symbolic link to the executable (in this case $HOME/.celtx/celtx) within $HOME/bin named celtx. Then, I make the .desktop file call simply 'celtx' rather than the /path/to/the/executable. Thus, the .desktop file looks like this:

[Desktop Entry]
Type=Application
Name=Celtx
Exec=celtx
Comment=Write movie and television scripts
Categories=Applications
StartupNotify=true
Icon=/home/evilsoup/.celtx/celtx/icons/default48.png

This works exactly as you would think it should (launched either from Unity, or from the terminal, I get the icon defined in the .desktop). I would have thought that your method of using an alias would work just the same (maybe if you change the Exec line in your .desktop to call the alias, rather than the full /path/to/command?).


The right way to install fglxr (ATI/AMD Drivers) in 12.10?

Download the installer from AMD's website (as of this post, the latest stable version is 13.1 which I don't believe is available from the PPA at this point), run the installer (you'll need kernel headers, gcc, and a few other things, just look at the log when the installer fails).  Make sure you build Ubuntu debs from the installer rather than installing directly from the amd script.  There are a few dependencies that the installer won't tell you about unless you build debs.  Without those it won't work with dpms (your display shutting off to save power) and you'll want to chuck your computer out the window (been there).

I'm running fglrx 13.1 right now with no issues (apart from 100% CPU usage when the display shuts off (it's a bug that will hopefully get fixed soon, but you can get around it by setting the vsync option in catalyst control to "on unless application specifies otherwise")).

Catalyst Driver (64 bit)

Wiki Instructions

Launchpad Bug for 100% CPU usage on dpms standby.

Workaround #1 works for me.


I understand now - Ubuntu's runlevel differ from the standards, see: http://upstart.ubuntu.com/cookbook/#runlevels

No, actually you don't understand.

You're working with a mental model of the operating system that has twice been superseded on Ubuntu.  Upstart was introduced a fair few years ago; and the version that you are using now (16.04) has superseded even that.

You are using Ubuntu 16.04, a systemd operating system.  Run levels are "obsolete" according to the systemd doco.  You can forget about them.  The Upstart Cookbook and the manual pages for upstart's init do not apply (unless you have explicitly switched back to upstart).

You don't need to mess around with /etc/rc.local.  That's from the rc system that preceded the van Smoorenburg rc system that you are erroneously thinking you are using now.  It's a mechanism that has been superseded three times.  /etc/inittab is a thing of the past, too.  Ubuntu hasn't had van Smoorenburg init for a decade.

You're using Ubuntu 16.04.  Don't begin with Version 6 UNIX rc or van Smoorenburg rc; be wary of beginning with upstart job files; forget about van Smoorenburg init; and forget about run levels.  Make a systemd service unit, and learn about targets.

(Or install daemontools, or daemontools-encore, or freedt, or runit, or nosh, or perp, or s6, and learn about daemontools-style services.)

Further reading

Jonathan de Boyne Pollard (2015).  /etc/inittab is a thing of the past..  Frequently Given Answers.
https://unix.stackexchange.com/a/196014/5132
https://unix.stackexchange.com/a/204075/5132
https://unix.stackexchange.com/a/233581/5132
https://unix.stackexchange.com/a/247543/5132
https://askubuntu.com/a/618138/43344
https://unix.stackexchange.com/a/211927/5132
https://unix.stackexchange.com/a/200281/5132


Is it possible to install a docker container on a virtual Ubuntu Server?

Yes it is completely possible and people do it all the time. For example you can run it on Linode using the guide here https://www.linode.com/docs/applications/containers/docker

The same guide should apply to any distro and any VPS Provider.


Stuck on POST screen while booting (power on/ restart)

Issue resolved once I executed sudo apt autoremove

It reconfigured my GRUB, which I suspect was causing the issue.

  Generating grub configuration file ...

  Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.


how to install panda via terminal in ubuntu 18.04 and 19.04?

You should first install pip or pip3 depending on your python version. You can check your python version by executing the following command in your terminal:

python -V

or

python --version

If you have Python 2.x, then you should install pip, and then panda as follows:

sudo apt-get install pip
sudo pip install panda

If instead, you have Python 3.x, then you should install pip3, and then panda as follows:

sudo apt-get install pip3
sudo pip3 install panda

Your installation should go on smoothly in your given case.


Epson provides Linux drivers on their website. I've found a few using XP-202 as a search keyword. I'm not able to verify if they work with Ubuntu 12.10, as I don't own this device.


Is there a wifi-menu (from Arch Linux) equivalent in Ubuntu?

A good equivalent in Debian/Ubuntu is wicd-curses.

Just remember to input the WPA password BEFORE trying to connect to the network:

Highlight the WiFi you want to connect to
Press RightArrow to configure the network
The last option is the password. Input the password
Save
Press ENTER on the network list to connect automagically.

You can even configure it to connect automatically next time it sees the network.

Sources and more info: Guide to WICD


Upgrade 12.04 to 12.10 using startup disk

I solved this by choosing "Test Ubuntu" instead of "Install Ubuntu", connecting it to the internet then opening "Install Ubuntu 12.10". The upgrade option is now working.


Use KDE wallet to authenticate a mount call

There is no way to tell mount which program to use for storing/reading passwords, but there are a few KDE tools you can combine to automate the process.
For storing/reading passwords: kwalletcli
For a GUI password prompt: kdialog
You should be able to install them with your package manager.
I wrote a script that does this (with a few extra options). It should be doing everything you asked for: if the password does not exist, a GUI prompt is shown (if available) and the password is stored in a wallet for later use.
You can update the password from the command line with kwalletcli again, but the only way I could find to delete them is the KWalletManager GUI app.
Here's the script as of 2020-08-22:
#!/bin/sh

usage() {
    echo "Usage: $0 [-u username] [-o options] share mount"
    echo
    echo "Defaults for optional parameters:"
    echo
    echo "  username:  the output of 'id -un', i.e. the current user"
    echo "  options:   defaults,uid=1000,gid=1000,iocharset=utf8"
    echo "             Pass an empty string to clear default options"
    exit 2
}

while getopts "u:o:" opt; do
    case "$opt" in
        u) USERNAME="$OPTARG" ;;
        o) OPTIONS="$OPTARG" ;;
        *) usage ;;
    esac
done
shift $((OPTIND-1))

[ "$#" -ne 2 ] && usage

# Mount settings
USERNAME="${USERNAME:-$(id -un)}"
OPTIONS="${OPTIONS-defaults,uid=1000,gid=1000,iocharset=utf8}"
SHARE="$1"
MOUNT="$2"

# Wallet settings
FOLDER="CIFS credentials"
ENTRY="$USERNAME@${SHARE#//}"

read_password() {
    PASS_PROMPT="Password for $USERNAME@${SHARE#//}: "

    if command -v kdialog >/dev/null 2>&1; then
        PASSWORD="$(kdialog --password "$PASS_PROMPT")"
    else
        # from https://stackoverflow.com/a/28393320/6702490
        trap 'stty echo' EXIT
        stty -echo
        printf "%s" "$PASS_PROMPT"
        read -r PASSWORD
        printf "\n"
        stty echo
        trap - EXIT
    fi
}

if ! PASSWORD="$(kwalletcli -f "$FOLDER" -e "$ENTRY" 2>/dev/null)"; then
    if read_password && [ -n "$PASSWORD" ]; then
        kwalletcli -f "$FOLDER" -e "$ENTRY" -p "$PASSWORD"
    else
        echo "Empty/no password entered, skipping writing password to wallet and mount."
        exit 1
    fi
fi

sudo mount -t cifs -o "${OPTIONS}${OPTIONS:+,}username=$USERNAME,password=$PASSWORD" "$SHARE" "$MOUNT"

Note: using kwallet-query would be the better option since it comes bundled with KDE/kwallet and supports non-default wallets, but I wasn't able to make it store a password. There were no errors shown and no non-zero exit code, but the password wouldn't be written to the wallet.


How to start a terminal with certain text already input on the command-line?

You can do this with expect (install). Create and make executable ~/bin/myprompt:

#!/usr/bin/expect -f

# Get a Bash shell
spawn -noecho bash

# Wait for a prompt
expect "$ "

# Type something
send "my text to be posted"

# Hand over control to the user
interact

exit

and run Gnome Terminal with:

gnome-terminal -e ~/bin/myprompt


Have you tried running grsync from the command line with sudo? If that doesn't work you can change the permissions of a file like so:

sudo chmod u+w file.txt

The above will add write permissions for User to file.txt. However for sudo to work as intended you will need root permissions on your computer. Which if it is your personal computer I am assuming you do.


When I am back from hibernate, the system hangs on black screen?

If you want to use your swap for hibernating then you need to update the UUID in

  /etc/initramfs-tools/conf.d/resume

with this content

  RESUME=UUID=xxx.

Don't forget to

  sudo update-initramfs -u

One can also overcome black screen issue by editing the grub configuration. Do this if you have created a swap at the time of installation:

sudo gedit /etc/default/grub

Find the line reading:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

Add nomodeset to the end, inside the quotes:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"

Exit from gedit and save the file. Make grub aware of the new changes:

update-grub2


This is not a problem with "multitouch", it is a problem with "touch".

Before the 14.04 update, the touchscreen was interpreted as another mouse. After the update it is not, but unfortunately Chromium is not reporting touch-events. This means that no graphical web app can be used with Ubuntu on a touch screen.

I managed to make it work on my computer by starting Chromium with the command:

chromium-browser --touch-events=enabled


Which upstream nameservers do dnsmasq/NetworkManager use really?

Found out where that information, after is has ben received via DHCP, is kept:

/var/lib/NetworkManager/*lease

For changing those settings, refer to NetworkManager's documentation:

nmcli con modify my-office my-office ipv4.ignore-auto-dns yes ipv6.ignore-auto-dns yes
nmcli con mod test-lab ipv4.dns "8.8.8.8 8.8.4.4"
nmcli con mod test-lab ipv6.dns "2001:4860:4860::8888 2001:4860:4860::8844"


why would /etc/init.d/mysql run the wrong upstart job?

The correct contents of /lib/init/upstart-job for lucid or maverick are http://paste.ubuntu.com/517673/
Please triple-check that it is a regular file before editing this, and not a symlink (in case the symlink in in the wrong direction). Since this file is used for starting many core services, you do not want to have it broken further, and should check carefully before rebooting.
At this stage, I'm not sure how it could have the different contents unless there was some manual intervention to change it. The package in maverick appears to contain the correct symlink.


A2DP on PulseAudio - terrible choppy/skipping audio

As none of the other answers worked on my system (Ubuntu 18.04 LTS on a 2012 MacBook Air), I found my solution on the german ubuntuusers wiki. English summary of the german instructions:
The choppy output might be caused by the A2DP implementation, and how it buffers sound before encoding it. For me, changing this buffer's size solved the choppy sound problem. You need to perform three steps:

Find necessary info about the bluetooth device (while it is connected!)
pactl list | grep -Pzo '.*bluez_card(.*\n)*'

The output should be something like
    Name: bluez_card.28_11_A5_84_B6_F9
    Driver: module-bluez5-device.c
    ...
    Ports:
    speaker-output: Speaker (priority: 0, latency offset: 0 usec, available)
        Part of profile(s): a2dp_sink, headset_head_unit
    speaker-input: Bluetooth Input (priority: 0, latency offset: 0 usec, not available)
        Part of profile(s): headset_head_unit

We see that the buffers have currently 0 latency. In the next step, you will need the NAME and PORT of your output. In this example, these are bluez_card.28_11_A5_84_B6_F9 and speaker-output, respectively.

Set the buffer size (latency) of your card to a suitable value with this command pattern:
pactl set-port-latency-offset <NAME> <PORT> <BUFFER_SIZE_MICROSECONDS>

The latency unit of the following command is microseconds, so I'm using a 50 millisecond buffer for my command here:
    pactl set-port-latency-offset bluez_card.28_11_A5_84_B6_F9 speaker-output 50000

Restart your bluetooth service to apply your change
sudo service bluetooth restart

As there is usually no documentation about this, you may have to experiment with higher or lower buffer values. Many people people posted their working latencies in the comments to this answer. Check them out for guidance on the latency value.


which java should i use for ubuntu 13.04 64bit

If you are using Ubuntu, you don't need to worry about this. Open the software center and search for eclipse. The installation of eclipse will also take care of the Java jdk.


Unplug the second nic from the switch/hub/router and let the auto discovery run.  Also make sure you aren't plugged into the iLo port otherwise I was building one today, make sure you run the Support pack to setup your raid and mirrors first THEN install the OS or the OS won't see the drives.


You can use web console. It is not an Add-on but it allows you to edit HTML, CSS, Java Script, and Etc.

To Use It

Press F12 And Select HTML, CSS, Or Script Tab To Edit


Mysterious multicast packets after bridging a bond0

Some device on your network is sending out IGMP queries. Nothing to worry about.


How to incorporate an environment variable into a systemd option assignment statement

No. man systemd.exec documents WorkingDirectory= and no mention of substitution is mentioned there.

(By contrast, man systemd.service explicitly documents some substitions for ExecStart=).

As an alternative, perhaps one of the Specifiers documented in `man systemd.unit will work for your case.


Cannot get Ubuntu 14.04 or 14.10 to install on windows 8.1 machine

Try the outlined solution(s) in this post

After I Select: 'Start or Install Ubuntu', it fails to boot
If you have arrived at this prompt, you have successfully booted from the CD.
But if you can not get any further, you may want to try some optional
bootParameters to get you running.
Press F6 for "Other Options." Try to apply boot parameters:
BootParameters

Once you press F6, you can use this menu to set boot parameters.

F6. Other Options. ACPI (Advanced Configuration and Power Interface)
and EDD (Enhanced Disk Drive) options which may help if your computer
does not support or has problems with these systems. Highlight the
selection and press the ENTER key or SPACE key to select it. An "X"
will appear, indicating selection. Multiple items can be selected from
this popup menu. Hit ESC to leave the popup menu. The selections are
retained at the time the user presses the ESC key.

Changing the CD Boot Option Configuration Line
(This is only necessairy if, after using the popup menu options, Ubuntu still failed to boot.)
In addition to displaying a popup menu, the F6 key also activates in-line editing of the boot command. Pressing F6 brings up the popup menu. Pressing ESC, whether selections were made or not, removes the popup window but opens the boot command for editing. The phrase "Boot Options" is fixed on the left side of the screen. The command scrolls off to the left to leave the right end available for appending. The user may add additional inputs before or after the "-- ". Allow one space between each additional input.
The "-- " entry defines the boundary between options which are specific to the installer and ones that are copied to the target system. Often you would like to copy the boot option to the target system, so add the option at the very end of the line, after the "-- ".

Editing the boot command line.

Press the F6 key.
A. If desired, select one or more options with the arrow keys, then press ENTER or the SPACE key to select them.
B. Any popup menu option enabled when ESC is pressed is retained.

Press ESC to remove the popup screen. The boot command line is now available for editing and will remain so as long as no popup menu is visible.

Leave a space following the "--" and add the desired option (A list of Common Boot Options which can be added to the command line is presented later on this page.). If entering multiple options leave a space between each entry.

The command will be executed when ENTER is pressed and the boot sequence will begin.

The F1-F6 keys will still respond and the user can make additional menu selections.
The command line will be accessible for appending until ENTER is pressed.

Pressing ENTER will start the boot sequence.

Example Entry
Above is an example of adding the vga=771 option to the end of the Boot Options line.
Note there is a space following "--" and before the added option.
Ubuntu now uses Grub 2 as its bootloader. The "vga=" option shown in the example is deprecated in Grub 2 but will still work. After Ubuntu is installed on a system the user should make the appropriate graphics mode entries in the Grub 2 configuration files.


How to enlarge an LVM partition when the virtualised (MS Hyper-V) drive has been resized

You are using LVM to manage your partitions. You have to first extend your physical volume using pvresize command. Example (assuming you want to extend the physical volume to entire disk and /dev/sda is the name of your PV):

pvresize /dev/sda

You can get list of PVs by pvdisplay or pvscan (See https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/logical_volume_manager_administration/physvol_display for more details).

After you have extended your PV, you need to extend your LV by lvextend command. Example:

lvextend -l +100%FREE /dev/VGNAME/LVNAME


Creating a PPA containing a Node.js script

If the term "PPA" means a real Launchpad-hosted PPA, you must host the source code on Launchpad and use Launchpad's builder.

Alternately, you can host your own third-party repository (different from a PPA), and you can manage it however you like. Debian instructions

If your package may have wider appear, you can contribute it to Debian, where it will get merged into furture releases of Ubuntu. Then you don't need a separate repository at all.


Is there a way to do full disk encryption after the install?

LUKS in-place encryption exists. But you need to set up your environment a little as per the pictures:

(Also see this question)


How do you install and run apps from a flash drive/ sd card

You can add the path of the installed applications to .bashrc (presuming you are using BASH).
Simply open the .bashrc with your favourite editor and insert a new line with
PATH=$PATH:/mountpoint/bin
where mountpoint is the mount point of your external storage.
bin is the directory of you used applications. You can even add more if you like, as for example PATH=$PATH:/mountpoint/bin:/mountpoint/sbin:/mountpoint/usr/bin:/mountpoint/usr/sbin.


It says it's possible when using wayland, are you sure you use it?
Anyway I use imwheel.
sudo apt-get install imwheel
Here is the script for a small GUI: http://www.nicknorton.net/?q=node/10
Don't forget to autostart imwheel in system settings.


How can I redirect *.localhost to 127.0.0.1 in Ubuntu 14.04?

As @Danatela mentioned, you need to have dnsmasq installed in order for that approach to work. You can check if it is installed using apt-cache policy command:

$ apt-cache policy dnsmasq
dnsmasq:
  Installed: (none)
  Candidate: 2.68-1
  Version table:
     2.68-1 0
        500 http://ru.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages

Use these commands to install it:

sudo apt-get update
sudo apt-get install dnsmasq

Alternatively, you can edit your /etc/hosts file and add the following entries:

127.0.0.1    foo.localhost
127.0.0.1    bar.localhost


You wrote:

  Noticing what I had done, I formatted it as FAT (which I think it was before the accident).

If the partition was indeed FAT before the accident, then that suggests it was an EFI System Partition (ESP), which in turn implies you were booting in EFI mode. If this is correct, then recovery is relatively simple, and can be done in several ways, the easiest two of which are:

Boot to an Ubuntu live CD in EFI mode, install the Boot Repair tool, and run it. This should install a fresh copy of GRUB on your ESP and everything should start working again.
If Secure Boot is enabled in your firmware, disable it; then download the USB flash drive or CD-R version of my rEFInd boot manager, prepare a boot medium from it, and boot using it. rEFInd should give you options to boot your Linux kernel. Boot it. Once Linux is running, you can open a Terminal and either:

Install the rEFInd PPA or Debian package, as described on the rEFInd downloads page.
Mount your ESP at /boot/efi, then type sudo grub-install followed by sudo update-grub to re-install and configure GRUB.

Before you attempt either of these procedures, though, I recommend you check for existing kernels by mounting your Ubuntu root (/) partition and checking the contents of its /boot directory. If that directory is empty, then you have no kernels, which means the partition you overwrote was probably a Linux /boot partition and not an ESP. In this case, you must re-install your kernels. If you see a number of files, including ones with names that begin vmlinuz, then you did not overwrite a /boot directory and chances are you can recover your system with the either of the procedures I've just outlined.

If you need to recover your kernels, then the procedure is more complex, and I don't happen to have step-by-step instructions handy. It can be done, but it might be simpler to back up your personal files from the /home directory, re-install, and then restore your personal files.


Need to downsample video to a lower resolution

Terminal commands (Which by default are not installed) are:

MENCODER

Install it by sudo apt-get install mencoder

mencoder

The part about mencoder that you want is the parameter -vop scale which tells mencoder to what scale you want the video to go to. This is normal if you want to reduce bandwidth use, lower video size, etc..

mencoder input.mp4 -ovc lavc -lavcopts vcodec=mp4 -vop scale=640:480 -oac copy -o output.mp4

or

mencoder input.mp4 -ovc lavc -lavcopts vcodec=mp4 -vf scale=640:480 -oac copy -o output.mp4

or a simple

mencoder input.mp4 -vop scale=640:480 -o output.mp4

Although from my experience is better to include additional information for video and audio like the one above.

FFMPEG (Deprecated)

Install it by sudo apt-get install ffmpeg

ffmpeg

Here is an example of ffmpeg:

ffmpeg -i input -vf scale=iw/2:-1 output

Where IW = Video Input Width.

Scale = Parameter to scale to. In this case you are dividing the original size by 2 (iw/2)

both of which can provide more information if you either execute them without parameters or variables like just mencoder or ffmpeg or type for example man mencoder or man ffmpeg which will give you a VERY extensive little manual on how to work with them.

AVCONV <-- I love this guy!

avconv

To Install - sudo apt-get install libav-tools

To Run - avconv -i input.mp4 -s 640x480 output.mp4

Where -i is for the original input file, -s is for the size for each frame and the name of the output final goes in the end.

GUI tools which I love are:

AVIDEMUX - It can resize and lower the size which helps in cases where the objective is to lower size. avidemux

HANDBRAKE - Excellent tool for converting videos and optimizing size. I use it a lot when going from ogg to mp4 with h.264. Lowers A LOT the size. handbrake

OPENSHOT & PITIVI - Both are good video editors tha can help lower size when rendering the video. openshot  and pitivi

So in conclusion, for direct resizing/scaling you can use the terminal ones. For size you can use all.


Why are my file selection dialogs so big? How do I make them smaller?

I managed to find a solution by figuring out that the dialog modal is always 1440 px wide. So I did grep -r "1440" ~/.config (I also looked in ~/.gnome, ~/.gconf, ~/.gconfd/ but they didn't turn up anything interesting.) I stumbled upon this gem:

.config/gtk-2.0/gtkfilechooser.ini:GeometryWidth=1440

Removing that line (and the corresponding GeometryHeight) solved the problem for me.


Where to find default/ test page for Apache2

Make sure the html home page file is in /var/www, and is called index.html - index.html is the first/default webpage you should get on typing the sites domain name/IP address. All other files can be linked to & from the index.html root/home file.


For Bugzilla you need...

Perl (5.8.1 or above)
MySQL
Apache2
Bugzilla
Perl modules
Bugzilla using apache

Some remarks up front:

If any of these are already installed just keep an eye on settings that need to be set. Check these with what you used and change them to your needs.

If you need information about Perl, MySQL, Apache these are some LAMP how tos: 1, 2, 3, 4, 5.

Also have a look at this how to (from Saariko in comment) if the below does not work for you.

If anyone finds typos feel free to fix them, or if you can think of improvements feel free to add them in

Here we go...

Perl

Verify what perl you are using:

perl -v

It should show something like this:

This is perl, v5.10.1 (*) built for i686-linux-gnu-thread-multi
(with 53 registered patches, see perl -V for more detail)

Natty uses 5.10. If yours is lower than 5.8.1 you need to upgrade it.
MySQL

Verify if you have a MySQL running with

mysql --version

If not installed install mysql-server mysql-admin mysql-client

Make sure to follow guidelines and set up a root account with a decent password. See the links above for how to set up a LAMP server if you need it.
Create a user bugzilla (change it if you want something else)

sudo useradd -d /home/bugzilla -m bugzilla
sudo passwd bugzilla

And create a database and set permissions for user bugzilla

mysql -u root -p
mysql> create database bugzilla;
mysql> grant all privileges on bugzilla.* to bugzilla@localhost;

You need database name, user name and password for the user later on.
Apache

Verify if Apache is installed:

apache2 -v

and

http://localhost

should show a welcome page or a website.
If not installed...install apache2
Configure apache2 as you normally would. See the links at the top for how to set up a LAMP server if you need more.

And now for the important part... setting up bugzilla in apache2:

sudo -H gedit /etc/apache2/apache2.conf

and edit in the following ...

Alias /bugzilla/ /var/www/bugzilla/
<directory /var/www/bugzilla>
Addhandler cgi-script .cgi .pl
Options +Indexes +ExecCGI +FollowSymLinks
DirectoryIndex index.cgi
AllowOverride Limit
</directory>

(Note the trailing "/" on the first line)

Add a user apache2 if you do not have this already.

 sudo useradd -d /home/apache2 -m apache2
 sudo passwd apache2

Add the user to apache2 variables...

sudo -H gedit /etc/apache2/envvars

and include

 export APACHE_RUN_USER=apache2
 export APACHE_RUN_GROUP=apache2

The cgi addhandler could be in another place if you install bugzilla from the repositories (see apache cgi how to)
Bugzilla

Install bugzilla3

Or download the latest stable (4.0.2 at the moment) or latest cutting edge version from  bugzilla. Short instruction on the latter:

 sudo tar -xvf bugzilla-4.0.2.tar
 sudo mv /download/bugzilla-4.0.2 /usr/local/
 sudo ln -s /usr/local/bugzilla-4.0.2 /var/www/bugzilla

Make sure the directory has rw permissions:

 sudo chown -R www-data:www-data /var/www/bugzilla

Perl modules for Bugzilla

Bugzilla uses a script checksetup.pl to check if everything is set up correctly and if things changed to set them up for you. By manually installing the perl modules you can skip this.

Check if all modules are installed:

 cd /var/www/bugzilla/
 sudo ./checksetup.pl --check-modules

If not installed...

 sudo perl -MCPAN -e install

localconfig holds the configurations and needs to be set up. So...

 sudo -H gedit localconfig

and change $db_name to the database name, #db_user to the user and $db_password to the password you used during setup of MySQL.

 $db_name = 'bugzilla';
 $db_user = 'bugzilla';
 $db_pass = 'bugzilla@pwpspaswsword';

After saving these settings

cd /var/www/bugzilla/
sudo ./checksetup.pl

will add all kinds of tables to MySQL.
Adding server group apache2 to bugzilla:

sudo -H gedit /var/www/bugzilla/localconfig

and add

$webservergroup = 'apache2';

To include these changes do a

cd /var/www/bugzilla/
sudo ./checksetup.pl

and this will ask you to setup your administrator for bugzilla.
It works!!

Restart apache2

sudo /etc/init.d/apache2 restart

and open a browser and insert URL

http://localhost/bugzilla/

and I have a working bugzilla login page on my own machine.


Source command still looking for bashrc file in the wrong folder

From the comments...

When editing your ~/.bashrc file, the instructions say to add the following command...

source $HOME/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc

and you entered...

source /opt/openfoam211/etc/bashrc

You could actually even leave the edit out of ~/.bashrc, because the file at $HOME/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc is effectively empty.


How will they make the Software Centre sync now that U1 is no longer available?

It's the Ubuntu One Files service that got shut down, not Ubuntu One plataform itself.

https://one.ubuntu.com/


Failed to fetch https://dl.winehq.org/wine-builds/ubuntu/dists/trusty/InRelease Unable to find expected entry 'main/binary-powerpc/Packages'

The repository you're using does not include package for the PowerPC platform your Powerbook uses. It only supports i386 (for 32bit pcs) and amd64 (for 64bit pcs).

The reason is likely that the original wine does not really support running on PowerPC platforms.


Unable to run TOR Browser Bundle, not even in terminal

It seems that the device you have extracted it on does not support permissions (is not a native Linux filesystem). Re-extract the tar.gz but do it in your home directory (home directory should support permissions).

DO NOT JUST COPY THE FILES FROM WHERE YOU EXTRACTED THEM! IT WILL NOT WORK!


Cannot play Blocks That Matter indie bundle game

We are working on this.

For now, what you can try is:

open terminal
move to the game folder:

cd /opt/BlocksThatMatter/

allow executable rights on the BTM executable:

chmod +x BTM
(may requires admin rights: sudi chmod +x BTM)

add update your path:

export LD_LIBRARY_PATH="/usr/lib/jvm/jdk1.7.0_01/jre/lib/amd64"

(this may vary depending: your processor architecture ; if you are using the OpenJDK, or the Oracle non-free ; the place where you installed your java machine)
For example, it can also be export LD_LIBRARY_PATH="/opt/java/jre/lib/amd64"

then try ti run the game with

./BTM

Hope this temporary workaround helps.


Why did my key got stored in home instead of .ssh?

The example - /home/<user>/.ssh/id_rsa - provides the default key name id_rsa and the default path /home/<user>/.ssh/ where it will be stored. So analogically you should provide a path and a filename. In case you don't provide a path the key will be generated within the current directory.


What is the difference between skype static and dynamic?

A static binary/program is one that does not have any other dependencies; it will usually run on recent Linux distributions without having to install any other libraries.
A dynamic binary/program (much more common) depends on other libraries to run, and your package manager will usually install these automatically when you install the program.

Short answer: go for the dynamic, unless you get some error and it doesn't work, in which case you can try static.


Impossible to install Ubuntu 10.10 dual boot with Windows 7 on new Acer desktop computer

Boot up 9.10 Live CD (I was installing 10.10)

Open a terminal and type

sudo apt-get remove dmraid

then type "y" then enter

Now try to install! This solved my problem and hopefully for everyone else who has this issue!

From http://ubuntuforums.org/showpost.php?p=8225121&postcount=1 . Go to the bottom of that page and read the "Ultimate solution"


I fixed this issue by fixing the permissions on

~/.cache/thumbnails

That is sudo chmod 777 -R .cache/thumbnails

Hope that helps


How to script ssh-keygen with no password

This works for me:

ssh-keygen -t rsa -N '' -f foo.rsa

Change the filename to what you wish.  Note the use of ' instead of "

Not sure what you mean by the second bit...Isn't the generated key already PEM?

$ ssh-keygen -t rsa -N '' -f foo.rsa
Generating public/private rsa key pair.
Your identification has been saved in foo.rsa.
Your public key has been saved in foo.rsa.pub.
The key fingerprint is:
56:45:5d:54:a6:11:86:63:20:c9:b7:f3:b8:ba:c0:11 ssta@debianscratch
The key's randomart image is:
+---[RSA 2048]----+
|       ....ooo++*|
|        o...+..+ |
|      E  ..o ..  |
|       . .o      |
|      . S  +     |
|     . o  . .    |
|      o    .     |
|       .  .      |
|        oo       |
+-----------------+
$ file foo.rsa
foo.rsa: PEM RSA private key
$ cat foo.rsa
-----BEGIN RSA PRIVATE KEY-----
MIIEpAIBAAKCAQEA1xfyJbRRB1DOQpHFzzxR6s9z2iPX1U2q0WSbs/G9wWq/Wb7W
GhI6kNfU15n4IIj/DsdDy6ePGWDnGREo89v72svRpMz2nnAXmcg6XSr7LGnDlFvW
X6hST35RUIuha0AD8+vxRsCfH3FFaXb7Ns1lAgMI7eJ+2FSjY5pLrTFsoPyHD9Vn
CLeGhEkpCqs0KsPgEkzQmdJdzeeEDbnjy3QEWR7OiH91e6uV7Mp5oA39zDXw1Gog
d8+m7r89CAwRRqm/q9v9c27UflB65mrx87OIVfeZhj/cLlWGynSn/tBbgNkKifn8
PmqJKi4xvuN5U1+wgUBi2I9VVVga9JXutUGzAQIDAQABAoIBAQCAAH8ZExK5cMwe
b5OxPSteunAuW/BAvwStsdq7HlyXcwhGxzuwrjJuKhM+7yDrc7udttXQp3mQV8uP
blfZr4tU7MBo+5S0Ou7AlJivAzoQdyxt6K1NpeS96+VGMqIwKhtwGHQwb8cCNi1h
ku3y8g5vQREaSBTGdq/5QURR4DzOHAHgwxjGGFwB9dFPal0APrahqybaGXF7ir3M
JQlg3CdX7K7xN009V8dL5rN4q3CrrU1yUYcKK6EdkQEcy2a8MtY96VZAVx/Bcpab
rwK7mdG95GGJMVQ4RlLAdQ7GIn1XBhFxkMP3wHThdsWqD/QLgYK/97IDzN0UaLb9
bSsTrX61AoGBAPvxSglrwVe5l92RYhX43QsCeRw0Vs9/FIcJGEO7+MWZt8v3wBRg
B331mvGr0iudssKVr25Q9NxQGhd72MD1d8aGBBZr5JUIxKCmKCfig6/J/vs6LqJg
XWoiN/YZ1/jXJKU8UCbLHvlYAxUb+0DgPZWRnMIG2WKR3bJnNLwY6AZTAoGBANqO
vD5oLHI24xSatGp1ENRCLipXlArHps+TpBBHNllFonk8RlMCzzvx0P6uF5DxJXkd
olQG5aPJQ5G/tfjQ5I4oSAbJsuDFSg4oJcLIodHd16G7nZzN7swr8ZUQeWqF7AdP
a9IgKP+f/vfznPo4exc+eBb5Ktbxn7whQex+7U7bAoGAMiAkmdE9i2WaiHO3byWv
XNRmIi1rpCblf6RYlolcinv17HfjWGpusyndZP3Jd/INMde0Kp+ix/6L4mY6jtGH
vhDF2Wwn81rmPAwy6xSPHLd0qqk9xAKmM0qRlb44kQLFALcKP12kUPmoy1dg2tyC
hDKPXK8eKxVYZXlRLadK6o8CgYBN8wZ0g5cGjUjkOmEKbwI3kfsBIwcr6RU3h4LG
Q3/AyzMtZi/2v1PGH3LYwqKpETi6P7V7npIcnlW5D9UJDwfVI8y8jwd7XyIQdoUx
OXltbl/P0ShfmpsGus2Iyr1jHqyV1t+vq8Szlw7KxFpCbA6Ktb8DAo8i5j6ATKRE
guiEbQKBgQDPRmBq4i2/X7C4gNSPI2DeSJMieQZpvbeUV2L0oKZxWWqC08plvyJQ
aUrdKPF9MEMK0B4PBq0A6IMAs+BRBjAiP6dNxmBkIK3ZxNuX9Hqswy7gQ+cIppcn
cA7sKLeSlI0bmJDQ6UQEJqDiL1ZoXyLaE/ckwgneR2U+VIfCpuKDKw==
-----END RSA PRIVATE KEY-----


The proprietary nvidia driver here won't help unless you're using some form of PCIe forwarding (probably not unless you explicitly enabled this support in your host BIOS and have more than one graphics device.)

Instead, you should install the virtualbox guest additions in the VM, as it will provide better integration with the VM hardware, it's available in the package virtualbox-guest-dkms and will install everything into the kernel for you. The guest graphics for X11 is in virtualbox-guest-x11. Just sudo apt install them.

For your stutter issue, I would check the audio device being emulated, something like

Try different audio controllers, some may perform better than others, and make sure your host audio driver is on the one you're using. (Pulse by default.)


Why do question mark characters appear when changing the permissions of directory?

To view the permissions of a directory, you need to pass the -d flag to ls, like this:

ls -ld squid3

To read a file, its read permission needs to be set. However, to read a directory and the listing of its files, both the read and the execute permissions need to be set. If they aren't, you get weird errors like the ones you're experiencing.

To set the read permission on files and the read and execute permissions on directories recursively, use this command:

chmod -R a+rX directoryname

Here's an explanation of that command:

chmod is the name of the command, use for changing the permissions of files.
-R is the recursive flag. It means apply this command to the directory, and all of its children, and of its children's children, and so on.
a stands for all: apply these permissions the owner of the file, the group owner of the file, and all other users.
+ means add the following permissions if they aren't set already.
r means the read permission.
X means the execute permission, but only on directories. Lower-case x would mean the execute permission on both files and directories.

More information is found in the manpage for the chmod command .


First, check that the script is executable.

Second, try running the script yourself from the same account as cron will run it from.

The script will be executed from the user account of the crontab.  So if you run crontab -e while logged in to your regular user account, all the jobs in that crontab will be run as you.

Note that if you have mail working (eg a MTA installed) on your machine you'll be emailed when a cron job emits any output (such as error messages).


The only issue that I can see is that NTFS support in Ubuntu is a little slow.  Reading and writing to these partitions might be slow, but this may depend on your hardware.

You should test the speed on your system to see if it's fast enough for you - compare it with the native ext4 partition of Ubuntu.


Press CTRL + ALT + T to open a terminal window.

Type the following command (or just copy and paste) into the terminal window and then press Enter.

gconftool-2 --set --type boolean /desktop/gnome/peripherals/touchpad/touchpad_enabled true

source

Please post any errors or if it doesn't work.


Is there any standard tool for checking hardware and drivers?

How do I test whether all my hardware is properly working? Is there any standard tool for error checking, benchmarking, etc for checking hardware?

In Ubuntu we have such option with an application named as System testing. You can open it from unity dash by typing as System Testing.

After opening here , you can perform all your required tests. Its having everything you need.

Update : if you haven't found it already installed in your Ubuntu , you can install it with

sudo apt-get install checkbox

Hope that helps.


I'm getting a NODATA error when trying to update

I think you have installed the the key viewizard-gpg.asc from this URL with these commands:

wget http://www.viewizard.com/linux/viewizard-gpg.asc
sudo apt-key add viewizard-gpg.asc

But there is no key and no repository any more.

Remove these lines from your sources.list, and the problem is fixed.

## Viewizard Games repository
deb http://viewizard.com/linux debian/


ifconfig not showing all IPs bound to the machine

ifconfig is essentially deprecated, although there are no plans that I am aware of to get rid of it. The replacement is the ip command. The modern equivalent of ifconfig on its own is ip address list.

Why has ifconfig been replaced with ip? Much new functionality has been added to Linux networking in the decades since ifconfig was written. This involved an entirely new API (netlink) for the userspace tool to speak to the kernel to configure the network. It was far more practical to write a new tool to better map the new functionality through the netlink API and down to the command line, than to try and adapt the old ifconfig tool. Check out the ip(8) manpage for all the cool new stuff that you can do now.

The kernel API used by ifconfig and the ifconfig tool itself remains for backwards compatibility, but this interface is blind to anything that does not easily map to the old model.

The reason that ifconfig doesn't show you the IP aliases is that it looks like they are being added by Debian's ifupdown (the package that handles /etc/network/interfaces) using a different mechanism that does not add the labels :1, :2, etc. So the ifconfig tool is blind to them, since the old API mandated these labels, and so the extra addresses do not map to the old API. From the ip-address(8) manpage:

          Each address may be tagged with a label string.  In order to
          preserve compatibility with Linux-2.0 net aliases, this string
          must coincide with the name of the device or must be prefixed
          with the device name followed by colon.

The bugs linked in maggotbrain's answer seem to be focused around adding support to ifconfig to read addresses without labels. Another approach might be to arrange for ifupdown to create the addresses with labels, such that ifconfig will be able to see them without modification.


Use double quotes around variables to prevent word splitting.

You can do:

for file in "${FILES[@]}"; do
    if [[ $file == /* ]] && [[ -f $file ]]; then
       convert -units PixelsPerInch -density "${dpi}"x"$dpi" \
                      -geometry "$g"! -quality 100 "$file" "$file"."JPG"
    fi
done

Note that you don't need to quote variables inside [[ as it is a shell keyword.

Also you should use double quotes around command substitution $() as they also suffer from word splitting.


Blank screen when installing on an Acer Aspire 4750Z

Try to burn your CD or USB stick again with Ubuntu 11.04's boot creator. Do not make your 1104 installing media under Windows.


wireless network adapter supported on ubuntu?

according to your terminal-output and dropbox-picture the chipset of your WIFI-adapter is a Ralink RT5390 and they open sourced this driver some years ago...!
according to this old tutorial it should work with every Linux Kernel above 3.x (this means Ubuntu 11.10) out of the box.

BUT as you can see in this thread there occur some problems...

please check first if you really don't have turned off WIFI by a hardware switch!?! - or accidentally disabled the WIFI by software via rightclicking on the network-monitor or something...?
consider to try out (via live medium) the current LTS (14.04 --> maybe it will be easier to maintain your system because 15.04 will be supported just until january 2016 and the 14.04 LTS until April 2019).
however... if it remains not working there should be a solution:
just execute the steps on this page (a other network connection is required) and it should work... this solution is tested with 14.04 LTS but maybe it could also work with 15.04.


Mic picks up all system sounds (including game sounds)

Sometimes the problem depends on the settings in your recording application. However, you can control the system side using the PulseAudio Volume Control application (not installed by default). The main thing is, you do not want recording, capture, or input devices set to loopback and/or monitor.
setup:
First, install pavucontrol-qt by running the following commands.
sudo apt update
sudo apt install pavucontrol-qt

note: if you are not using Kubuntu, you can install pavucontrol (GTK version) instead of pavucontrol-qt so that you don't have to pull all the QT dependencies.
Next, open the PulseAudio Volume Control application.
There are tabs for input devices, recording, etc. Here you can control the volume of what is recorded and which devices are used.

select the recording input deivice:
First, open your recording application and begin recording.
Then, on the recording tab of your PulseAudio Volume Control application, it should list "capture from" or something similar where you can select the input device. You do NOT want this set to "monitor".
Finally, don't forget to check your input devices tab where you can select, mute, and adjust the volume for various inputs.

use ALSA controls:
You can also install alsa-utils and use the alsamixer command to adjust various volume settings not available through PulseAudio. This doesn't have the option to select or disable the recording or input device but there are options to adjust microphone boost, input volume, etc.


Broken Packages: php-apc: Depends: phpapi-20090626+lfs

php-apc cannot be installed because it depends on the virtual package phpapi-20090626+lfs. For the system to consider this virtual package 'installed', then you need to have installed either Apache or PHP.

Seeing as you don't need Apache I would suggest you install the php5-cgi package. (This will give you PHP 5.3 in 10.04.)


A confusing point for almost everyone who starts using mysql is that 'root' and 'root@localhost' are two different roles and as such could (and some would argue that they actually should) have different passwords. It is quite possible you are trying to log-in as user 'root@localhost' and you are providing the password for 'root' role.

If this is the case, you can remedy it quite easily. Log-in to the database server using the CLI tool mysql as user root like this:

mysql --user=root --password

The tool will ask for your root password (not system root but database root). Now you can modify the password of 'root'@'localhost' like this:

UPDATE mysql.user SET Password=PASSWORD('cleartext password')
  WHERE User='root' AND Host='localhost';
FLUSH PRIVILEGES;

Now try to log-in through phpMyAdmin using the newly set password.


You need to have the monitor attached PRIOR to booting as Ubuntu does not recognize an HDMI monitor while the system is running.  Other monitor types work, but not HDMI. This omission may be resolved in a later kernel.


I'm switching from an Intel platform to an AMD platform. Do I need to reinstall Ubuntu?

No, you don't need to do anything. If it is the same GPU, then the driver should work on either Intel or AMD.
But if Secure Boot is involved, you may need to disable it, or resubmit the key to UEFI.


How to automatically restart Tomcat7 on system reboots?

Create the init script in /etc/init.d/tomcat7 with the contents as per below (your script should work too but I think this one adheres more closely to the standards).

This way Tomcat will start only after network interfaces have been configured.

Init script contents:

#!/bin/bash

### BEGIN INIT INFO
# Provides:        tomcat7
# Required-Start:  $network
# Required-Stop:   $network
# Default-Start:   2 3 4 5
# Default-Stop:    0 1 6
# Short-Description: Start/Stop Tomcat server
### END INIT INFO

PATH=/sbin:/bin:/usr/sbin:/usr/bin

start() {
 sh /usr/share/tomcat7/bin/startup.sh
}

stop() {
 sh /usr/share/tomcat7/bin/shutdown.sh
}

case $1 in
  start|stop) $1;;
  restart) stop; start;;
  *) echo "Run as $0 <start|stop|restart>"; exit 1;;
esac

Change its permissions and add the correct symlinks automatically:

chmod 755 /etc/init.d/tomcat7
update-rc.d tomcat7 defaults

And from now on it will be automatically started and shut down upon entering the appropriate runlevels. You can also control it with service tomcat7 <stop|start|restart>


Where does one get the info to run software off of the software center download site?

I think you are searching for source code of the app, you can obtain it using

apt-get source

Eg

apt-get source vlc


I have an encrypted partition for the which I need to recover the passphrase to recover data

You can't recover a forgotten passphrase. If you could then an attacker would be able to use the same process to get unauthorised access to your data which would defeat the purpose of the encryption.


After discovering recently that 14.04 was affected too, I did some more digging and discovered a few things:

Booting with nomodeset is the immediate cause of the problem; I only did this because the laptop in question wouldn't boot otherwise.
Booting with noacpi instead solved the video issue, but caused other problems.  In particular, only one CPU was detected, when two (or four with HyperThreading) would otherwise be seen.
Booting with acpi_osi=Linux acpi_backlight=vendor instead fixed almost all of the problems; the only remaining issue was excessive fan noise.
Updating to the latest available BIOS (in combination with the previous bullet) gave me a complete solution.


Ubuntu 14.04.1 no audio, Dummy output , model lenovo z570 codec Realtek ALC272

this is the bug, this happens after a hard shutdown.

https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1264213

fixed it. now sound works properly. but wasted a lot of time doing nonsense for days.

added this line to the file "/etc/modprobe.d/alsa-base.conf"

      "options snd-hda-intel model=ideapad"  and then

       "sudo alsa force-reload"   and then

       reboot

for more info visit this thread => http://ubuntuforums.org/showthread.php?t=1316634

edit:

    the above solution is not a permanent solution.
    Installing NVidia driver fixed the problem. This looks ridiculous but works.


Bluetooth doesn't detect any device on Ubuntu 14.04 using an Acer E3-111

Have you tried to install blue man from the terminal by enter this:

  sudo apt-get install blueman

and you can also use software package manger and search for blueman.

and it might work fine this way.


Disable external hard disk auto-open/autoplay at every startup!

Using the System Menu > Preferences > Personal > File Management
Here you have multiple option to select.


How do you get FakeVim in the Ubuntu SDK to use ~/.vim/plugin/colemak.vim?

Fakevim will not detect plugins that you define for vim, rather you have to place the configuration directly into .vimrc