The problem is possibly that your debug session is not in time to catch the install hook failing (https://jujucharms.com/docs/stable/developer-debugging#debugging-early-hooks). In this case, the debugging terminal which is opened is merely waiting for a watched hook to activate (you get a new window for a hook event and the prompt will reflect the name of the hook). This is covered in the documentation.
The subsequent errors when you try to run the hook manually are because hooks need to be run from within the hook environment to access the runtime environment variables.

You can either modify the install hook (as mentioned in the link above) or it may be possible to infer what has happened simply by looking at the logs:

https://jujucharms.com/docs/stable/developer-debugging#the-%27debug-log%27-command


airodump-ng mon0 not woking with eth2 interface

The system is telling you exactly what the problem is:

Found 4 processes that could cause trouble.
If airodump-ng, aireplay-ng or airtun-ng stops working after
a short period of time, you may want to kill (some of) them!

PID Name
1382    avahi-daemon
1383    avahi-daemon
1433    NetworkManager
14727   wpa_supplicant

You want to kill all of the above processes (by using kill <PID> as a superuser).

After that, everything else should work just as expected.


Unity launcher: how can I make it show one icon per window?

IMHO, the "simpliest" way is to use an alternative desktop environment rather than Unity.
Look at Xfce or KDE.


Can't set up remote access on chrome remote desktop

Basically, the solution is: mkdir ~/.config/chrome-remote-desktop


Can mencoder use multiple cores, or is there another aud-vid encoder which can?

You need to use the "threads" option which is available for most encoder/decoders.
Example:

mencoder -noodml -o $OUTPUT \
  -oac copy \
  -ovc xvid \
  -xvidencopts bitrate=1000:threads=2 \
  $FILE

Search for "threads" on the man page: http://manpages.ubuntu.com/manpages/maverick/en/man1/mencoder.1.html


Is Floating Point Texture Support Enabled in Mesa?

If you have not already done so:

Install the latest drivers from oibaf/ppa

sudo apt-add-repository ppa:oibaf/graphics-drivers
sudo apt-get update
sudo apt-get dist-upgrade

to check for the floating-point textures:

glxinfo | grep -i texture_float

If you get some output, you may assume that it is present.


Sensor Unity Snap App- Need to get the information of this app after installation

From your question, I got something that you installed the Sensors-unity app from Ubuntu Store but it won't launch and so you need to information about Sensors-Unity Application!

After installing the application, you can find the information about the app using the following command:

$ sudo snap info sensors-unity

It will ask you the system password, provide the password and execute the command.

The complete information about the application will display in the Terminal as shown in the below example.

name:      sensors-unity
summary:   A simple sensors GUI for Unity & Dash to Dock
publisher: Pavel Rojtberg (paroj)
contact:   https://github.com/paroj/sensors-unity
license:   unset
description: |
  Allows monitoring the output of the `sensors` command graphically.

  **Note:** for sensors-unity to work you have to manually give it the
  hardware-observe permission in the software center or using the CLI as:

  snap connect sensors-unity:hardware-observe :hardware-observe

commands:
  - sensors-unity
snap-id:      0i0ACucdvIfcOKZgDUIrd7AsRoolk6US
tracking:     stable
refresh-date: today at 22:54 IST
channels:
  stable:    18.02 2019-06-26 (103) 75MB -
  candidate: ^
  beta:      ^
  edge:      18.02 2019-07-24 (119) 75MB -
installed:   18.02            (103) 75MB -


Meson build installed v 0.55.3 but on building pitivi it shows meson 0.53.0 is install and the build fails

The sandbox is built using meson from the Gnome flatpak runtime, which is 0.53.0.
See https://gitlab.gnome.org/GNOME/pitivi/-/commits/meson
Better to ask in our chat room about this.


Laptop immediately suspends when going onto battery power

I think this thread talks about this issue.

There's also a bug report on Lanchpad that may apply. See comment #4.

As a kludgy work-around, I turned off auto-hybernate by putting the following command into my /etc/rc.local file.

gconftool-2 --type bool --set /apps/gnome-power-manager/general/use_time_for_policy false

On the downside, if I forget to plug in my computer it just dies after the battery is spent.


Can I review programs from PPAs in the Software Center?

I've tried to review program installed from PPA and got same error.

I've also found this bugreport: Cannot review software updated from PPA

A notable qoute from an Ubuntu Bug Squad volunteer:

  I have tried rating another software (indicator-weather) from a PPA and I have got the same stacktrace, so we can make this bug a bit more specific, like Reviewing software from PPA doesn't work and doesn't tell the user that he can not rate software from PPA's, only from the official repos.

The bug is currently marked as invalid as it was filed against an Ubuntu release that has reached the end of its life (EOL). It looks like nobody picked it up, but there is the possibility that the behavior was changed in the meantime in other bug reports (please edit or provide your own answer if you have more information).


How to create compressed iso file system like official Ubuntu isos

You use squashfs

The instructions are on the wiki pages :

https://help.ubuntu.com/community/LiveCDCustomization#Assembling_the_file_system

https://help.ubuntu.com/community/LiveCDCustomizationFromScratch#Compress_the_chroot


It seems that this came from the the drive being badly formatted. I reformatted the thing in the Disks program and the problem went away.


Multiple problems when upgrading from 12.04 to 14.04

Is it feasible for you to install 14.10, rather than upgrading to it?  I find upgrading to be frequently problematic.

I moved to a Debian flavor of Linux Mint (based on Ubuntu), because it has rolling releases and never needs to be 'upgraded'.  As a general rule, you should also partition your harddrive so you can perform full install 'upgrades' without affecting your user files/settings/apps/etc.


Mkusb Error "no suitable target device found"

I suggested that you should connect a third device, for example a USB pendrive or memory card, and try again. You connected a USB pendrive, and lsblk and mkusb recognized it and let you use it as target device.
The next step is to get 5 GB for persistence.

According to the screenshot you uploaded,

The available drive space is shared between the casper-rw partition /dev/sdb5, 4 GB, and the usbdata partition /dev/sdb1, 1.6 GB. I did the following calculation with bc,

$ bc
bc 1.06.95
Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006 Free Software Foundation, Inc.
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'.
100*5/(1.6+4)
89

and suggest that you select 89 %  or maybe rounded to 90 % for persistence. You can also select 100% (of the remaining drive space) for persistence, if you think that a very small usbdata partition is not useful.
It is also possible to use gparted and shrink the usbdata partition and after that 'grow' the casper-rw partition (to use the unallocated space).


A symbolic link is static to a location. This means that if you make a symbolic link for linux-headers-3.13.0-46 for example, that is the location it will link to, no matter what. That being the case, you would have to switch or recreate the symbolic link each time you update.


Ubuntu Server - How to connect to wireless WPA2 personal network?

1) Install the package wpasupplicant.

2) Then write:

sudo su
wpa_passphrase [SSID] >> /etc/wpa_supplicant.conf
exit

Where [SSID] is SSID of point where you want to connect. After entering this command, you have to write password for that acces point.

3) Run wpa_suplicant with new config file.

sudo wpa_supplicant -B -D wext -i wlan0 -c /etc/wpa_supplicant.conf

Make sure that your interface is wlan0, or change it if needed!

-B is for background running.

-D is used driver.

-i is interface.

4) You should be connected now :)


Error Installing R on Ubuntu 18 Broken Packages

I found what was wrong in another post... this one:
How do I restore the default repositories?
It seems some code I used from another forum just ended up messing my repositories I guess?
Sorry I asked for help when I just needed to do more research :P

So what I did was:

run the following code: sudo rm /etc/apt/sources.list
then: sudo -i software-properties-gtk

Go to software-properties-gtk (run it in the console) and reset the repository to the one closest to me (geographically):

and then just reset the update configs to whatever suits you I guess, I put all to automatically update daily.

Then I just ran sudo apt-get intall r-base in and it worked!
Credit to the original post I mentioned earlier.


Problem was in my .bashrc file after replacing it to default file from GuestSession everything came back.


File ~/.Xmodmap is not sourced on startup in 18.04

Apparently for gnome it should be ~/.xprofile, but that file is executed too early for xmodmap to work.

So I got it to work by creating .config/autostart/xmodmap.desktop

[Desktop Entry]
Type=Application
Exec=/home/tvbox/bin/modmap
Hidden=false
X-GNOME-Autostart-enabled=true
Name=xmodmap
Comment=xmodmap script

And in /home/tvbox/bin/modmap, I have:

xmodmap ~/.Xmodmap


How do I know if my Bootstrap Juju installed juju-gui?

You can use the juju gui command.

$ juju gui
GUI 2.14.0 for model "admin/default" is enabled at:
https://x.x.x.x:17070/gui/u/admin/default
Your login credential is:
    username: admin
    password: xxxxxxxxxxxxxxxxxxxxx


how to install zip package from cd on ubuntu server using command line?

1) Unzip the archive.zip to path/to/extracted/content:

unzip /path/to/archive.zip -d path/to/extracted/content

2) Install the archive content :

if it's a package.deb :

sudo dpkg -i path/to/extracted/content/package.deb

sudo apt-get install -f

if it's an install-script :

sudo bash path/to/extracted/content/install-script

3) Delete the installation files (package.deb or install-script) :

rm path/to/extracted/content/package.deb

or

rm path/to/extracted/content/install-script

For further needs :

To go into path/to/somewhere :

cd path/to/somewhere

To see what's inside path/to/somewhere :

ls -a path/to/somewhere

To read a text-file (any format, like .txt, .html, .sh, ...) :

cat  path/to/text-file

To edit a text-file (any format, like .txt, .html, .sh, ...) :

nano path/to/text-file


gnome-shell-extensions-user-theme won't install due to unmet dependencies

Try ;

sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install -f

Then try installing gnome-shell-extensions-user-theme again

sudo apt-get install gnome-shell-extensions-user-theme

If you get any error message with those first 3 commands, post back or use pastebin


How can I force one single refresh rate across both my monitors

Start up the NVIDIA control panel, called 'NVIDIA X Server Settings'

That brings up a window like this:

Yours will look different, but the instructions are the same.

Click on 'X Server Display Configuration'(top left).
Go down to 'Resolution:'(bottom right).
The first item is 'Auto'. Change that manually to your native resolution. After doing this note that you can now change the refresh rate. (refresh rate can't be changed with resolution set to 'Auto')
Change the refresh rate to 60Hz, like shown in the image.
Repeat steps 3 & 4 for the second monitor.
Save and quit, you should now have set the refresh rate manually to the same value for both monitors.


How to rescue scratched CDs or DVDs using Ubuntu?

You can use ddrescue to recover damaged media. In contrast to regular dd it will not stop at unreadble sectors. This is especially promising with optical media because sometimes retries or reversed reading of the media yield different results.

Install

sudo apt install gddrescue

The Rescue

With ddrescue you can try to recover your data in multiple steps. Not all of which are always needed.

Step 1: Get the good data

In the first run we recover everything that is proberly readable and log what appears to be damaged.

ddrescue -b 2048 -n -v /dev/sr0 dvd.iso rescue.log

The blocksize of 2048 is the default blocksize of DVD media. The device name /dev/sr0 could be different on your system. Just run mount to find the correct name.

Step 2: Try the bad blocks

If you get no errors after step 1, your are done. If you do get errors, run the following command to concentrate on the bad blocks.

ddrescue -b 2048 -d -r 3 -v /dev/sr0 dvd.iso rescue.log

The parameter -d enables direct access to the device (requests do not go through the kernel), -r 3 is the number of retries for bad blocks.

If you still get errors, continue.

Step 3: Going backwards

Finally run this:

ddrescue -b 2048 -d -R -r 3 -v /dev/sr0 dvd.iso rescue.log

The parameter -R reverses the reading direction. This can ofter lead to several more blocks that can be successfully recovered.

Result

Even if you still have some errors, ddrescue will fill blocks that cannot be recovered with zeros, so that you do not get errors when playing back the media. Audio-CDs and Video-DVDs include a lot of error correction data. That means that even if you still have errors, you might not hear or see any problems with your recovered media.


User is part of a group - except he's not?

From comment above:

  Have you tried to log out and then log in again? Afaik group information needs a relog to be updated. – soulsource Jun 15 at 16:47


How to sum the values in multiple text files?

Perl to the rescue!

perl -wle '
    for my $dir (@ARGV) {
        my $s = 0;
        open my $w, "<", "$dir/weights" or die "$dir: $!";
        $s += $_ for split " ", <$w>;
        open my $c, "<", "$dir/coefficient" or die "$dir: $!";
        print $s * <$c>;
}' -- */

-w turns on warnings
-l removes newlines from input and adds them to output
the argument */ is expanded by the shell to all the directory names in the current directory (you can specify path/to/parent/directory/*, too)
open opens a file, "<" means for reading, $w and $c are the corresponding file handles
the diamond operator <$w> reads a line from the given file handle


Uninstall programms installed by Ubuntu 20.04 LTS setup process

Problem is solved by following the comment of user535733 in the comment of my question.

Running snap list and then snap remove <name> got rid of them.

Thanks user535733!


With Virtual Box there is a set of commands that enable us to get direct raw access to harddisk or harddisk partitions (see Virtual Box Manual for details).

Before we test this it is strongly recommended to backup your drive.

These commands can also be used to boot a virtual machine from a physical drive where a preinstalled OS may reside. In theory the commands should also work for USB drives attached to the host but I have not tested this, so be careful.

  In any case where a virtual machine has physical raw access to a drive make sure you don't access this drive from the host as this may lead to unrecoverable data loss.


Will Amazon or Rackspace be hosting both your private and public cloud? If so, this would be a question for them. If you are personally managing a part of the cloud then you need to ensure that whatever distributed system architecture you're using to distribute workload uses secure means to transfer jobs/data/tasks. I doubt any modern distrib system architecture would send data over insecure channels, though.

In the off chance that the architecture does not support secure distribution of data, a VPN would be an easy and simple solution, though.


How do I install Foldit.tar.gz (specifically)?

thank you,
libglut3 doesn't exist (anymore?), install freeglut3 instead... and it worked for me!


Dual booting Ubuntu with LVM and FDE & Windows 10 on separate hard drives

So it turns out that I worried about nothing and people make it sound more complicated than it is. Here is how it worked for me:

Secure erase both my SSD and NVME drives with Parted Magic
Install Windows on SSD
Turn on Bitlocker
Boot Ubuntu Live
Select "Erase disk and install Ubuntu"
Select LVM and encryption
Select NVME drive
Install!

You can leave secure boot on in the BIOS. I just disabled Fast Boot. When you reboot the system you will see the GRUB boot menu, showing you both Ubuntu and Windows as boot options.


Why are fonts being substituted in Libreoffice even if they are installed?

If fc-match suggests you a font which is not the one you requested, it means the font is not installed.

To install it, type this in a terminal:

sudo apt-get install --reinstall ttf-mscorefonts-installer

That will reinstall the ttf-mscorefonts-installer. Make sure you accept the license otherwise it will again not install the font.


You need xcb-util-cursor. It's probably not in any Ubuntu repository yet, so you'd need to get and compile it yourself.

Homepage: http://cgit.freedesktop.org/xcb/util-cursor


How can I locate cause of full file system if du -x doesn't show a problem?

To find the folders with the largest files in / run du / 2>/dev/null | sort -n -r | head -n 10. This will allow you to narrow down your search to a specific folder under /.

Be aware this invocation of du will only list folders, but will find a folder full of small files. To reveal the largest file add a * to the du command. eg. du /* 2>/dev/null | sort -n -r | head -n 10. Also using du -h would confuse sort.


How can I restart the "mobile brodband" / modem ? is it possible without restarting the whole system?


different wallpaper for each workspace ubuntu 14.04

to do this install the following

sudo apt-get install compizconfig-settings-manager compiz-plugins-extra

Open the Compiz Setting Manager
Under Image Loading click JPEG and SVG to turn them on

Under Utility click Wallpaper on

Click the icon for Wallpaper to enter it
In the dialog click New
In the dialog browse to the location of the background image.
Repeat this step for each background


Absence of installing ubuntu alongside windows during new installation

900M is too small for an Ubuntu desktop install.  You would be better off with a persistent USB or a full install to USB (still can be done on a 4G stick without swap).  USB3 sticks would be ideal, but USB2 sticks work OK, with some performance reduction.

If you have msdos partitioning, you are limited to only 4 primary partitions, and if you already have 4, you cannot create anymore, so maybe the side by side option is not offered.  You would need to backup a partition, delete it, then remake it and all free space as an extended partition, into which you may add logical parititions as needed.  Ubuntu does not care if it is on a logical partition.  But if you really don't have the room anyway, why bother.


drm_kms_helper: panic occured, switching back to text console

Your PC has an Intel Atom processor and only 1GB of RAM, so Lubuntu was the right choice, but some of the Intel atom processors do not support PAE.

So follow the official Ubuntu PAE instructions and if that fails, you basically do have a pretty expensive doorstop.


Ubuntu phone screen only shows intermittently

I fixed it. I had suspected a brightness problem - as this problem had happened to me with android. I tried the development channel and was able to very dimly see the screen. Turned the brightness up from minimum, and problem solved.ta


The vulnerability you are referring to in the comments is CVE-2016-2776. It was fixed in Ubuntu 16.04 in version 1:9.10.3.dfsg.P4-8ubuntu1.1 of the BIND packages. You can check your installed version with dpkg -l | grep bind, and if you have at least that version, you can disregard the notice you received, as it does not apply to you.


Lenovo Flex 3-1480 laptop wont boot after Ubuntu 20,04 update

First thing to try is probably to boot from a Live Ubuntu USB (make sure the USB stick comes first in the BIOS boot order), and do sudo update-grub, then see if it already fixed the problem. If it doesn't, try reinstalling GRUB.
Your answer to the other question was probably deleted because it was not an answer, as in an attempt to solve the problem.


So I basically ran out of solutions, couldn't boot from USB, EFI file, HDD, Windows boot manager. So I decided that the 2 remaining solutions was to

Try to clean install Ubuntu from an USB device
Hard reset the BIOS through the CMOS memory and clean install whatever OS.

So I flashed an Ubuntu Image on a bootable USB device and booted from it in the BIOS, and it loaded GRUB perfectly! So I rebooted it with the shimx64.efi file in first boot priority and it booted just fine from there! So I think that I'm always going to carry a bootable USB stick with a fresh Linux distro on it if any problems happens to me in the future.


does "make" recompile all of the files or just changed ones

In general way, You don't need recompile all of .cc files according to modify a .cc file.

The a .cc file is related with other .cc by using .h file.

For example:

Let's guess b.h is a header about b.cc.

And a.cc use b.h.

You don't need recompile a.cc due to modify and compile b.cc.

But You need to recompile about b.h.

If the makefile is created as well(based on autotools), make command will process the dependencies as well.


Ubuntu update from 12.02 to 14.04 stuck and now problem with apt-get update

You don't have a high enough version of libc6, that is causing the error.

From How to fix “/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found”? – Super User:

  That means the program was compiled against glibc version 2.14, and it requires that version to run, but your system has an older version installed. You'll need to either recompile the program against the version of glibc that's on your system, or install a newer version of glibc (the "libc6" package in Debian).

So, you just need to upgrade your libc6 package. All versions of Ubuntu have at least version 2.15 because it's a faily important package (reference).

To upgrade it, use these commands in a terminal:

sudo apt-get install libc6
sudo apt-get update

I hope this is help you.


/etc/network/interfaces not changing server IP

The NetworkManager service controls just about everything related to networking on most modern Linux systems UNLESS you disable it. There is a "TUI" that you can use to set the network settings on specific connections using "nmtui". (NetworkManager Text User Interface).

From the command line just type "sudo nmtui" and it will launch the interface. It may ask you to install it if it is not installed. After making the changes to your connection, exit the program and type "systemctl restart NetworkManager". If that doesn't work then try "systemctl stop NetworkManager" and edit the file /etc/network/interfaces the same way that you did with the nmtui. Finally reboot with NetworkManager still "stopped" and you should see the changes take effect when you type ifconfig on your next reboot.

Of course, all of what I just said does not apply if you have disabled NetworkManager. With NetworkManager disabled you should be able to edit the ifcfg networking scripts to edit the connection. Let me know if you have any questions.


Execute (Specific) command on remote host without using SSH

"Apache2 ( or some other secure CGI interface) on Alice" is much more than you need, would add complexitity, and vastly expand your "threat surface". A simple Perl script on Bob, watching for trigger events, and listening for connections on some port; plus a requestor Perl script on Alice that connects to the port on Bob and reads the events would be easier.

I recall the examples from the Programming Perl book (O'Reilly) have a similar thing.

"If there are fired off maliciously they will not really hurt anything"? Really? What if they're repeatedly fired off, as fast as the full power of a subverted Alice can do it?


Maybe your CPU is running on maximum performance all the time and generating a lot of heat, hence the fan doesn't stop.
I suggest you to install Jupiter, as it will show your CPU temperature and also let you choose which performance profile you want.
Here's how you install and configure Jupiter in Ubuntu 12.04.


make sure you have configured the router/pc with the right configurations also make sure your cable are not damaged, i had the same problem due a damaged LAN cable


Why is wubi giving me an error message when I try to install?

This is a known bug, take a look at this page, it may help to re-download the files take also a look here


Find these packages and replace existing files with these.

gir1.2-gwibber-0.2_3.4.0-0ubuntu4_amd64.deb
gir1.2-gwibber-gtk-0.2_3.4.0-0ubuntu4_amd64.deb
libgwibber-gtk2_3.4.0-0ubuntu4_amd64.deb

One place where you could find them is

http://pkgs.org/ubuntu-12.04/ubuntu-updates-main-amd64/

You can use dpkg -i to install these.


What keys can I use to navigate Unity Greeter with a keyboard?

So far, it would seem you can 'navigate' the options using the Tab key, and confirm with Enter/Return or the Spacebar, but this is a bit wonky doesn't work very well yet.

Ctrl+S activates the Screen Reader while Ctrl+H activates the High Contrast display.


Touchpad right-click doesn't work on my Asus notebook

I had a similar problem with my HP Notebook. Try using a double tap with two fingers to right click. Worked on my Notebook when a friend suggested it to me.


Cannot find my SSID in my network list anymore

Go into the router's admin page. Go to the wireless tab. Find the 5ghz settings. Change the channel to one of the following... higher channels are better...

      Channel 32 : 5.16 GHz
      Channel 34 : 5.17 GHz
      Channel 36 : 5.18 GHz
      Channel 38 : 5.19 GHz
      Channel 40 : 5.2 GHz
      Channel 42 : 5.21 GHz
      Channel 44 : 5.22 GHz
      Channel 46 : 5.23 GHz
      Channel 48 : 5.24 GHz
      Channel 52 : 5.26 GHz
      Channel 54 : 5.27 GHz
      Channel 56 : 5.28 GHz
      Channel 58 : 5.29 GHz
      Channel 60 : 5.3 GHz
      Channel 62 : 5.31 GHz
      Channel 64 : 5.32 GHz
      Channel 66 : 5.33 GHz
      Channel 68 : 5.34 GHz
      Channel 96 : 5.48 GHz

Retry your PC.


Disable GRUB and use Apple's EFI-bootloader on MacBook Pro

You can make GRUB not appear and simply boot your first OS choice by setting GRUB_TIMEOUT=0 in /etc/default/grub:

Open a terminal by pressing Ctrl+Alt+T
Run sudo nano /etc/default/grub
Change the GRUB_TIMEOUT line to GRUB_TIMEOUT=0
Press Ctrl+O to save
Press Ctrl+X to exit
Run sudo update-grub


How do I install the Human theme on Ubuntu 14.04 LTS?

Human theme is available in the repos. You don't need to manually install the package file. Just do:

sudo apt-get install human-theme

If you want the human icon theme as well, do:

sudo apt-get install human-icon-theme

Side note:
If you double click on the package file, it should open in Software Centre, from where you can install it without using the command line.


Configure Firewall port 8080 to open Utorrent

Actually you've allowed connections to port 80 not 8080.

You should allow it directly like that:

sudo ufw allow 8080/tcp

or by its service name http-alt

sudo ufw allow http-alt


Setting PATH in /etc/environment and .bashrc has corrupted the system

export JAVA_HOME= /opt/jdk1.8.0_111
export  PATH= $PATH:$JAVA_HOME/bin

These lines should not have spaces after =. Use /usr/bin/gedit ~/.bashrc and correct these lines:

export JAVA_HOME=/opt/jdk1.8.0_111
export PATH="$PATH:$JAVA_HOME/bin"


Is there a IRC Client which can use or emulate mIRC scripts

Konversation is the most similar to mIRC.  I used it for a bit, then xchat but now am solely using  irssi.  It is hands down the best route if you learn how to use it properly.

Once you have scripts/themes/plugins setup the way you want it feels so nice and much less cumbersome than the GUI based irc clients.

irssi documentation - irssi documentation and information from irssi site, good general info and base setup guides there.
irssi and screen - screen is another app which leaves a persistent session, multiple sessions running.  This way you can run screen and have irssi run within a screen session so you can close your terminal and irssi remains running.  Later if you want to open irssi back up you can reattach to your screen session.  I run my irssi/screen on my media server that way from my desktop or anywhere else I can ssh to my media server, attach to screen running irssi and its right there for you.
irssi themes - Need to find the one you like.  You can modify them easily too.
irssi scripts - There are some good ones here, depends on what you want to do though.


How to print a PostScript file in Evince using a brochure layout?

I have found a way to configure CUPS so that it calls pdfbook for me. The process boils down to the following:

In your CUPS server (e.g., http://localhost:631), create a copy of the configuration for the printer you want to enable brochure printing for. Let's call the new printer "Print-booklet".
Edit /etc/cups/ppd/Print-booklet.ppd as root. Add the following line, e.g., before the *cupsFilter entry: *cupsPreFilter: "application/pdf 0 booklettopdf".
(This step is a bit messy, perhaps it can be done in a cleaner way.) In
/usr/lib/cups/filter, create the script booklettopdf (as root):

#!/bin/sh
for e in "$@"; do echo DEBUG: $0: $e 1>&2; done
TMPFILE=$(mktemp)
echo DEBUG: $0: $TMPFILE 1>&2
if [ "$6" = "" ]; then
    cat
else
    cat "$6"
fi | pdfbook --scale 0.97 --outfile $TMPFILE && cat $TMPFILE && rm $TMPFILE

Make the script executable: chmod +x booklettopdf.
Print a test page.

Now, whenever you want to print in booklet format, choose the new printer "Print-booklet".

The cupsPreFilter is a CUPS PPD extension, and it seems that the application/pdf format will always appear in the filter chain (Ubuntu 12.10, perhaps earlier?).

I'd vote for integrating this functionality into CUPS.


How to allow my vpn client access to remote LAN(eth1)?

I've found a solutions and has been tested. It just works.

My ubuntu server has two network interfaces:
eth1 - wan
eth2 - lan 192.168.0.2

And the VPN service use 192.168.100.1 as its address.

VPN client will get an address from 192.168.100.234-238.

Following commands let VPN clients access to the other clients behind the server's LAN.
e.g. 192.168.0.100

Using iptables to setup nat.

# ubuntu vpn server
sudo iptables -t nat -A POSTROUTING -s 192.168.100.0/24 -d 192.168.0.0/24 -j MASQUERADE

And client add route manually.

# mac os x client
sudo route add 192.168.0.0/24 192.168.100.1


Open VLC, go to Tools in the toolbar and then Preferences

Then go to the Interface tab, and look for this:


is it possible to open files with a custom script by default?

When you double click on your script, it'll run your script.  It'll use the shebang specified interpreter to run your script.

If you want your script to perform an operation such as opening and HTML file you would have to specify in your script which browser program by name to call.

Your script won't come be activated by double clicking on a file other than your script.  If you double click on an HTML file this will open the file with the default application that you have setup for that type of file.

You can set or change the default application in a number of ways.  You can do it via GUI by running System-Settings  -> (click) Default Applications, then choose your browser from the drop down Web options.

You can also configure which program is called by default when clicked by right clicking on it from your file browser, then click Properties, then click the Open with tab and select your preference there.

Alternatively you can also edit the /usr/share/gnome/applications/defaults.list which will effect system-wide users or ~/.local/share/applications/defaults.list which will effect per-user changes.


Java Process takes more memory and Machine stop working

Try this command to get all the Java processes

ps -aux |grep java| cut -c10-15

and then kill them using

kill -9 process id from the above command

Now find out what is the culprit program. Before installing anything - try to go thru the release notes. You need to uninstall it and also delete the directories created by this culprit program. If you can provide more details about this program then specific answer can be provided.


I've also been having crazy problems with lenovo G480 and the broadcom adapter. What I've found to work most is to install this compat-wireless 3.5
download it, decompress it(possible with the ubuntu archive manager), then go into the folder you decompressed:

$ make
$ sudo make install

Restart your laptop...It has worked for me better than anyting ive managed to find online in the last week!
If you still cant connect, try changing the settings of your router to:
WPA 2/WPA Personal AES, 802.11 b or g (do not put it on n or b/g/n).
I would also recommend you to try a change the channel (there might be a lot of wifi networks around you that are disturbing your wifi reception)

Good luck!


youtube-dl unable to download audio how to resolve that issue?

I also encountered the this error. Though it's not a permanent solution, here is what I did. I used the youtube-dl -f. This is the option for (-f) format. This allows you to specify the format you want to download. To see the formats available for the file (video file), you can use youtube-dl -F. This will list all formats available for that particular file. Please note that you have to include the the URL for the video, and write something like this: youtube-dl -F https://youtu.be/FWxtFTHO1ak. The picture shows what appears when you run the command in the previous sentence:

Once you you identify the format you like, for example you can run this command youtube-dl -f 22 https://youtu.be/FWxtFTHO1ak. The 22 is the format code for mp4 best quality. I guess this will help.


I think problem is with the swap partition or some other partitions you need to update the fstab file

Open terminal(ctrl+Alt+T) and enter command

sudo blkid

you will get partitions and their UUID number

now open another Terminal and enter the below commands

sudo gedit /etc/fstab

In that file compare the UUID number of swap(it will be under the comment "#swap was on /sda/sd1(some number) during installation" ) with the UUID number of swap in first terminal if both are different then copy the UUID number from first terminal and paste it in the fstab file under #swap in palce of old UUID number

save and reboot

dont mess with UUID number under '# / was on /dev/sda6 during installation' its ubuntu drives if you change that ubuntu wont boot


USB headset microphone is not detected at all in Ubuntu 20. HyperX Cloud Flight S

Thankfully somebody has had this exact issue and solved the problem.
If you have this same issue please visit this link and read the post he explains everything from his problem to the solution: https://www.reddit.com/r/HyperX/comments/fobp2s/cloud_flight_s_microphone_help_linux/
Basically install the 5.7 kernel then reboot, then navigate to /etc/modprobe.d then right click alsa-base.conf and open with text editor and insert this at the end of the document below everything else ie make a new line at the end of the document and add this:
# Add delayed register for HyperX Cloud Flight S Headset options snd-usb-audio delayed_register=095116ea:02
then save and exit; then reboot.


Klipper icon on top panel isn't functioning

It may be an issue with Klipper not being white listed.

You could try these sets of commands:

gsettings set com.canonical.Unity.Panel systray-whitelist "['all']"

and then you run

gsettings set com.canonical.Unity.Panel systray-whitelist "['JavaEmbeddedFrame', 'Mumble', 'Wine', 'Skype', 'hp-systray', 'klipper']"

some additional reading resources can be found here(where i found it at least):

http://www.addictivetips.com/ubuntu-linux-tips/enable-system-tray-notification-for-all-applications-in-ubuntu-11-04/

http://ubuntuforums.org/archive/index.php/t-1772418.html


Upgraded to Ubuntu 13.04, OSX Mountain Lion broken

Solved by OP in comments

  I solved it. I had to use gparted. It didn't seem to do anything at first. My partition looked correct. But after that, I could boot into OSX using the keyboard shortcuts and reinstall refind. And all is well.


Inserting a math equation to a LibreOffice presentation

TexMaths

TexMaths is an extension designed to provide LaTeX support in LibreOffice. LaTeX equations can be inserted as images (SVG or PNG formats) and the LaTeX code is saved into the image attribute for further editing. To insert your first equation into a document, simply type a LaTex math instruction in the text field of the TexMaths Equations window and then click on the LaTeX button. Example: x(t) = \mu ^2 (t) should produce the equation x(t)=µ²(t)

TexMaths is open source software licensed under the GPL.

Installation

Install TexLive.

sudo apt-get install texlive texlive-binaries dvipng

Download the TexMaths extension by following the download link at the official TexMaths website. The file to download ends in an .oxt extension.
Open LibreOffice Writer and install the TexMaths extension using the Tools -> Extension Manager menu.
Close and reopen LibreOffice Writer. You will see a four new TexMaths icons in the toolbar. Click on the TexMaths System Configuration icon and fill in the paths of your programs (usually /usr/bin for all).

Usage

Run TexMaths by clicking on one of the TexMaths Equations icons. Clicking on the first Pi icon which is marked by a black arrow in the below screenshot will open a new TexMaths Equations window. You need to type a group of mathematical symbols in LaTeX format inside the TexMaths Equations window instead of typing it directly on the slide

Don't do it this way

Do it this way

Select either Display or Inline Equation Type. Display looks better than Inline

After the equation is added to the slide, you can drag it to its correct position on the slide.

There can be images of mathematical symbols and plain text mathematical symbols together in the same slide, as in the below slide where the large equation in the middle is an embedded image and the highlighted text is plain text.

Examples


How do I get iperf on a Ubuntu 13.10 Live disc?

You don't need to create a root password, you can use sudo. Here's how to compile and install a program from source.

Installing the build-essential package in Ubuntu’s package repositories automatically installs the basic software you’ll need to compile from source, like the GCC compiler and other utilities.

sudo apt-get install build-essential

Now open your browser (Firefox) and go to http://sourceforge.net/projects/iperf/ and download the latest .tar.gz file. This is currently iperf-2.0.5.tar.gz. It will be downloaded to /home/ubuntu/Downloads by default. Navigate to this location in Terminal.

ubuntu@ubuntu:~$
ubuntu@ubuntu:~$ cd Downloads
ubuntu@ubuntu:~/Downloads$

Extract the contents of the .tar.gz file with the tar -xzvf command. Use the ls command to list files and directories. This will help you type the name of the file correctly.

ubuntu@ubuntu:~/Downloads$ ls
iperf-2.0.5.tar.gz
ubuntu@ubuntu:~/Downloads$ tar -xzvf iperf-2.0.5.tar.gz

Use the ls command once more to check if there is a new directory. It should have the same name as the source archive file.

ubuntu@ubuntu:~/Downloads$ ls
iperf-2.0.5  iperf-2.0.5.tar.gz

As you can see there are now two entries. One is a file and the other is the new directory you've extracted the source files to. You now need to drop down to that directory using the cd command.

ubuntu@ubuntu:~/Downloads$
ubuntu@ubuntu:~/Downloads$ cd iperf-2.0.5/
ubuntu@ubuntu:~/Downloads/iperf-2.0.5$

You now need to resolve any dependencies before you continue with compiling the program. You do that by running the configure file.

ubuntu@ubuntu:~/Downloads/iperf-2.0.5$
ubuntu@ubuntu:~/Downloads/iperf-2.0.5$ ./configure

This might take some time, depending on the system and how big the program is. In this case, it is a very small program, and this should complete very fast. It is not always necessary to do this, depending on the program. You can always check to see if you need to run this command by reading the "README" or "INSTALL" file. You will find this file in the location where you extracted the .tar.gz file.

Once this command completes, look for any "error" lines. If you don't see any error lines that means you're good to proceed with the next step. If you see any errors about missing scripts and packages, you will need to install those first before you continue. You can try apt-get install name where "name" is the name of the package to install. Note that not all packages have the same name as the one you see in the error message! So you might need to Google the error to find out what packages are missing.

After you have installed any missing packages, you will need to run the same command again. If everything checks out, you should not get any error lines and you are ready to proceed with the next step.

Now it's time to compile! You do that with the make command.

ubuntu@ubuntu:~/Downloads/iperf-2.0.5$
ubuntu@ubuntu:~/Downloads/iperf-2.0.5$ make

When this command completes, the program is compiled. Now it's time to install it! You will need to use sudo to install. (If you are using root (e.g. root@ubuntu) you need to leave out the sudo part.)

ubuntu@ubuntu:~/Downloads/iperf-2.0.5$
ubuntu@ubuntu:~/Downloads/iperf-2.0.5$ sudo make install

It will probably be stored under /usr/local/bin on your system. This is part of your system's path, which means you can just type “iperf” into a Terminal window and press Enter to run it.


Curious about UnixBench results, is my HD configured properly?

OK, I figured this out.  This is the "encrypted home directory" tax.

I re-ran the test on my notebook, in and out of my encrypted home, and got these results:

Encrypted home:

   BYTE UNIX Benchmarks (Version 5.1.3)

   System: thx2219: GNU/Linux
   OS: GNU/Linux -- 3.5.0-48-generic -- #72~precise1-Ubuntu SMP Tue Mar 11 20:08:23 UTC 2014
   Machine: i686 (i386)
   Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
   CPU 0: Intel(R) Core(TM)2 Duo CPU T5270 @ 1.40GHz (2793.2 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT
   CPU 1: Intel(R) Core(TM)2 Duo CPU T5270 @ 1.40GHz (2793.2 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT
   09:23:29 up 6 min,  2 users,  load average: 1.90, 0.99, 0.42; runlevel 2

------------------------------------------------------------------------
Benchmark Run: Fri Jun 20 2014 09:23:29 - 09:51:35
2 CPUs in system; running 1 parallel copy of tests

Dhrystone 2 using register variables        8748168.4 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     1670.2 MWIPS (10.1 s, 7 samples)
Execl Throughput                                956.3 lps   (29.8 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks         11428.0 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks            2883.5 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks         43587.0 KBps  (30.0 s, 2 samples)
Pipe Throughput                              438447.2 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                  22667.8 lps   (10.0 s, 7 samples)
Process Creation                               2913.5 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   2979.9 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    666.9 lpm   (60.1 s, 2 samples)
System Call Overhead                         911599.9 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0    8748168.4    749.6
Double-Precision Whetstone                       55.0       1670.2    303.7
Execl Throughput                                 43.0        956.3    222.4
File Copy 1024 bufsize 2000 maxblocks          3960.0      11428.0     28.9
File Copy 256 bufsize 500 maxblocks            1655.0       2883.5     17.4
File Copy 4096 bufsize 8000 maxblocks          5800.0      43587.0     75.1
Pipe Throughput                               12440.0     438447.2    352.4
Pipe-based Context Switching                   4000.0      22667.8     56.7
Process Creation                                126.0       2913.5    231.2
Shell Scripts (1 concurrent)                     42.4       2979.9    702.8
Shell Scripts (8 concurrent)                      6.0        666.9   1111.5
System Call Overhead                          15000.0     911599.9    607.7
                                                                   ========
System Benchmarks Index Score                                         200.4

------------------------------------------------------------------------
Benchmark Run: Fri Jun 20 2014 09:51:35 - 10:19:56
2 CPUs in system; running 2 parallel copies of tests

Dhrystone 2 using register variables       14400540.8 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     2977.2 MWIPS (10.2 s, 7 samples)
Execl Throughput                               3468.0 lps   (29.8 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks         10015.0 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks            2525.0 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks         38482.5 KBps  (30.0 s, 2 samples)
Pipe Throughput                              774637.1 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 181309.2 lps   (10.0 s, 7 samples)
Process Creation                              10315.5 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   5067.0 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    670.5 lpm   (60.1 s, 2 samples)
System Call Overhead                        1551102.1 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   14400540.8   1234.0
Double-Precision Whetstone                       55.0       2977.2    541.3
Execl Throughput                                 43.0       3468.0    806.5
File Copy 1024 bufsize 2000 maxblocks          3960.0      10015.0     25.3
File Copy 256 bufsize 500 maxblocks            1655.0       2525.0     15.3
File Copy 4096 bufsize 8000 maxblocks          5800.0      38482.5     66.3
Pipe Throughput                               12440.0     774637.1    622.7
Pipe-based Context Switching                   4000.0     181309.2    453.3
Process Creation                                126.0      10315.5    818.7
Shell Scripts (1 concurrent)                     42.4       5067.0   1195.0
Shell Scripts (8 concurrent)                      6.0        670.5   1117.4
System Call Overhead                          15000.0    1551102.1   1034.1
                                                                   ========
System Benchmarks Index Score                                         357.8

Unencrypted dir:

   BYTE UNIX Benchmarks (Version 5.1.3)

   System: thx2219: GNU/Linux
   OS: GNU/Linux -- 3.5.0-51-generic -- #77~precise1-Ubuntu SMP Thu Jun 5 00:47:34 UTC 2014
   Machine: i686 (i386)
   Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
   CPU 0: Intel(R) Core(TM)2 Duo CPU T5270 @ 1.40GHz (2792.8 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT
   CPU 1: Intel(R) Core(TM)2 Duo CPU T5270 @ 1.40GHz (2792.8 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT
   13:02:27 up 7 min,  2 users,  load average: 0.50, 0.31, 0.17; runlevel 2

------------------------------------------------------------------------
Benchmark Run: Fri Jun 20 2014 13:02:27 - 13:30:28
2 CPUs in system; running 1 parallel copy of tests

Dhrystone 2 using register variables        8578638.6 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     1671.1 MWIPS (10.2 s, 7 samples)
Execl Throughput                                962.5 lps   (29.9 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        261941.5 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks           80624.9 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks        613075.2 KBps  (30.0 s, 2 samples)
Pipe Throughput                              437733.6 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                  21707.5 lps   (10.0 s, 7 samples)
Process Creation                               2925.7 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   3287.6 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    735.4 lpm   (60.0 s, 2 samples)
System Call Overhead                         911615.6 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0    8578638.6    735.1
Double-Precision Whetstone                       55.0       1671.1    303.8
Execl Throughput                                 43.0        962.5    223.8
File Copy 1024 bufsize 2000 maxblocks          3960.0     261941.5    661.5
File Copy 256 bufsize 500 maxblocks            1655.0      80624.9    487.2
File Copy 4096 bufsize 8000 maxblocks          5800.0     613075.2   1057.0
Pipe Throughput                               12440.0     437733.6    351.9
Pipe-based Context Switching                   4000.0      21707.5     54.3
Process Creation                                126.0       2925.7    232.2
Shell Scripts (1 concurrent)                     42.4       3287.6    775.4
Shell Scripts (8 concurrent)                      6.0        735.4   1225.6
System Call Overhead                          15000.0     911615.6    607.7
                                                                   ========
System Benchmarks Index Score                                         433.1

------------------------------------------------------------------------
Benchmark Run: Fri Jun 20 2014 13:30:28 - 13:58:32
2 CPUs in system; running 2 parallel copies of tests

Dhrystone 2 using register variables       15140050.1 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     2976.3 MWIPS (10.2 s, 7 samples)
Execl Throughput                               3485.0 lps   (29.9 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        386644.8 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks          119772.7 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks        859500.6 KBps  (30.0 s, 2 samples)
Pipe Throughput                              785277.0 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 180743.2 lps   (10.0 s, 7 samples)
Process Creation                              10408.1 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   5567.7 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    743.1 lpm   (60.1 s, 2 samples)
System Call Overhead                        1549181.8 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   15140050.1   1297.3
Double-Precision Whetstone                       55.0       2976.3    541.1
Execl Throughput                                 43.0       3485.0    810.5
File Copy 1024 bufsize 2000 maxblocks          3960.0     386644.8    976.4
File Copy 256 bufsize 500 maxblocks            1655.0     119772.7    723.7
File Copy 4096 bufsize 8000 maxblocks          5800.0     859500.6   1481.9
Pipe Throughput                               12440.0     785277.0    631.3
Pipe-based Context Switching                   4000.0     180743.2    451.9
Process Creation                                126.0      10408.1    826.0
Shell Scripts (1 concurrent)                     42.4       5567.7   1313.1
Shell Scripts (8 concurrent)                      6.0        743.1   1238.6
System Call Overhead                          15000.0    1549181.8   1032.8
                                                                   ========
System Benchmarks Index Score                                         886.6

The moral of the story for me is that while encrypted homes are good, remember not to use them for disk intensive tasks, especially those not requiring security.


How to use media keys in Chrome with Google Play Music?

In KDE it's possible to select a multimedia keyboard. Choosing the correct one will enable the multi media keys even for chrome and even when it's running in the background.


Font rendering problem after accidentally deleting font folder

Follow the steps:

1. Go to your home folder
2. Press Ctrl+H or (Menu -> View -> Show Hidden Files)
3. Make a backup copy of a file .fonts.conf from your home folder to any other location
4. Delete the .fonts.conf file which is in your home folder
5. Restart your browser
6. How are your eyes feeling now!
Done.


Ubuntu Touch Music app installed in 16.04 unity 7 shows no music

There's a service that should be installed that scans your music and creates a library for the application to use. You can restart this service by executing the following command:

restart mediascanner-2.0

If that doesn't work or isn't valid, you may need to install the daemon:

sudo apt-get install mediascanner2.0


Issue in regard to installation of Tuxboot 0.7 to Ubuntu 18.10

Open the terminal and run:

sudo QT_X11_NO_MITSHM=1 tuxboot

source: https://bugs.launchpad.net/unetbootin/+bug/1620628


Try adding pci=nomsi to the kernel parameters when it boots.  This will be in the grub menu, or extlinux.

You can test it at the same time you choose between your kernels by manuall appending it to the start line.


Asus Laptop booting to BIOS, displays ubuntu (Drive not found)


You can use the default System Monitor. Launch it from terminal with gnome-system-monitor or search for System Monitor/Task Manager on the search window in the sidebar. If you prefer to use terminal based system monitor, try htop or nmon


Efi issue Ubuntu 18 after deleting windows and efi partition

Looked at other forums and psots on askubuntu.com USed boot-repair but still same.

Then went to system menu (pressed F2 key before boot error appeared), under security.

Deleted all current boot info.

Saved and exited.

Again went there and choose ubuntu efi

On rebooth said no booth device.

Did boot repair again.

Rebooth. Same  no booth device.

Rebooth to boot menu, choose Ubuntu again under security - trusted boots

Now its working.


Software updater doesn't display Ubuntu 14.04

Having the same problem, I found I can click on the icon in the tray once and not see anything happen, but click on it one more time and the window appears as it normally would, just like clicking the icon once to minimize the window and clicking again to re-display that window; annoying but slightly faster than restarting Update Manager from the menu.

This has been reported as a bug on Launchpad:

https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/1325814?comments=all


sound-juicer is failing for me in 16.04 (see the cascade in the question)

To further debug what is going on here, first step:

Run sound-juicer from the command line

Try to get the bug to reproduce after you run it from the command line, and hopefully you will see more output show up in the terminal where you ran it.

# First open up 'gnome-terminal', then
$ sound-juicer

If that doesn't get you any more info...

Check common log files

General errors: /var/log/syslog
Kernel/Hardware errors: run the command dmesg
Kernel/Hardware errors: /var/log/kern.log

Next...

Run sound-juicer from the command line with debug options

$ sound-juicer --help-all |grep -i debug
  --gdk-debug=FLAGS                 GDK debugging flags to set
  --gdk-no-debug=FLAGS              GDK debugging flags to unset
  --gtk-debug=FLAGS                 GTK+ debugging flags to set
  --gtk-no-debug=FLAGS              GTK+ debugging flags to unset
  --brasero-media-debug             Display debug statements on stdout for Brasero media library
  --gst-debug-help                  Print available debug categories and exit
  --gst-debug-level=LEVEL           Default debug level from 1 (only error) to 9 (anything) or 0 for no output
  --gst-debug=LIST                  Comma-separated list of category_name:level pairs to set specific levels for the individual categories. Example: GST_AUTOPLUG:5,GST_ELEMENT_*:3
  --gst-debug-no-color              Disable colored debugging output
  --gst-debug-color-mode            Changes coloring mode of the debug log. Possible modes: off, on, disable, auto, unix
  --gst-debug-disable               Disable debugging

Looking at that list and the text of the error pop up, I'd start with

$ sound-juicer --gst-debug=all

And proceed from there.  Once I reproduced it, perhaps with all the debug flags turned, on, and it was clear this was not a setup problem, or problem with something you did configuration-wise.  I would...

File a bug on sound-juicer upstream

Look in their bug tracker, and file away!   You can also file a bug in launchpad, but make sure to reference the upstream bug when you file.  You can also go the other way around and use ubuntu-bug sound-juicer which would make a nice first start in launchpad, but don't be shy and leave the issue there, inform the upstream devs of the issue too.

More info

See here for some general tips on running gtk apps with debug flags.


Creating a .desktop file for a new application

For reference see the Freedesktop Desktop Entry Specification, but this should work:

[Desktop Entry]
Version=1.0
Name=Unipro UGENE
Comment=Unipro UGENE is a cross-platform visual environment for DNA and protein sequence analysis.
Exec=/home/samuel/ugene-1.11.5/ugene -ui
Path=/home/samuel/ugene-1.11.5/
Icon=/usr/share/icons/Humanity/apps/32/access.svg
Terminal=false
Type=Application
Categories=Utility;Development;

Some notes:

Version

Should be 1.0, it refers to the .desktop file version, not to the program version.

Name

The name that should be displayed on the menu.

Exec

The full path to the executable. No need to use '.', it just means the current dir

Path

The dir that will be set as current when the entry is run. You usually don't need to set it, but I have added it just in case. It is the same as using 'cd' in your command line

Icon

The path to the icon file that will be used for the file, it's likely that the one that you put doesn't exists, I have changed it for a generic one. You should change this to the file that you want the icon to use

Mimetype

Specifies the kind of files that this program is able to open. I've left it empty.

StartupWMClass

Only needed for some programs, It is usually needed by java programs but only set it if you notice some problems.

To use the desktop file from the Dash you will need to copy it to /usr/share/applications for any user to be able to use it (you will need administrator permissions) or to ~/.local/share/applications (where ~ means your user directory) if you just want it to be available for one user.


It is a bug in Khmer fonts, see https://bugs.launchpad.net/ubuntu/+source/fonts-khmeros/+bug/1254967.

If it bothers you and you do not need Khmer fonts, you can get rid of it removing (with configuration) the fonts:

apt-get purge  fonts-khmeros-core

If you need the fonts, there are various workarounds in the aforementioned bug. The most correct way seems to edit the failing file and remove the <match> and </match> tags, as explained here: http://permalink.gmane.org/gmane.linux.debian.devel.bugs.general/1095401


How do I perform a release upgrade on a server running Landscape?

I'll save future readers the trouble.
https://docs.ubuntu.com/landscape/en/onprem
Landscape On-Premises, is the standalone version of Landscape that you can install on your own network.

Each major Landscape version is supported for a period of one year after release. Here are the current supported releases:

MAJOR VERSION   RELEASE DATE    SUPPORTED UNTIL   VERSION OF UBUNTU
19.10           2019-Oct        2021-Oct          18.04 LTS

I did try to back up the database and just remove the offending postgres package, which worked, or ... at least, I could get further in the upgrade process. But during the upgrade the landscape packages were also removed anyway.


Trackpad not functioning properly on Geobook 1m

I bought a Geobook 1M recently. I wanted the cheapest small laptop I could find anywhere, to use for a few days while travelling light. I loaded Xubuntu 19.04 and came across the same problem. The solution was rather straightforward: Disable the "Tap Touchpad to Click" option in the touchpad settings. It appears  the problem is that every single movement of the touchpad is being treated as a click.

I also changed my /etc/default/grub to

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=Linux"

which seems to help stability in general (remember to update-grub afterwards).

Then there is the problem of all the warnings being generated in kern.log when I touch the trackpad. I added these lines in my /etc/rsyslog.d/50-default.conf to deal with it

:msg, contains, "i2c_hid_get_input: incomplete report" -/dev/null
& ~

Finally, to suppress these warnings from the console:

dmesg --console-level 3

With these settings done, this is actually a pretty good linux ultraportable. Wifi, sound, microphone, camera, SD card work well.


How to change permanently the PATH with Ubuntu 12.04 LTS?

sudo -i is supposed to be a "safe" sudo. That means that it ignores any changes to path such that it is restricted to managed programs.

Use sudo -s instead if you want to load /etc/environment instead of using sudo -i.

See also:

https://help.ubuntu.com/community/EnvironmentVariables
https://unix.stackexchange.com/questions/16084/what-environment-do-i-get-with-sudo
https://serverfault.com/questions/11899/how-to-override-a-path-environment-variable-in-sudo


Just use any live cd to boot into recovery and then select the hard disk and navigate to the bin folder of your installed ubuntu. Then reset the permissions like this:
go to the root console. Once there, execute the following to return permissions back:

chmod 755 /bin\

EDIT:
Just go to terminal from any live cd and write there:

sudo fdisk -l

This will list out all the partitions. Just locate the root partition of the drive and write down its device name. It will have the device listed out in order:

/dev/sda1
/dev/sda2
/dev/sda3
....
....

Just note down the device name of your root partition, let you can use Gparted to examine the partitons in a better way. But finding out the root partition is what you all care about. Now suppose /sda2 is your root partition(I assume). Just go to terminal and mount the device by

sudo mkdir /mnt //in case live cd does not have /mnt folder.
sudo mount /dev/sda2

Now when you get your device mounted, Just navigate to it as:

sudo lshw

and note down the root device serial number

cd /media
cd device-logical-number  // for ex- mine have A272B6CF72B6A785

and now you can cd to bin directory and can apply permission there.


No unity launcher and top status bar showing in Ubuntu after re-installing

Try these commands:

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


How do I share files between Windows and Ubuntu in a Wubi setup?

The Windows partition where you installed Wubi is available as /host within Ubuntu (Places > Computer > File System > Host).
All the other partitions will be available under Places > Removable Media

Here's the source.


Upgraded to kernel 4.2 but getting black screen after that

That command is wrong in many cases. Maybe it will work on a fresh installed system. But when you have multiarch 32-bit packages, it removes lots of packages. You could see it when you ran the command.

The correct command is

sudo apt-get install linux-generic-lts-wily xserver-xorg-lts-wily libgl1-mesa-glx-lts-wily libglapi-mesa-lts-wily libgl1-mesa-glx-lts-wily:i386 libglapi-mesa-lts-wily:i386

I ran it on two computers today and upgraded without any issues.

Another unlikely problem may be because you have an unsupported Nvidia driver 361. It may be incompatible with the new version of xorg-server.

But as I said, it is very unlikely.

You can fix your system by running

sudo apt-get install ubuntu-desktop

if you are lucky enough.

P.S. And I never advised you to install new xorg-server. I gave you a command to upgrade only the kernel that was

sudo apt-get install linux-generic-lts-wily

Upgrading HWE graphical stack from vivid to wily is not worth the effort, because it is a very minor version change from 1.17.1 to 1.17.2.


Ubuntu 14.04 LTS wireless network not working

In Ubuntu forums is discussion about that. You can see the whole thread here: https://ubuntuforums.org/showthread.php?t=2305201


How to prevent munin from drawing "warning" lines on graphs?

I made plugin to monitor the room temperatures at home. I ran into same problem as you are and I've noticed that the graphs are only showing the warning lines.

Having only critical values, kinda “solved” the problem. I simply commented out the warning fields in my plugins code:

echo "budapest.label Budapest\n";
echo "budapest.info Budapest\n";
echo "budapest.colour COLOUR7\n";
//echo "budapest.warning -15:38\n";
echo "budapest.critical -18:40\n";

Warning lines on the graph

Graph with only critical values

If one of the values are outside of critical ranges, the graph will show up with red border as usual.

I don't know if it's bug or feature.

Update: I spoke with the munin folks on the official IRC channel and they suggested to report this as bug and try fix munin itself.


Good alternative for hamachi on Linux Ubuntu 17.04?

Zerotier One might be a good option. https://www.zerotier.com/


Why does the first partition start at sector 34 when I choose "Guided - Use entire disk" during install?

The size of the EFI label is usually 34 sectors, so partitions start at sector 34. This feature means that no partition can start at sector zero (0)

Source.


Unable to connect to openvpn outside LAN

Most likely open the necessary ports in your firewall in front of the server.

From the sounds of it this is hosted on a network at home, you are trying to access it from outside. since you can connect to the server from inside your network, but you can not from the outside then one of two things are likely true:

Your trying to connect to the wrong IP
The correct ports (in this case 1194) are not set to route traffic through to your server.

A "typical" setup would be a modem from your isp -> router/switch -> various computers on your lan. The router needs to be told to allow incoming traffic on 1194 to route through to the ip address of your internal server.

Based on your settings file above, you need to allow udp traffic through on port 1194.


Shell Script Unable to send execution time via email

The statement

Message="sendmail function $diff"

evaluates once when the script is executed. Then diff is "", so Message is sendmail function. The statement is not reexecuted after you set diff to a new value, so sendmail function is what gets emailed.

Wouldn't it be simpler to just run

time myscript.sh | mail -s "Test" tarun@example.com


How do I add alternating strings to filenames and renumber them pairwise?

rename performs bulk renaming, and it can do the arithmetic you need.
Different GNU/Linux distributions have different commands called rename, with different syntax and capabilities. In Debian, Ubuntu, and some other OSes, rename is the Perl renaming utility prename. It is quite well suited to this task.
First I recommend telling rename to just show you what it would do, by running it with the -n flag:
rename -n 's/\d+/sprintf("%04dc%d", int(($& - 1) \/ 2) + 1, 2 - $& % 2)/e' ome????.tif

That should show you:
rename(ome0001.tif, ome0001c1.tif)
rename(ome0002.tif, ome0001c2.tif)
rename(ome0003.tif, ome0002c1.tif)
rename(ome0004.tif, ome0002c2.tif)
rename(ome0005.tif, ome0003c1.tif)
rename(ome0006.tif, ome0003c2.tif)
rename(ome0007.tif, ome0004c1.tif)
rename(ome0008.tif, ome0004c2.tif)
rename(ome0009.tif, ome0005c1.tif)
rename(ome0010.tif, ome0005c2.tif)
rename(ome0011.tif, ome0006c1.tif)
rename(ome0012.tif, ome0006c2.tif)

Assuming that's  what you want, go ahead and run it without the -n flag (i.e., just remove -n):
rename 's/\d+/sprintf("%04dc%d", int(($& - 1) \/ 2) + 1, 2 - $& % 2)/e' ome????.tif

That command is somewhat ugly--though still more elegant than using a loop in your shell--and perhaps someone with more Perl experience than I have will post a prettier solution.
I highly recommend Oli's tutorial Bulk renaming files in Ubuntu; the briefest of introductions to the rename command, for a gentle intro to writing rename commands.

How that specific rename command works:
Here's what s/\d+/sprintf("%04dc%d", int(($& - 1) \/ 2) + 1, 2 - $& % 2)/e does:

The leading s means to search for text to replace.
The regular expression /\d+/ matches one or more (+) digits (\d). This matches your 0001, 0002, and so forth.
The command sprintf("%04dc%d", int(($& - 1) / 2) + 1, 2 - $& % 2) is built. $& represents the match. / normally ends the replacement text, but \/ makes a literal / (which is division, as detailed below).
The trailing /e means to evaluate the replacement text as code.
(Try running it with just / instead of /e at the end, but make sure to keep the -n flag!)

Thus your new filenames are the return values of sprintf("%04dc%d", int(($& - 1) \/ 2) + 1, 2 - $& % 2). So what's going on there?

sprintf returns formatted text. It first argument is the format string into which values are placed. %04d consumes the first argument and formats it as an integer 4 characters wide. %4d would omit leading zeros, hence %04d is needed. Not being covered by any %, c means just a literal letter c. Then %d consumes the second argument and formats it as an integer (with default formatting).
int(($& - 1) / 2) + 1 subtracts 1 from the number extracted from the original filename, divides it by 2, truncates the fractional portion (int does that), then adds 1. That arithmetic sends 0001 and 0002 to 0001, 0003 and 0004 to 0002, 0005 and 0006 to 0003, and so forth.
2 - $& % 2 takes the remainder of dividing the number extracted from the original filename by 2 (% does that), which is 0 if it's even and 1 if it's odd. It then subtracts that from 2. This arithmetic sends 0001 to 1, 0002 to 2, 0003 to 1, 0004 to 2, and so forth.

Finally, ome????.tif is a glob that your shell expands to a list of all the filenames in the current directory that start with ome, end in .tif, and have exactly four of any characters in between.
This list is passed to the rename command, which will attempt to rename (or with -n, tell you how it would rename) all of the files whose names contain a match to the pattern \d+.

From your description, it doesn't sound like you have any files in that directory named that way but with some of the characters not digits.
But if you do then you can replace \d+ with \d{4} in the regular expression appearing in the commands shown above, to ensure they aren't renamed, or just inspect the output produced with -n carefully, which you should be doing anyway.
I wrote \d+ instead of \d{4} to avoid making the command more complex than necessary. (There are many different ways to write it.)


Gedit select text and just highlight it plugin

As Gedit is just an editor and not intended for publishing/presentation this feature is unlikely to be found. Have yourself a look at the list of available plugins though.

As a workaround I suggest you go to View/Highlight Mode and select some script (I used sh). Now every line that has a # at the beginning is displayed differently.


"Screen 0" here describes your whole virtual display made of these two outputs:

eDP-1-1:  physical screen plugged to a display-port output
HDMI-1-1: physical screen plugged to a HDMI output

(notice Screen 0 is 3286 pixel wide, which is 1366 + 1920, the two other outputs horizontal pixels)

I guess you want to use HDMI-1-1 as primary output, and the following command  will fix that:

xrandr --output HDMI-1-1 --primary


Can you transfer Steam games from one Ubuntu Laptop to another?

Unless you have setup separate libraries, Steam on Linux stores all the games in the .local/share/Steam/SteamApps, which is the equivalent of the Windows Steam client's SteamApps folder. So just copy this folder.


Hardware acceleration error when starting Ubuntu 14.04 in VM

Enable "virtualization" in your boot settings. It is "off" by default in most laptops.

As pointed out by Aizuddin Zali , may be vendor have locked in "Virtualization". Therefore can you just inform what Machine (machine number , company) you are using?


Some but unfortuanley not all of the keyboard shortcuts are listed in the GNOME Image Viewer Manual that you will also get by pressing the "Help" button in Eye Of Gnome.

Keyboard shortcuts that are not listed may appear in the menu dropdown list (e.g. Ctrl+R for rotating clockwise or Shift+Ctrl+R for rotating counter clockwise).


When attempting to update mediawiki, I get the following error. How can I resolve this?

You will need to specify to the maintenance script the path of the LocalSettings.php file. For example:

php maintenance/importImages.php --conf /var/wwwdata/website.org/wiki/LocalSettings.php /tmp/wikiimages .jpg .png .svg

Source


Building off of another answer, open a terminal (press Ctrl+Alt+T) and run the following:

sudo -i
service mysql stop
killall -KILL mysql mysqld_safe mysqld
apt-get --yes purge mysql-server mysql-client
apt-get --yes autoremove --purge
apt-get autoclean
deluser --remove-home mysql
delgroup mysql
rm -rf /etc/apparmor.d/abstractions/mysql /etc/apparmor.d/cache/usr.sbin.mysqld /etc/mysql /var/lib/mysql /var/log/mysql* /var/log/upstart/mysql.log* /var/run/mysqld
updatedb
exit

If you want to delete the log of what you did while using the mysql client:

rm ~/.mysql_history

If you want to delete the logs of what all users on the system did while using the mysql client (the other users might be unhappy with this):

awk -F : '{ print($6 "/.mysql_history"); }' /etc/passwd | xargs -r -d '\n' -- sudo rm -f --

or for all logs including those outside of existing user home directories:

sudo find / -name .mysql_history -delete


kernel image error while installing Ubuntu 13.10

Rename the isolinux folder to syslinux.And then go into the renamed syslinux folder and change(rename) isolinux.cfg file to syslinux.cfg which are all inside the USB.
Then restart and boot from usb.


Program that simply slows down a network?

T50 network packet injector

Download the deb file from here and install it. Then you can run:

sudo t50 --flood --turbo --protocol T50 <host>

You can try flooding the default gateway or the entire network (run ip route list to list them). Run something like:

sudo t50 --flood --turbo --protocol T50 192.168.0.1
sudo t50 --flood --turbo --protocol T50 192.168.0.0/24


GTK+ is toolkit  or framework to provide user interface support. Like awt, swing or JavaFX in java.

And as mentioned on their website https://www.gtk.org/

  GTK+ is cross-platform and boasts an easy to use API, speeding up your development time. Take a look at the screenshots to see a number of platforms GTK+ will run.

you can use Glade builder to build the interface for your app.

Some of the Desktop Environments like Cinnamon, Mate, Gnome use GTK framework and already have it. Installing from source can cause conflicts with your system and may crash it.


Moved Wubi to different partition, unable to boot after editing grub

When it boots, hold Shift to get the grub menu. Then press C to get to a Grub command prompt enter the following (be careful; no typos; nothing here will harm anything so just start again if necessary):

search -s -f -n /ubuntu/disks/root.disk
probe --set=diskuuid -u $root
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
linux /vmlinuz root=UUID=$diskuuid loop=/ubuntu/disks/root.disk ro quiet splash
initrd /initrd.img
boot

What does the above do? 1.) Finds the root.disk (file) and sets $root to the partition it found it on.  2) Gets the UUID of the partition. 3) Creates a loop device (fake partition) from the root.disk on loop0. 4) Sets root to the loop device. 5) identifies the kernel off the loop device while setting the host partition from the UUID. 6) identifies the initial ram disk off the loop device. 7) boots the Wubi install

Once you have booted Wubi, run

sudo update-grub

After that it will boot normally.

Edit:

I seem to recall that the Grub probe command wasn't added until after 12.04. If it doesn't work, then substitute #2 with the following:

echo $root

Now note what it says e.g. /dev/sda2 and then change #5 to directly reference the partition, not the UUID with e.g.:

linux /vmlinuz root=/dev/sda2 loop=/ubuntu/disks/root.disk ro quiet splash


How to directly download a source package installation package tarball from a URL?

To download trough commandline:

wget -c http://www.tree-puzzle.de/tree-puzzle-5.2.tar.gz


systemd-analyze gives "No such property 'FirmwareTimestampMonotonic'" error

I figured it out. I was missing systemd-sysv. Once I installed it and rebooted, all was right with the world.


Regardless the error reporting system, Apport or other, there are privacy concerns. This does not mean that sensitive information will always exist in an error report.

Why (long answer): the goal of error reporting is to gather information about the user failure-inducing execution in order to help developers to find its causes. Depending on the mechanism used, such information can come in many forms: memory dumps, log entries, etc. But anyway the goal is to transform such information into steps to reproduce the user execution that ended in failure. Therefore, if the application you were using deals with sensitive information, e.g. you were using your text editor to edit a confidential document, a mail client to exchange private messages, or some other application that involves credentials or credit card info, then such sensitive information may end up in memory dumps or in log entries.

Why (short answer): If you insert your data (sensitive or not) in the application and it fails, then the steps-to-reproduce your failure-inducing execution is your data -> likely to end up in the error report.

Therefore, my advice is not to authorize the transmission when your data is somehow sensitive. It should be fine otherwise and we should help developers to fix the problem by transmitting it.


How to Install Xubuntu Inside Windows (no downloading)

You can't mix versions of wubi.exe (and as far as Wubi is concerned, 12.04 is not the same as 12.04.1/2/3).

You can install Xubuntu using the ISO you have as long as you use the correct wubi.exe i.e. the ones dated 24 April 2012 from old-releases.ubuntu.com/releases/precise/

To do this:

Save the ISO with the correct version of wubi.exe in the same folder
Disconnect from the Internet (avoid the mds5sum check)
Run wubi.exe

Note this assumes that the Xubuntu ISO you have is good.


How to better allocate diskspace in a VM?

I think I found my own answer. It seems that even though I selected "Use An Entire Disk And Setup LVM" it didn't use the entire disk. It set 4G to the root partition and leaves the rest as unused. Seems like a strange default when I tell it to use the entire disk.

I couldn't copy and paste the text since this is through Proxmox VNC in a browser.

https://i.imgur.com/RE3V71U.jpg


Error CL_PLATFORM_NOT_FOUND_KHR in running HashCat 4.0.1

Output of lspci indicates that the only graphic card on your system is Intel Corporation Xeon E3-1200 which is part of your Intel(R) Core(TM) i3-3210 processor. Also you haven't installed OpenCl library yet, so follow these steps:

Install lsb-core package using:

apt-get install lsb-core

Intel CPUs require OpenCL Runtime for Intel Core and Intel Xeon Processors (16.1.1 or later). Download and install OpenCL™ Runtime 16.1.2 for Intel® Core™ and Intel® Xeon® Processors for Red Hat* and Ubuntu* Linux* (64-bit) from this page. Ignore the compatibility warning:

tar xf opencl_runtime_16.1.2_x64_rh_6.4.0.37.tgz
cd opencl_runtime_16.1.2_x64_rh_6.4.0.37
sudo ./install_GUI.sh


Lubuntu: Error messaging when trying to add a SAMBA Printer

Sorry just being silly.

Worked it out.  Just

sudo apt-get install smbclient

and then when it complains about python3-smbc do:

sudo apt-get install python3-smbc


How do i show my entire screen with a projector?

From the output you get I guess that you have not yet installed the proprietary Nvidia divers. The open source driver is nouveau. After installing the vendor drivers you will have a Nvidia configuration tool in your System section that allows "cloning" of your display:

Open nvidia-settings and choose "XServer-Display-Configuration". Your projector should automatically be detected when choosing "Detect Displays". In the configuration part you should be able to choose "Clone Display".


'Cannot access secondary GPU' error with Bumblebee

So to get Bumblebee to work

a) Run the following command to find out the BusID for your Nvidia graphics card:

 lspci | grep NVIDIA

The BusID is the number in the beginning of the line returned by the command above. Here's how the output for the command above looks like on my laptop:

 01:00.0 VGA compatible controller: NVIDIA Corporation GF108M [GeForce GT 525M] (rev ff)

The BusID is the number in bold, "01:00.0" in my case.

b) Now we'll have to add the BusID to /etc/bumblebee/xorg.conf.nvidia and for this, we'll open the file as root with a text editor (I'll use Gedit in the command below):

 sudo gedit /etc/bumblebee/xorg.conf.nvidia

And in this file, in the "Device" section, add the following:

    BusID "PCI:YOUR_BUS_ID"

Replacing "YOUR_BUS_ID" with the BusID returned by the command used under step a). For me (remember, for you, the BusID may be different), this line looks like this:

  BusID "PCI:01:00:0"

Then, restart your system and Bumblebee should work so when you want to run an application or game on your Nvidia card, use:

 optirun APP_OR_GAME
 optirun glxspheres

Help > W E B U P D 8 Check Bumblebee Section


Does 13.04 have power/suspend issues with Sandy Bridge?

Actually, no. My Thinkpad X220 with i5 sandy bridge use a lot of energy with kernel 3.8 and it`s really hot on CPU. But most of time, the temperature beetween 70. (not always actually. playing fullHD gives me 90 celcium, so I need to use an external cooler) This is better then on HOT-HOT-HOT 3.6, but still, it is highly recommended to use 12.04 LTS release with this knd of CPUs.


HP laptop: when I close the lid the screen locks. How do I disable this behavior?

Open your settings dialog - select "Privacy" on the left side, then "Screen Lock"

Now turn off the "Automatic Screen lock" and "Lock Screen on suspend"
Turning off both worked with my hardware.


Cannot login to Ubuntu 17.10 after reinstallation

I am answering this for people who may have similar problems it appears to be .ICEauthority chown it and problem solved same as @guiverc said


How to disable Alt+LeftMouseButton dragging in KDE?

I'm using Xubuntu 18.04 LTS, but I assume it will be the same solution:
All settings > Window Manager Tweaks > Accessibility > 'Key used to grab and move windows'.


To execute a script at startup of Ubuntu

Edit /etc/rc.local and add your commands.
The script must always end with exit 0

  To execute a script upon rebooting Ubuntu

Put your script in /etc/rc0.d
And make it executable (sudo chmod +x script)
Note that scripts in this directory are executed in alphabetical order.
The name of your script must begin with K99 to run at the right time.

  To execute a script at shutdown

Put your script in /etc/rc6.d
and make it executable (sudo chmod +x script)
Note that scripts in this directory are executed in alphabetical order.
The name of your script must begin with K99 to run at the right time.

  To execute a script on logout

man bash has this to say about it: When  a  login  shell  exits, bash reads and executes commands from the file ~/.bash_logout, if it exists. So you can add script executed during logout to ~/.bash_logout.
Do make sure it is executable.
You might need to add $HOME/.bash_logout to etc/gdm/PostSession/Default for it to work.


Try AirDroid. It is easy to use: connect the phone to the same network as your PC (Wi-Fi or USB tethering) then use your browser to connect to the phone.


Wifi problems with rtl8723be in Ubuntu 14.04

I was having these problem with rtl8723be on linux mint 17, and mint17.1. The same procedure should work on ubuntu 14.04 and derivates.

I had to install new module for realtek wifi cards where they solved the constant disconnects:

install required packages

sudo apt-get install build-essential git

git clone new realtek wifi modules

git clone https://github.com/lwfinger/rtlwifi_new/

enter the directory

cd rtlwifi_new

build it

make

install

sudo make install

Now you can reboot or unload/load modules

unload modules

sudo modprobe -r rtl8723be

load new module

sudo modprobe rtl8723be

if it still doesn't work, try the solution from this post

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

Note: After each kernel update, you need to rebuild the modules. That is,

After every kernel update:

cd rtlwifi_new

Clean previous builds

make clean

Update git repository

git pull

Compile

make clean && make

Install

sudo make install

reboot or unload/load modules

EDIT: It seems as of kernel 4.17 kernel APIs have changed:
Note: If your kernel is 4.17 or newer, AND your card is not an RTL8723DE, then you should NOT be using the external driver. The built-in one is the same.
source: https://github.com/lwfinger/rtlwifi_new/


How do I add zero padding to filenames that already have numbers in them?

I'm assuming that you just need to rename the files 1-9, since those are the ones that need padding. There are multiple ways of doing this.

You can execute the below command:

for n in $(seq 9); do mv track_$n.mp3 track_0$n.mp3; done;

This will rename tracks track_1.mp3 - track_9.mp3 to track_01.mp3 - track_09.mp3.

To break it down, it looks like this:

for n in $(seq 9)
do
    mv track_$n.mp3 track_0$n.mp3
done

for n in $(seq 9): for every number in the output of the command seq 9, which is a command that just lists numbers 1 to 9, do,
mv track_$n.mp3 track_0$n.mp3: this is the actual command that renames the files. It substitutes the value of n iterating through all numbers. So it does mv track_1.mp3 track_01.mp3, mv track_2.mp3 track_02.mp3, until that last number which is 9.


If you installed it from the Ubuntu repositories, it's

sudo apt-get purge phpmyadmin

The "purge" instead of "remove" instructs it to remove its configuration files too, including the configuration it added to Apache's configuration directories.

You may be prompted for whether you want to remove its database as well.  This will remove the phpMyAdmin-specific database from your MySQL server.  It won't harm the MySQL server.  In your case, select Yes.  If you are not prompted to do this you will need to remove its database manually.

If you installed it manually by extracting files into a web server directory, just delete all those files, and remove its database from your MySQL server assuming you got that far in the installation.


it means your source of update has invalid certificate or certificate may be expired recently. in order to ignore that message, don't update your software when automatic pop-up shows. do it manually. in that no such message will be shown. i hope this will helps you.


You can use bash brace expansion :

IMG_30{94..99}.JPG IMG_31{00..34}.JPG

to generate file names from IMG_3094.JPG to IMG_3134.JPG.

It actually has two expansions :

IMG_30{94..99}.JPG will be expanded from IMG_3094.JPG to IMG_3099.JPG
IMG_31{00..34}.JPG will be expanded from IMG_3100.JPG to
IMG_3134.JPG

So your scp can be done with this one liner :

scp IMG_30{94..99}.JPG IMG_31{00..34}.JPG user@192.168.1.2:/home/user/


How do I get ubuntu to boot again after disk clone?

Your problem is that file system UUID values has changed after you cloned the disk, in particular, there were two changes that are affecting you, the windows file system UUID and the ubuntu one. Most information that you need to fix it is contained in this helpful question, however let's flesh out missing details.

When you boot and is presented with the grub screen, go to "Advanced..." and select the recovery mode. Once boot process has finished choose root shell. Your goal is to find out the new values for new windows one which used to be 62A5-4B98 and for new linux one which used to be B0ACCB58ACCB17AC.

Once in root shell use the following two commands:

fdsik -l
blkid

The first one will show you existing partitions, you should look for one that has a description of "EFI System" or similar. That's the partition you are looking for in the output of blkid. That will give you UUID for windows. Note that depending on your configuration you might have more than one such partition. Without knowing more I cannot tell you which one to choose, presumable you know what your disks contained and should be able to tell which other ones that you might have on your PC are irrelevant. The UUID will have familiar XXXX-XXXX format, so it should be easy to spot.

Similarly, you need to find out which partition is used to boot into linux. I'm guessing this would be on if the remaining once on the same disk. The best way to find out which one, is to temporary insert your old disk drive (make sure to switch off your PC before doing that) and running blkid on that. It should show you B0ACCB58ACCB17AC on one of the partitions, and you should be able to deduce which one on your new drive correspond to that. This is a bit of inexact science, but it's very hard to give the precise instructions, without seeing it all on the screen.

Reboot again and in the grub menu press e on the "Ubuntu" line. Substitute B0ACCB58ACCB17AC with the value you found for each occurrence and press F10 to continue booting.

The boot is going to fail though, since you used wubiuefi and need to mount your windows disk to load your linux one. In the Ctrl-Alt-F2 terminal you should see a prompt to press Enter to drop into a recovery session. Do it. Edit /etc/fstab and substitute 62A5-4B98 with the new value you found. Save, reboot, go through the same sequence of replacing B0ACCB58ACCB17AC again and now you should be finally able to boot into linux.

Once you are logged in edit /boot/grub/grub.cfg and find/replace all B0ACCB58ACCB17AC
and all 62A5-4B98 on their new respective values. Save and run update-grub.

Now you should be able to login to either Windows or Linux via your grub menu.


Multiple issues are described in the question and comments.  This answer summarizes them and points toward resources that may be helpful.

Possible reasons for 'wrong' fonts being displayed include:

Forgetting to update the font cache with fc-cache -f after installing the font.
Not having actually installed the font. For instance, by copying files to a wrong location.

Metric-Compatible Fonts are fonts that may used in place of each other without changing layout and pagination.

The font displayed in Ubuntu is Carlito, which is a substitute for Calibri.  It is part of Google's Chrome OS Extra Fonts (Crosextra).  The other font in the collection is Caladea, which replaces Cambria.
Google has another collection of fonts, Chrome OS Core Fonts (Croscore), which contains Tinos (for Times New Roman), Arimo (for Arial), and Cousine (for Courier New).
Some other Google-sponsored substitutes are available, such as Gelasio (for Georgia).

Combinations of letters (particularly f, i, t) that are merged together when rendered are known as ligatures.  In print, ligatures are considered desirable.  However, people are not used to seeing ligatures because their primary exposure to text is now via web browsers, which don't even bother to attempt to follow any of the typographic conventions that have developed over centuries.

The following pages may be helpful toward finding an acceptable way to avoid ligatures:

Is it possible to disable ligatures?
How to disable typographic ligature when using font hinting in xfce
How can I fix TTF fonts' ligatures (tt, ti, fi, ff, etc) in Firefox?

In one of the images, antialiasing appears to have been turned off.  Antialiasing improves the appearance of shapes drawn on an imperfectly matched grid.  If turning on antialiasing in system settings does not fix the problem, then the problem may be associated with the use of embedded bitmap fonts.


I found some misspelling in my Ubuntu calendar

If you want to point out only a few mistakes in the Persian translation of the Calendar, filing a bug as karel suggest is the way.

I'm not sure, but I get the impression that you are interested in contributing to the Persian translation of Ubuntu beyond the Calendar. In that case I would recommend that you get in touch with the Ubuntu Persian Translation Reviewers team. They should be able to give you the guidance you need to get started.


Removing TeXLive Installation (installed from ISO)

Just rm -rf the directory where you installed TeXLive (watch out for typos!) and revert any manual changes you may have made such as altering your PATH environment variable.


Why am I getting compile time errors in this C++ program?

First of all use g++ to compile, second you forgot the namespace qualifier for the string g. Try std::string g;. And compile it with g++ myprog.cpp -o hello.


Can't install Ubuntu 16.04! Display manager Xorg failed

Well, you need to set the kernel parameter "nomodeset" -  Nomodeset is a kernel parameter that would help you to get the system running. It won't look good ,but once you've installed the proper nvidia drivers everything is fine - and you won't need that parameter anymore.

If you also have an integrated card (ie Intel) that you could switch to in the BIOS Setup - do it. It will save you a lot of trouble. The GT525M is one of the worst cards from nvidia.


rsync - copy a list of files into a remote directory

I've only partially tested my solution, as I don't have a remote system, but I understand that your problem is syncing from / to / (the entire tree). rsync will accept a source and destination, but find is giving you full paths, so it can only work if you sync the whole tree. My first thought was to use sed to take off the leading part of the paths and then specify the source to rsync so it can find those files, and specify the destination also

find ... | sed -z 's/^\/mnt\/movies\///' | rsync ...

(using -z to tell sed to use NULL separators from -print0 and for --from0)

But, steeldriver helpfully pointed out in a comment that we can achieve the same thing without sed using printf '%P\0' instead of just print0 in the find command, and this does exactly the same as my idea but much more elegantly (discarding the part of the path specified in the command).

Doing this, each file path will be just movie1/1.mkv. So, at the end, instead of --from0 / daisy@melbourne.11111.net:/ tell rsync where to look for that path, and where to find the destination on the remote system:

--from0 /mnt/movies daisy@melbourne.11111.net:/mnt/drive/movies

This works fine for me with local copying.

suggested complete command:

find /mnt/movies -type f -ctime -1 -printf '%P\0' | rsync -Prvuz --log-file=/home/daisy/rsync/movies.log -e "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" --files-from=- --from0 /mnt/movies daisy@melbourne.11111.net:/mnt/drive/movies


In Ubuntu 12.04 can I disable Iptables firewall?

It would be saver if you keep iptables and setup the right rules to open the Minecraft ports. I would proceed as follows:

nano /etc/iptables.rules

insert

# 1. Delete all existing rules
iptables -F
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT DROP
# 2. Accept established inbound connections
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT

# 3. Allow all outgoing traffic
-A OUTPUT -j ACCEPT
# 4. Allow Minecraft - default ports
-A INPUT -p tcp --dport 25565 -j ACCEPT
# 5. Reject everything else
-A INPUT -j REJECT
-A FORWARD -j REJECT

restart firewall with new rules

iptables-restore < /etc/iptables.rules

load each time the server starts

iptables-save > /etc/iptables.rules


nginx.conf and php issues after Upgrade to

Assuming you have php-fpm installed, it is started/enabled with systemctl, and it is running properly/configured to use a socket, you should find a .sock file in /var/run/php/ .
ls -lsha /var/run/php

NGINX connects to PHP, according to your configuration, via /var/run/php/php7.2-fpm.sock .
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;

I  am assuming that during your upgrade, you may have moved off of php7.2-fpm.  You will have to determine which version of php-fpm is available on the system, ensure it is running, determine where that socket is, and give that correct socket to the NGINX configuration.
If you've configured your system for 7.2, it doesn't make sense to me that you'd regress to 7.1 in an update.  It seems those files are just lying around, but you can tell better by looking at their creation times.  Maybe php7.2-fpm is still installed, but not actually running/enabled.
systemctl status php-fpm


I think there are not supposed to be any keyboard shortcut (in my opinion, so just ignore this).

About mounting, go on nautilus and click on a drive, or mount /dev/sd(a,b,c or etc) destination-folder should work too.


Where is VirtualBox shared folders mounted in a virtual guest?

Ubuntu and other Linux Guests automounts shared folders under the folder /media with the format /media/sf_share-name.

Windows Guests automounts its shared folders as a drive letter in File-Manager

The Virtual Machine guest itself needs to have VirtualBox Guest Additions installed.

To use automounting, ensure that your user has the vboxsf user group which is also called Use VirtualBox virtualisation solution in the latest versions of VirtualBox.

Edit the Settings of the Virtual Machine itself and add the folder that is to be shared with the Virtual Guest as follows:


Strange to say, I have the same problem with a GT440. After install and reboot, the old 295 driver is still present and current.
Any idea ?

giuliano@saturn:~$ uname -a

Linux saturn 3.2.0-29-generic #46-Ubuntu SMP Fri Jul 27 17:03:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

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

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

sudo apt-get install nvidia-current nvidia-settings

sudo shutdown -r now

giuliano@saturn:~$ nvidia-settings -v

nvidia-settings:  version 295.33  (buildd@allspice)  Fri Mar 30 15:25:24 UTC 2012
  The NVIDIA X Server Settings tool.

giuliano@saturn:~$ nvidia-settings  -q GPUs

1 GPU on saturn:0

[0] saturn:0[gpu:0] (GeForce GT 440)