netplan currently lacks the ability to configure the ttl / hoplimit of a tunnel. This issue has been brought up in its issue tracker (bug #1846783), however its developers seem to have not paid attention to this.

Meanwhile you can configure the tunnel using connection managers that support setting this field such as systemd-networkd and NetworkManager, or try to run a script that calls ip tunnel after the tunnel has been brought up by netplan.

You might also be interested in the workaround described in the original feature request for supporting IP tunnels in bug #1799487, or elsewhere on this site


Some Libre Office menu items are always hidden

Apparently this is a confirmed bug. I wasn't able to reproduce it under Ubuntu 12.10, so if you are using a previous release and upgrading is viable, it is probably worth giving it a try.


Many "Firefox" problems are caused by problematic themes, extensions, or plugins. To quickly check for these potential causes, follow the steps in the Standard diagnostic - Firefox article. The Mozi kb article link give below will give you the detailed information of various Firefox hangs and its fix.

http://kb.mozillazine.org/Firefox_hangs

Note: Me faced similar issues with scrips in google drive not responding or due to Adobe flash player either hangs or crashes in Firefox.


From the manual:

  Q: How can I run MPlayer in the background?
  A: Use: mplayer options filename < /dev/null &

The redirect (note it's an input from /dev/null) is critical. mplayer is expecting input.

So in my case, the following works:

mplayer -nolirc ~/Music/Aqua/Aquarium/Aqua\ -\ 03\ -\ Barbie\ Girl.mp3 < /dev/null &

This is a shorter variation:

cat 0 | mplayer ~/Music/Aqua/Aquarium/Aqua\ -\ 03\ -\ Barbie\ Girl.mp3 &


Perhaps Compiz uses LLVM instead of Nvidia drivers? See How can I tell if I'm using LLVMPIPE? to find out.


Why do I need to create a bios-grub partition when I install 12.04?

The GUID Partition Table (GPT) is a way of partitioning disks that's more flexible than the older Master Boot Record (MBR) system. GPT works on bigger disks than MBR (which has a 2 TiB limit, assuming a standard 512-byte sector size) and it has some other minor advantages. When GRUB 2 installs to a GPT disk on a BIOS-based computer, it likes to have a BIOS Boot Partition in place, and this is what Ubuntu's installer means by the "bios-grub" partition. This is basically a small partition in which part of GRUB's code resides. It's not needed on MBR-based computers because GRUB 2 uses some officially-unallocated space instead. The GPT method is actually safer, but the MBR method usually works, in practice.

I suspect that this is what happened:

In previous installations, you used GRUB 2 on MBR disks and so had no need of a BIOS Boot Partition.
When you installed Fedora, it converted a blank disk to GPT format. Fedora 16 is known to do this; it favors GPT even when it's not strictly necessary. (The Fedora developers are reportedly reversing this decision for Fedora 17.)
When you tried to re-install Ubuntu, it saw the GPT configuration and tried to use it. This involved creating a BIOS Boot Partition, or complaining if one wasn't present.

There's absolutely no harm to using a BIOS Boot Partition. One of GPT's advantages over MBR is that GPT doesn't have a 4-primary-partition limit, so devoting 1 MiB of space to a BIOS Boot Partition doesn't chew up precious partition resources. In fact, using GPT has some minor advantages, such as a lack of distinction between primary, extended, and logical partitions (you can create up to 128 partitions by default) and the use of backup data structures and CRCs to help protect against accidental destruction of your partitions. That said, if you want to dual-boot with Windows, using GPT will prevent installing Windows unless the computer has UEFI, rather than BIOS, firmware. This is a big minus. There are also buggy BIOSes out there that won't boot from GPT disks unless you jump through some extra hoops.

If you want to install to an MBR disk, you'll have to remove the GPT data. You can do this with GParted by selecting Device -> Create Partition Table. Be sure that you opt to create an "msdos" partition table (what GParted calls MBR). This will wipe the GPT data and convert to MBR. If you have data you want to preserve, you may be able to do a GPT-to-MBR conversion with my gdisk program, but this doesn't always work. Also, converting in this way will render the disk unbootable until you re-install your boot loader.


Try this:

#!/bin/bash
# Call this script with the extensions you want to move.
# E.g.,     ./script mp4 avi flv
From="/home/katy/doc"
To="/home/katy/mo" #directory where the media files will go
WA="/home/katy/do" # directory where the other files will go
 if [[ ! -d "$To" ]]; then
   mkdir -p "$To"
 fi
cd "$From"
for i in "$@"; do # You could also hard code this: for i in mp3 mp4 avi; do
  find . -type f -name "*.${i}" -exec mv "{}" "$To" \;
done

{ and } are special characters. I think that adding a bunch of quotes to your script will help make it clearer and work better.


Install Win 7 over XP on second hard disc drive

You can, but since Ubuntu and Windows are on separate drives with separate boot managers you won't see boot entries for both OSs in both managers. This means if you want to boot the OS on hard drive 2 you will have to enter your computers quickboot menu and tell it to boot from hard drive 2. Which for many people is the prefered way to do things. Keep in mind that some computer's quick boot menus don't allow selecting a specific hard drive to boot from, which would mean you would have to disconnect 1 drive to boot the other or fix the boot manager to list both Ubuntu and Window's bootloaders.

The best place to start would be to check your quick boot menu to see what the computer supports. For this test you should have both hard drives connected. This is done by pressing a specific key when the computer first turns on. The key varies by computer model, but it should say on the screen. Typical keys are F2, F4, F10, and F11. You should then get a list that says something along the lines of:

1. CD/DVD
2. Removable
3. Hard Drive 1
4. Hard Drive 2
5. Network

If you can pick between drives then your plan will work. Simply disconnect Ubuntu and install Windows then reconnect.

If it doesn't list a specific hard drive then you can't choose, and it will always try to boot from the first one to offer up a boot manager, which would prevent you from booting into 1 of the operating systems unless you disconnect the other drive. In this case you "may" be able to proceed by installing as planned and then running a program called boot-repair from Ubuntu when both hard drives are connected. This should add an entry for Windows to the Ubuntu drive.

Alternatively you can install VirtualBox on Ubuntu and install Windows 7 in a virtual machine. Then re-direct the usb device to the virtual machine so that Windows 7 can interact with it.


Can't mount "Windows Disk" after installing ubuntu

Manually mount the filesystem in read only mode.

Check to see if you have a mount point (folder for mounting your partition in) for your Windows partition in the folder /media using this command:

 ls /media

If you don't see a folder for your Windows partition, you should create one with the following command:

 sudo mkdir /media/windows

Next, mount the partition in read-only mode onto this folder with this command:

 mount -t ntfs -o ro /dev/sdb1 /media/windows

Note that you should change /media/windows if your mountpoint is called something else.Also, here I am assuming your windows drive is sdb1.

Now you will be able to view/open files on your Windows partition using any program in Ubuntu. However you will not be able to write to the partition or modify any files as it is in read only mode.

For more : Unable to mount Windows (NTFS) filesystem due to hibernation

Check if you still have your windows system data in it.If yes then maybe restarting your  PC should do the work.


kern.log reports times in UTC instead of local time zone

You don't have to reboot, just make sure to restart cron and rsyslog so they pick up the new timezone.

sudo service cron restart
sudo service rsyslog restart


No EFI system partition was found during reinstallation of Ubuntu

Ran into the exact same problem today. Select your /dev/nvme0n1p1 (the Windows Boot Manager), hit the "Change..." button, and change the type to EFI System Partition. It'll want to write that change to disk, so let it. Then hit the dropdown for "Device for boot loader installation" and change it to that partition, /dev/nvme0n1p1. Hit install, and the only warning I got at that point was that it was going to reformat the swap partition, which is perfectly fine.


You can download the deb only by the command

sudo apt-get --download-only <packagename>

Then you can burn the files to your DVD and make the DVD as a software source using synaptic or Ubuntu Software Center
Else you can make your own local repository. read this to get it


Deployment and configuration of a small lab

This calls for unattended installation! The Ubuntu documentation on preseeding and example preseed file should get you started. You can:

Try netbooting to automate it even further.
Set password for root and create a non-admin account. Guest is enabled usually by default.
Copy over the home directory of a test install to finish final touches. This can be done in as a late command, and can use scp or wget.
Specify a local mirror in the preseed file.
Add configuration options for lightdm using files added to /usr/share/lightdm/lightdm.conf.d/ (for example, to autologin the guest user) (again, perhaps by wget).
Enable unattended upgrades in the preseed file.
Install the other packages as well, either using task selection or via listing individual packages.


Windows 8.1 erased after updating to Ubuntu 14.04

Assuming you have a single disk, you should check the partition's size on the disk to see if it take up the whole drive.  If so, then you have definitely formatted over your Windows partition.  In that case, you should follow the solution for this question found here.  If not, perhaps you simply deleted the partition.  Or maybe, although unlikely, Gparted isn't seeing it.  Run fdisk -l from a terminal just to be sure.

Also, while a long shot, it doesn't hurt to check out boot repair either.


Fixed with some help from the #juju IRC channel - I shouldn't be using the system mongo instance; juju creates its own when running juju bootstrap


Should I install the recommendations apt-get gives me when installing vim?

Not exactly sure what those extra files are but just install them they could be part of some dependancy. Quickly overview of vim bellow:

To quit INSERT MODE press Esc button.

To save and quit press:

:wq

w for write, q for quit.

To quit without saving changes press:

:q

If vim complains after this command press:

:q!

! is for force quit

This video explains a lot about vim - http://youtu.be/ImK_dHPOTIE


Did you md5sum check the downloaded iso?   See
https://help.ubuntu.com/community/HowToMD5SUM   Check the number
against the listing in the link for your release listed at
http://releases.ubuntu.com under the MD5SUMS link.
If using a CD/DVD, did you burn the disc as slowly as possible?
See https://help.ubuntu.com/community/BurningIsoHowto
Did you select the media check before trying to install?
https://help.ubuntu.com/community/Installation/CDIntegrityCheck
Did you ever do a "memory check" (perhaps another live-media menu
choice) on your PC? Doing the above can save you a lot of time
struggling with a bad install media or hardware problems.


how to find the files less than 5 MB in /var/log/ and display with the size of file?

This command will find the files in /var/log that are less than 5M in size and print the size (in kilobytes) along with the file name:

find /var/log -maxdepth 1 -size -5M -type f -printf '%5k %f\n'

Sample output might look like:

  112 syslog.6.gz
 1048 messages.1
  112 syslog.5.gz
  120 syslog.7.gz
 1216 syslog.1

How it works

-maxdepth 1 tells find not to descend into subdirectories.  (If you want subdirectories to be included, omit this)
-size -5M tells find to limit the results to file less than 5M in size.
-type f tells find to look only for regular files.
-printf '%5k %f\n' tells find to allocate 5 spaces to the size and print the size in kilobytes, followed by a space, followed by the file's name.


Vagrant up (with Ansible) problems. Failed to boot the virtual machine

If someone had similar problem.

Do next:

install NFS kernel

[https://www.digitalocean.com/community/tutorials/how-to-set-up-an-nfs-mount-on-ubuntu-14-04]

Go to phansible.com and create configuration for you PHP project, download and vagrant up......


wacom bamboo intuos 5 PTK-450 is not detected on ubuntu 11.10

If you are a "Linux newbie", I suggest you to upgrade to the latest stable version of Ubuntu (12.04 Precise, a LTS version). After that, upgrade the kernel module that drives the Wacom tablet as mentioned in Wacom Bamboo Capture CTH-470 Pen and Touch not working. 11.10 Oneiric does not have a recent Xorg driver that supports your tablet, you really need the xserver-xorg-input-wacom package from Precise and later.

For advanced material and background, refer to http://ubuntuforums.org/showthread.php?t=1515562


This problem is taken by the bug #1731163.
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1731163

I use this page to change the grub parameters and the solution work well: https://wiki.ubuntu.com/Kernel/KernelBootParameters


How to install NuGet addin for MonoDevelop?

Steps:

Start the Add-in Manager by clicking on the Add-in Manager option in the Tools menu.
Click on the Install Add-ins button.
Click on the Repositories button.
Click on Add.
Enter http://mrward.github.com/monodevelop-nuget-addin-repository/4.0/main.mrep
Click OK and then Close to go back to the install dialog.
In the Install From combo box select either All registered repositories or the NuGet add-in repository.
The install dialog shows a list of available add-ins. Only add-ins which are not installed will be displayed.
Select the add-ins (NuGet) you want to install (use the check box to select).
Click on the Next button.
Verify the list of assemblies that are going to be installed.
Click on the Next button to proceed with the installation.

Sources:
Google: ubuntu monodevelop nuget --> First hit --> Follow link in Getting the Addin section


How to setup Canon iR2520 Network Scanner?

I found this 64-bit & this 32-bit drivers.

  The MVI Linux Driver CQue 2.0.5 facilitates the creation and configuration of printer queues on Linux workstations or servers, allowing access to all features of Canon devices (iR, CLC, MF, LBP).

Not sure if it will work, but it's worth trying. Also a bit strange, I use (almost) the same printer and don't have problems. Do you connect directly to the printer or through a print Server ?


It seems like your bank is causing this issue for some reason. You can go to https://pay.ubuntu.com/ to add a credit card, as a work around. Try this on the phone's browser first, to see if you have the same issue there. If so, it is almost certainly an issue with your bank's web site, and not Ubuntu. If that does work, please file a bug at https://bugs.launchpad.net/pay-ui so that it can be investigated further.


Normally you can get a boot manager menu by pressing Esc, Enter, or a function key as you start the computer. (Which keypress does this varies from one machine to another.) I've heard of cases where this functionality stops working for some reason, though -- it sounds to me like the cause is really a firmware bug. Updating the firmware or resetting it to the default settings may clear the problem, but such updates and resets may also be difficult if you can't get into the firmware setup utility. This page provides instructions on one workaround that involves telling Windows to reboot into the firmware setup utility.

If that doesn't work, one possibility is to install my rEFInd boot manager from within Windows. The trouble with this approach is that if your system has Secure Boot set up, you'll need to obtain and install a Shim or PreLoader binary, too, which greatly complicates the setup process. (See the rEFInd Secure Boot documentation for more on this subject.) If you can get rEFInd to start up, it should present you with a menu of boot options, including any bootable external media on your system. If you don't see such options, hit the Esc key; this triggers a re-scan, which often picks up devices that were missed on the initial scan.


GRUB install failed in Ubuntu 14.10 installation

I do not know if your computer has a locked ESP that prevents writing outside the /EFI/Boot and /EFI/Microsoft folders. A bug has already been reported in such cases (which leads to 'read-only' errors like the one you are getting).

It would be a good idea to try the workarounds given in the bug report page.


First, verify what addresses the webserver is actually listening to.
Run sudo netstat -an | grep :80:

$ netstat -an | grep :80
tcp6       0      0 :::80                   :::*                    LISTEN

Here I have a webserver, listening on port 80, exclusively on IPv6. A server listening on IPv4 would have tcp instead of tcp6, and it would be 0.0.0.0:80 and 0.0.0.0:*, not :::80 and :::*

0.0.0.0 is a magic address for every available IPv4 interface, and :: is a magic address for every available IPv6 interface.

On to addresses... you seem to be a bit confused by the IPv6 address you have: The IP 2a02:2168:858:8001:0:0:0:5 is your IPv6 address. Usually the IPv6 address is global, unlike IPv4 networks, where you typically employ NAT for outgoing traffic, to mask your local address. But, to use it in a browser, you need to enclose it in [], so http://[2a02:2168:858:8001:0:0:0:5] should work, if your webserver is set up to listen on IPv6.

To allow external IPv6 access you probably have to allow port 80 through the firewall in your network router.

Regarding the other IP you found, 46.242.14.149, this is probably your external IPv4 address. This doesn't belong to your computer, but to your router. To be able to access your website via this, you need to set up portforwarding, from the router, to your computer. Read the manual for your router for how to do this.

To show which IP the local interface actually has, the easiest is to use the command ip address. The output will resemble the following:

$ ip address
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether bc:ae:c5:09:5f:15 brd ff:ff:ff:ff:ff:ff
    inet 10.0.1.55/24 brd 10.0.1.255 scope global enp2s0
       valid_lft forever preferred_lft forever
    inet6 2001:4661:7f30:0:beae:c5ff:fe09:5f15/64 scope global mngtmpaddr dynamic
       valid_lft 86400sec preferred_lft 14400sec
    inet6 fe80::beae:c5ff:fe09:5f15/64 scope link
       valid_lft forever preferred_lft forever

As we can see, I here have one NIC, enp2s0, with both an IPv4 (inet) address, and an IPv6 (inet6) address. Thus, http://10.0.1.55 should work in this case - but only on the local network.

In addition, I have a loopback adapter, lo, with the IPv4 127.0.0.1 and IPv6 of ::1. In fact, every computer, almost regardless of operating system, has this loopback address. It always refers to the local computer. Thus http://127.0.0.1 or http://[::1] will always connect to the local webserver, over the loopback interface.

The code snippets you include in your question essentially tries to parse the output of ifconfig to show your IP address. This can be useful in some scenarios, but when you're simply checking what it is manually, it's wasted time.


How do I animate using javascript and qml?

QtQuick offers a rich set of transition and animation libraries that you can find here. It basically involves changing the properties of an object with the specified time interval.

Here is a code sample to animate a rectangular block to move side ways.

     Rectangle {
        id: rect
        color: "Green"
        width: units.gu(20)
        height: width
        x: units.gu(0)
        y: units.gu(0)

        MouseArea {
            anchors.fill: parent
            onClicked: rectAnimation.start()
        }

        NumberAnimation {
            id: rectAnimation
            target: rect
            property: "y"
            from: units.gu(0)
            to: units.gu(20)
            duration: 500
        }
    }

You can trigger animations based on various things like object states, behaviour etc...For instance, if you want the rectangle to increase its size in a fluid manner, you would define the following behavior,

Behavior on width {
    NumberAnimation { duration: 500 }
}

QtQuick is infinitely powerful. I would highly recommend going through the official Qt documentation to find out the different types of animations available and their triggers.

Note: While developing applications for Ubuntu Touch requires the Ubuntu SDK, it is worth knowing that the Ubuntu SDK itself uses Qt and hence you would get more results if you searched for QML solutions rather than Ubuntu SDK solutions in the future.


Bluetooth not powering up for second user

Is there any way to automatically power up the Bluetooth when I log out as one user and sign in as another?

The best answer would address the underlying reason that bluetooth is being deactivated in the first place.  However, at this time, not enough information is provided to determine this.  So the preferred answer may be different from that which is currently provided.  This post is being created as a community wiki so that others may easily make the necessary changes and additions when they are discovered.

If no better solution is found, most desktop sessions can be configured to automatically run the command to activate bluetooth.

rfkill unblock bluetooth


Indicator, notifier and blocker of Internet traffic

I can help you with 1st two choices.I mean starting monitor with current usage and showing total usage in month wise.

the application named as vnstat.you can install it with

sudo apt-get install vnstat

then type as

vnstat

it will show you the usage statistics.


How to navigate through directories named with non-latin characters?

Yes, of course it's possible as long as directories with these names exists.

The simple way:

How I made:

I ran ls command in the parent directory where a directory what is named with non-latin characters.
With the mouse, I selected the name of the directory (nothing more).
I typed cd followed by a Space then I pressed Shift+Insert and, of course Enter(again, nothing more).

If you can't use the mouse, see this quick tutorial.

The right way:

Add the new keyboard layouts that you need (greek, russian,...)

Go in System settings → Personal → Keyboard Layout and add a new layout:

When you type in terminal, switch between layouts to type in what language do you wish.

For tty1 (where you can go with Ctrl+Alt+F1) - and not only - I found another trick:

~ $ ls
bin         Desktop    file.gif  nohup.out  Sent to Ubuntu One  ttyrecord  άλφα
Descărcări  Documente  Muzică    Poze       tmp.txt             Video
~ $ ls > tmp.txt # redirect the output of 'ls' command to 'tmp.txt' file
~ $ cat tmp.txt
bin
Descărcări
Desktop
Documente
file.gif
Muzică
nohup.out
Poze
Sent to Ubuntu One
tmp.txt
ttyrecord
Video
άλφα
~ $ # our directory is on line 13 (in my case); we will use this number in next command
~ $ cat tmp.txt | sed -n 13p
άλφα
~ $ cd $(cat tmp.txt | sed -n 13p)
~/άλφα $ # voila
~/άλφα > rm -v ../tmp.txt
removed ‘../tmp.txt’
~/άλφα $


Nvidia Optimus, can i use only the integrated card through vmware?

According to the OP:

  nevermind, apparently vmware currently has no support for unity, for
  whatever reason. looks like virtualbox it is

The problem is with VM Ware and not Ubuntu or the drivers.


The real source of the problem: VMware Player stores its Library of the used machines in ~/.recently-used.xbel. But GTK3 changed the location of this file to ~/.local/share/. And ~/.recently-used.xbel is cleared on the regular basis, so the list of machines becomes empty. (Some insight can be found here: http://communities.vmware.com/message/1714765 and here: https://bugs.launchpad.net/ubuntu/+source/gtk+3.0/+bug/1007336).

As we cannot change the behavior of VMware, we can use the workaround. Use the wrapper script to run VMware Player:

#!/bin/bash

cp ~/.vmware/.recently-used.xbel ~
/usr/bin/vmplayer
sleep 5
mv ~/.recently-used.xbel ~/.vmware/

Save it somewhere in your home folder, make it executable and change the launcher which starts your VMware Player to run this script instead. It will store the list of your machines till the next launch of VMware. It was tested with Ubuntu 12.04.1 and VMware Player 5.0.0.

BTW: The answer which got the bounty is wrong. Running VMware Player with superuser privilege won't help you to save the Library. Moreover, it's definitely bad advice to use sudo in this case.


Permission denied when trying to upload to /var/www

The remote system almost certainly has file permissions on /var/www set so that you cannot modify files in there.  In fact, the default is that only root can modify files in there.

Assuming you don't have root (or sudo) access on that machine, the best course of action would be to request that the directory you will be using (eg /var/www/whatever) is changed to be owned by your user, so you can upload files there.

Alternatively, you could:

Ask for the server to be set up to host your site in your home directory (eg /home/yourname/www) instead of /var/www.
Ask to be added to a group (not a group the system uses like www-data but a newly created group) that is given write access in there via group permissions.

What you shouldn't do:

Set /var/www to be world-writable.  This is a fairly big security risk.
Get added to the www-data user group and set that group to be owner of /var/www.  This is a huge security risk as the www-data group is supposed to be unprivileged (eg, not have write access).


Install Ubuntu 14.04 along Win7 - Windows was not detected and probably got overwritten

Firstly, Install Windows 7 and then instead of installing it from the live cd. Install it from within windows using wubi installer on a NTFS partition. First change UEFI to legacy in BIOS.


Fresh install of ubuntu 18.04 LTS (dual boot with windows.) Keyboard does not work

I have identified the problem and a (extremely hacky) solution. It seems that because my laptop is a 2 in 1, it starts in tablet mode, where the keyboard is ignored. My solution to this is to briefly put it into actual tablet mode, then fold it back. This does some black magic and now it believes that it is in laptop mode, obviously this is not ideal so I will leave this open.


What's the difference between Rsync & BTRFS Snapshots

https://linoxide.com/linux-how-to/take-system-snapshots-timeshift/

Timeshift works in two modes: Rsync mode and BTRFS mode.
In the rsync mode, snapshots are taken using rsync and hard links, and
common files are shared between the snapshots to save disk space.
In
the BTRFS mode, snapshots are taken using the BTRFS file system. BTRFS
is supported on only systems having an Ubuntu-type subvolume layout.

https://reddit.com/r/linuxquestions/comments/93dir6/linux_mint_19_timeshift_rsync_or_btrfs/

BTRFS is a filesystem that needs it own partition to store its backup.
RSync could save data anywhere, it's more flexible.

I have Rsync option checked in my TimeShift settings, because it is easier to setup than BTRFS— I use TimeShift to restore from little oopsie like theme misconfiguration, wrong package version etc. it's work quite well.
If you required more intermediate case, go for BTRFS then. You're creating a snapshot of your system on the same partition to which you can roll back.


This might be duplicate for this problem. Try the same solution posted there! Or you can simply download the media and choose update the current version from the installation menu


How can I capture network traffic of a single process?

To start and monitor an new process:

strace -f -e trace=network -s 10000 PROCESS ARGUMENTS

To monitor an existing process with a known PID:

strace -p $PID -f -e trace=network -s 10000

-f is for "follow new processes"
-e defines a filter
-s sets the limit of strings to more then 32
-p takes the process id to attach to


E: Unable to locate package livestreamer

It seems that the directions on their site aren't correct, at least for 20.04. The software is not, in fact, in the repositories for 20.04.
That's okay. Follow these directions:
python3 --version

That will let you know if Python is installed. It probably is.
sudo apt install python3-pip

Let it run its course.
sudo pip3 install livestreamer

Then, follow their documentation for use here.
Tested on Ubuntu 20.04.


Why is the state of my NetworkManager changed when I unplug my iphone 4s?

That's because you have USB tethering active on your phone. In this case the phone is acting like a network interface; the fact that it's plugged in leads to the creation of a network interface within the system, which, when the phone is unplugged, gets destroyed.


Ubuntu 14.04 64-bit a a VM in VMWare Workstation 9.0 no Alt-Gr keys on french keyboard

I found the answer in AltGr key combinations do not work in Linux virtual machines that are remotely accessed by VMware Infrastructure Client running in a Windows RDP or VNC session (1022454).

This issue is caused by multiple protocol translations by third party software.

When you press AltGr in Windows, VK_CONTROL and VK_MENU virtual keys are generated. The Linux virtual machines receive an extra Control_L key event which prevents them from recognizing the AltGr key combination.

I do not apply the solution given in this article. I just connect to my server using putty (openSSH server).


Using grep with pipe and ampersand to filter errors from find

In Unix-like systems, there are two output paths that if left unmodified will send output to your screen. Standard error (or stderr) is the one that captures most failures and error conditions.

To pass the permission denied message in the stderr to the same output stream as "regular output" you must combine the two. In your example, in order for your grep -v to properly operate on it, you combine stdout (standard output) and stderr with the arcane syntax you see.

From GNU Bash manual section 3.2.2 Pipelines:

  If ‘|&’ is used, command1’s standard error, in addition to its
  standard output, is connected to command2’s standard input through
  the pipe; it is shorthand for 2>&1 |. This implicit redirection of
  the standard error to the standard output is performed after any
  redirections specified by the command.

Also, as geirha points out, if you want to just get rid of stderr output, you would want to do something like

find -name 'myfile.*' 2> /dev/null

or perhaps

find -name 'myfile.*' 2> /tmp/errorlog

And note that if you have strings of commands, such as a find passing its output to xargs you would need to put the entire pipeline of commands in parentheses to capture the output from all components of the command. E.g.,

(find | egrep ^[RS].[0-9]+/.svg] | xargs head -1 )  2> /dev/null

If you left out the parentheses, and did this instead --

find | egrep ^[RS].[0-9]+/.svg] | xargs head -1 2> /dev/null

you would still see permission denied errors from the find or egrep, but stderr would be redirected for xargs.

As you've seen, you would likely throw away the stderr only after viewing its contents during a test run.

Note that with GNU find and as far as I can tell, any POSIX-compliant find, the -print option is implicit. You can still supply it explicitly if you like.


I have 2 SSDs one for windows the other for ubuntu. No grub on sda

The easiest way to accomplish this is to:

Boot with the Windows 8 repair disk
Repair sda
Use the BIOS to boot


So I haven't had a lot of luck making this work yet, but this is how I was able to get the appropriate kernel source from the git repository.  It requires a little trial and error, but it seemed to work for me.  I haven't been able yet to get the virtualbox drivers to compile properly yet upon installation, so I wouldn't mind a hand if someone gets this to work for them.  NOTE:  I had to intentionally break some of my reference links to post this because I don't have enough rep points yet; I put a space near the beginning of the link, so you may need to copy/paste and edit.

This is from text that I was preparing to update divx118's wiki page on this; it's not 100% ready, so it's a little raw, but should be clear enough.  FOr me, when I tried this Tuesday night, HEAD~115 hit my current kernel version, but that may have changed by now, so tweak as necessary.

Add to the wiki page:
https://github.com/dnschneid/crouton/wiki/Build-kernel-headers-and-install-Virtualbox-%28x86%29/_edit

Next, we need to determine the version of the kernel we're currently running.

$ uname -r

Then clone the kernel branch chromeos-[version] to our home folder.

$ cd ~
$ git clone https://chromium.googlesource.com/chromiumos/third_party/kernel -b chromeos-[version]

For example, [version] may be 3.18 or some other value; see the value returned by uname above to determine this.  Then we may need to download the correct revision of the kernel source from the git repository, if the downloaded source version doesn't match that of what we're currently running, by rolling back to a previous commit.  First, determine the kernel version for the source we just downloaded:

$ cd kernel
$ ./chromeos/scripts/prepareconfig chromeos-intel-pineview
$ make oldconfig
$ make kernelrelease

If the version from the uname command above does not match what is displayed, and is indeed a later version, then one can do the following to download an earlier version:

$ git reset --hard origin/chromeos-3.18
$ git checkout HEAD~[number of commits prior to current version]
$ ./chromeos/scripts/prepareconfig chromeos-intel-pineview
$ make oldconfig
$ make kernelrelease

One may need to repeat the above steps a number of times, each time increasing the commit number in brackets, to get back to the appropriate version of the kernel source, and some trial and error may be needed to find your matching version.  Once the correct version has been retrieved:

$ git reset --hard origin/chromeos-3.18

... to clean up after ourselves.

How to get rid of the -dirty tag when compiling kernel source:

http://arago-project.org/pipermail/meta-arago/2013-January/000795.html
https://groups.google.com/a/chromium.org/forum/#!msg/chromium-os-reviews/qg1i7ptQX80/AYdUWC7zGZsJ

Basically, edit base.config and change LOCALVERSION_AUTO to N.


You can try booting your computer with live Ubuntu CD/USB and then install and run boot-repair:

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair
boot-repair

Also, if you regularly backup your system (e.g. Ubuntu partition also storing the grub bootloader) using Clonezilla, you can easily restore your system after even more complicated problems in the future.


The first time I installed Android Studio, I followed the instructions given at: https://www.linuxbabe.com/ubuntu/install-android-studio-ubuntu-16-04

Basically

sudo add-apt-repository ppa:maarten-fonville/android-studio

sudo apt update

sudo apt install android-studio

With this you have a clean installation of android studio

Then, when I need to update it, I just rerun

sudo apt install android-studio

If you didn't use this method, it's worth a try.  It is cleaner in the long run.


Problem with PCSXR emulator after kernel upgrade

Switch the graphic to OpenGL driver.

If you found this error:

pcsx: ../libpcsxcore/ix86_64/ix86-64.c:158: MEMADDR_OP: Assertion '!isreg || reg != 0' failed.

or something along the line afterwards (mine was pcsxr: ../libpcsxcore/ix86_64/ix86-64.c:160: MEMADDR_OP: Assertion !isreg || reg != X86_TEMP' failed.), edit the file ~/.pcsxr/pcsxr.cfg and change the line Cpu = 0 to Cpu = 1.

Source


How do I turn on and off compositing from the command line?

have you tried running

metacity --replace &

then again for enabling run

compiz --replace &


Chromium quicklist not updating, any ideas?

I think that the problem could be that you have 2 fields named "X-Ayatana-Desktop-Shortcuts"
You can try the following:

edit the .desktop file gksu gedit /usr/share/applications/chromium-browser.desktop.
search for the field "X-Ayatana-Desktop-Shortcuts" below the label "[Desktop Entry]" and add the "User1 and User2", should look like this:

Finally add your code for the two shortcut at the end of the file. (without the X-Ayatana-Desktop-Shortcuts=User1;User2)

[User1 Shortcut Group]
Name=Draconis
Exec=Exec=chromium-browser --enable-udd-profiles --user-data-dir="/home/xiaolin/.config/chromium/Default"
TargetEnvironment=Unity

[User2 Shortcut Group]
Name=Snoozie
Exec=chromium-browser --enable-udd-profiles --user-data-dir="/home/xiaolin/.config/chromium/Profile 1"
TargetEnvironment=Unity

Hope it will be useful to you!

Regards.


Yeah, there are multiple choices.
One option is to you use dhcrelay from ISC. As command:
#IPv4
dhcrelay -4 --no-pid -l eth1 -u eth2
#IPv6
dhcrelay -6 --no-pid -l eth1 -u eth2

-l lower interface (listening for requests), -u upper interface relaying request to other DHCP.
But you don't have launch that way, the package contain services

Install its package
sudo apt install isc-dhcp-relay

Copy the needed service file or both:
/lib/systemd/system/isc-dhcp-relay.service
/lib/systemd/system/isc-dhcp-relay6.service

To
/etc/systemd/system/

Edit them and put the network interfaces.

Start the service, similar to
sudo systemctl start isc-dhcp-relay

or
sudo systemctl start isc-dhcp-relay6

References:

man dhcrelay


The ipmi password is not something you get out of MAAS.  It something you need to supply to MAAS.  It's set in the management card of the machine you are trying to commission and deploy.  For example, on a DELL server (e.g. R520, R720), the ipmi username and password is an admin account that can log into the iDRAC interface.

This article might be of help:

How do you add a machine to MAAS with IPMI power using CLI


How does one recreate a custom application launcher that takes command line syntax and even perhaps parameters?

I have answered a similar question here.

Briefly, copy the nearest script from /usr/share/applications/ to ~/.local/share/applications and then edit the xyz.desktop file. The line that starts Exec= is the line you need to edit, to put your own command in, along with whatever command line options you want. You will probably also want to edit the Name= line to describe your own script.

Once you've done that you'll need to restart your computer or log out/log in, then you can hit the Super key, start typing part of the name you set and your launcher should appear. Select it and hit Enter and it will run your command.


Nvidia driver cannot be installed with jockey for old hardware

The driver present in the Additional Drivers tool does not support your GeForce FX/5-series card.

According to the bug report you opened you need to remove the drivers currently installed in your system and install the nvidia-173 package which should support GeForce FX/5-series cards out of the box.

For that first remove all Nvidia drivers from your system with the following commands

sudo apt-get remove nvidia-current nvidia-current-updates nvidia-settings nvidia-settings-updates

This will remove all installed Nvidia drivers from your system. When that is done you need to install the nvidia-173, do it by opening a terminal and typing

sudo apt-get install nvidia-173

After the driver is installed in your system create a new xorg.conf file with the command sudo nvidia-xconfig and reboot. Your system should be working and using the latest driver available for your card.


Every temperature sensor shown has a temperature well below critical, so you're in good shape. As to which each line represents, that's something to ask Gigabyte tech support about. Some of them, e.g., temp2 in it8792-isa-0a60 are clearly spurious.


How to count number of files and directories recursively in a given directory

Use tree:

$ tree foo
foo
├── bar
│   ├── baz
│   └── foo3
└── foo2

2 directories, 2 files

Or you can combine find and awk:

find foo -type d -printf "d\n" -o -type f -printf "f\n" | awk '/f/{f++}/d/{d++}END{printf "%d directories, %d files\n", d, f}'

Or, generalizing:

find foo -printf "%y\n" | awk '/f/{f++}/d/{d++}END{printf "%d directories, %d files\n", d, f}'

If you don't mind concise output:

find foo -printf "%y\n" | sort | uniq -c

This will count one more directory than tree - the starting directory is not counted in tree's output.


For HTTP proxy, use -x.

Have a $HOME/.curlrc with

-x 127.0.0.1:8080

or make aliases using curl -x 127.0.0.1:8080 ... for proxy use.

For SOCKS proxy, looking at man curl says:

   --socks5 <host[:port]>
          Use the specified SOCKS5 proxy - but resolve the host name locally.
          If the port number is not specified, it is assumed at port 1080.

          This option overrides any previous use of -x, --proxy, as they are mutually exclusive.

So, use curl --socks5 127.0.0.1:8080, ie. curl --socks5 $socks_proxy.


Marking packages as non-removable / non-installable

You can "hold" a package in Ubuntu.

  Holding a package basically means you're telling the package manager to keep the current version no matter what. This is useful if more recent version of a currently working program breaks after an update.

You can do it via Synaptic or on the command-line via apt/dpkg. The command-line version to hold a package is:

echo package_name hold | dpkg --set-selections

Ubuntu Community Documentation has a more complete guide explaining how to pin or hold packages.

Answer above is ripped from here. Following solved the problem:

echo adobe-flashplugin hold | dpkg --set-selections


System running on low graphics ubuntu

Easy solution is not to do any graphic driver changes just run below command and it will solve system running on low graphics problem permanently , Tested on more than 10 system

# sudo apt-get dselect-upgrade


Can I install a 32-bit Java in addition to a 64-bit version?

It's super easy to have multiple versions of Java installed. Somewhat harder (read: tedious) is switching between versions at a whim.

tldr

apt-get one
untar the other
export paths depending which one you want

apt-get one version

Decide which version you'll mostly be using. Or decide which one you want to have automatic updates. Or flip a coin, whatever. You don't even have to use apt-get; just manually maintain both packages on your system (see next heading).

The point is: it's easier to use Ubuntu's package manager to maintain exactly one version of a package like java. You're gonna take care of the rest.

untar the other

Download a jdk tarball. Extract it to /opt.

switch between them

I let the package manager handle my primary install. I export some vars for the other one when I need it. I work on the command line a lot, so it's an okay solution for me. I bother with:

export JAVA_HOME=/opt/jdk
export PATH=$JAVA_HOME/bin:$PATH

Also, I symlink jdk/ -> jdk1.6.0_3/ because I'm lazy and don't like reconfiguring my .bashrc and other scripts every incremental jdk upgrade.

Environment variables you might care about:

JAVA_LIBDIR
JNI_LIBDIR
JAVAJNI_LIBDIR
JVM_ROOT
JAVA_HOME
PATH


Where to configure Memory (xmx) for Tomcat8?

Set an environment variable CATALINA_OPTS (or JAVA_OPTS) into a script named  setenv.sh, in CATALINA_BASE/bin.

From the 'catalina.sh':

Environment Variable Prerequisites

   Do not set the variables in this script. Instead put them into a script
   setenv.sh in CATALINA_BASE/bin to keep your customizations separate.

   CATALINA_OPTS   (Optional) Java runtime options used when the "start",
                   "run" or "debug" command is executed.
                   Include here and not in JAVA_OPTS all options, that should
                   only be used by Tomcat itself, not by the stop process,
                   the version command etc.
                   Examples are heap size, GC logging, JMX ports etc.

OR

   JAVA_OPTS       (Optional) Java runtime options used when any command
                   is executed.
                   Include here and not in CATALINA_OPTS all options, that
                   should be used by Tomcat and also by the stop process,
                   the version command etc.
                   Most options should go into CATALINA_OPTS.


Ubuntu (Studio) suddenly not detecting monitors

So, in case this helps somebody else, I was able to solve the problem.
First I went ahead and upgraded everything ("sudo apt update" then "sudo apt upgrade"), and rebooted, though this action did not fix the problem (and might not have been relevant to the solution -- I did notice that NVidia drivers were upgraded at that time, but it didn't help.)
Second, I said "sudo ubuntu-drivers devices" (which showed some info), then "sudo ubuntu-drivers autoinstall", then reboot.  And presto!  It's as if the problem never occurred.
I still have no idea what brought the problem on in the first, place, but everything seems to be back to normal.


Installing Skype from the website does not install these additional dependencies:

libdbusmenu-qt2:i386
sni-qt:i386

One of which (sni-qt:i386) is needed for this functionality, so either just install this additional dependency with:

sudo apt-get install sni-qt:i386

Or replace your current Skype installation with the one from the repository which will install the extra stuff and remove the Skype you installed from the website (which is known as skype:i386):

sudo apt-get install skype

This should work for Unity, however if you are using Gnome then you should install this extension: Appindicator Support.

Also please don't say that I am just ripping off this answer, because if you look in the edit history for it, you will see that I basically wrote it all anyway.


It turns out this is simple. Selecting Movie-> Properties puts the desired info back on the sidebar and then totem stays that way upon opening the next movie until you request the playlist again.

See below:


Do any Ubuntu-based distributions ship with Unity?

What would be the need of an Ubuntu spin off with unity if Ubuntu 11.10 come shipped with unity by default? Of course, you can install gnome, and personlize it at the max, since this is Linux, but there is no need to make a spinoff for something that is already included in the OS by default ^^


See /etc/cups/printers.conf and add
AuthInfoRequired username,password

to the printer segment of your printer (each printer that requires this needs 1 line) with the username and password you require. You need to stop cups before and start it after doing this.


Assumption: You successfully installed Ubuntu, now getting "a black screen" when attempting a boot.
Hit ESC once at the moment the BIOS displays disappears - do you get "grub menu"? If yes, check for "Recovery mode":
In the recovery mode menu:

select the "fsck" option to enable write mode for your main disk,
select "start network" to enable the use of apt install ... (which retrieves programs from the net) in a root shell.
Finally drop to (enable, start) a "root shell"; you will need and extra ENTER to get to it.

What the ACTUAL problem is might be revealed by this:
At the root prompt begin with dmesg | less and start reading from the end backwards (hit > and then up arrow, also: h will display the viewer options at that stage).
Add text to your question (edit!) to tell what you see - if you cannot get forward on your own (google?).
I would guess you need some form of nvidia driver.
Type:
$ apt install nvidia-driver- then hit TAB (twice?) ... and a load of stuff named nvidia-driver- will appear.
Pick the simplest name, probably with a version number in it (try picking the largest) and complete the name for it (type first or a few characters, hit TAB to "complete" it, completion stops at a point where there are more than one option, type more and hit TAB again...).
When a space appears, you have one selected a package, then hit enter to start the install.
Note: That is my GUESS what you need to do. This MIGHT be wrong though, depending on your findings with dmesg above.


If you are in list view in Nautilus, click over the top of the column "Date Modified". This will sort your files by date (newest to oldest). If you click twice, it will sort them from oldest to newest.

For a solution that affects all directories choose Edit -> Preferences and set your preferred layout:


How to Convert All The .MOV Videos To .MP4 in folder

Here are the proper methods:

Stream copy

If you simply want to re-mux instead of re-encode, and if the input streams are compatible with MP4, you can just stream copy. It is fast and will preserve quality:

mkdir out
for f in *.mov; do ffmpeg -i "$f" -c copy -movflags +faststart out/"${f%.mov}.mp4"; done

Re-encode

If you want to re-encode:

mkdir out
for f in *.mov; do ffmpeg -i "$f" -c:v libx264 -crf 23 -preset medium -c:a aac -strict experimental -b:a 192k -movflags +faststart out/"${f%.mov}.mp4"; done

Adjust -crf and -preset according to your needs as described in FFmpeg Wiki: H.264 Video Encoding Guide. Or just rely on the defaults if it looks acceptable (-crf 23 -preset medium will be used if you omit these options).

For audio info see FFmpeg Wiki: AAC Audio Encoding Guide.

Stream copy one stream, re-encode another

Of course you can do both if you prefer:

mkdir out
for f in *.mov; do ffmpeg -i "$f" -c:v libx264 -c:a copy -movflags +faststart out/"${f%.mov}.mp4"; done

Getting ffmpeg

Since you used the ffmpeg tag I'll assume that's what you want to use. Ubuntu 14.04 doesn't provide ffmpeg, but even if it did I would recommend using a recent build since development is very active. You have 4 main options as described in FFmpeg on Ubuntu Trusty (static build or PPA is easiest).


I am trying to build and install this driver but failing

The typical instructions should be:

./autogen.sh
./configure
make
make install

configure creates a Makefile, so without configure Make cannot do anything.

Are you shure you want to really use this driver?


How to modify partitions without a live USB/CD

Fortunately there is a way to boot a live environment without a usb stick or CD drive.
The overview of this answer is that you boot an iso image stored on your hard drive by adding a custom entry to grub. However always make sure you have backups of any data you cannot afford to lose before trying to modify partitions. These are the steps:
Identify your partitions in grub command notation.
This is probably the least well known part of this procedure. I recommend using your home directory to store the iso image so you need to find where that is from the perspective of the grub command prompt.
You can do this from the grub menu while booting, just press c for a command mode prompt and then ls to list the partitions. You should see a list containing things like (hd0,msdos1) or (hd0,gpt1). These are partitions on your system and you are looking for the one containing your home directory. To do this type ls (hdX,Y)/ at the command mode prompt to list the contents of the top level of that partition. If you don't have a separate home partition you are looking for the partition containing home/ as below. If you do have a separate home partition you are looking for john/ or jane/ or what ever your username is.

If your system boots straight into Ubuntu you can make the grub menu visible by pressing the shift key (legacy system) or the Esc key (UEFI system) while booting.
Download the iso
Download the GParted iso from  https://gparted.org/download.php . It's smaller than the Ubuntu iso but that works too. Choose where to permanently store it. In this example I chose my home directory and renamed the iso to gparted.iso rather than use the longer name that was downloaded and which specifies the gparted version. That means my iso is held at /home/user/gparted.iso
Modify grub
The next step is to modify your /etc/grub.d/40_custom file. Your file needs to look like this:
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
menuentry "GParted ISO" {
    set root=(hd0,msdos1)
    set isofile="/home/username/gparted.iso"
        loopback loop $isofile
        linux (loop)/live/vmlinuz boot=live union=overlay username=user components noswap ip=net.ifnames=0 toram=filesystem.squashfs findiso=$isofile
        initrd (loop)/live/initrd.img
}

The /etc/grub.d/40_custom file should already have the first 5 lines and may have other custom entries if you have added them in the past. You can keep any previous additions untouched.
Your version of the file will be slightly different. You need to change the the correct parameters for the root=(hdX,Y) line. You also need to get the correct path for your setup in the set isofile="/home/username/gparted.iso" line. If you have a seporate home partition it should be set isofile="/username/gparted.iso".
You can edit the file however you like but one way to do it is to open a terminal in your home folder and use the following:
a) cp /etc/grub.d/40_custom 40_custom.bak (this makes a backup of your 40_custom file in your home directory)
b) cp /etc/grub.d/40_custom 40_custom (this makes a working copy of your 40_custom file in your home directory which you edit in your editor of choice)
c) sudo cp 40_custom /etc/grub.d/40_custom (copies the modified file back)
d) sudo update-grub
When you reboot you should get a grub menu with a new entry for "GParted ISO" which will boot you into the GParted live enviroment where you can modify your partitions. I follow partitioning questions so if you hit any problems and cannot find an answer by searching Ask Ubuntu ask a new question and I'll help if I can.


Strange "ghost images" / transparency effect in full-screen videos

My config is Firefox 64.0, Ubuntu 18.04.1. Experienced the same problem. After searching and reading, finally was able to fix it.

Changed layers.acceleration.force-enabled option to true in the about:config

Edit: You may also try to create mozilla.widget.use-argb-visuals as Boolean and set it to false in about:config

Source: Firefox Bug 1516224 Semi-Transparent YouTube video playback


Remove main user password without loosing ability to sudo

From a Terminal, execute
gsettings set org.gnome.desktop.lockdown disable-lock-screen false

Then, Settings -> Privacy -> Screen Lock -> [Move the slider to Off].

The discussion here tell you how to set a new root password if you've lost it: Root shell is not helping in recovering access to administrator account whose password I have lost


You need to use your Windows installation CD or Ubuntu installation CD and format the partition from there(That is while installing). You don't need to proceed once formatted. Just go back and then use Disk Management in Windows to use your partition


Shotwell defines Events as 'A group of photos that were taken at approximately the same time.' This is a grey area, and things like batches of scanned images, multiple photo shoots with multiple imports the same day, or sets of photos taken around midnight, can leave you with an event structure that you might not prefer.

If your goal is to have Shotwell sort photos strictly by individual dates, then this is a long-standing bug report/feature request (#2747). Disabling events entirely and using date only is another closely related request (#2665).

Questions that are bug reports (and feature requests are a subset of bug reports) are off-topic on Ask Ubuntu so your question may be closed.

If you want to manually sort the images in question, creating events and moving groups of images in to each event, Shotwell's help page describes how. I'll summarize here but it's best to read that entire page.

To rename an event select Events -> Rename Event or double-click it and type.
To move photos between events, drag any photo to the sidebar and drop it on an event.
To create a new event select Events -> New Event

If you find that any of the photos have the wrong date/time that's easy to adjust too.


Ubuntu 18.04 screen freeze and crashes every time I launch Visual Studio Code

Found a solution that seems to have worked for me so far

I'd a similar problem. Try the following

make a copy of the grub config

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

open the file grub file

sudo nano /etc/default/grub

search for a line beginning with GRUB_CMDLINE_LINUX_DEFAULT and add the following parameter to this line

intel_idle.max_cstate=1

update grub

sudo update-grub

reboot

If it doesn't work delete the property and update grub again


Permanently disable tap to touch on XFCE-Awesome WM without using a Upstart script

I have added this in my rc.lua to manage synclient.

local awful     = require("awful")
-- {{{ Autostart applications
function run_once(cmd)
  findme = cmd
  firstspace = cmd:find(" ")
  if firstspace then
     findme = cmd:sub(0, firstspace-1)
  end
  awful.util.spawn_with_shell("pgrep -u $USER -x " .. findme .. " > /dev/null || (" .. cmd .. ")")
end

run_once("synclient MaxTapTime=0")

It requires awful to be installed.


After you put your aliases in .bash_aliases, open .bashrc file, find and uncomment or add next lines:

if [ -f ~/.bash_aliases ]; then
    . ~/.bash_aliases
fi

Reload your session and check your new aliases.


How to split the disk partition having Ubuntu?

You need a live CD. Manipulating partitions can't be done while mounted unless you used LVM (and even then there could be some problems).


After plenty of digging around on the web, this is what I found. You need to go to the indicator preferences:

Preferences->Indicator Items->Add

Then you create a blank entry by pressing the space bar and save it.

This is a temporary work around though, but it will solve your problem. Worked for me on Ubuntu 14.04 and using v0.4 of the indicator. See comment #6 in the link below:

https://bugs.launchpad.net/indicator-multiload/+bug/1348961


How to restore/recreate etc/nsswitch.conf files

This file is relatively generic, I would copy it from a working system of the same Ubuntu release

This should at least get you going - it's the default from xenial and should work regardless on pretty much any version.

# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd:         compat
group:          compat
shadow:         compat
gshadow:        files

hosts:          files dns
networks:       files

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files
netgroup:       nis


Is this a CRT or an LCD?  You are using the SVGA connector, not DVI right?  If this is an LCD and it has a DVI connector, you should use that instead of SVGA.  Does your monitor have a button that brings up the on screen status display that tells you the resolution and frequency it is running at?  Is it running at 60 Hz or 70 Hz?  What about in 800x600?

I had this happen to me once when I used a cable TV tuner card because there was a 48 volt 60 Hz AC signal on the line, which caused a small 60 Hz ripple on the ground plane.  If the monitor is running at 70 Hz, then it sets up a 10 Hz beat that scrambles the horizontal refresh signal and causes the edges of the monitor to wobble.  Running the monitor at 60 Hz stopped the wobble, but still left the edges annoyingly bent.  The DVI connector should be immune to this.


If your SSD shows up as a separate 16 gigabyte drive I don't think so.

I came across some  forum posts talking about Lenovo hybrid disks. It seems to be a Hybrid drive in some sense yes.

But it seems to require software in the running operating system.

"Real" hybrid drives transparently move files to the SSD part of the drive to "boost" performance. and present themselves as a single drive to the operating system.

Since they check blocks being read / written often and move those blocks to the SSD part of the drive they are filesystem agnostic and work on any or multiple operating systems.

Llimited space of the SSD part and the algorithm is constantly trying to optimize for the current running OS. Switching between operating systems often will lower the performance gain. The longer you stay on the same OS the bigger the optimization gain of the hybrid will be for that particular OS.


Micromax MMX 310G Data Card is not being recognized as a modem

Have you perhaps had a look at this guide?

How to run micromax MMX 310G in ubuntu

There is also another guide on the Ubuntu Forums here:

Here

Let us know how you get on.


(in Gnome) KTorrent "open folder" starts Banshee

The tiny KDE brain uses the xdg-open standard for determining which application to open for a specific mimetype.

In the GNOME system settings, I think it can be found under Details>Default Applications, but I don't have a GNOME install to verify.

If you have KDE System Settings installed (the systemsettings package), then you can go to Workspace Appearance and Behavior->Default Applications->File Manager, then find nautilus and select it.

To do it manually, the file to modify is ~/.local/share/applications/mimeapps.list.  Content of the file should be:

[Added Associations]
inode/directory=nautilus-2.desktop;


GNOME Shell is simply Gnome Classic. What am I doing wrong?

Your friend's laptop includes a fancy new thing where it actually has two video cards: one for low power consumption when it isn't doing much and one powerful one for performance on the fancy stuff. Linux support for the switching mechanism between the two is still pretty sketchy.

For that laptop in order to get fancy accerated desktop stuff like Gnome-3 to function, you will need to be running on the faster ATI graphics card. This requires a proprietary binary driver to be installed.

If you search in the settings manager for "drivers" you should get a program (install jockey if it doesn't show up) that lets you manage proprietary drivers.

How do I install additional drivers?

Once you get drivers installed and activated that support OpenGL acceleration, Gnome-Shell should start working. Until then, it will continue to revert to the "classic" mode.


LibreOffice icons hard to see with dark themes

I've found out that I could just install a new icon theme using the terminal. See the available themes with:

sudo apt install libreoffice-style

You get this:

  libreoffice-style-sifr 1:5.1.6~rc2-0ubuntu1~xenial3
  libreoffice-style-oxygen 1:5.1.6~rc2-0ubuntu1~xenial3
  libreoffice-style-human 1:5.1.6~rc2-0ubuntu1~xenial3
  libreoffice-style-hicontrast 1:5.1.6~rc2-0ubuntu1~xenial3
  libreoffice-style-elementary 1:5.1.6~rc2-0ubuntu1~xenial3
  libreoffice-style-tango 1:5.1.6~rc2-0ubuntu1~xenial3
  libreoffice-style-galaxy 1:5.1.6~rc2-0ubuntu1~xenial3
  libreoffice-style-breeze 1:5.1.6~rc2-0ubuntu1~xenial3
  libreoffice-style-mint 5.1+3

To get the oxygen theme:

sudo apt install libreoffice-style-oxygen

After a few tries I've found that oxygen icon theme works great with the dark theme I have currently installed (and will probably look good with others as well). You can select the theme from the window (Tools -> Options) in the screenshot (click to see it bigger). Here's how it looks now:

Another one that works great is libreoffice-style-elementary.

Sifr is not bad if you prefer monochrome.

That can be made whiter as indicated here.


Answered by OP in a comment:

  After checking the screen resolution, I realized I had the option to
  change position and horizontal size of the display in the TV and that
  fixed the problem.


Well, I had windows 8.1 installed and I had few problems, you should try doing the following:
1) Use easy-bcd to get your Ubuntu option back
2) when in Ubuntu, just open a terminal and type in: 'sudo update-grub' (it will make grub your default boot loader, if you have burg install type in 'sudo update-burg')
3) Disable Windows 8.1 fast boot (http://www.askvg.com/fix-windows-8-restart-and-shutdown-problems-by-disabling-hybrid-shutdown-feature/), fast boot will make ubuntu unable to access your windows partitions


Blinking Cursor After "Enable Networking" in Recovery Mode and unable to do anything else.

Another (better) answer, is that for the Enable Networking command, you have Network access. Who would have thought? ; ) So, when in the terminal, get hard-wired-in, of course.


Try the following to get all the dev libraries you need;

sudo apt-get install libgtkdataboxmm-dev fftw3-dev

Then do your  ./configure && make


Enable global menu on Eclipse running on minimal Ubuntu Core

Install the required libraries

sudo apt install unity-gtk3-module

Set GTK module variable to use Unity module, add the line below:

$ nano ~/.profile

export GTK_MODULES=$GTK_MODULES:unity-gtk-module


ldconfig finds a library, ldd still doesn't

The problem was that Dwarf_Fortress was a 32-bit binary (I found out with file Dwarf_Fortress), and the libraries I was installing were 64-bit. Adding :i386 at the end of the apt-get command installs the i386 versions of the libraries, and that works.


Canon MX320 printer doesn't print any more

In Ubuntu you not needed to care on drivers for printers. Just got to setting > printers and add a new. Ubuntu finds your printer.

It must be plugged in via USB.


Install Lubuntu 15.10 with encrypted lvm

It seems to be a bug in the gparted section of the installation. There must be something wrong with the unencrypted swap area checker. If it jumps on (and it will do so to ruin your day), it's gonna say: 'unsecure swap area detected, aborting now'. And it will detect an unencrypted swap area, even if there really is one. So...

Solution:

1) Start (L)ubuntu and choose "try" instead of "install"
2) After
booting up, open a terminal and enter "sudo swapoff --all"
3) Click "install (L)ubuntu" on the dekstop
4) After chosing 'something
different' right before the partitioning of your future USB (L)ubuntu
stick, set up your boot, encrypted root and encrypted swap partition.
Afterwards set the mount point / for your encrypted root drive (mounted encrypted partitions under /dev/mapper) and
set the other partition to use as swap area.
5) Also don't forget to choose the correct device for the bootloader in the pull down menu below.

After installation boot up the stick and you will be prompted (twice) for the password you set before, in order to boot up your full encrypted (L)Ubuntu USB system.

Unsafe swap space detected
http://linuxbsdos.com/2014/05/28/how-to-install-ubuntu-14-04-on-encrypted-mbr-partitions/
http://linuxbsdos.com/2014/01/16/manual-full-disk-encryption-setup-guide-for-ubuntu-13-10-linux-mint-16/


Adding tap device to bridge causes DNS to fail (sometimes)

Ok, I solved it.
The problem is that the bridge device uses the lowest mac address number of its children as its own by default.
Since the mac addresses for the tap device are more or less random, it sometimes changes the mac of the bridge, and sometimes it does not.
The random MAC is blocked by the DNS in my network.

Luckily, if you assign a MAC to your bridge it will keep it. So I need to add a permanent mac address to the bridge like this

ip link set br0 address {MAC-ADDRESS}

or to have it at boot I can add post-up line to /etc/network/interfaces

iface br0 inet dhcp
  bridge_ports    eth0
  .
  .
  .
  post-up ip link set br0 address {MAC-ADDRESS}

For further information see http://backreference.org/2010/07/28/linux-bridge-mac-addresses-and-dynamic-ports/


Map the Caps Lock key to the Super L key

xcape is an application that maps keys to other keys. It is a program that you start up in the background when you log in. I have not tried it personally, but you should be able to set it up to map Caps Lock to some other key.


Can you Install Ubuntu From a USB on a Windows 8.1 Computer

Well I am not sure if I am right or not but, I found my USB from HDDD. Just go to Boot>First priority> HDDD. After that find HDDD at the bottom of the thing. Open that and follow the instructions to make your USB on top of the list and then restart. Have Fun! I just got this today but, it seems kinda slow.

Edit: You also need to make your iso file into a bootloader. Do this before you actually try to install it in the BIOS.


Difference between Ubuntu Base, Core, Minimal

Ubuntu's main releases use deb package (deb are also used by Debian).  All deb based releases are year.month in format, eg. Ubuntu 20.04 LTS Desktop.
Ubuntu Core is not a deb based system thus uses a different format, namely year only, eg. Ubuntu Core 20. These releases can use snap packages only, no LTS gets mentioned normally as all releases have 10 years of support.
Minimal can mean two things, there is a minimal install option where the full install occurs (ie. installed image is written to the disk) then if you selected a minimal install, packages listed on a list are removed (creating the minimal install option).
There is also a netboot or mini ISO that is a network loader; it boots the system and asks what type of install & downloads all packages from the web & installs. See https://wiki.ubuntu.com/Minimal You may have meant that, but a minimal-install option is generally more common and what you mean.
The Ubuntu base is the same base found on all systems (be they desktop, server, core etc).
There for sure are many other things to consider

resources; what apps you'll use will dictate the most efficient system
intended use
support life versus latest software?
how much maintenance are you willing to do, when etc..
etc, each with pros & cons.

The best for you depends completely on your intended use, applications etc.. which is a very opinion geared question not encouraged here (better for forums, Ubuntu forums can be found at https://ubuntuforums.org/.


Winetricks can't read cd when installing game

Looking at the winetricks verb, it seems as though it was designed for the 4 CD set of KOTOR rather than the DVD edition.

However, also looking at the winetricks verb, it seems that it doesn't do much more than click the buttons for you.  You should be able to install the "classic" way (by just opening the setup file on the disk with Wine).

There is one "workaround" in the winetricks verb for KOTOR: You may need to set a virtual desktop using winecfg inside if you run into weirdness in certain resolutions.


do I need a server distro to run servers?

You might be better off running a server edition on a virtual machine within your usual desktop environment, then access that VM only through SSH to replicate a real world scenario better.
Either type of distro can be configured however you prefer, but the Desktop versions may interfere with background server configurations in unexpected ways.


This problem can happen when you unplug the drive or interrupt it while it is still active. The controller of the drive notices that something went wrong and marks the drive as 'dirty'. It is about the same what can happen with a regular hard drive. A hard drive can usually be repaired by performing automatically or manually a repair action. With flashdrives it is a matter of good or bad luck. Sometimes it can be repaired, sometimes it enters a read-only state like yours did and unfortunately this is irreversible. So your flashdrive is bricked now and you can only try to rescue the data it contains.


It is indeed possible to create a global template folder as the picture shows.

To do this you can edit the file ~/.config/user-dirs.dirs

Change the line XDG_TEMPLATES_DIR="$HOME/Templates" to XDG_TEMPLATES_DIR="/opt/Templates" if your global folder is in /opt/Templates

Note 1 - you should consider carefully the permissions you give this template folder.  I would suggest you should give read-only rights with a common group shared by those users of a client.  Obviously try to avoid 777 rights to this folder since this makes the folder read-writable to everyone and anyone.

Note 2 - the XDG_TEMPLATES_DIR folder needs to be EITHER a folder locate in the users home or  an absolute folder (full path to the folder starting with /)

Note 3 - you dont necessarily need to modify user-dirs.dirs.  You could remove the local home-folder and soft-link it to your global templates folder i.e.

cd ~/
rmdir Templates
ln -s /opt/Templates Templates

Note 4 - logout and login for changes to take effect


Port forwarding through ssh tunnel Showing Warning: remote port forwarding failed for listen port 99

Only root can use well known ports, or those between 0 and 1023. I am assuming (and you should not be) sshing into the machine as root. Try a much higher port, such as 8080.

/etc/ssh/sshd_config needs to allow for Port Forwarding, as well.


Ping 8.8.8.8

If this ping is successfull, then check /etc/resolv.conf if this contains 127.0.0.1 please use following code to fix this partially as you need to run this code every time you change network.

cat /etc/resolv.conf
nameserver 127.0.0.1
sudo dhclient $connectionname #mobileBroadband in your case

This will set you DNS Server to what you ISP provides, Alternatively you can try

vi /etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4

and edit the above file with Google public DNS (8.8.8.8) or Open DNS(208.67.222.222)
and check again.


Why does launching my own script from a launcher only work once?

It does work

...even tested it, but the launcher icon is unresponsive for about 7 seconds after you clicked. If you click again after these 7 seconds, it will work again.

This "break" is caused by the icon, waiting for a window to appear. This won' t be the case, since the appearing gnome-terminal -window is "claimed" by the gnome-terminal's launcher icon, and your "home-made" icon does not recognize the window as "his".

Solution?

You could solve the issue by adding a line to your launcher (14.04)

StartupWMClass=gnome-terminal

or (16.04):

StartupWMClass=gnome-terminal-server

however, only do this for reasons of testing, don't use this as a permanent solution; having mutiple .desktop files, possibly claiming the same WM_CLASS in their main command is a bad idea, it will cause clashes in how gnome-terminal appears in the Unity launcher.

Better solution

Better add your script as a right-click option to the existing gnome-terminal launcher:

Copy the global gnome-terminal launcher from /usr/share/applications to

~/.local/share/applications:

    cp /usr/share/applications/gnome-terminal.desktop ~/.local/share/applications

Open the file with gedit:

gedit ~/.local/share/applications/gnome-terminal.desktop

Change the line:

Actions=New;

into:

Actions=New;My Script;

and add the section:

[Desktop Action My Script]
Name=My Script
Exec=gnome-terminal -e "bash /absolute/path/to/your/script.sh"

to the very end of the file. Then log out and back in, and you'll have your script available as a quicklist- shortcut in the gnome-terminal launcher.


At the grub prompt (if it gives you a menu, hit 'c' first), I believe you can type:

root (hd0,0)
makeactive
chainloader --force +1
boot

That should get you back into windows. You may need to use the 'ls' command at the prompt to figure out which hd you need.

Once in windows, open an elevated command prompt, and issue the following commands:

bootrec /fixmbr
bootrec /fixboot

After this, you should be able to boot back into windows normally.


Problems re-establishing wireless connection after messing with ndiswrapper/modules

Please reinstall the ndiswrapper suite. From a terminal:

sudo apt-get install --reinstall ndiswrapper-common ndiswrapper-utils-1.9 dkms

Now see if you can load the module:

sudo modprobe ndiswrapper

Check for informative messages:

dmesg | grep ndis

If the module still cannot be found, compile ndiswrapper from source. With a temporary wired ethernet connection:

sudo apt-get install linux-headers-generic build-essential

If one or both are already installed, please proceed. Download this file to your desktop:  http://sourceforge.net/projects/ndiswrapper/files/stable/ndiswrapper-1.59.tar.gz/download Right-click it and select 'Extract Here.' Now back to the terminal:

cd ~/Desktop/ndiswrapper-1.59
make
sudo make install
sudo modprobe ndiswrapper

Now is it working? Check:

ndiswrapper -l
iwconfig

Reload the Windows XP .inf file. Find out where it is; assuming it's in a folder on your desktop:

cd ~/Desktop/WindoowsDrivers  <--or wherever the original .inf is located
sudo ndiswrapper -i <some_file>.inf  <--or whatever the file is named
sudo modprobe -r ndiswrapper && sudo modprobe ndiswrapper

Check:

ndiswrapper -l
iwconfig

Please be sure that rt2800pci is not loaded:

lsmod | grep rt2

If it is loaded, unload it and blacklist it:

sudo -i
modprobe -r rt2800pci
echo "blacklist rt2800pci"  >>  /etc/modprobe.d/blacklist.conf
exit

Is yours a 64-bit install?

arch

If so, you will have difficulty getting ndiswrapper to work at all and even if you do, you need an x64 .inf file. If you decide to reinstall, I will be happy to help you troubleshoot the native driver rt2800pci.


About upgrading on Dell Inspiron 15, 3000 series from Ubuntu 14.04 to 16.04

In general, people don't post successful installs or upgrades. they post about failures. thus you have to try and objectively quantify the number of fail posts. the easier it is to find a post about a failure, the higher the change that you will have difficulty, this does not mean that it is impossible either.

most problems occur with device drivers. look for specific issues with 16.04 and your hardware. and how readily it was corrected.


This solution is aimed at enabling you to log-in to your system. You will need to investigate the cause for this later. It is, however, much better to do from a functional system rather than a system which does not boot correctly.

Please follow the steps below:

Reboot your machine and hold the Shift key as soon as you pass the BIOS logo to access the GRUB boot menu. You might need to repeat this a few times until you succeed and see the boot menu. This link will help.

Select advanced options and hit Enter.

Select the second option with (recovery mode) in front of it and hit Enter.

Wait until the machine boots and another menu appears. Choose the option with drop to root shell prompt in it and hit Enter.

Press Enter when it says press Enter for maintenance.

Once you are presented with a command prompt, write the following command and press Enter (this will give you read and write access to your system):
mount -o rw,remount /

You will need now to disable the apparmor service. To do this please write the following command and press Enter:
sudo systemctl disable apparmor.service

Reboot your system.

Notice:
If you are still unable to access recovery mode because of the same issue, please try the
following while at step #2 above:

Press e to edit GRUB boot options.
Move the cursor after the last character in the last options line and press Enter to start a new line.
Add systemd.mask=apparmor.service with no spaces and then press F10 to boot the system.

If all goes well and your system boots normally again, you can later trobleshoot and fix the cause then enable the apparmor service again by running the following command in the terminal:
sudo systemctl enable apparmor.service


How to automatically print multiple images per page?

The application digiKam provides a feature called Print Creator with which different layouts of images per page can be applied to the previously selected images.
The created output can be exported to PDF, into a new image and printed directly or via Gimp.


You need to install the gi module for python3, like this:

sudo apt install python3-gi

You can also install it via pip3 (if pip3 is already installed), but be warned that the module name is different:

pip3 install --user pgi

You will need to change all of your references from gi to pgi.


How to install a GUI package from terminal when creating a live cd?

Packaged GUI applications should be installable like any other package. For 32-bit Ubuntu, enable the partner repository, refresh the sources list and install Adobe AIR using:

sudo apt-get install adobeair

adobeair is not availabe for the 64-bit version. Neither from the repos, nor from Adobe.


got into grub rescue after partition of c: drive in win 7

modifying your partition size also caused your partition ID to change. This means grub doesn't know from which partition to boot. Let's say, your /boot directory is on your 2nd partition, aka sda2, then, if your system has traditional BIOS (not UEFI):
in the grub rescue do: linux (hd0,2)/boot/linux-image- and hit Tab for autocomlete (since I assume you don't know your kernel version) and enter, then initrd (hd0,2)/boot/initr and again hit Tab and enter. After that enter boot.

once booted, edit /etc/fstab as root and replace the old UUID with the correct UUID for each partition, which you get from the output of blkid. After that run update-grub as root.


How to run a program installed on the Windows partition with Wine?

Some applications can be copied from Windows to Wine and still work, but don't try this unless you like tinkering under the hood of your car while it's running.
Wine is not designed to interact with an existing Windows installation. If you have any data you need from a Windows installation, browse your Windows filesystems in your normal file manager and copy the data to another location.

WARNING: Do not try to configure Wine to point to your actual
Windows C:\ drive.
This will break Windows and require a Windows
reinstall.
We have tried to make this hard to do, so you probably cannot do it by
accident.
If you do manage this, Wine may or may not continue to operate, but
your Windows install will be 100% dead due to critical parts of it
being overwritten.
The only way to fix Windows after this has happened
is to reinstall it.

Source


What are "/run/lock" and "/run/shm" used for?

Short answer: they store temporary system files, including device locks and memory segments shared between different processes. Don't worry, they usually use a fraction of their "size" shown by df

/run is, in general, a temporary filesystem (tmpfs) residing in RAM (aka "ramdisk"); its meant for storing "temporary" system or state files which may be critical but do not require persistence across reboots.

/run is actually a fairly new innovation, and was added a couple of years ago to replace the multiple tmpfs's that used to be created (including /var/lock and /dev/shm) with a single unified root tmpfs.
The main locations /run replaces are:

/var/run → /run
/var/lock → /run/lock
/dev/shm → /run/shm [currently only Debian plans to do this]
/tmp → /run/tmp [optional; currently only Debian plans to offer this]

/run/lock (formerly /var/lock) contains lock files, i.e. files indicating that a shared device or other system resource is in use and containing the identity of the process (PID) using it; this allows other processes to properly coordinate access to the shared device.
/run/shm (formerly /dev/shm) is temporary world-writable shared-memory. Strictly speaking, it is intended as storage for programs using the POSIX Shared Memory API. It facilitates what is known as inter-process communication (IPC), where different processes can share and communicate via a common memory area, which in this case is usually a normal file that is stored on a "ramdisk". Of course, it can be and has been used in other creative ways as well ;)
Do not be alarmed about the size: importantly, many people running df -h and knowing that /run is backed by RAM are shocked that their precious memory is being "wasted" by these mysterious folders. Just like the Linux ate my RAM myth though, this belief is incorrect.

The size shown is only the maximum that may be used
It defaults to 50% of physical RAM
Only as much shown in the Used column is actually in use, which in the above screenshot is less than 1 megabyte total
You can use the ipcs -m command to verify that the actual shared memory segments used match up to the df summary, and also see which PIDs are using them
Like your regular RAM, /run is also eventually backstopped by your swap, so if you are using /run/shm for "faster" compile times, keep that in mind ;)


You only need 1 boot manager like the one that comes with Windows, or Burg or Grub or Lilo, etc.

The best course of action is to install Ubuntu on sdb, let Ubuntu install Grub, and you'll get a menu that will give you the option to choose whether to boot Windows or Ubuntu.

If you really want Burg you can install it instead of Grub.


Oracle VirtualBox can do all those things very nicely. It has easy to create snapshots, the machine's hard drive is a portable file so you can back it up, and has an optional GUI. There are other options, but none are as crazily simple as VirtualBox. It's super powerful, but so easy with the GUI a kid can use it. There are also ways to remotely use the VMs built right in VBox. If I were you I would download it from the website vs installing from the repositories, that way you have the latest version.

For your particular use, you will need to forward the network ports:
http://www.howtogeek.com/122641/how-to-forward-ports-to-a-virtual-machine-and-use-it-as-a-server/
http://www.virtualbox.org/manual/ch06.html


The multiboot solution Easy2Boot is based on grub4dos and you can make an E2B USB drive from linux.
Just make an E2B USB drive and simply copy over your XP ISO file to the \_ISO\WINDOWS\XP folder.


Reinstalling Ubuntu on a partitioned hard drive

Here's what you should do:

Boot from the DVD.
Go through the initial steps but choose Something Else when you are presented with options on the installation type. It's usually the last option.
Look for your Ubuntu partition in the list. Identify it by its size, type, or the comments in the last column. Its type is probably ext4 and the last column could read Ubuntu or something. That's the partition.
Double click the partition. Pick "Use as" ext4, type in / for the "Mounting Point", and click OK. Check the format? box next to it so that the partition will be formatted.
Now, your table should read mount point / next to your old Ubuntu partition, and you might see a partition with type swap somewhere. Click next.

This will format that partition (because we chose format?) and install Ubuntu on it (because we made it mount point /). If you follow these steps, nothing will happen to your other partitions (such as Windows).


This is very vague... What are the circumstances? Does someone know your password?

Generally if you believe password to be:

Weak Password (Not very strong)
Known by someone else. (who is not trusted) (Compromised)

You can change the password by logging to your account and typing: passwd or passwd username(if you would like to change another user's password.)

However if you do believe your system (or password) to be compromised you should check your system for any unauthorized access, data breaches and or backdoors which may allow an attacker access to your server even after changing your passwords.

I would also recommend changing all other system passwords, such as MySql account passwords.


RTL8723BE 14.04 Kernel 3.19.0-26 Log in prompts

It's fixed! Ended up doing an update through wired to kernel 3.19-36 and after kernel update wifi started to work. Thank you Pilot for the DKMS drivers and your help around the forums.


Throwing error message when opening terminal

You're almost there, the file to edit is $HOME/.bashrc, not just bashrc, don't forget the dot (.) in front of bashrc. Open it from a terminal as:

gedit ~/.bashrc

and remove those lines.


According to your edits:

you disabled the ATI drivers and it works automatically.

Problem solved, at least for now.


I have solved both keyboard and networking issues (keyboard not recognized and no network connection) by rolling back to kernel 3.0.0-15-generic-pae.

Just selected 3.0.0-15 in "Previous Linux Versions" section of GRUB menu.

If that works yuo couldalso uninstall newer kernel (sudo apt-get remove 3.2.0.24) and update GRUB (sudo update-grub).

Hope this helps.


nvidia-settings (&prime-select) fails to switch GPU after removal of GRUB

Well, you are using a Linux distribution that does use grub by default and many scripts assume that the grub tools are available to make changes that are easy to use for ordinary users.

Now if you change something like the bootloader, which is an essential part of the distro, the only one to blame is you.

An easy way to fix your problem would be to comment out the subprocess.call(['update-grub']) and replace it with pass, to make the function _update_grub do nothing.

def _update_grub(self):
    #subprocess.call(['update-grub'])
    pass

But you also might want to exchange this function to update the bootloader you are using to pick up an eventual newly generated initial ramdisk.


How can i make menu boot windows and ubuntu?

From https://help.ubuntu.com/community/Boot-Repair, you can choose the second option to install Root Repair in Ubuntu by running the following commands in a terminal within Ubuntu:

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo sed 's/trusty/saucy/g' -i /etc/apt/sources.list.d/yannubuntu-ubuntu-boot-repair-trusty.list
sudo apt-get update
sudo apt-get install -y boot-repair && (boot-repair &)

The link above also has instructions on how to use it, but the easiest way is just to open Boot Repair and then click [Recommended Repair].

Hopefully this should get you up and running with a dual boot.


Ubuntu 16.04 on Macbook 8,1 CPU and integrated GPU overheating issues

You can try updating your Graphics drivers using Oibaf's PPA and seeing if that solves the problem:

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

To revert it, install the ppa-purge package,

sudo apt install ppa-purge

and remove the repository:

sudo ppa-purge ppa:oibaf/graphics-drivers


after upgrade to 17.10, Samba shares are not accessible from XP or Android

After I did not find any hint anywhere, I started over. I deleted smbuser and replaced samba.conf with the original one, restarted smbd and nmbd.

Now, I only used system-config-samba to setup.
It works now, including access from XP and Android.
Comparing the tool-generated samba.conf with my previous try, I did not find significant differences, there also seems no need for "ntlm auth = yes".

Anyway, it works.


Ubuntu 15.10 supports 32-bit EFI. The 32-bit version will, in fact, automatically install a 32-bit EFI bootloader. Unfortunately, Canonical doesn't offer a bootable 32-bit ISO that has an EFI bootloader in the DVD image. So, we must create the install disk ourselves.

Other instructions try getting 64-bit Ubuntu to run and install. This probably comes from a misconception that EFI requires a 64-bit OS. This is false. In fact, the bitness of the EFI is meant to be tied to the bitness of the OS. Most PCs are designed for 64-bit OSes and therefore have 64-bit EFIs. However, cheap PCs designed for a 32-bit OS have 32-bit EFI.

Keep in mind, however, that Ubuntu (or rather, its Linux kernel) doesn't fully support the hardware in the systems which typically ship with 32-bit EFI BIOSes (cheap Intel Atom SoCs). WiFi, sound, and power management often do not work. Patched third-party kernels that fix some of the issues do exist, such as those made available here.

To prepare an Ubuntu 32-bit install drive with an EFI bootloader:

Download both 32bit and 64bit Ubuntu ISOs. (Tested with Ubuntu 15.10)
Download a multi-arch Debian ISO. (Tested with Debian 8.2.0 netinst ISO)
Format your USB disk as FAT and mount it

In Gnome Disks, select the USB drive in the left list, go to the "Hamburger Menu" in the upper-right corner, choose Format Disk, select MSR/DOS partitioning, and Format. Then click '+' and accept defaults which should create a FAT partition. Finally, click the "play" triangle to mount it.

Extract installation files from the Ubuntu 32-bit ISO while copying the contents of the symlinks

In Gnome Disks, open the Disks menu (up where File and Edit normally are), choose Attach Disk Image, select ubuntu-15.10-desktop-i386.iso, and mount the biggest partition.
In Terminal, rsync -rL --exclude=/ubuntu <path to Ubuntu 32-bit install disk>/ <path to usb disk>/

Replace <placeholders> with the correct paths
Don't forget the slash at the end of the source path

Copy /boot and /EFI directories from an Ubuntu 64-bit ISO

Mount the iso
rsync -r <path to Ubuntu 64-bit install disk>/boot/ <path to usb disk>/boot/
rsync -r <path to Ubuntu 64-bit install disk>/EFI/ <path to usb disk>/EFI/

Again, the slashes at the end are significant

Copy 32-bit GRUB from a Debian multi-arch ISO

Mount the iso
cp <path to Debian multi-arch install disk>/efi/boot/bootia32.efi <path to usb disk>/EFI/BOOT/
rsync -r <path to Debian multi-arch install disk>/boot/grub/i386-efi <path to usb disk>/boot/grub/

Watch those slashes (this time the source doesn't end in a slash)

Rename vmlinuz to vmlinuz.efi

mv <path to usb disk>/casper/vmlinuz <path to usb disk>/casper/vmlinuz.efi

Unmount everything
Disable Secure Boot on target system and boot from the USB drive.
Install Ubuntu! (I've tested with "Erase disk and encrypt it with LVM" option and the install works automatically--unless the kernel doesn't support the flash chips in the device.)
System should be "ready." It will boot, but actually it may not be very functional due to lack of drivers (as of Ubuntu 16.04). Check out this Google+ group for more advice and latest patched kernels.


Where are all my Empathy settings stored?

From the Empathy FAQ:

Where does Empathy save files (accounts, logs, configuration)?

Accounts settings are saved in ~/.mission-control/accounts/accounts.cfg (except passwords which are stored in gnome-keyring).
New logs (since Empathy 2.31.4) are saved in ~/.local/share/TpLogger/logs
Old logs are saved in ~/.local/share/Empathy/logs/
Empathy configuration is stored in DConf and ~/.config/Empathy/
Avatars are cached in ~/.cache/telepathy/avatars/

Meta-contacts are stored in the file:
~/.local/share/folks/relationships.ini


see the highlighted part in the attachment which means 'close wifi'.


What is the correct way of removing a linux partition in a dual boot system?

Using the install CD to issue a fixboot and a fixmbr from recovery mode is a correct method. It is just the last part of removing anything related to a dual boot when a bootloader (grub) was installed in a partition boot sector. It is not wrong or stupid to do this from within Windows.

Nevertheless... you can also do this from within Ubuntu before removing the partition. You can use

 sudo fdisk -l

to find out your disc lay-out. Example:

Device     Boot    Start       End    Blocks   Id  System
/dev/sda1   *       2048  19531775   9764864   83  Linux
/dev/sda2       19533822 234440703 107453441    5  Extended
/dev/sda5       19533824  39063551   9764864   82  Linux swap / Solaris
/dev/sda6       39065600 234440703  97687552   83  Linux

The one with the * underneath boot holds grub (technically it could be any bootmanager). In the commands below you need to change sda to your device (mostlikely it will be sdb if you have a dual boot).  In this case a...

dd if=/dev/null of=/dev/sda bs=446 count=1

removes grub. And to remove the partition table along with grub you could also do a

 dd if=/dev/null of=/dev/sda bs=512 count=1

I have seen people claim /dev/null should be /dev/zero but you understand that I am not going to issue these commands on my system ;-)

If you are unsure of any of these commands (I hardly expect a new user to understand these) the most logical method to me would be to use Windows recovery mode.

And to back this up with some examples: http://linux.koolsolutions.com/ has 3 methods to remove grub. First 2 methods take the Windows approach and the third uses dd.www.cyberciti.biz has 2 methods. First one is the Windows method and the second one uses dd.

So assuming that when explaining something where there are more than 1 ways you would start with the easiest/best method I would claim most will use Windows recovery. And it is definitely not stupid but very smart to stick with commands you know. It is stupid to use commands you are hardly familiar with.


Open EOG preferences panel on ubuntu 18.04

Click the dropdown menu next to Activities in the top left of the screen. Select Preferences. Uncheck the "Smooth images ..." options.


Install brother dcp195c, receiving data but nothing happens, why?

It's been a while since this was asked, but I just had to solve this myself (I got to this page after googling around, I'm leaving this answer for everyone who comes here with similar problems). This solution is tested and working fine on Ubuntu 12.04 with Brother DCP-195C (though I'm figuring it will work for similar cases as well).

The Brother Solution Center has linux drivers for almost every printer, and, yes, one for DCP-195C. You simply download it (.deb for ubuntu, rpm for red hat), and install (I tried installing the cupswrappper because I read about someone else who did too, but I have no idea what's better). The Ubuntu Software Center will alert you the installation is this and that. Just tell it to ignore and install anyway.

Then:

go to System Settings > Printing > Add.
After connecting the printer you should see it listed as a device. Choose it and click Forward
It will try auto-searching for drivers, ignore the recommendation below and choose 'Provide PPD file'.
If installed correctly, the relevant ppd file should be in /usr/share/cups/model/Brother. Find it and supply it.
That's it! Print a test file to be sure

This worked for me! Hope it helps others as well =]

update 08/2014

Brother now provides a generic script to install its drivers. It's actually quite impressive, simply download it and follow the instructions. You can also manually download the .deb files from here


My dual-boot PC boots directly into Windows since I upgraded my Ubuntu to 20.04 LTS

Go to Firmware settings (Usually F2 during boot). In boot sequence move Ubuntu above Windows boot manager. This will solve your issue.


Monitoring the temperature of Nvidia RTX 30** VRAM?

I too have been trying to find out this vram junction memory temperature for Ubuntu but currently there is no way.
I've even messaged the dev for HwInfo on his forum and he said he has no plans to release this feature for Linux at this time. However I did hear there was something like this for HiveOS, but as far as Ubuntu nvidia-smi has no command at this time of writing February 2021.