How to install Blender from the official website

Here is a step-by-step tutorial on how to download the current version of Blender from the website and replace the version installed from the Software Center with the one that you downloaded. I hope this is what you wanted.

1. Get Blender

Open your browser and go to http://www.blender.org/download/get-blender/ . Download the appropriate version for your computer, 32-bit or 64-bit. If you don't know whether your computer is 32-bit or 64-bit, open a terminal (Ctrl+Alt+T) and run the following command :

uname -m

2. Extract Blender

Open Blender in your downloads folder, right-click on the file you downloaded and click "Extract Here". Once it finishes extracting, move the folder containing Blender to your Home Folder and rename it "blender" for ease of moving it later.

3. Uninstall the current version of Blender

Open a terminal by pressing Ctrl+Alt+T. Type this command set: sudo apt-get remove blender .

4. Copy the Blender files to where they need to go

Open a terminal. Type ls to see what files are in your home directory. There should be a folder called "blender". If there is, run the following command. If not, rename the folder and try again. If there's no folder at all, go back to step 2. Command:

sudo cp ~/blender /usr/lib/blender -r

This will copy all the files in the blender folder to /usr/lib/blender.

5. Verify that the files copied properly

Open the file browser by clicking the "Home Folder" icon in the launcher. Click "File System" on the left side, then open the folder usr, then lib blender. See if there's anything there. If there is, move on to the next step, if not, repeat the previous steps.

6. Open Blender

Open the Blender application. Right-click on the icon that appears in the launcher for the program, and click "Keep in Launcher".

Conclusion

Ta-Da! This is the best you can do to install the current version of Blender. You can redo these steps as many times as needed when a new version of Blender comes out. To remove everything in the blender folder so you can do these steps again, open a terminal and run these commands: sudo rm /usr/lib/blender -r . This is the best you can do, it keeps the blender files in a safe place, and gives a launcher with which to open it. You can't install the current version Blender other then this way in Ubuntu 11.10, however 12.04 will ship with Blender 2.61. For more information see this launchpad post: https://answers.launchpad.net/ubuntu/+source/blender/+question/186716 and this one: https://bugs.launchpad.net/ubuntu/+source/blender/+bug/915248 . Hope that helps!


Is it worth uninstalling the GUI to lower the attack surface of my Ubuntu server?

If you don't need it, uninstall it. As you predicted, that'll reduce the time it takes to upgrade, and reduce the attack surface.


how to compare two images using SIFT in Linux and Matlab

there is a command which let you compare two images. That you can get by installing a package named as imagemagic.

open your terminal with CTRL+ALT+T and type as sudo apt-get install imagemagic

then do as

  compare <Image1.jpeg> <image2.jpeg>  <compare.jpeg>

There is a flawless tutorial on Image comparison and I am sure that its gonna help you . http://www.imagemagick.org/Usage/compare/

I have tested it my self. look at here


If you compile the source code for your system, it will be faster, as it will be tailored to your system.

When that being said, if you truly want to squeeze every possible resource out of your system, Ubuntu might not be the best choice after all.
A system like gentoo is a system, where you compile every program for your system, which results in a very specific optimized system.

If you want to know more, take a look at GCC and compile flags


Virtualbox not able to run VMs. Kernel driver not installed

You need to disable Secure Boot in UEFI (aka BIOS) settings as it is mentioned in the error message.


An easy way is to blur your image using GIMP or an online tool and then use the blurred image as a background.

If you don't know how to use GIMP, i would recommend using this:
https://onlinejpgtools.com/blur-jpg

Just upload your image, enter the blur radius you want and download the resulting image.


How to write an bash script to monitor double-click activity?

There is a way.
First use

xinput --list

to get the id of out input device (mouse or Touchpad)
Then get the state with

xinput --query-state

for a quick test you can do:

while true; do xinput --query-state 14|grep down; sleep 1; done


"Kernel error, try with noapic option" displayed when installing Ubuntu

Lack of Memory (RAM)
256MB is a very low specification for Ubuntu.
Ubuntu will work with this low specification - but only if you use a lower requirement ubuntu spin such as Lubuntu v11.10.
If you have more memory available then my recommendation would be Xubuntu (v11.04 or v11.10).
If you intend to stick with 10.04 Ubuntu then probably 512MB (preferably more) would be required.
Kernel error message
As to your kernel error - some older PCs have buggy BIOS and ACPI (power management) control.
What the error message is suggesting that you boot with the kernel parameter noapic.  You will need to do this both when trying to boot with the LiveCD and after you have install ubuntu.
I've grabbed a screenshot from another question I recently answered - just substitute the word persistent as shown with the word noapic

To display this screen,  immediately when you see the purple screen with the symbol at the bottom (seen immediately after the boot sequence starts)  press Esc... If you got to the "try ubuntu screen" you missed the opportunity!
When you press F6 a pop-up menu will display.  Press Esc to make this menu disappear then use the keyboard arrow keys to move to the position shown in the picture.
Once you have installed Ubuntu - you will then need to temporarily boot with noapic - this is described in the linked question below.
When you have booted into your Ubuntu desktop you can fix noapic to be a permanent Grub entry - again this is described how to do it in the linked question.

Linked Question:

How do I add a kernel boot parameter?


Alias to open multiple text files in different directories from terminal

On how to write this alias:

The alias does not need to open the files separately - gedit can take multiple files.

alias a="gedit ~/Desktop/abc/test1.c ~/Desktop/xyz/test2.c"

This also replaces the path of your home directory by ~. If it should work for other users, use ~konstantinosubuntu instead of the ~.

To make the command independent of the terminal, so that it keeps running if you close the terminal, you can add & to run it in the background, and nohup to make it not exit when the terminal closes:

alias a="nohup gedit ~/Desktop/abc/test1.c ~/Desktop/xyz/test2.c &"

On the syntax of your example:

The problem with the && is that the && needs to be put at the end of the previous line. Otherwise the end of the line is just the end of the command - no problem so far - and the start of the next line has a "&&" that makes no sense in this place.

alias a="
         cd /home/konstantinosubuntu/Desktop/abc && gedit test1.c &&
         cd /home/konstantinosubuntu/Desktop/xyz && gedit test2.c"

As alternative, the whole alias could be put in one line. Or, very similar, a line continuation with \ at the end of the line could be used. That would be writing it as two lines, but executing it as one line, logically.

You note in your comments that the first gedit needs to be closed before the second file is opended, and that you do not want this. The command gedit file.txt runs gedit in foreground if it's the first instance. If gedit is already running, it opens a new tab in that instance, and exits. To make the alias open both files in gedit at the same time, run the first instance in background with &. That does not work together with &&, that needs to be removed:

alias a="
         cd /home/konstantinosubuntu/Desktop/abc && gedit test1.c &
         cd /home/konstantinosubuntu/Desktop/xyz && gedit test2.c"

(Interesting how it is only different by one character, but very different in meaning.)

In case you intended to have multiple current working directories in some way associated with the running gedit by using the cd commands, that can not work. A process has exactly one current working directory. It will be the one of the first gedit instance here.

Just to be clear after discussing these examples, I think you should better use something like in the first section, opening one gedit with multiple files at once.


the extended partition isn't a true partition, it is a container for logical drives.

You need to create a logical drive within the extended partition that uses all space.

then use that for the swap partition

Alternatively:

Since you only have two partitions, delete the extended partition.
Then, create a primary partition to use for swap


The "right" answer is to setup XRDP and switch your desktop environment.  The "easy" answer is to install TeamViewer.  It's free for personal use and works great!


Ubuntu can't download files during update to 12.04 (Failed to fetch)

Issue was out of my PC. Today I've decided to switch to another ethernet socket, and magic happened: all broken URLs suddenly fixed (why did not I do this later...). Seems to be the problem in switch. Question is closed.


Can Ubuntu 13.04 be loaded with a USB flash drive?

This is an old question, but it is relevant also for the current versions of Ubuntu and Windows.
General instructions
There are general instructions at the following link and links from it,

www.ubuntu.com/download

USB alternatives
There is more information, also descriptions of persistent live and installed systems in USB drives, at the following link and links from it,

USB alternatives

Dual Boot

A 'split PC, half Windows XP, half Ubuntu 13.04' makes think of what is often called a dual boot system, that you can boot into either Ubuntu or Windows from the grub boot menu.
There are alternatives for this in the Ubuntu installer, but the first step should be to shrink the Windows partition from within Windows. Leave the released drive space as 'unallocated'. Do not create partitions in Windows. Then you boot from the Ubuntu USB drive (or DVD disk) and continue the installation.

Virtualization

Another alternative, that works if the computer is powerful enough, is to install a tool for a virtualization and install 'the other' operating system  in a virtual machine with a virtual disk. Virtualbox is a tool, that is easy to use for this purpose. This method (as well as alternatives) is discussed at this link.


What media player can I use to play 4K YouTube videos (steam video)

SMPlayer has supported 2K and 4K YouTube streaming already for some time. So this question is probably solved now.


I didn't try the others recently but I have twinkle working very well here with call transfer since 2007 on many machines. Does your PBX (or sip provider) is configured/allow call transfer?

Update:

Transferring with twinkle:

1) Attended transfer:

1 Press Hold
2 Select the free line
3 Call inernal number and talk to colleague
4 Press Bye (and your colleague also needs to shutdown the call)
5 Do Blind transfer (next item) if OK to transfer or talk with caller

2) Blind transfer

1 Press XFer, enter internal number and select Blind Tranfer
2 Press OK

The problem with blind transfer is that if the destination is not available, the external call is lost. This happens with all softphones I tried but I guess you can change that doing some work on Asterisk if you are using it as PBX.


Unknown processes with high CPU utilization Ubuntu on EC2

Congratulations! You, good sir, is now the owner of a malware infected server.

It's probably some crypto-currency miner.

Generally they tend to make a entry in your crontab.

To check crontab for the ubuntu user, run

sudo crontab -e -u ubuntu

Remove any unknown entries, but take note of where they pointed to.

After you've updater your crontab, kill all of the processes, and check crontab again. Then remove the files referenced by crontab using rm.

Reboot, and verify that it does not reappear. Find whatever vulnerability was used to enter, and make sure everything is up to date and secure again, otherwise you'll be reinfected in short order.

I would suggest not doing above, but rather nuking the instance, and starting a new one.


Two files fail MD5SUM checks on Ubuntu 15.10 USB disk

I noticed this too using Ubuntu 15.04's built-in Startup Disk Creator and the 15.10 ISO.

The changes are deliberate. They appear to be boot options which the Grub bootloader must pass to the Linux kernel to enable it to boot from external media (CD or USB) rather than an internal hard drive.

For example, compare line 3 from the file ./boot/grub/loopback.cfg in a text editor.

From the ISO image:

   linux   /casper/vmlinuz.efi  file=/cdrom/preseed/ubuntu.seed boot=casper iso-scan/filename=${iso_path} quiet splash ---

From the USB flash drive created with Startup Disk Creator:

   linux   /casper/vmlinuz.efi  file=/cdrom/preseed/ubuntu.seed boot=casper iso-scan/filename=${iso_path} quiet splash --- cdrom-detect/try-usb=true noprompt

The lines are identical except cdrom-detect/try-usb=true noprompt was added, and the same is true for all the other lines that have changed in both loopback.cfg and grub.cfg. This is an option for the Linux kernel to allow booting from USB or CD instead of an internal HDD [1].

On a side note, these changes were deliberate but it is possible for errors or corruptions to occur during the ISO download or writing to CD/USB. However, the probability of errors occurring is proportional to the file size [2], so you are much more likely to see bit errors or corruptions in larger files (a few GBs in size) than in small files like these (~1kB each). Also, the new files are slightly larger than the originals, but errors are more likely to result in bits being flipped or missed rather than new bits added.

[1] - https://help.ubuntu.com/community/BootFromUSB

[2] - https://help.ubuntu.com/community/HowToMD5SUM


What is the correct way to create a Persistent Ubuntu 20.04 Usb?

You can install the current version of

Rufus in Windows and
mkusb in Ubuntu.

These tools can create persistent live drives from the Ubuntu 20.04 LTS iso file. See more details at the following link and links from it,

How is it easier to make a persistent live drive with Ubuntu 19.10?

You can also extract and clone a compressed image file directly according to the following link,

Xubuntu Core 20.04 LTS with mkusb 12.4.5 (mkusb-dus and mkusb-plug)


This has already been reported as bug under https://bugs.launchpad.net/ubuntu-keyboard/+bug/1395402, where it says as well that it has been fixed in the package ubuntu-keyboard - 0.99.trunk.phablet2+15.10.20150529-0ubuntu1


The box in the corner is a search box. As you type, it highlights an icon on your desktop that matches your search query. Pressing the up and down keys on your keyboard lets you cycle through the icons that match the query.


RAID (mdadm) - What happens if drives are mismatched in size?

I came across this answer by mistake, but in case anyone is curious, here's an answer supported by experiments.

The Short Version

Bonus Question: can I create an md(4) RAID array out of block devices of unequal size? Yes, but the RAID array will have the size of the smallest block device (plus some overheads for its own housekeeping). If device sizes aren't within 1% of each other, you get a warning.

Question 1: can I add to an existing md(4) RAID array a device smaller than the smallest current member? Nope, sorry. mdadm will flat out refuse to do that to protect your data.

Question 2: can you resize an existing md array? Yes (read the mdadm manpge!), but it may not be worth the effort. You'll have to back everything up, then resize the contents of the RAID device, then resize the device itself — all of this is quite prone to errors, miscalculations, and other things that'll cost you your data (painful experience talking).

It's not worth the risk and effort. If you have a new, blank disk, here's how to resize it and also keep between one and two copies of all your data intact at all times (assuming you have 2-disk RAID1):

Create a new md(4) array on it (with one disk missing).
Recreate the structure of the array contents (Crypto, LVM, partitions tables, any combination thereof, whatever floats your boat).
Copy the data from the existing disk to the new one.
Reboot, using the new disk.
Wipe the old disk's partition table (or zero the md(4) superblock). If necessary, create the required partitions to match the scheme on he new disk.
Add the old disk to the new array.
Wait for the array members to sync. Have some coffee. Fly to Latin America and pick your own coffee beans, for that matter. :) (If you live in Latin America, fly to Africa instead).

Note: yes, this is the same technique 0xC0000022L described in his answer.

Question 3. What if the drive is 1G short? :) Don't worry about it. Chances are your replacement drive will be bigger. In fact, with a strategy like above it pays to get cheaper larger drives whenever one fails (or for a cheaper upgrade). You can get a progressive upgrade.

Experimental Proof

Experimental Setup

First, let's fake some block devices. We'll use /tmp/sdx and /tmp/sdy (each 100M), and /tmp/sdz (99M).

cd /tmp
dd if=/dev/zero of=sdx bs=1M count=100
sudo losetup -f sdx
dd if=/dev/zero of=sdy bs=1M count=100
sudo losetup -f sdy
dd if=/dev/zero of=sdz bs=1M count=99  # Here's a smaller one!
sudo losetup -f sdz

This sets up three files as three loopback block devices: /dev/loop0, /dev/loop1 and /dev/loop2, mapping to sdx, sdy and sdz respectively. Let's check the sizes:

sudo grep loop[012] /proc/partitions
   7        0     102400 loop0
   7        1     102400 loop1
   7        2     101376 loop2

As expected, we have two loop devices of exactly 100M (102400 KiB = 100 MiB) and one of 99M (exactly 99×1024 1K blocks).

Making a RAID Array out of Identically-Sized Devices

Here goes:

sudo mdadm  --create -e 1.2 -n 2 -l 1 /dev/md100 /dev/loop0 /dev/loop1
mdadm: array /dev/md100 started.

Check the size:

sudo grep md100 /proc/partitions
   9      100     102272 md100

This is precicely what we expect: one look at the mdadm manual reminds us that version 1.2 metadata take up 128K: 128 + 102272 = 102400. Now let's destroy it in preparation for the second experiment.

sudo mdadm --stop /dev/md100
sudo mdadm --misc --zero-superblock /dev/loop0
sudo mdadm --misc --zero-superblock /dev/loop1

Making a RAID Array out of Unequally Sized Devices

This time we'll use the small block device.

sudo mdadm  --create -e 1.2 -n 2 -l 1 /dev/md100 /dev/loop0 /dev/loop2
mdadm: largest drive (/dev/loop0) exceeds size (101248K) by more than 1%
Continue creating array? y
mdadm: array /dev/md100 started.

Well, we got warned, but the array was made. Let's check the size:

sudo grep md100 /proc/partitions
   9      100     101248 md100

What we get here is 101,248 blocks. 101248 + 128 = 101376 = 99 × 1024. The usable space is that of the smallest device (plus the 128K RAID metadata). Let's bring it all down again for our last experiment:

sudo mdadm --stop /dev/md100
sudo mdadm --misc --zero-superblock /dev/loop0
sudo mdadm --misc --zero-superblock /dev/loop2

And Finally: Adding a smaller Device to a Running Array

First, let's make a RAID1 array with just one of the 100M disks. The array will be degraded, but we don't really care. We just want a started array. The missing keywords is a placeholder that says ‘I don't have a device for you yet, start he array now and I'll add one later’.

sudo mdadm  --create -e 1.2 -n 2 -l 1 /dev/md100 /dev/loop0 missing

Again, let's check the size:

sudo grep md100 /proc/partitions
   9      100     102272 md100

Sure enough, it's 128K short of 102400 blocks. Adding the smaller disk:

sudo mdadm  --add /dev/md100 /dev/loop2
mdadm: /dev/loop2 not large enough to join array

Boom! It won't let us, and the error is very clear.


Brightness is getting change after the reboot/shutdown

Can you try editing that line in /etc/rc.local to instead be:

echo 4 > /sys/class/backlight/acpi_video0/brightness

That's what I have in my rc.local file, and it works like a charm at every boot no matter what.


Problem, cannot set brightness on Lenovo Z570

Edit /etc/default/grub with any editor, ex:

sudo mcedit /etc/default/grub

Search GRUB_CMDLINE_LINUX_DEFAULT="..." and add acpi_backlight=none at end.

Run:

sudo update_grub

Reboot!


fstab SMB share not mounting with read write access to Windows 8 machine

Using Ubuntu 12.10, and connecting to a NAS smb share.  I'd like to clarify that simply adding uid and gid seems sufficient.  I had the following entry in my fstab:

//server_name/share_name  /mount_point  cifs  user=user_name,password=pass_word,rw 0 0

When I would right-click, the options for Create New Document and Create New Folder were greyed out.  I could open files, but only Save As was available if I edited, and trying that would throw a permission error.

I added the following after my password:

uid=my_uid,gid=my_gid

I was then able to edit the files and create folders as normal.


How to re-share a printer (adding extra queue?)

share printer from ubuntu

run terminal

$ gksu nautilus
$ sudo wget http://prope.insa-lyon.fr/~ppollet/netware/ncpfs/contrib/ncp -p /usr/lib/cups/backend

then restart CUPS

$ sudo /etc/init.d/cups restart

the add a netware
system => administration => printing
chose the printer
the type in URl

ncp://NETWARE_SERVERNAME/PRINTER_Q

 share printer from ubuntu to windows protocole

uneed to use samba

 SAMBA installation

$ sudo apt-get install samba samba-common && sudo apt-get install python-glade2 && sudo apt-get install system-config-samba &&

/add a username

adduser username

/make password

passwd password

 sharing the printer

go to system => administration => printer
click New
chose the sharing method
then click on browse browse the printer & click Verify button to make sure that its working
 click forward
 & you may wanna take a look o this

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


What's the difference between OpenJDK and Sun Java for the end user?

Suns JDK is much faster for many applications using advanced graphic capabilities (2d and 3d), to the point that some applications are actually not usable using openjdk. See eg:

  If I download the .tar.gz version of SweetHome3D (including the Sun
  JRE 1.6.0_20), the performance is excellent : moving inside the 3D
  view is smooth and easy to use If I launch it with Java Web Start (the
  one that comes with icedtea6-plugin package, that launches it under
  OpenJDK version 6b18-1.8-4ubuntu3), the 3D view is extremely slow, and
  unuseable.

http://www.sweethome3d.com/support/forum/viewthread_thread,1658;jsessionid=29F65F93678EF71A067DFEEDDC298B14


My guess is that the hard drive has broken down due to the fall. I'd try to backup your files as fast as you can, using the live CD.

To check the device for errors, you can run sudo fsck -t ext3 /dev/sdaX again.

I think you'll have to get a new hard drive and reinstall your PC though.


How to fix Bluetooth related errors on boot

The issue you are facing is due to a bug in older versions of the Linux kernel, < 3.15.

The bug report can be found here.

To solve the problem, enter the following commands -

  cd /lib/modules/$(uname -r)/kernel/drivers/bluetooth/

  cp ath3k.ko ath3k.ko.orig

  cp btusb.ko btusb.ko.orig

  sed -e 's/\xf3\x0c\x05\x30/\xf3\x0c\x05\xe0/g' ath3k.ko > at.ko

  sed -e 's/\xf3\x0c\x05\x30/\xf3\x0c\x05\xe0/g' btusb.ko > bt.ko

  mv at.ko ath3k.ko

  mv bt.ko btusb.ko

  rmmod ath3k

  rmmod btusb

  modprobe btusb

  modprobe ath3k

The original solution can be found here and is valid for Kernel Version 3.15.3-1-ARCH. I have modified the commands above to work with the user's kernel version using uname -r.

Alternatively, you can disable the bluetooth drivers by blacklisting them.

gksu gedit /etc/modprobe.d/blacklist.conf

Add the following lines to this file -

blacklist bluetooth

blacklist btusb

blacklist ath3k

You can enable it later using modprobe <drivername>


Why is rsync copying directory structure when my find result only shows me files?

I do not think there is a much more efficient way then finding files and execute a single instance of rsync. Any attampt to pipe a list of files into rsync will result in a maintained directory structure.

One alternative (if you can constraint the find pattern) is to use:

rsync -d --delete --include=*.pdf --include=*.ods --exclude=* /home/ms/archive/dir1/**/. /home/ms/newdir2/.

That will sync all pdf/ods-files of (sub-)directories with the folder /home/ms/newdir2/ without maintaining directories in a single rsync-structure.

Your given example (in case document-name or DOCUMENT-NAME) would be solved by using:

rsync -d --delete --include=*document-name.pdf --include=*DOCUMENT-NAME.pdf --include=*DOCUMENT-NAME.ods --include=*document-name.ods --include=*DOCUMENT-NAME.pdf --exclude=* /home/ms/archive/dir1/**/. /home/ms/newdir2/.


How to Launch Multiple Processes from the dash?

The configuration way you may be looking for is creating a Quicklist for the Launcher to enable a second application instance from a mouse right click context menu. How this can be done is easily seen in the default gnome-terminal.desktop file below. Watch out for the last entries in [Desktop Action New]:

[Desktop Entry]
Name=Terminal
Comment=Use the command line
TryExec=gnome-terminal
Exec=gnome-terminal
Icon=utilities-terminal
Type=Application
X-GNOME-DocPath=gnome-terminal/index.html
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=gnome-terminal
X-GNOME-Bugzilla-Component=BugBuddyBugs
X-GNOME-Bugzilla-Version=3.4.1.1
Categories=GNOME;GTK;Utility;TerminalEmulator;
StartupNotify=true
OnlyShowIn=GNOME;Unity;
Keywords=Run;
Actions=New
X-Ubuntu-Gettext-Domain=gnome-terminal

[Desktop Action New]
Name=New Terminal
Exec=gnome-terminal
OnlyShowIn=Unity

There also still is the mouse (wheel) middle click option to run a new application instance as shown here:

How do I start a second instance of a program from Unity's launcher?

More on Launchers and Quicklists here:

What Custom Launchers and Unity Quicklists are available?


I am not able to boot my windows(it is on boot menu) after partitioning the hdd in Ubuntu

you have to fix windows boot loader. Insert windows Installation disk or USB, click on repair my window and open Command Prompt. Just type :

bootrec.exe /fixMbr
exit

remove installation media (USB/disk). And, restart your system. Windows will be running like charm. Now you have to fix your Grub for ubuntu. Install tool EasyBCD Downloading link, select linux and grub2 for boot menu. Restart your system. It will ask for Ubuntu or Windows before Windows Startup Screen. Switch to ubuntu and write this in your terminal.

sudo update-grub

Now, Grub is fixed. you can uninstall EasyBCD later.


Amazon Prime videos play, but not in HD, citing HDCP error (HD Videos Unavailable, HDCP)

The protected content would not be streamed over unprotected media. High-Bandwidth Digital Content Protection usually authenticated all devices in chain. So that include application->Display Driver->Graphics Card-> Serializer(on host side) -> deserializer(on display device side) -> Display Device. HDCP usually encrypt data when transferred over cables(HDMI etc). But software that renders data can request underlying device content protection status. So things can go wrong at lots of places.

Problem is most likely with driver of your display adapter/associate serializer. You can try to get latest graphics driver for display adapter and display monitor. Also how are playing video via desktop app or web browser?

Hope this helps


Adding variable text to text file by line


I run my own LAMP servers on Ubuntu connected to the Internet, so I always follow the same guidelines. Usually, I'll check the following :

In Apache, remove the documentation or at least don't present it to trough the web server (by removing the link /etc/apache2/conf-enabled/apache2-doc.conf)
In Apache, be sure that unnecessary modules are not loaded. With Ubuntu, this is done by removing the links in the /etc/apache2/mods-enabled. Each link point to a file in the /etc/apache2/mods-available directory that loads and configure a module at a time.
You may want to review and enable the /etc/apache2/conf-available/security.conf. They propose some security tips, that are not activated by default :
Denying access to the whole filesystem except for the directories that you would explicitly allow later
modifying the server banner to give as less as possible information on the running software.
In PHP, check that you don't print too much logging information on the screen in case of error (parameters in the section Error handling and logging of the /etc/php4/apache2/php.ini file. The comments in the file give a lot of information on what is preferable to do)
No need to expose your MySQL server to the Internet. By default, in Ubuntu, the Mysql server listen only on localhost. Check /etc/mysql/my.cnf in the section mysqld for the parameter bind-address. It should be on 127.0.0.1 :

  bind-address = 127.0.0.1

Don't install more services on this server than what you need.
Don't forget to apply update when they arrive.
Don't rely only on the configuration of the LAMP server only, don't forget you also have to put run a PHP application that can introduce some security threats (input validation and all this stuff to avoid typing SQL query in input field to retrieve from the DB more information that you would have given yourself, ...)

These are the first things on the top of my mind. Of course you can find more detailed howto and guides on the Internet :

Security in Mysql 5.5
Security consideration in PHP
Security tips for Apache 2.4


You can find your settings by entering synclient -lin your terminal.
If you want to enable the two finger scroll down.  Make sure that HorizTwoFingerScroll=1
Look here for more information.  https://help.ubuntu.com/community/Lubuntu/Mouse#Touchpad_settings


Here's a simple python script from XRunHProf's blog which can do this without changing window managers. Just put the script somewhere and add a keyboard shortcut to invoke it.

#!/usr/bin/env python
from gtk.gdk import *

w = window_foreign_new((get_default_root_window().property_get("_NET_ACTIVE_WINDOW")[2][0]))
state = w.property_get("_NET_WM_STATE")[2]
maximized = '_NET_WM_STATE_MAXIMIZED_HORZ' in state and '_NET_WM_STATE_MAXIMIZED_VERT' in state
if maximized: w.unmaximize()
if w.get_decorations() == 0:
    w.set_decorations(DECOR_ALL)
else:
    w.set_decorations(0)

if maximized: w.maximize()
window_process_all_updates()


AFAIK there are no command line options to specify a region in bytes. All parameters should be in pixels.

From the recordMyDesktop man page :

To specify a region for recording you can type this:

~$ recordmydesktop -x X_pos -y Y_pos -width WIDTH -height HEIGHT -o foo.ogv

where X_pos and Y_pos specify the offset in pixels from the upper left
corner of your screen and WIDTH and HEIGHT the size of the window to be recorded(again in pixels).

There is also an option to specify frame rate:

-fps N(number>0.0)

    Where N is a positive number denoting the desired framerate.


Is Logitech's Unifying receiver supported?

I've a Logitech Illuminated Keyboard and M525 mouse here, both are using the Logitech Unifying USB receiver. They works out-of-the box, Plug & Play!
lsusb | grep Logitech:
Bus 002 Device 004: ID 046d:c52b Logitech, Inc. Unifying Receiver

dmesg | grep Logitech:
input: Logitech USB Receiver as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0/input/input2
generic-usb 0003:046D:C52B.0001: input,hidraw0: USB HID v1.11 Keyboard [Logitech USB Receiver] on usb-0000:00:1d.0-1.2/input0
input: Logitech USB Receiver as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.1/input/input3
generic-usb 0003:046D:C52B.0002: input,hiddev0,hidraw1: USB HID v1.11 Mouse [Logitech USB Receiver] on usb-0000:00:1d.0-1.2/input1
generic-usb 0003:046D:C52B.0003: hiddev0,hidraw2: USB HID v1.11 Device [Logitech USB Receiver] on usb-0000:00:1d.0-1.2/input2

Having that said, Logitech only supports Unifying software for Windows and Mac OS X. For Linux, I have created the ltunify tool which is described in detail on my article Logitech Unifying for Linux: Reverse Engineering and unpairing tool. Quick installation instructions if you are in a hurry:
sudo apt-get install git gcc
git clone https://git.lekensteyn.nl/ltunify.git
cd ltunify
make install-home

This will fetch the sources and install the program to $HOME/bin/ltunify, if $HOME/bin did not exist before, then you may have to re-login or reopen your terminal. After doing so, you can pair a new device with the sudo ltunify pair command and unpair devices with a command like sudo ltunify unpair mouse (be sure to have a second device that you can use after detaching your Unifying device!).
A graphical tool is also available, Solaar. It has better support for functionality of newer devices such as swapping the functionality of FN keys. It is available though the ppa:daniel.pavel/solaar PPA (if you do not know how to install such a "PPA", see What are PPAs and how do I use them?). After installation, you can search for Solaar in the applications menu and start it from there.


Upgrading Ubuntu 14 to 16 when I accidently pressed suspend

Try to update and upgrade
You're setup seems to be interrupted during a update. But since you have a terminal infront of you, cou can still fix everything. Just run these commands and pay attention to the qesions asked on your screen:
sudo -i # change user to root
apt update # get the newes information form the ubuntu repository servers
apt upgrade # installs the newer packages

I think, you will get some inforamtions during your the apt commands, espacially the last lines before you can enter something. I think they can helpo you too.
Test internetconnection
You can test your internetconnection with these two commands.
host security.archive.ubuntu.com
ping -c 8 1.1.1.1

From your infromation given in the comments, it seems your network is not working.
If you got a Lan-cable, use it. Else, try nmtui or other suggestions from here.
Then run a testcomand from above.


Logged as main user but can't access anything

I found out what was an issue. auth.log/boot.log/dpkg.log didn't show any errors or alerts at all. And files permissions were set correctly. Finally I tried sudo chown biowar:biowar /home/biowar without -R option and it worked. But I still have no idea what caused the problem.


It worked: booted an older kernel and then installed video drivers, problem fixed


Unable to transfer files via bluetooth between a Samsung Corby TXT and laptop

Go to Terminal and type

hcitool scan

appears scan...

getting your device mac  address
5F:0J:F6:D9:0C

type in terminal

sdptool browse xx:xx:xx:xx:xx(your device mac address)
sudo rfcomm connect 0 xx:xx:xx:xx 1

Now transfer files bluetooth to your laptop.


Camera and microphone doesn't work in zoom

OK then its not something that can be helped here. I would suggest to go to the zoom support site and get the help there. support.zoom.us/hc/en-us – David 1 hour ago


isdone.dll problem, running Elder Scrolls V on WINE , how to fix it with Wine?

After upgrading my Wine to version1.4 [ Latest ] that is fixed !

Now installer runs without any errors about ISDONE.dll.

Regards.


How to host a tiny RESTful application written in Java/C#/Python?

You'll first need to find out if port 80 is taken. Likely, given that you're running NGINX (and maybe Apache), port 80 is already used on this machine. You can find out quite easily by running netstat the following snippet will give you just a list of the ports currently in use on your server.

netstat -lnt | grep -v tcp6 | awk '{ print $4 }' | awk -F':' '{ print $2 }' | sort -n

Should produce something like this:

22
25
53
80
631
1337

Without knowing exactly how you're written this RESTful application it'll be hard to say how you should hook it up. If it comes bundled with it's own standalone webserver, or if you're using something like Tomcat, C# WebServer, or Cherrpy; then you will need to configure the application to use a port other than the ones listed in the output from the command. Some popular alternative web ports are 8080, 8081, and most values in the 9000 range. Once you change that port in your Applications configuration and launch it, you'll be able to access it at http://youip:PORT/User/Zolomon where PORT is the number you chose.

If this is an application that needs Web Server software to be installed, you'll need to setup a Virtual Host definition in either NGINX or Apache (whichever you're using) so that the Application will be run when you access it via http://youip/User/Zolomon but setting up the specifics for that seem to be out of scope for the question you've asked.


Virtualbox machine with Windows finds no connection

Under Devices, select network adapters and change the adapter type to 'bridged', this should solved the issue with no internet connection. The NAT adapter I've noticed sometimes fails for people, while bridged mode is always a reliable fallback. Virtualbox has a section on what the different modes and options for them here:

http://www.virtualbox.org/manual/ch06.html

Be careful, the bridged mode send packets through your host system, but bypasses your networking stack.


Folder Permission on mounted NAS storage

found the solution to this issue.
CIFS (as using the SMB standard) is not able to forward local root permissions. NFS is, as long as you set no_root_squash. In my case I am using NetApp and I can activate SuperUser forwarding what solved my issue.


How do I connect to USB HDD on BT Homehub 3?

The answer lies here

www.liberiangeek.net

All you need to do is:

sudo gedit /etc/samba/smb.conf

find the line (~ line 38):

workgroup = workgroup

(the right hand side workgroup should probably read mshome or home which ever you should have already set it to)

Then on the line below this (line 39) add:

name resolve order = bcast host

And then restart ;-)


Execute this command:
lpadmin -p ip500 -v ipp://Canon%20iP110%20series._ipp._tcp.local -E -m everywhere

Can you print if you issue the command lp -d ip500 /etc/nsswitch?


Brightness Control Keys on Sony Vaio not working on 12.10

it happened to me

my system info
ubuntu 14.04
nvidia gt330m

HOW I SOLVED IT

note: if you havent installed  nvidia driver. Install it before you continue this.

in terminal

# nvidia-xconfig

this creates /etc/X11/xorg.conf . edit it.

# sudo su  // become root
# gedit /etc/X11/xorg.conf

find Section "device" in text.
and  add this

 Option "RegistryDwords" "EnableBrightnessControl=1"

it shold look like it on the rightside

from this                        TO   this

Section "Device"                  | Section "Device"
 Identifier "Device0"             |   Identifier  "Device0"
 Driver     "nvidia"              |   Driver      "nvidia"
 VendorName "NVIDIA Corporation"  |   VendorName  "NVIDIA Corporation"
                                  |   Option "RegistryDwords" "EnableBrightnessControl=1"
EndSection                        | EndSection

save changes (ctrl+S).
log out. log in.

we are done!!
now Fn + Up,Down  is adjusting the brightness.


Cannot install php5-fpm, Error: No Installation Candidate

Use exact version. sudo apt-get install php5.6-fpm
 worked for me


It can be done:

$ sudo update-alternatives --remove default.plymouth /path/folder/theme/to/uninstall/file-theme.plymouth


Where is the location of packages cached by apt-cacher?

Default location where apt-cacher stores its packages is /var/cache/apt-cacher .

If you want to change it, you need to run the usr/share/apt-cacher/install.pl script.

From man apt-cacher

 Universal Options
       cache_dir [/var/cache/apt-cacher]
              The directory where apt-cacher will store local  copies  of  all
              packages  requested.  This  can  grow to many hundreds of MB, so
              make sure it is on a partition with plenty of  room.  NOTE:  the
              cache directory needs to contain some subdirectories for correct
              storage management.  If you try to create  a  custom  directory,
              please  use  the  script /usr/share/apt-cacher/install.pl or use
              the initially created cache directory as example.


How do I access my previous ubuntu disk when booted to usb key

It's not clear to me if you see the folders on the drive and get the message when you click on them, or if you see the message before that.

If you can see the folders the drive has been mounted but the ubuntu userid number doesn't match the userid number that had been used to create the folders on the drive. In that case try this without ejecting the drive:

gksudo nautilus

Click on the drive on the upper left and you should then be able to open the folders.


Making up cacher server for older ubuntu releases

In our company we use apt-cacher-ng with very successful results. With this software we distribute updates to about 100 PCs running different versions of Ubuntu Linux without unnecessary waste of bandwidth.

This software also provides stats where you can see the amount of saved bandwidth


Aspire E11 ES1-111-M-C1EY, Ubuntu 15.04. won't shotdown

I had the same issue with my Acer ES1-111M-P2YU

The issue was that I installed it in legacy boot mode and not UEFI. for whatever reason it didn't want to reboot or shutdown when legacy was set in the Bios.

Once I put the bios back into UEFI it worked fine and no issues with shutdown/reboot since.

In order to get it to work with UEFI for my model, i had to make sure both UEFI and Secure boot were enabled, setup a Bios password, then I installed Ubuntu. once installed I had to go back into the Bios, go into the secure boot settings, and there is a section that let me approve the grub file for boot.

without the last step i was getting a no hard drive detected.


How to backup a windows share to another windows share using rsync?

That should work but you'd do better to walk* over to one of the Windows machines in question, mount the other and do the transfer directly.

*Or Remote desktop/telnet/whatever Windows uses for remote admin these days.

Using your method you're sending traffic through your computer and frankly Samba isn't that fast on Ubuntu. If you bring it back to a pure-Windows transfer between only two computers, you'll likely get better rates.

If this is something you need to do on a very regular basis, you might want to look at installing FTP server and client software that supports FXP. That (essentially) allows direct connections between two FTP servers to transfer files.


What is "GFI WebMonitor Secure Download"? and how to disable it?

GFI WebMonitor is a software for "Web Security, Monitoring & Internet Access Control".
Most likely it's installed by the person who is responsible for your internet connection. so you need to talk to her/him


No windows whatsoever after compiz reset

I had this exact same problem. I had to fix it by repairing ubuntu using the install disk. Compiz has been messing up recently and I would highly recommend  not using it.

If you want to try resetting it using the terminal you can access it using: Ctrl + Alt + F1

Here are some commands to try:

  sudo unity --reset

Try both of these together:

  sudo gconftool-2 --recursive-unset /apps/compiz-1

  sudo gconftool-2 --recursive-unset /apps/compizconfig-1

Or you could try this:

  rm -rf ~/.config/compiz-1/compizconfig/*

After executing these commands restart computer:

  sudo reboot

Source: http://www.webupd8.org/2011/04/how-to-reset-unity-launcher-icons-or.html

Hope this helps,

Leinardo


"Authentication Manipulation Error" when trying to reset my password

Have a look at our guide on how to reset your password using recovery mode on 12.04 it should help, you probably just need to remount the drive with write permissions after dropping to a root shell using this command :

mount -o rw,remount /

Please see this page on my website for more information.


I had noticed that anacron wasn't running the daily jobs on my good laptop, yet ran reliably on two ancient ones.  After several months of noodling around I stumbled across the answer.  This applies to laptops only.

There's a file in /etc/cron.daily called 'app-compat'.  Near the end of that file are these lines:

(#) ensure we don't do this on battery
check_power || exit 0

Note: I had to put parens around the hash sign or it made the line appear bold on this page.  In the file it's just a hash sign, the usual comment sign.

I commented out the check_power line to permit cron.daily to run while on battery.

This newer laptop has a good battery and I almost never use it while plugged into the charger.  The other two old ones are always plugged in since their batteries are in poor shape.  So cron.daily ran on the old machines but not on the new one.

    Don Karon

Addendum: I may have to eat some crow here.  It appears that, even with the removal of the don't-do-it-while-on-battery command cron.daily is still not executing reliably on this laptop.  The search resumes.


Will USB 3.0 to HDMI video adapter work with Ubuntu 14.04? Other versions?

If the adapter uses a DisplayLink chip, it will probably work. They provide drivers (14.04,16.04,17.10,18.04), installation guides and troubleshooting tips on their website. AFAIK, you won't be able to use third-party graphics drivers though.

Adapters using Fresco Logic chips will probably not work.

Closing the lid won't work. For some reason, applications won't react anymore when the internal display is disabled.


Try these once

First try to re-configure it, if it doesn't help then follow the step 2.

sudo pkill rhythmbox
sudo dpkg-reconfigure rhythmbox

Check after Log-out/ Restart.
If first doesn't help then re-install rhythmbox after removing all configuration file:

sudo apt-get autoremove rhythmbox
sudo apt-get --purge remove rhythmbox
sudo find / | grep rhythmbox | sudo xargs rm -rf
sudo apt-get update && sudo apt-get -f install rhythmbox

Check after Log-out/Restart.

Reply if you get any error at any particular command.


Upload file docx on Godaddy ERR_EMPTY_RESPONSE

For those how have this error : ERR_EMPTY_RESPONSE – No Data Received on Godaddy while trying to upload a .docx file .

It wont work because godaddy has blocked this extention file from being uploaded.


Trying to send an email from Ubuntu 14.04 to yahoo smtp

You also need to edit sSMTP aliases /etc/ssmtp/revaliases
e.g. sudo nano /etc/ssmtp/revaliases
in this case I have set up an alias for users pi and motion

# Format:       local_account:outgoing_address:mailhub
#
# Example: root:your_login@your.domain:mailhub.your.domain[:port]
# where [:port] is an optional port number that defaults to 25.
#
pi:YOURNAME@yahoo.com:smtp.mail.yahoo.com:587
motion:YOURNAME@yahoo.com:smtp.mail.yahoo.com:587

===

my configuration for /etc/ssmtp/ssmtp.conf:

#
# Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root=YOURNAME@yahoo.com

# The place where the mail goes. The actual machine name is required no
# MX records are consulted. Commonly mailhosts are named mail.domain.com
mailhub=smtp.mail.yahoo.com:587

# Where will the mail seem to come from?
rewriteDomain=yahoo.com

# The full hostname
hostname=YOURNAME@yahoo.com

# Are users allowed to set their own From: address?
# YES - Allow the user to specify their own From: address
# NO - Use the system generated From: address
FromLineOverride=No

AuthUser=YOURNAME@yahoo.com
AuthPass=YOURPASSWORD
UseTLS=YES
UseSTARTTLS=YES

===

  Source:
  https://help.ubuntu.com/community/EmailAlerts


Gnome, Unity and LXDE are desktop environments. However, they are not attached to the display manager(which starts the X servers, user sessions and greeter). Therefore, you can download a console display manager to have command-line login but graphical desktop.

I'd suggest you to use CDM (download link).
Just download the zip file from the link and do the following commands:

unzip ghost1227-cdm-[version].zip
cd ghost1227-cdm-[version]/
sudo ./install.sh

To autostart cdm when you log in your account, copy the content of /usr/share/doc/cdm/profile.sh to the tail of your shell profile (~/.profile, etc.).


Tails will run on RAM and takes special care not to use swap, so it is possible that there is something wrong with your hard drive. However there are other things that can cause the same problem, for example the graphics processor.

According to Google, the Compaq Presario SR5710F has either an NVIDIA GeForce 6150SE integrated graphics processor or an NVIDIA nForce 430 GPU. See: What's the correct driver to use with a GeForce 6150SE nforce 430 on Lubuntu 14.10?.


How to sync music and pictures with Nokia N9?

If you're running Ubuntu 12.04, Rhythmbox can sync music by default. All you have to do is connect the phone to your computer and open Rhythmbox. It should detect it by default and all you have to do is right click on your device and click sync. :)


This is a known bug. Ideapad-laptop module blocks wifi on this module. A kernel quirk is needed. It is possible just blacklist ideapad-laptop module, but some other hardware may malfunction. I submitted a patch upstream to fix it. While it is applied and gets to Ubuntu, you can use ppa with the patched module. It can be installed by running

sudo add-apt-repository ppa:hanipouspilot/ideapad-laptop
sudo apt-get update
sudo apt-get install ideapad-laptop-dkms

Update For those who uses kernel 3.19 this ppa can be removed since 3.19.0-26 kernel includes this patch.


Is the number of bugs falling as new Ubuntu releases are released?

No. New releases will have new software and new versions of a software so those will have totally new bugs.

New hardware also introduces new drivers, new software and thus new bugs.

  Is not the whole point of new releases to fix previous issues?

You can also fix bugs by removing software and switching to some other software that has a lesser footprint (less code tends to have less bugs since there is less to be buggy).

As am example: we switched from Gnome to Unity. So older releases will have no bugs regarding Unity and newer versions will have lots of them where we still have Ubuntu derivatives using Gnome. So those Unity bugs caused an increases in the bug count.

Ever heard of the error-tracker? It will guide you to errors.ubuntu.com and ...

As an example: up to Ubuntu 18.04 we will probably see the amount of bugs double. We will not only have the "old" Unity7 but also the "new" Unity 8 to deal with. A completely new desktop experience that will have its own style of problems (aka. bugs).

To add to the interesting links list: bugs launchpad has a list of bugs with tags on them. It also includes bugs specific to a release (most bug are probably not specific to a release):

57 zesty
2346 yakkety
3043 xenial
2382 wily
4415 vivid
37 utopic
2724 trusty
1 saucy
1995 precise

If you look at this the amount varies a lot between releases. Yakkety is doing pretty good compared to Xenial and Vivid.


Where does unity store app shortcuts and how to get rid of nonfunctional/duplicate shortcuts?

Icons are stored in /usr/share/applications remove duplicate icons(if any) from there.

If it won't work try

 sudo apt-get remove menu-xdg

or

remove the folder ~/.local/share/applications/menu-xdg


You can use Synaptic Package Manager to download and install Akonadi.  If you don't have Synaptic installed you can do so by,  Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command below.

sudo apt-get install synaptic

or

Or to download Akonadi, .DEB file you can do so from here


How to make firefox main windows have no decorations using devilspie?

(This was tested on Xubuntu 12.04, Xfce 4.10, with xfwm4 as the window manager.)

It is definitely possible to have existing firefox windows and newly opened ones automatically undecorated if you are using the latest version of devilspie, version 0.22. This is in the repositories and available to install with:

sudo apt-get install devilspie

There is also a gui called gdevilspie, but the rules it produced seemed inaccurate and often didn't quite work, so it is easiest to concoct a rule by reading the readme and the manpage.

How the rule was created

All rules created must go in ~/.devilspie, and have a .ds extension, so firstly create the folder if it doesn't exist with

mkdir ~/.devilspie

If you want to experiment to find the best window matching condition (class,name,etc), you can create a new file in ~/.devilspie called test.ds and place in it (debug) . Now you can enter devilspie & and then for every program that you launch, devilspie will examine and provide some window information in the terminal:

Window Title: 'Mozilla Firefox'; Application Name: 'Firefox'; Class: 'Firefox'; Geometry: 1280x970+0+27

In this case, it is best to select Class (window_class), as that will reliably identify the window.

The rule

Create a new file called firefox.ds in ~/.devilspie and place in it:

; firefox rule to undecorate all existing and new windows

(if (is (window_class) "Firefox") (undecorate))

Comments are introduced with ; and are not read. You do not need to use begin in the command unless you are specifying multiple actions, such as (begin undecorate (set_workspace  2))) instead of just the single action (undecorate)).

However, for devilspie to read the new rule you must restart it, so run

killall devilspie

and then restart it with

devilspie &

You have to do this every time when you edit a rule or add a new one in ~/.devilspie, otherwise the changes or any new rules will not be read.

It is also very important that you add it to startup applications using your desktop environment's menus.

For more information on other possibilities with devilspie, see man devilspie or the Ubuntu manpages online.


Change display output mode in system tray?

While I am not aware of any solution for this being part of Ubuntu, there is a thrid-party package called disper-indicator that you can use. While it hasn't been updated in a while, it still works fine :-)

Download and install this package: http://ppa.launchpad.net/noobslab/indicators/ubuntu/pool/main/d/disper-indicator/disper-indicator_0.4.14~saucy~NoobsLab.com_all.deb (its for Ubuntu 13.10 but works in newer versions anyways)
Open the Dash
Enter disper and launch Disper Indicator
Checkout the new indicator (especially the Monitor setup submenu) that should have been added to the panel:

To make it launch on every login:

Open the Dash
Search for and launch the Startup Applications preferences window
Click Add on the right-hand side of the dialog
Enter a name (such as Disper Indicator) next to Name:
Enter disper-indicator (make sure the casing matches!) next to Command:
Finish by clicking Add in the dialog

Don't forget to mark as accepted answer if this was helpful!


Setting up a build system for Python app

Well, like I explained on the other question, you don't need a build system and in that particular case, may be better off without one.

However, the most standard one is distutils. Just provide the metadata (i.e. name, description, etc) and a list of (python) packages, modules and scripts (all of them are optional) and it's done.

Finally, if you'd like to generate a debian package out of your project, then you can very easily do that by using python-stdeb (uses dh7, which I like better) or python-mkdebian (uses cdbs). There are many more differences between these tools, but I'll let you discover them yourself. Just note that both require using distutils. (python-mkdebian is part of the python-distutils-extra package in Ubuntu, I haven't used -extra much, but you can try that as well if you'd like)


How can I fix the compiz effects lag in unity?

Install the CCSM sudo apt-get install compizconfig-settings-manager

and look at this answer here


To debug more, I advise to change the boot options so that the boot is more verbose.

If you edit (as root, with gksudo gedit /etc/default/grub) you can see a line somewhere with is similar to:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

remove "quiet" (or the two of them to have an old-style, no graphic, verbose boot) and save. Then you have to run

sudo update-grub

Now your system will be much more verbose on boot, and maybe you can see where the problem is.


trying to use USB connection, easytether-usb and Ubuntu 18.04.2, error = interface is used by another process (hotplug?)

Went over the easytether-pro documentation again and under Ubuntu 18.04 it instructs user to enable/start systemd-networkd

This time I used the command-line completion on the string "systemd" and one of the results were systemd-networkd.service

Having the '.service' at the end seems new to 18.06.

Anywho I'm on the lines which is what matters. Hope this helps others.


inotify_add_watch -- failed: "No space left on device"

The error message doesn't actually refer to the amount of storage space, but to the amount of inotify watches that are available for a given file system (see also here: https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers).

The quick solution (taken from the above website) would be to run

echo fs.inotify.max_user_watches=65536 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

Regards, Florian


How to enable IPv6 via miredo along with UFW?

IPv6 is disabled by default in current released versions of ufw. To enable, edit /etc/default/ufw to have:

IPv6=yes

You will also need to reload the ruleset. On newer releases of Ubuntu:

sudo ufw reload

On older releases of Ubuntu, you can restart with:

sudo /etc/init.d/ufw restart


Bios update of Thinkpad P50 bricked computer

Some possible solutions, things you can do to find out what's wrong:

Get more info

Try to find out what kind of update caused these problems. Was it really a BIOS update? Or some other firmware update,  e.g. for the Intel processor or SSD. Look through the firmware versions available at Lenovo. How did you install the update (from within the OS, and what OS? Is there still a copy of Windows on you pc? What happens when you turn the thing on? And has this changed after you tried things? Try to describe it as precisely as possible, e.g. do you hear the fans, do you hear beeps? Did you see anything at all on the screen? How long does it take?

What have you tried so far?

It might be that you tried more things. Have you tried booting from a CD/USB? Have you tried changing BIOS(UEFI) settings?

Try to boot Lenovo's diagnostics and other boot tools

Try Lenovo's bootable diagnostics CD, to find out if you can boot anything (this one was updated just last week!). If you don't have a cd-slot, you could try to make a bootable USB-drive with this image, but this might not work.
On the downloads & support webpage for your model, there are other Diagnostics tools meant for USB-drives. But those are older than the one for CD.

Read the manual
(and don't take rash decisions)

Read this P50 Hardware Maintenance manual as well as the P50 User Guide and follow all the troubleshooting steps in detail (e.g. what is your F2 key or power button is broken?). And write down every error / message you get. There's even a tool for Android that can recognize the error codes in beeps.
There are many potential causes (Secure boot/unsigned drivers, RAID setups, failed driver updates. To help you, I would need to know a little more about the current state etc.

BIOS update from CD or USB

Just before submitting I discovered this: Lenovo P50 BIOS update utility. You can use the windows utility (on a different pc) to create a bootable USB to update the BIOS. On the same page, there is also a link to a bootable CD. If you can boot from a CD/USB, I'd think this is your best shot. I saw a lot of recent updates on the manufacturers website (Intel AMT, BIOS) and some of them have caused trouble. If you're not the only one: make sure to check the support community on the manufacturers website.


Changing ownership does not persist in Ubuntu 16.04 virtual machine

You might try:

/dev/sdb1 /home/hduser/NewDrive ext4 nosuid,nodev,nofail,uid=1001  0 0

With the Uid set to your uid. I had to do that on a non-virtual machine


Gradle JAVA_HOME is set to an invalid directory

You can find java home by using the following command:
java -XshowSettings:properties -version 2>&1 > /dev/null | grep 'java.home'

It will print something like:
java.home = /path/to/java_home

You can set the output of this command as JAVA_HOME by copying the path and adding the following line to your ~/.bashrc.
export JAVA_HOME=/path/to/java_home


Can I hide launcher only when the browser is running?

First of all, it is so import to know which command works for you to hide/show the panel, since the command differs between Ubuntu versions. Execute these commands one by one and note down the command which hides your panel:

I'm using Ubuntu 12.04 with Unity 2D and these works for me:

# hide
gsettings set com.canonical.Unity2d.Launcher hide-mode 1

# show
gsettings set com.canonical.Unity2d.Launcher hide-mode 0

For Ubuntu 12.10 (check this question also):

# hide
gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ launcher-hide-mode 1

# show
gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ launcher-hide-mode 0

`
Probably for others if above doesn't work(check this question also)

# hide
gconftool-2 --type int --set "/apps/compiz-1/plugins/unityshell/screen0/options/launcher_hide_mode" 1

# show
gconftool-2 --type int --set "/apps/compiz-1/plugins/unityshell/screen0/options/launcher_hide_mode" 0

Now follow these simple steps:

Install wmctrl package:

sudo apt-get install wmctrl

Make a script file. Paste the following in a file and give the file any name, say autohide:

#!/bin/bash
## Change value of "hide" to the command which worked for you to hide the panel
hide='gsettings set com.canonical.Unity2d.Launcher hide-mode 1;'
## Change value of "show" to the command which worked for you to show the panel when it was hidden
show='gsettings set com.canonical.Unity2d.Launcher hide-mode 0;'
## Look for the grep value, add a new browser or application name followed by "\|" eg: 'firefox\|google\|chromium'
while [ 1 ]
do z=$(wmctrl -l -p | grep -i 'firefox\|google');
if [ -n "$z" ]; then
    eval $hide
else
    eval $show
fi;
sleep 2;
done;

Make the file executable:

chmod +x autohide

Execute the file:

./autohide

That's it. Now whenever you open firefox or chrome, it will hide the panel and when you close, the panel will be shown.

You can also make this script execute every time you start your system.

See this question: How do I start applications automatically on login?


XRDP starts wrong Desktop (Ubuntu 18.04)

I'm no expert with XRDP but also I would check your ~/.xsession file to make sure it contains "gnome-session" (without quotes).


Unable to install Ubuntu 16.04 on windows 10 via virtualbox

If grub is accessible:

Remove old linux kernels, your /boot drive is out of space.

Boot to grub and click on “Advanced options”
Select a previous kernel (should boot fine)

login and enter command

$ df

See if your /boot directory is 100% used
Remove old linux kernels

$ sudo apt-get autoremove

from here: Geekdecoder


For your system specs, I'd suggest trying Lubuntu or Xubuntu on a Live media (USB stick or DVD).  Do note that any flavor of Ubuntu will be better/faster when installed on a local HDD or SSD than it will from a USB or optical drive, as those media are very slow and, by default, your customizations won't stick.

If your old Pentium machine is running Windows XP, you'll find Lubuntu to give similar performance, in general; if it's a newer version of Windows (Vista, 7, 8, or 10) most if not all flavors of Ubuntu will work "better".

FWIW, I run Kubuntu on a Dell Latitude D520, with 1.8 GHz dual core (mobile version of Core2Duo) and 2 GB RAM; it's very acceptable for word processing and basic browsing, but a little laggy if I try to play a game with any significant graphics load.  Kubuntu is one of the "heaviest" flavors of Ubuntu, so it seems to me that, in general, one of the lighter flavors should work well enough with your specs.


Lenovo ThinkPad 11e Randomly Freezes on Ubuntu 16.04

Try installing newer kernels. In some cases, it fixes the problem of freezing that caused by bad high precision timer code. This is binary for Linux 4.5.2:

http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.5.2-wily/

Download appropriate 3 .deb binary packages, install them, and reboot to the new kernel. I hope this will fix your problm. By the way, Ubuntu 16.04 is alraedy out with a new kernel, so do a clean install (not an upgrade) and see if it fixes your problem.


Error when trying to install sublime text on ubuntu in virtualbox (virtualbox-guest-dkms)

Run
 sudo apt purge virtualbox-guest-dkms

Then go to Devices menu of the virtual machine and install Guest Additions from there.


Monitor goes blank after 30 minutes. No keyboard or mouse are attatched, but computer is controlled over SSH

This sounds like Power Management Preferences. (Ubuntu 10.04)
When I choose System --> Preferences--> Power Management the default for Monitor Standby is 30 minutes. The options are ranging from 1 minute to NEVER
ALSO, check your Screensaver Settings There is a check box where you can choose to "Activate Screen Saver when computer is idle." (Uncheck this box.)
The default screensaver is "Blank" (Blank screen)
~ Hope this helps.


The Code you Input:

sudo dpkg -i openssh-server_6.6p1-2ubuntu1_amd64.deb

Should install the OpenSSH-Server and not Remove it. Anyway, If you want to install it the Correct way, Open Up a Terminal Using Ctrl+Alt+T and Type:

sudo apt-get install openssh-server

and it will install The OpenSSH-Server, and if it already Installed, It Will Update it and if it's up to date then nothing will be done, Also, If You have trouble with the Command Above Try:

sudo apt-get update

And As listed above, Ubuntu Upgrade OpenSSH-Server to an Older Version than the Latest, So To Install the Latest, First we need to remove any existing old OpenSSH-Server, Bring up a Command Prompt Using Ctrl+Alt+T and Type the Following, Pressing Enter after Each Line:

sudo apt-get remove openssh-server

and Then to Install the latest

wget http://mirror.aarnet.edu.au/pub/OpenBSD/OpenSSH/portable/openssh-6.6p1.tar.gz

tar -xvf openssh-6.6p1.tar.gz

cd openssh-6.6p1

./configure --prefix=/usr --sysconfdir=/etc/ssh

--with-md5-passwords --with-privsep-path=/var/lib/sshd

sudo make install

And you should now Have OpenSSH-Server 6.6 P1, To Check, Type in a Terminal:

sshd -V


Bluetooth not working in12.04 (Dell Inspiron 15R)

I haven't seen much Bluetooth receivers lacking Linux support. However, there are other things to check here, I think.

First of all, check that your wireless devices are unlocked (no rfkill active).

sudo rfkill list

In case bluetooth is 'Soft blocked' you can unblock it:

sudo rfkill unblock all

In case bluetooth is 'Hard blocked', try to find a hardware switch on your laptop to unblock it.
Then, check your kernel messages for Bluetooth related stuff:

dmesg | grep -i bluetooth

And does your Bluetooth driver expose an hci device?

hcitool dev

should list for example hci0.
Check your system BIOS that Bluetooth is enabled.
Is your Ubuntu kernel up to date (and did you reboot after that)?
Try installing the linux-firmware and linux-firmware-nonfree packages. Your device may require loading some proprietary firmware.


Automatically Boot into Ubuntu without Live CD

I found my problem, I was trying to install grub in the wrong root directory. Instead of:

sudo grub-install --root-directory=/mnt /dev/sda

I did:

sudo grub-install --root-directory=/ /dev/sda


Black screen after 18.04 > 20.04.1 upgrade on virtualbox

This seems to have been something virtualbox-related rather than Ubuntu-related. I shut down the machine and then started it again and the problem went away.
I keep forgetting that restart is different from shutdown and start for VirtualBox. And actually shutting down the VM (instead of restarting) has fixed quite a few problems for me.


My usb flash drive is not showing up in nautilus in Ubuntu 15.10. How to fix?

Is the USB specifically not getting detected in Ubuntu 15.10 ? Have you tried plugging it in to other systems ? And did you remove it mid-way while formatting ?

If its a pen-drive problem and supposing you are not concerned about the data on the stick then you can use gParted.

Installation Guide : http://ubuntuguide.net/install-graphical-partition-editor-gpartedin-ubuntu-linux

After installing , launch gparted from the terminal. On the top right corner select your pen-drive /dev/sdb1 and create a partition table. That should do it.


Install Ubuntu 14 LTS next to windows 10

I did the same installation some time ago and the installation worked just fine, without disabling secure boot or anything (using UEFI).

I just made a new empty partition and started the ubuntu installation from the USB stick. After the installation everything worked and when rebooting,  grub2 showed up to let me choose which operating system to boot.

BTW: maybe consider to use the newer 16.04 which is also LTS.


How to configure Chrome to open magnet URI's with Deluge?

For 12.04 up to 16.04
In 12.04 and 13.04, deluge does include x-scheme-handler/magnet=deluge.desktop;
in the desktop file. In my case, transmission  was still opening magnet links. I had to tell gvfs-open preferring deluge with:
gvfs-mime --set x-scheme-handler/magnet deluge.desktop

For 18.04
gvfs-mime was deprecated and 'gio mime' used instead:
gio mime x-scheme-handler/magnet deluge.desktop


wget how to download file from a web page that prompts you to click on "Agree" condition

You can submit a form using wget, using the --post-data option. First, look at the form that page uses:

<form name="acceptedForm" id="acceptedForm" action="submitAgreement" method="post">
...
        <button id="agree_terms_use" name="agreementValue" type="submit" value="Agree">Agree</button>  &nbsp;
        <button id="disagree_terms_use" name="agreementValue" type="submit" value="Do Not Agree">Do Not Agree</button>

Typically, the value of the action attribute is used to get the target URL, which becomes  https://frbservices.org/EPaymentsDirectory/submitAgreement. The names of the form elements become the parameters. Then you need to save the cookies that you get from accepting the agreement. From this SO post, we can construct the command needed:

wget --post-data="agreementValue=Agree" https://frbservices.org/EPaymentsDirectory/submitAgreement --save-cookies cookie.txt --keep-session-cookies --delete-after

Then, we can use these cookies to download the file:

wget --load-cookies=cookie.txt 'https://frbservices.org/EPaymentsDirectory/FedACHdir.txt?AgreementSessionObject=Agree'


How to uninstall unused window managers and related packages?

To remove ubuntu sudo apt-get remove unity*
I don't think you can remove gnome classic with effects and keep it without.

You can remove them from the login screen by deleting the file at /usr/share/xsessions/


How to integrate ubuntu one in pcmanfm (Lubuntu file manager)?

I'm afraid this request and other U1 integration issues are on the Lubuntu developers To-Do list.
To summarise:
likely projects:

Ubuntu One - Pcmanfm integration - Need plugin infrastructure : TODO
Ubuntu One - Audacious integration - Write a plugin : TODO

discussed projects

Ubuntu One - Sylpheed integration - Need plugin interface to contacts component : TODO
Ubuntu One - Evaluate impact of additional programs to make it work : TODO
Ubuntu One - Evaluate if it's possible to add support in Xpad
Ubuntu One - Evaluate if it's possible / useful to add support in Osmo


"Create new document" - right-click option missing in Ubuntu GNOME

See if you have ~/Templates folder2. Create one if it is missing using command:

mkdir ~/Templates

Now create an empty file from command prompt:1

touch ~/Templates/Text\ File.txt

The "Create Document" option is back again and you can create a new text file or a new document.

1 The backslash is used to tell the shell that the space following it is part of the filename. Since the shell recognizes spaces as delimiters between commands/options/arguments, unless you "quote it", 'quote it', or quote\ it, the shell will treat whatever comes after the space as a separate argument.

2 The ~/Templates folder is localized, change his name accordingly to your localization (ex: ~/Modèles for French localization).


Linux Proxy settings are not the most friendly things in the world.  The attempts at standardising or creating global settings are not particularly successful.

Global configuration files (Such as /etc/environment) are not read by every application or every time they start, and are specific to Linux distributions.

Applications can use DE (Eg Gnome or KDE) environment settings.

User preferences, eg settings from the shell environment may (and should) override host or system global settings.

The order of priority between different configuration sources are frustratingly difficult to manage, eg System global configuration files, Desktop environment settings, and login script settings.

Application specific settings may override environment settings.

Changing "global" settings often require a restart of the application, sometimes even of the host, so it is more convenient to use the application specific settings in each application.

The end result is that the settings are not particularly dynamic.

In this case the setting for APT and /etc/environment most likely came from a setting you specified during installation.

The values seen in the terminal is quite likely being overridden in your login script or shell profile file, possibly in the users' Gnome global preferences.


A screenshot is automatically taken upon wakeup

i was in the keyboard shortcut section, accidentely clicked on take screenshot, and, as I thought the computer was frozen, I closed and opened the computer, which then was taken as the new shortcut for the screenshot


Disable new windows auto opening in background

Me too I suffered from app window shyness. I found how to fix it, though.

get compizconfig-settings-manager
Press Alt+F2 and type ccsm
click on "General Options"
Select the "Focus and Raise Behaviour" tab
Check "Auto-raise" and set "Focus Prevention" level to Off

That fixed things up for me.  Hope it does for you as well.


How can I uninstall Nvidia proprietary drivers?

If you added things to the blacklist, remove them now from the list with sudo gedit /etc/modprobe.d/blacklist.conf
Now close your session and press Ctrl + Alt + F1 in the login menu.
Login with your username and password.
Run sudo stop lightdm, which will stop X11 (including the standard login menu!)
Now exec sudo nvidia-uninstall
Press Yes to restore from a backup.
You may find errors related with non-empty folders. Ignore them.
If you removed Nouveau, run sudo apt-get install xserver-xorg-video-nouveau
Now you can finish with sudo reboot


Can't type password on login screen after upgrade ubuntu 16.04 LTS to ubuntu 17.04

Finally, i know why this was happen to me. Unintentionally, I was removed the old desktop while upgrade to Ubuntu 17.04. Maybe, that's the main reason i thought.

This is how i fixed it :

Reboot my laptop
Hold on Shift key while computer boot into ubuntu
On grub window, choose ubuntu recovery mode
On recovery mode window, choose root
Install any desktop you want (in my case, i installed Gnome desktop)
After i installed the desktop, i rebooted my laptop
Finished


A system is never 100% secure and there are always vulnerabilities, in every OS. Some are known and some still want to get discovered though. It's a fact though that the UNIX/Linux security architecture (from which also Apple's OSX is derived) is much stronger than the one Windows had in the past and I believe it's even still slightly stronger than what they have nowadays, although the difference got minimized.

The advantage of a system with a very low user count is that hackers (only speaking of black hats that want to attack you) have a pretty small interest in spending their time on Linux, because even if they find an open backdoor, they can't make much profit with it as there are too few potential targets.

So the more users an OS has, the more interesting is it for people with criminal powers to find and exploit vulnerabilities. This however means also, that more white hat researchers will check it out and fix some of those problems. So there will always be a balance between white and black, though experience shows us that the dark side usually has a slightly higher growth rate.

However, the OS itself is not getting more insecure or vulnerable once there is a high user base. The weak points remain the same, they just were not known earlier. But as knowing a problem is required to be able to fix it...

However, it's not really correct to say that Linux in general has a small user base today. Desktop computers mainly run Windows and no Linux distributions, but that's not the only type of computer we have. A majority of the web servers operate on Linux as well as e.g. the Android OS for smartphones is actually Linux-based. These systems all have major differences, so a hack on one would probably not work on the other,  especially as installed Software is much more vulnerable than the system/kernel itself, so an attacker would rather try to break into that or trick the user.

Additionally (thanks @Rinzwind) it's also important to say that Linux systems in general can be seen as systems for advanced users (total computer noobs probably haven't even heard anything about it yet), whereas Windows is just what everybody uses, no matter what skills he/she has, as it comes preinstalled on almost every machine nowadays. This is important because many attacks depend on vulnerabilities of the interface between keyboard and chair, also known as "The User". Of course, many also just think they're experts and pay even less attention when downloading .deb packages from websites or compiling foreign code from source, because they believe the myth of "bulletproof Linux". So just copy-pasting sudo commands or installing Software as root is and stays dangerous, because Linux systems are not designed to protect the user from themselves!

To conclude we can say that higher user numbers make the OS more secure in theory, as more vulnerabilities are detected and fixed, especially as it is Open Source. But practically this also increases the number of attacks, as it becomes a more interesting target.

The system itself is however usually the strongest part of the security chain, the weak parts are vulnerabilities in additional software (browsers, flashplayer...) or the users themselves, as it's easy to trick non-experts and let them install malicious programs or run evil copy-pasted sudo commands.


This was answered in comments.

  You can try the option --skipmd5check. Maybe this helps. See also
  wiki.ubuntu.com/….

– qbi Dec 17 '12 at 22:28

The OP reported this worked. But there are other alternatives:

  [Skipping the integrity check is] not a good idea unless you know the ISO is good (i.e. with a development release).

  Remove the CD from F: and let it download a new ISO or the diskimage.

  Do you have an apostrophe in your user name? [That] might be causing
  some issues:

command=C:\Users\TASSO'~1\AppData\Local\Temp\pylBC2.tmp\bin\resize2fs.exe -f C:\ubuntu\disks\root.disk 17744M

– bcbc Dec 18 '12 at 1:12


Flash videos choppy after computer has been ON for a day or so

The issue is with pulseaudio.

killall pulseaudio and then restarting it made the problem disappear.


Alternative for Remedy client, AT&T webex and MS Office Communicator?

There is an Idea on Ubuntu Brainstorm for AT&T WebEx, Idea #7487: Screen Sharing - Remote Meetings Application like WebEx which was closed as duplicate of Idea #17102: Easy screen-sharing and audio-chat for instant messengers .

They recommend Vino or Empathy. Note that these software are most likely not compatible with AT&T WebEx.

I am afraid that the software used at work cannot be fully replaced by Ubuntu if you need compatibility between the programs used by you and your company. If you need to run certain Windows applications in Ubuntu, you could try Wine or a virtual machine like VirtualBox. Another solution would be a dualboot system, Windows for your job and Ubuntu for daily usage.


How to install and launch the Gnome desktop from a Xenial 16.04 command line?

You need to add gnome repositories.

sudo add-apt-repository ppa:gnome3-team/gnome3-staging

sudo add-apt-repository ppa:gnome3-team/gnome3

And then install it:

sudo apt-get update && sudo apt install gnome gnome-shell


How do I properly set up and secure a production LAMP Server?

You need to tell Apache that it should use name-based virtual hosting instead of IP based. So append the following to your /etc/apache2/apache2.conf to define:

NameVirtualHost ip.address:port

And each virtual host should define a port:

<VirtualHost example.com:80>


How do I configure my broadband connection?

If you are talking about 3g/4g mobile broadband like an aircard install the "usb_mode_switch"..so you would need to be connected to the internet to be able to install it.what type of card are you using?


Adding an answer here so that I can mark it as solved. Everything worked after I added file_mode=0777,dir_mode=0777 to the mount line. chown just gave me permission denied errors.


How do I install an older version of a program?

Before downgrading to the 13.10 version, try the workaround proposed in this bug report (disabling the encryption completely), by typing the following command in a Terminal:

gsettings set org.gnome.Vino require-encryption false

To downgrade a package please visit How do I downgrade to Subversion 1.6?

In your case just update (temporarily) the sources.list file not with precise but saucy.

Once done, don't forget to lock the version with:

echo subversion hold | sudo dpkg --set-selections


VirtualBox client OS (using NAT) is able to access host's LAN - How come?

Chapter 6. Virtual networking:

  To an application on the host, or to another computer on the same network as the host, it looks like the data was sent by the VirtualBox application on the host, using an IP address belonging to the host. VirtualBox listens for replies to the packages sent, and repacks and resends them to the guest machine on its private network.

Networking in VirtualBox (Oracle Blogs):

  Each vm thinks they are on their own isolated network. When they send their traffic via the gateway (10.0.2.2) VirtualBox rewrites the packets to make them appear as though they originated from the Host, rather than the Guest (running inside the Host).

Like on a physical host, NAT impedes remote connections, but allows outgoing connections. I don't think there's a networking mode that can distinguish your LAN from the rest of Internet.


How to use old Windows 7 install in Ubuntu?

The best and most popular Windows emulator is Wine. As far as i know, VMware doesn't have a linux version.
Here's their guide to installing it winhq tutorial


User account messed up. How to restore functionality?

When you "remove" a menu entry with alacarte, what it really does is create a user-local file that describes the application according to the FreeDesktop.org "Desktop Entry Specification", and indicates that it should be hidden from the menu.  Local "desktop entry" files override system-wide ones.  These local files are located in ~/.local/share/applications/.  Remove the local *.desktop file, and the system-wide one (as installed by the package) will take over again.


I can't use the shutdown command because the system "Failes to Connect to bus: No such file or directory"

As it turns out, the issue was with dbus - even though it was installed and up-to-date, it was still broken.

You can reinstall it with

apt-get install --reinstall dbus


Copy files from unspecified number subdirectories

If you are using a shell that supports recursive globbing, you can enable that ex.
shopt -s globstar        # bash

then use
cp -v ./**/*.mp4 ~/foo

(-r is not appropriate here, assuming that the *.mp4 are regular files). Alternatively, use find for the recursive descent:
find . -type f -name '*.mp4' -exec cp -vt ~/foo {} +

The globstar method will fail if the number of matches is sufficiently large; the find method should work regardless.


Blue iMac running Debian will not boot Ubuntu from cd drive

Does your iMac look like this: http://en.wikipedia.org/wiki/IMac_G3 ?

Those were using PowerPC processors, you'll need PowerPC version of Ubuntu. https://wiki.ubuntu.com/PowerPCDownloads


set network configuration manually. for that, follow the below commands:

ifconfig eth0 192.168.31.3 netmask 255.255.255.0 up

(IP and NetMask is example)

sevice networking restart


Change screen resolution detection timeout

Hard coding xorg.conf is the usual way to sort out these kinds of issues. Every time a screen change is being detected it is automatically reconfiguring the display settings on the fly.


You can use default Ubuntu backup that comes with Ubuntu. Go to System settings -> Backup


How to change screenshot application to Flameshot on Ubuntu 18.04?

If you need or want to replace the PrtScr shortcut do the following:

Release the PrtScr binding by this command

gsettings set org.gnome.settings-daemon.plugins.media-keys screenshot '[]'

Go to Settings -> Devices -> Keyboard and scroll to the end. Press + and you will create custom shortcut.
Enter name: "flameshot", command: /usr/bin/flameshot gui.
Set shortcut to PrtScr (print).

That is it. Next time you push PrtScr flameshot will be launched.

Source: Posted in the question by OP which should have been posted as an answer instead.


how to completely delete some files on an external drive by using Linux?

sometimes when you delete files on a usb drive they get put in a hidden file .trash or something like that. Do a ls -a on the usb drive and see what hidden files there are. If there is a .trash do a rm -rf to that file.

If you are navigating to the directory from the gui you should be able to right click and select "open in terminal" and execute the ls -a and rm -rf "filename" from the terminal that way. Sometimes its easier to navigate via gui than try and get to a mounted usb drive.


Stop unity from being used in VNC sessions

VNC show exactly the same what is currently on your desktop, so if you login to Gnome, VNC also will be with Gnome. If you are logged in Unity, you can only login as another user to different GUI (eg. Gnome) and connect via VNC to this another user desktop.


You can't. Deja Dup doesn't use cron and doesn't have any settings.

See this bug report


Error on sudo apt-get update, 404 Not Found , and error on sudo apt-get update in Ubuntu 13.04

This is not an LTS (long term support) version of Ubuntu, therefore updates and upgrades don't work after some years.
for specific software you should search for a version that is compatible with ubuntu 13.04


How to increase font size in Vim editor?

This may not be an ideal solution but it works for me.

Just zoom in on your terminal with Ctrl+Shift++.

Zoom out with Ctrl+-


How to completly remove and reinstall Ubuntu Software Center

ubuntu-desktop is a meta-package. Removing it will not actually make your desktop inoperable.

Your method is correct, though I use explicit flags when I remove:

sudo apt-get remove --purge software-center

This will remove config files as well as the package. To install it again:

sudo apt-get install software-center

You could also add ubuntu-desktop to that command after the software-center package, if you want to be sure you are still tracking it.


How to enable all site confs with a2ensite (while passing over 000-default.conf && default-ssl.conf)?

Might aswell just use find on your config directory.

find /etc/apache2/sites-available/ -type f -and -not -name "*default*" -exec a2ensite {} \;

This finds all your configuration files that are not having "default" in their name and activates them.


How can I confirm that I'm using ecryptfs?

If ecryptfs is being used, your home folder will be mounted. You can check if it is with this command:

df -T

When I run it, I get this result:

kalle@Kalle-PC:~$ df -T
Filesystem           Type      1K-blocks       Used Available Use% Mounted on
/dev/sdc1            ext4      115376648    9002220 100513568   9% /
udev                 devtmpfs    2050188          4   2050184   1% /dev
tmpfs                tmpfs        824108       1128    822980   1% /run
none                 tmpfs          5120          0      5120   0% /run/lock
none                 tmpfs       2060264        900   2059364   1% /run/shm
/dev/sdb1            fuseblk  1953512444 1183183452 770328992  61% /media/x
/dev/sda2            ext4      861466440  138769200 678937216  17% /home
/home/kalle/.Private ecryptfs  861466440  138769200 678937216  17% /home/kalle

I have several drives on my system, but the last line is the relevant one. It shows that /home/kalle/.Private of type ecryptfs is mounted to /home/kalle, which is my home directory.

Run df -T on your system and check the results.


The ubuntu-netbook package will provide you with the Unity interface, you'll be able to load it from the login screen, selecting a "Netbook Edition" session instead of the "Desktop Edition".

And Unity will ship by default for 11.04, this is correct.


First of all i'm not sure if nokia3310 3g can be used as a modem. And there are 3 ways to use it as a modem a. via usb cable, b. via wifi if the phone supports wifi hotspot, c. via bluetooth tethering if supported. The only way to use this phone as a modem is via usb cable as i'm not sure that supports wifi hotspot or bluetooth tethering.
You rather should check phone's manual or contact nokia.

But why don't you buy a usb mobile modem (3g/4g dongle) from your mobile provider?
It's the best solution especially now that 3g/ 4g speeds are sometimes faster than adsl.


Can't boot win7 after installing ubuntu 12.04 how can i restore my win7?

Ubuntu 12.04 install has corrupted the Win7 boot loader(Usually it only corrupts the boot loader, not the whole OS partition). This happened to me too.

What you need to do now is to repair the Win7 boot loader. You can do that with a Win7 installation disk, by running the start-up repair utility. This will only repair the start-up files necessary for Win7 and WILL NOT erase all your files. (If you get to a point where you are trying to repair this and the computer tells you all your files will be lost, then you most probably shouldn't go ahead with it, and first try start-up repair)

These links should help you with the start-up repair:
https://help.ubuntu.com/community/RestoreUbuntu/XP/Vista/7Bootloader
http://ubuntuforums.org/showthread.php?t=1639595

On the other hand if accessing Win7 isn't so urgent and you only need to access files on your C: or D: drive, try mounting them in ubuntu and access them from ubuntu.

PS. reinstalling Ubuntu will not do you any good. Nor will uninstalling it. It is better to have one OS running on your computer than none.


By reinstalling Windows after Ubuntu you have overwritten the Grub file that loads Ubuntu.

The easiest way to fix your Grub file is with Boot Repair you can get more info here

The instructions are:

Boot your LiveCD/LiveUSB of Ubuntu
type in a terminal sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update and sudo apt-get install -y boot-repair && boot-repair
On the Boot Repair window select Recommended Repair
If repair is successful reboot your computer and you should then be able to use your Grub file

I have given the quick method for using boot repair to fix Grub, you may want to read the Ubuntu Wiki I linked to for more detailed info.

You had this problem because Windows is not respectful of any other boot files already on the computer and will overwrite the MBR with it's own files.  Not a total disaster as you can fix it with the above instructions but an annoyance brought to you by Microsoft none the less.


How can I create heavy traffic on a ethernet link from the command line?

It is possible to do this using Netcat.

On the target machine (that will receive the data) set up netcat to receive data on a port (12345 in the example below) and pipe it to /dev/null.  /dev/null is used as it should be the fastest place to send the data to, if you use a file on disk there is a chance it will slow the transfer.

nc -vvlnp 12345 >/dev/null

Now on the source machine (that will send the data) set up netcat to transmit a set of data to the target machine.  This can be /dev/zero or /dev/random if you want to ensure no compression is taking place.  In the example below 1M bit lumps of data are sent 1k times to the target at address 10.10.0.2.

dd if=/dev/zero bs=1M count=1K | nc -vvn 10.10.0.2 12345


How to debug executable (using gdb) that reads another file?

Found it:after running:

gdb program

write

run < file_with_data.txt


How can I tell linux kernel to completely ignore a disk as if it was not even connected?

Two solutions here: one is fast to apply, although solves the problem only partially, the other one is the complete one but requires you to compile your own kernel.
The correct answer is a kernel patch.
Robin H. Johnson wrote a patch for the SATA kernel driver (find it in Unix/Linux stack exchange site) which hides completely the drive.
Update 1 The patch is now upstream (at least in 3.12.7 stable kernel), see  the git repository. I asked for backport in the Ubuntu launchpad.
Update 2 The patch is in the standard kernel for Ubuntu Trusty Thar 14.04; so now only the following addition to boot parameter is needed.
Once the patch is installed, adding
 libata.force=2.00:disable

to the kernel boot parameters will hide the disk from the Linux kernel. Double check that the number is correct; searching for the device name can help:
(0)samsung-romano:~% dmesg | grep iSSD
[    1.493279] ata2.00: ATA-8: SanDisk iSSD P4 8GB, SSD 9.14, max UDMA/133
[    1.494236] scsi 1:0:0:0: Direct-Access     ATA      SanDisk iSSD P4  SSD  PQ: 0 ANSI: 5

To add a kernel parameter (bot temporarily and permanently) you can check this Q&A: How do I add a kernel boot parameter?
Workaround
At least the problem of enabling suspend-resume has been solved by by Unix StackExchange user Emmanuel in https://unix.stackexchange.com/a/103742/52205. As root, issue the command:
echo 1 > /sys/block/sdb/device/delete

before suspend.
To make it permanent, add the following file in /etc/pm/sleep.d/ and make it executable:
-rwxr-xr-x 1 root root 204 Dec  6 16:03 99_delete_sdb

with content:
#!/bin/sh

# Delete the failing disk so that it will not block suspend

case "$1" in
    suspend|hibernate)
        if [ -d /sys/block/sdb ]; then
            echo 1 > /sys/block/sdb/device/delete
        fi
        ;;
esac

...and now the system suspends (and resume) correctly.


How do I stop audio clicking/popping over SPDIF?

Had same problem on megeia 6, found it to be a sample-rate problem. Adding default-sample-rate = 48000 to /etc/pulse/daemon.conf fixed it for me.
pulse needs to restart after. pulseaudio -k, pulseaudio --start


Xubuntu 16.04 always boot with date of Feb 11 2016

You say that the system time (in BIOS) was set to the year 2099. This is likely to cause a lot of confusion to Linux.

Set the BIOS time and date to the current year and you should be fine.


Notice that your ethernet interfaces are eth0 and eth1; quite unusual for Ubuntu 20.04. Notice also that the netplan file attempts to configure the more usual enp1. Please change the netplan file to substitute eth0 for enp1. Next, do
sudo netplan generate
sudo netplan apply

Check:
ip addr show

Any improvement?


Ubuntu 18.04.1 LTS doesn't recognize my password

What did you use to install Ubuntu?

Preferably use this guide:

https://howtoubuntu.org/how-to-install-ubuntu-18-04-bionic-beaver

Then, there are two passwords:

(Optional) Password to encrypt the device(Security Key)

This one is only to decrypt your device(Only if you selected encryption while installing)

User Password to login

This Password is given after selecting a user name. You will need THIS password to sign in.

Optionally try installing Ubuntu and checking the Log in automatically box. Then no password would be required to sign in.


This might be a BIOS problem. This article mentions similar problems using a SSD as a second bootable-disk.


Make partition in hard drive in which ubuntu is installed

First off, it is better to run the commands from a live USB/CD of Ubuntu. You need to unmount partitions if you are working from a live system.

If you sda is the drive you wish to partition, type:

  sudo fdisk /dev/sda

You will enter the fdisk program. If you type m you'll get help on commands that you can use

Enter p to list the current partition table

Enter n to create a new partition. You'll be asked whether to create a logical or primary partition. Hit l for logical or p for primary. Note that a disk can only have four primary partitions (if using MBR). Next, enter the partition number you want to assign to this new partition.

Next, specify the sector of the disk you want the partition to start at. Press Enter to accept the default sector, which is the first free sector on the disk. Then select the last sector of the partition you want. eg: if you type +100G, it will create a new 100GB partition.

Hit t and then 7 to create a HPFS/NTFS/exFAT partition (you can type l to list out all hex codes corresponding to different partition types)

Enter w to write the changes and exit.

Now you you need to format new partitions with a file system before you can use them. So,

  sudo mkfs.ntfs /dev/sdaX

Replace X with the partition number you entered while creating partition.

To mount it (to a mount point, say, /mnt/ntfs) you can use:

  mount -t ntfs /dev/sdaX /mnt/ntfs


Unable to login to ubuntu after it goes to lock screen automatically

You can disable the lock on suspend:
gsettings set org.gnome.desktop.screensaver ubuntu-lock-on-suspend 'false'

OR completely disable the whole lock screen:
gsettings set org.gnome.desktop.lockdown disable-lock-screen 'true'