Remote connection with NetExtender but internet not connected for the local computer

nameserver is your dns server.

Do you have a DNS at 127.0.1.1?

Also the loopback address is 127.0.0.1, so you may have that IP configured improperly if you're trying to use your local machine for DNS queries.

In most cases DNS "SHOULD" be pointed to your router, or a dns server on the network, or a dns service filtering IP, for example cisco umbrella.

At home, I have my DNS set to google, which is 8.8.8.8

If you're not sure what a DNS is, then set your nameserver to 8.8.8.8

Let me know if that helped.

----- extra info -----

if you're ever able to ping google or any other site by IP address but cannot ping the name of the site ex. google.com, the cause of this is DNS always. DNS is what translates the name to the number so you can reach the website.


Only can move the pointer after upgrading

Note: If you can boot into Ubuntu just fine, skip to step 8.

If this is a video card issue following these steps should fix the problem (make sure you have internet):

Boot as far into Ubuntu as you can
Press Ctrl+Alt+F1 to open a terminal.
Log in with you username and passoword
Run sudo apt-get update
Then

sudo apt-get install gnome-session-fallback

(this one will take a while)  Note: you might be asked which display manager you want to use, select 'lightdm'
After all that is finished run sudo reboot now which will reboot your computer
At the login screen, click on the ubuntu logo, in the top right corner of the window, and select "GNOME Classic" click OK, and login.

8. After you have logged into Gnome Classic, open 'Software Center'
9. Click 'Edit' from the menu and select 'Software Sources'
11. Open the 'Additional Drivers' tab
12. Select the driver you want and click 'Apply Changes'
13. Reboot.

Jockey-gtk has been integrated into software sources inside the software center.

So in 12.10 you change drivers by:

Opening software center
Clicking 'Edit' --> 'Software Sources'
Opening the 'Additional Drivers' tab
Selecting the driver you want and clicking 'Apply Changes'

If the above steps don't fix the problem, then your graphics card is probably not supported.

In this case you have four options:

You can install Ubuntu 12.04 LTS (where I think your graphics card is still supported)
You can continue to use Gnome Classic
You can use Xubuntu by running sudo apt-get install xubuntu-desktop or installing from scratch.
Or you can try Lubuntu by running sudo apt-get install lubuntu-desktop or installing from scratch.

Kubuntu is also worth mentioning, but I'm not sure it will work without drivers.  You can try though.  sudo apt-get install kubuntu-desktop


If you can merge the contents of your drivers partition onto your main Windows partition and get can confidently remove it you can delete that partition and add extended partitions using its space and the contiguous unused space.

At that point if you want to create an Ubuntu partition as well as create a new Windows driver extended NTFS partition you can.

Having four primary partitions is a dead-end it's best to avoid.

If your computer and Windows can deal with it you may also be able to convert the disk to GPT format--it doesn't differentiate between primary and extended partitions and can have a large number of partitions. Both Windows and your BIOS would have to support that move.

I'm confused by one of your comments. You mention having allocated space for the Windows installer already. If I understand correctly and that's an NTFS partitions on the list never used you could delete it, boot from a DVD or USB Ubuntu installer, and then let the Ubuntu installer handle putting Ubuntu into an extended partition (not a primary one). Ubuntu doesn't generally install on an NTFS partition, using a different file system like Ext4. You don't need to create a partition for the Ubuntu installer itself. You can boot an Ubuntu install DVD and the software on it will do the formatting you need.

Unless you are letting the Ubuntu installer do all the formatting automatically you will have to choose "Custom" for the install type.

In any case you would have to be careful about backing up and having a way to use the backup if there is a problem.


How to make the windows' title bars transparent in Ubuntu 18.04?

You can try these CSS rules, but don't expect it to work with all applications.
Open the file ~/.config/gtk-3.0/gtk.css (if the file doesn't exist, create it), and put write this CSS code inside it:

* {
  background-clip:content-box;
}
headerbar {
  background-color:rgba(0,0,0,0.3);
}
.titlebar {
  background-color:rgba(0,0,0,0.3);
}

Save the file and in the terminal run this command:

killall -3 gnome-shell

Whether it works or not, also depend upon your current theme. This trick successfully worked for some of my applications:


Is using Software Updater the same thing as running apt-get update and apt-get upgrade?

Short answer

No, they are not the same. apt-get upgrade doesn't handle changing dependencies between versions, so if a package has changed dependencies, it wont be upgraded (it'll be "held back"). See the long answer for more details.

Using the Software Updater and using sudo apt-get update ; sudo apt-get dist-upgrade (note the dist-) would be almost equivalent, except that one's obviously a GUI and the other's a console application and also a few very minor informational differences.

Long asnwer

From man apt-get,

apt-get upgrade:

upgrade
           upgrade is used to install the newest versions of all packages
           currently installed on the system from the sources enumerated in
           /etc/apt/sources.list. Packages currently installed with new
           versions available are retrieved and upgraded; under no
           circumstances are currently installed packages removed, or packages
           not already installed retrieved and installed. New versions of
           currently installed packages that cannot be upgraded without
           changing the install status of another package will be left at
           their current version. An update must be performed first so that
           apt-get knows that new versions of packages are available.

(emphasis by me)

This means that a newer version of a package which has a new dependency not required in the old version will not be upgraded with this method (unless the new dependency was already installed). These will be shown as "Held back".
apt-get dist-upgrade:

dist-upgrade
       dist-upgrade in addition to performing the function of upgrade,
       also intelligently handles changing dependencies with new versions
       of packages; apt-get has a "smart" conflict resolution system, and
       it will attempt to upgrade the most important packages at the
       expense of less important ones if necessary. The dist-upgrade
       command may therefore remove some packages. The
       /etc/apt/sources.list file contains a list of locations from which
       to retrieve desired package files. See also apt_preferences(5) for
       a mechanism for overriding the general settings for individual
       packages.

(emphasis by me)

This means that with this command instead of upgrade, packages with new (or removed) dependencies can by upgraded.

Example

A good example of the difference between the two is when a new Linux kernel is released. This is packaged into the linux-image-generic package which always depends on the latest package of the Linux kernel. Because the dependencies of linux-image-generic change with each kernel upgrade, upgrade wont upgrade it.


Chrome Remote Desktop Doesn't Show Already Launched Apps

Following the instructions here worked for me (Ubuntu 18.04):

https://medium.com/@vsimon/how-to-install-chrome-remote-desktop-on-ubuntu-18-04-52d99980d83e

Basically you have to make chrome-remote-desktop use the existing X-session instead of creating a new one.


"crepitation" when viewing videos on facebook with Firefox

Search google for

static noise facebook firefox

and you can find that facebook made a new proprietary video serving method, that is only supported in Ubuntu 15 (at least it works on it)


How to tell what libass version is already installed and how to update it

To see if you have libass installed try in your terminal,

apt-cache policy libass
apt-cache policy libass-dev

It will show the version of the package as well. To install libass enter in terminal,

sudo apt-get install libass-dev

If your smplayer is correctly installed try to update libass as,

sudo apt-get install --reinstall libass-dev


Does anyone know why apt-cacher-ng always downloads an index file (Packages.gz) even though its exist on the apt-cacher-ng's cache?

The unexpected redownloads you experience are most likely caused by this bug in the archive infrastructure:

https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1001780

Every two hours all packages files are updated to the current date. Thus they count as new, even with unchanged content, and get downloaded again. This also affects the main distribution packages files which usually remain unchanged until a point release.

Please tick "this bug affects me too" on the launchpad page, if possible.


Normally lsusb lists all devices whether they are directly connected on central unit or via a HUB. For example my mouse, keyboard and a USB key are connected on HUB provided by the screen.
If shows in a flat way:

$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 009: ID 0951:1642 Kingston Technology DT101 G2
Bus 001 Device 007: ID 046d:c050 Logitech, Inc. RX 250 Optical Mouse
Bus 001 Device 010: ID 046d:c316 Logitech, Inc. HID-Compliant Keyboard
Bus 001 Device 005: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Then with a tree representation showing hubs:

$ lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/12p, 480M
    |__ Port 6: Dev 5, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 1: Dev 10, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
        |__ Port 1: Dev 10, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
        |__ Port 2: Dev 7, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
        |__ Port 3: Dev 9, If 0, Class=Mass Storage, Driver=usb-storage, 480M

So it is strange that you don't see the modems if they are switched on.
Can you please send the output of commands sudo lsusb and sudo lsusb -v (which may be a bit long).
Commands are done with sudo, because if you are not user root, some informations may be missing.


How to Change Ubuntu to Custom Resolution in VMWare Workstation

I was able to do this with the following commands, by combining a few previous answers:

Get required parameters with cvt 3840 2160 60 (4k@60hz resolution)
Set the new mode xrandr --newmode "3840x2160_60.00"  712.75  3840 4160 4576 5312  2160 2163 2168 2237 -hsync +vsync
See what is the name of my monitor xrandr --listmonitors
Add the mode with my monitor and the recently configured new mode xrandr --addmode Virtual1 "3840x2160_60.00"
Enable the display resolution xrandr --output Virtual1 --mode "3840x2160_60.00"


How do I install 12.04 onto a nilfs root partition?

As Roland Taylor pointed out, you can first install to an ext4 partition using the installer, then transfer it to a nilfs partition.

Prepare a free partition for the system. It will be mounted as /, let's call it NILFS.

And you need another partition for installing Ubuntu, it can be a usb-disk or another partition on the disk, let's call it EXT.

You don't need a separated /boot partition, as grub 1.99 shipped with Ubuntu 12.04 already supports boot from nilfs2 file system.

Prepare the system

You do a normal Ubuntu install to EXT.

Install nilfs-tools, and format the free partition to nilfs2.

By default, Ubuntu's initramfs doesn't have the nilfs kernel module in it.

You need to regenerating it:

sudo echo nilfs2 >> /etc/initramfs-tools/modules
sudo update-initramfs -u

Transfer the system

Boot into Ubuntu 12.04 livecd. Install nilfs-tools. (You need to change sources in Software Center before apt-get install nilfs-tools.)

Mount EXT and NILFS, then copy your system:

sudo cp -ax /media/EXT/* /media/NILFS/*

(You can use rsync instead.)

Then edit your /media/NILFS/etc/fstab, change the line /. (Change the uuid, ext4->nilfs2. I recommend adding noatime,async,discard mount options for SSD.)

Then edit your grub configuration and reinstall grub. See Ubuntu Wiki for how to tweak with grub. Note that you need to change your grub config file before reinstalling. I suggest to chroot into NILFS, and just use dpkg-reconfigure to change config and reinstall at once.

Now you can reboot into your nilfs2 based Ubuntu 12.04! :-)

Though I've not tested it, but the above instructions should work. In fact, I've used the same method to transfer my Ubuntu 10.04 from ext3 to nilfs2. Since the grub of Ubuntu 10.04 doesn't support booting from nilfs2, I've used ext2 as /boot.  But recently I've downloaded Ubuntu 12.04 live cd to test if 12.04 works on my netbook. So just now I've copied /boot/ back into / partition, changed my grub config file and used 12.04's grub-install to re-install grub. And it worked! (So maybe I can turn the useless separated boot partition into a small swap partition?)

P.S. If you don't like this method, you may try installing via debootstrap. I think it will work too.


There is also another extension called "Activities Configurator", which can be used to change the corner treshold, fully disable the hot corner, or switch it to the top right of the screen.

This extension can also do much more, like adding an icon next to the Activities button, changing the text of the Activities button, or fully removing it.

https://extensions.gnome.org/extension/358/activities-configurator/


module "OpenGLUnderQML" is not installed

Simple search on packages.ubuntu.com for OpenGLUnderQML gives the following package name - qtdeclarative5-examples. If you install it you will get all needed dependencies such as Qt5 and Qt Quick.

So you need to install this package and qt5 development tools:

sudo apt install qtdeclarative5-examples qtdeclarative5-dev qt5-default

and if you want you can install html-help with

sudo apt install qtdeclarative5-doc-html

Also note, that you can use any of examples located in /usr/lib/x86_64-linux-gnu/qt5/examples/quick (including yours OpenGLUnderQML one -  /usr/lib/x86_64-linux-gnu/qt5/examples/quick/scenegraph/openglunderqml/openglunderqml).

You can compile OpenGLUnderQML and test it with commands below:

cp -ar /usr/lib/x86_64-linux-gnu/qt5/examples/quick/scenegraph/openglunderqml ~/
cd ~/openglunderqml
qmake
make
./openglunderqml


Linux in general is moving slowly towards a system where / can be mounted as "read-only" and other partitions can be mounted as "writable".

This move is done by moving things into directories with "run" as a sub directory. Those are "writable". When you look at df -h you will see a few of these already:

$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            5,8G     0  5,8G   0% /dev
tmpfs           1,2G  9,5M  1,2G   1% /run
/dev/sda2        46G  8,1G   36G  19% /
tmpfs           5,9G   31M  5,8G   1% /dev/shm
tmpfs           5,0M  4,0K  5,0M   1% /run/lock
tmpfs           5,9G     0  5,9G   0% /sys/fs/cgroup
/dev/sda1        47M  3,6M   43M   8% /boot/efi
/dev/sda5        34G   11G   22G  34% /home
/dev/sdb1       917G  235G  636G  27% /discworld
cgmfs           100K     0  100K   0% /run/cgmanager/fs
tmpfs           1,2G   76K  1,2G   1% /run/user/1000

As another measure these are (often) mounted as a temporary filesystem (tmpfs).

Now to get to the point.

As files at the moment are not defined by being writable or not they are scattered all over the filesystem.

Following the FHS and sticking to the main directories:

/bin, /lib, /sbin and /usr can be mounted read-only.
/etc, /home, /srv, /tmp, /var must be writable.
/dev, /proc, /selinux and /sys are handled by special filesystems.

Readonlyroot on Debian pages has a more indepth article on specific files that prevent a directory from being read-only. For instance /etc/ is pretty much a mess in regards to getting it separated into read-only and writable files.

The command at the end of the link only works for zsh.  In chat @serg came up with this as an alternative:

{ lsof +L1; lsof|sed -n '/SYSV/d; /DEL\|(path /p;' ; } |grep -Ev '/(dev|home|tmp|var)'

This command list processes that are open:

lsof /

And here is a filter to only show the process ids that prevent you to mount as read-only:

lsof -F pa /home | awk '/^p/ {pid = substr($0, 2)} /^a.*w/ {print pid}'

Gilles came up with that last one so upvote his answer :)


No audio with newest model HP Spectre x360 (4101-dx)

i just recently ran into troubles using kali on the x360 4005 ubuntu ran fine with just secure boot off but for kali i had to make sure it was in legacy mode and i had to choose the EFI boot after that from the USB the ubuntu dvd worked fine but kali gave a nothing but black on the dvd i had to use a usb stick for that after you enable secure boot off you have to enable legacy mode on but your grub should have been loaded off the ubuntu media and should say ubuntu at the end of it...and that should always have the ubuntu selection and windows boot in the grub selection...i would say make sure your ubuntu grub install is in your media and its up to date which on 15 it should be...if you see the splash menu on startup with media in it should be the same splash with the media out once you install..otherwise you might have a broken install maybe recompile the media and retry...


Remove node and nodejs from ubuntu 18.04

If you installed them via a tar file or something similar, they might be in $PATH or /usr/share, but this depends on how you installed your package.
If NodeJS was not installed via APT, APT will not find it. I would suggest maybe searching for nodejs and node files with find / -name "node*" and removing them manually or if the installer came with an uninstaller, use that instead.


How do I connect a Nexus 7 to transfer files?

You have to follow a below procedure to share contents between Ubuntu to Nexus 7.

Install the necessary tools using terminal.

sudo apt-get install mtp-tools mtpfs

Connect your Galaxy Nexus to your computer. On your phone, open up the notification drawer, and click on “USB Connection type”. Make sure that MTP is selected.

Type these commands in terminal:

mtp-detect | grep idVendor
mtp-detect | grep idProduct

The output of these commands should give you idVendor and idProduct. Note down the values given, as you'll need them later.

Run this command in terminal:

gksu gedit /etc/udev/rules.d/51-android.rules

A Gedit window should open. Simply Copy and paste below line.

SUBSYSTEM=="usb", ATTR{idVendor}=="VENDORID", ATTR{idProduct}=="PRODUCTID", MODE="0666"

Replace VENDORID and PRODUCTID with the idVendor and idProduct you had noted down earlier in Gedit.

Save and close the file. Then, disconnect your phone and run these commands:

sudo service udev restart
sudo mkdir /media/GalaxyNexus
sudo chmod a+rwx /media/GalaxyNexus
sudo adduser YOURUSERNAME fuse

Replace YOURUSERNAME with your Ubuntu user name. Now, run this command:

gksu gedit /etc/fuse.conf

In the Gedit window, remove the # at the beginning of the last line.

You’re almost done! Now, restart your computer, and then run these three commands:

echo "alias android-connect=\"mtpfs -o allow_other /media/GalaxyNexus\"" >> ~/.bashrc
echo "alias android-disconnect=\"fusermount -u /media/GalaxyNexus\"" >> ~/.bashrc
source ~/.bashrc

Again, do re-type the quotes in each command after you’ve copied, otherwise the command won’t work.

Connect your phone again, and then make sure your phone is using MTP, then run this command:

android-connect

You will able to connect the Nexus 7 your to your Ubuntu computer.


Graphics Driver showing VESA: Broadway with AMD Catalyst Driver Installed

im pretty sure that your installation worked correctly. I have the HD4850 one and after installing the closed source drivers got the same information.


Starting a program in a Screen session via SSH

As in the final example in the question the problem was not with the ssh or screen environment other than several ROS-specific environment variables were not set up. This was due to ~/.bashrc not being called on the remote, which set them up for me.

Once I included the setup of specific environment variables namely

source /ros/devel/setup.sh

the system worked correctly.

Script File startnav.sh:

#!/bin/bash

source ~/ros_ws/devel/setup.sh
roslaunch startup startup_node.launch

And the call to load the script file:

ssh remote@192.168.1.5 -f "screen -S nav -dm ./startnav.sh"


/run/lock used to be /var/lock.

It should be cleaned up or recreated during the boot process, for Ubuntu I am not sure which script does it.

However, I know for LFS the /etc/rc.d/init.d/cleanfs script does the job => http://www.linuxfromscratch.org/lfs/view/stable/scripts/apds12.html

Some background:

/var/run => /run is in memory filesystem (tmpfs) used for storing temporary system or  state files (e.g. PID, Unix socket, etc...) that do NOT require persistence across reboots.

see => What are "/run/lock" and "/run/shm" used for?

To manually create / mount

sudo mkdir -p /run
sudo chmod 755 /run
sudo mount -t tmpfs -o rw,noexec,nosuid,size=10%,mode=0755 tmpfs /run

BTW: some off-topic stuff about tmpfs VS ramfs

tmpfs swaps out to disk but ramfs does NOT
tmpfs has fixed size (specified) but ramfs does NOT (you can keep writing even exceeds the max size)


Right now this ain't possible, but there's a bug about it on Launchpad (see link below), and someone seems to be working on it. Expect the change soon!

Bug: https://bugs.launchpad.net/notify-osd/+bug/549900


Ubuntu on external harddrive multiple computers

This will help you when you have to boot from the grub command line interface.  Here are the steps I use if I have to do this:

search -f /vmlinuz

This returns partitions that contain the image I want.  For example, if it returns (hd0,gpt6) then I would continue like this.

linux (hd0,gpt6)/vmlinuz root=/dev/sda6

note: hd0 is sda, hd1 is sdb, and so on.  gpt6 is the partition, so hd0,gpt6=sda6, just different notations.

initrd (hd0,gpt6)/initrd.img

boot

I usually use tab completion, so I might have a spelling error or something similar.  Please look at the link for instructions that are more likely to be accurate.

Try running Boot-repair. This issue has happened to me on at least three separate occasions, and boot-repair has always come to my rescue.  From the sound of it, it seems like when you try to use a different computer, grub is broken.  Fixing the grub installation on the external drive specifically should fix the issue.

The problem when you plug in another drive, could be that the BIOS is trying to boot off the other drive.  You should check in your BIOS Settings to make sure it's booting from the correct external drive.


How to prioritise dual-boot to Ubuntu over WIndows?

In order to achieve this, you will need to edit your GRUB boot priority order.

You can do it within the terminal, editing grub configuration, as  explanained at this link: http://tombuntu.com/index.php/2011/09/25/how-to-change-boot-order-in-ubuntu-11-04/

Or, you can install a graphical tool like grub-customizer (others available, crawl synaptic), to help you in the process. Some useful info about it can be found here: How do I change the GRUB boot order?

Hope it helps!


Right now all versions of Ubuntu's phone OS are try at your own risk. You can learn more at the links below:

Ubuntu Phone - Official Page

Ubuntu On Air - Developer live streaming - Ubuntu Phone is almost always a topic


Read only file system error while trying to install docker-compose on snappy Ubuntu

You're trying to install compose on the read only partition, you need to save it somewhere in /home/ubuntu/apps/docker for that to work.


Which is the best hard drive to install Ubuntu on?

I would pick the fastest for the Operating System.

My guess is that your 200 gig drive is newer and may be faster. You can check the specifications.

Also you can open Disk Utility (palimpsest) to do a benchmark.

Finally, if the 200 gig is really the faster, I would consider using it for both System and Home, and leave the 40 gig for backup.


How can I increase the number of files remembered by GIMP?

Please open a terminal and do:

gksudo gedit /etc/gimp/2.0/gimprc

Find this section:

# How many recently opened image filenames to keep on the File menu.  This is
# an integer value.
#
#(last-opened-size 10)

Change it to:

# How many recently opened image filenames to keep on the File menu.  This is
# an integer value.
#
(last-opened-size 20)

Or whatever number you prefer, if not 20. Proofread, save and close gedit. Close and reopen GIMP for the change to take effect.


How to do apt-get update and upgrade during preseed?

Preseed:

d-i preseed/late_command string \
  in-target rm -rf /var/lib/apt/lists ; \
  in-target apt-get update ; \
  in-target apt-get -y upgrade ; \
  in-target apt-get -y dist-upgrade ; \
  in-target apt-get -y autoremove ; \
  in-target apt-get autoclean ; \
  in-target apt-get clean

this includes a dist-upgrade but that's easily removed.

Ubuntu has kickstart with preseed support and kickstart can do it like this by using a "%post" option:

%post --interpreter=/bin/bash
#!/bin/bash
apt-get update && apt-get upgrade -y

Kickstart can use preseed:

  Integration with Preseed

  While Debian's preseed can fully automate the entire Ubuntu installation, the official Red Hat kickstart language cannot. For this reason, Ubuntu kickstart includes a special command preseed which allows using preseed options inside a Kickstart file. Here is an example of mixing kickstart syntax with some preseed syntax.

# Kickstart syntax: Configure authentication
auth --useshadow --enablemd5

  # Ubuntu Kickstart Syntax: Use an option only available via preseed to tell

  # Ubuntu's installer not to make a non-root user during installation

preseed passwd/make-user boolean false

  # Ubuntu Kickstart Syntax: Check "Install any security updates automatically"

preseed pkgsel/update-policy select unattended-upgrades


Will natty be distributed still on a cd?

The plan is to ship Natty on a CD. However, the addition of Unity, GTK3 and Banshee means that other aspects of the CD footprint need to be optimized, so that it can still fit on to a CD.

There is a blueprint which is driving this work: https://blueprints.launchpad.net/ubuntu/+spec/performance-desktop-n-install-footprint. Some things which might be removed from the CD include upstream changelogs and Perl


Nautilus doesn't work.... from command or from unity

This problem is probably stemming from the fact that you uninstalled GNOME 3. I don't know what version of Ubuntu you are running, but I know in version 12.10 Ubuntu actually shipped with an older version of Nautilus than the most recent GNOME version.

Regardless, you must have switched Nautilus versions somewhere through the upgrade and some important files were lost

My best recommendation without fully understanding the system would be to simply purge and reinstall Nautilus.

This can be done with the following commands:

sudo killall nautilus - this will make sure you kill the Nautilus program before you start working with it.

sudo apt-get remove --purge nautilus - this will totally remove Nautilus and any residual config files.

sudo apt-get update - this will make sure your sources are recent.

sudo apt-get install nautilus - this will freshly install Nautilus again.

Sources:

http://www.omgubuntu.co.uk/2012/08/ubuntu-12-10-will-ship-with-older-version-of-nautilus
https://launchpad.net/ubuntu/+source/nautilus/1:3.5.90.really.3.4.2-0ubuntu1/+build/3739314


Upgrade to 18.04: "failed to fetch" 403 Forbidden Error

It simply worked by changing the donwload server from the Synaptic Package Manager.


How can I capture messages that occur at shutdown?

Look in the directory /var/log and see if it is in one of the subdirs or as a .log file


zenity is a handy tool for quick dialog boxes:

keep=()
while read -r filename; do
    zenity --text-info --title="$filename" --filename="$filename" \
           --ok-label=Keep --cancel-label=Remove
    if [[ $? -eq 0 ]]; then
        keep+=("$filename")
    fi
done < file_of_filenames
printf "%s\n" "${keep[@]}" > file_of_filenames


Where can I find a PDF of the documentation for Ubuntu?

There is even a special website for this called: http://ubuntu-manual.org/. Here is a direct link to the PDF. Save the PDF or just print it and you are set to go. 143 pages so not to bad.

If anyone is interested in the server editon PDF click this link.


Will Ubuntu boot if I install on a hard drive that isn't the Windows boot disk via WUBI?

I have never used the installation size option, but to answer your first question, if you install it on the E drive instead of the C drive it should dual boot with no problems.


How do I check if I can safely install something with apt during a bash script?

Put this in your script, then start your script with sudo.

#!/bin/sh

while [ -f /var/lib/apt/lists/lock
do
# The lock file is found, wait for it to be removed.
  sleep 3
done

# The lock file is not found, let's perform our actions.
curl -sL https://deb.nodesource.com/setup_8.x | bash -
apt-get install -y nodejs


Should I install the Desktop image or the Server image if I need both

It doesn't matter.

Ubuntu Desktop is Ubuntu with some extra desktop packages.

Ubuntu Server is Ubuntu with some extra server packages.

You can add server packages to Desktop. You can add desktop packages to Server. It's all Ubuntu.

Advice:

Most new users find it easiest to install Ubuntu Desktop, and add some server packages to it.
Ubuntu Desktop includes Samba ("File Sharing")
Ubuntu Desktop does not include a DNS server. Most small networks don't require a DNS server -- if yours does, there's a package for it.


NetBeans' Integrated Development Environment (IDE) is available in Ubuntu's Universe/Java section. Following are the steps to install from the repository: Scroll down for steps to install the latest version of the IDE.

If Universe repository in not allowed, allow it and update:

sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"
sudo apt-get update

Install NetBeans with:

sudo apt-get install netbeans

Useful terminal shortcut: Ctrl+Shift+V can be used to paste copied text to terminal.

The NetBeans IDE - Shapshots:

The IDE's startpage:

A sample project:

Downloading and Installing the latest available version:

You can download the installation files and get help with installation, troubleshooting and others at NetBeans' official website. (The contents below have been adopted from the same.)

Downloading the software:

Go to https://netbeans.org/downloads/
In the upper right area of the page, select the language and platform (Linux (x86/x64)) from the drop-down list.
Click the Download button for the download option that you want to install.

Save the installer file to your system.

To install the software:

After the download completes, run the installer script with .sh extension. You might need to make the installer files executable by using the following command: chmod +x <installer-file-name> (e.g. chmod +x netbeans-7.4-javaee-linux.sh)
If you downloaded the All or Java EE bundle, you can customize your installation. Perform the following steps at the Welcome page of the installation wizard:

Click Customize;
In the Customize Installation dialog box, make your selections;
Click OK;

At the Welcome page of the installation wizard, click Next.
At the License agreement page, review the license agreement, click the acceptance check box, and click Next.
At the JUnit License Agreement page, decide if you want to install JUnit and click the appropriate option, click Next.
At the NetBeans IDE installation page, do the following:

Accept the default installation directory for the NetBeans IDE or specify another directory.

Note: The installation directory must be empty and the user profile you are using to run the installer must have read/write permissions for this directory.
Accept the default JDK installation to use with the NetBeans IDE or select a different installation from the drop-down list. If the installation wizard did not find a compatible JDK installation to use with the NetBeans IDE, your JDK is not installed in the default location. In this case, specify the path to an installed JDK and click Next, or cancel the current installation. After installing the required JDK version you can restart the installation.

Note: If the JDK version is older than the recommended JDK 7 Update 10, download and install the latest JDK update from Java SE Downloads page and restart the NetBeans IDE installer.

If the GlassFish Server Open Source Edition 4.0 installation page opens, accept the default installation directory or specify another installation location.
If you are installing Apache Tomcat, on its installation page, accept the default installation directory or specify another installation location. Click Next.
At the Summary page, do the following:

Verify that the list of components to be installed is correct.
Select the Check for Updates check box if you want to check the Update Center for possible updates and have the JUnit library installed during the installation (provided you accepted the license in step 5.)
Verify that you have adequate space on your system for the installation.

Click Install to begin the installation.
At the Setup Complete page, provide anonymous usage data if desired, and click Finish.

Note: If you encounter problems successfully completing the software installation, see Troubleshooting for descriptions and suggested workarounds for unresolved issues that could affect the installation process.

Uninstallation:

To uninstall the IDE:

Shut down the IDE.
In the IDE installation directory, run the uninstall.sh file.
To uninstall GlassFish and Tomcat together with the IDE, at the Summary page make sure that the correct versions are listed and check the appropriate checkboxes.
At the Summary page, click Uninstall.
After uninstallation completes, click Finish.


Te recomiendo que instales una versión de Ubuntu más reciente para quitar ese problema. O puedes intentar actualizar tus paquetes desde la terminal con:

    $ sudo apt-get upgrade

y después con

    $ sudo apt-get update

El primer comando actualiza los paquetes en tu repositorio, y el segundo actualiza los paquetes que tengas sin actualizar en tu computadora.


You could use the -execute switch  mysql -e

foo=`mysql -u user_name_here -p password_here -s -N -e "SELECT id FROM the.host WHERE name='$the_url'"`
echo $foo
echo "<some>$foo<\/some>" >> /file/path/to_name_of_output.js

But why not use PHP or PERL?


Dual Boot Ubuntu (with LUKS, TPM) and Windows 10 (with BitLocker)

This is an awesome question, and I had actually been considering doing this for a while.

Ended up finally taking the plunge, and it seems to work fine.

(I used the latest version of Ubuntu Desktop and Windows 10 v.1903 for this.)

While I'm unsure about whether BitLocker's system drive encryption would play nice with Linux's dm-crypt/LUKS encryption, VeraCrypt might be the more desirable alternative to BitLocker, since it's open-source. I prefer VeraCrypt over BitLocker myself, but theoretically the process should be the same whichever route you use.

Keep in mind that UEFI Secure-Boot would have to be disabled for this to work. If you choose to use BitLocker, you might have to enable pre-boot authentication in gpedit.msc to allow you to unlock a BitLocker-encrypted system using a PIN or password. This could mean not using the TPM. (Honestly, this would work fine for me; I'd experiment to see if the TPM could be used, but I'm happy with my current setup.)

Anyway, after some armchair research to try this myself, I came across a post by baderaj on the linuxquestions.org forums... The only caveat is that the boot partitions would be unencrypted. For most purposes, this should be fine. (Baderaj references TrueCrypt, but since it's long been obsoleted by VeraCrypt, since it's no longer developed, I'm suggesting using VeraCrypt here instead.)

Basically, their solution is to have the Grub bootloader have boot menu entries pointing to the LUKS-encrypted Linux partition, and the the VeraCrypt bootloader on Windows' partition.

TL;DR: Step-by-step, this would involve the following:

Install Windows, unencrypted, to a single partition (leaving some space on the drive for a second partition for Linux).
Install Linux as a LUKS-encrypted partition using the disk's remaining free space.
Encrypt the Windows system partition with VeraCrypt (replacing grub's MBR).
Copy the MBR containing the newly-installed VeraCrypt bootloader.
Reinstall grub to the MBR (replacing VeraCrypt's MBR that you copied).
Add a grub bootloader menu entry pointing to TrueCrypt bootloader which was copied previously.
You should, at this point, be able to use grub to boot either to the LUKS-encrypted Linux partition, or the VeraCrypt-encrypted Windows partition.

Definitely give Baderaj's post a read-through if you're interested in following this method.

If you do have success with using BitLocker instead of Veracrypt for this, do post your success story. :)


How exactly do I install an epson wf-2630 printer onto my new ubuntu studio OS?

Try this:

Step 1: Boot into Ubuntu

Step 2: Open a terminal, Press Ctrl+Alt+T

Step 3: Login as user with administrator permissions.

sudo -i

Step 4: Install the previous packages needed:

apt-get update
apt-get install --reinstall firefox cups lsb gdebi sane simple-scan

Step 5: Navigate to these sites and download the packages for 32 or 64 bits according to their distribution:

firefox
http://download.ebz.epson.net/dsc/du/02/DriverDownloadInfo.do?LG2=ES&CN2=&DSCMI=43797&DSCCHK=b349e6644abd5c99e22fee221df756e1130c0725
epson-inkjet-printer-escpr_1.6.4-1lsb3.2_i386.deb
or
epson-inkjet-printer-escpr_1.6.4-1lsb3.2_amd64.deb

http://support.epson.net/linux/en/iscan_c.html
https://download2.ebz.epson.net/iscan/general/deb/x86/iscan-bundle-1.0.0.x86.deb.tar.gz
https://download2.ebz.epson.net/iscan/general/deb/x64/iscan-bundle-1.0.0.x64.deb.tar.gz

Step 6: Untar the file .deb.tar.gz

cd /home/user/Downloads
tar zxf iscan-bundle-1.0.0.x86.deb.tar.gz
or
tar zxf iscan-bundle-1.0.0.x64.deb.tar.gz

Step 7: Install the files.deb whith gdebi:

Click the right mouse button. Select install with gdebi.

Step 7: Run Firefox and select your printer:

firefox
Enter the address: localhost:631


need to hold on keyboard key in order to type

You seem to be having a problem with a keyboard that doesn't get reset properly during BIOS initialisation (after a BIOS upgrade?) or the keyboard is going bad.

Do the following:

Edit /etc/default/grub and add atkbd.reset after quiet splash
Save the file
Run update-grub
Reboot

The atkbd.reset kernel parameter will reset your hardware keyboard controller through software.

If you get syslog messages that contain keyboard reset failed, and you did not perform any BIOS upgrade, please remove the keyboard (if a laptop: download the service manual first), clean the connectors and the keys and re-insert it.  If that doesn't help, replace it altogether as this is a sign of imminent hardware failure...


Add Microsoft Exchange account to calendar

Found an answer by trial and error! Type your email in the email field AND in the username field. And of course use outlook.office365.com as the server.


How to distribute python GTK applications?

You don't actually need to use a build system to package your application.

However, not using a build system will mean that you will have to write all of the functionality that a build system provides 'for free' from scratch. Not only will this be more work for you, but you'll be on your own. That is, it's much better to rely on proven tools which are well backed by an active community than starting and maintaining build and installation scripts, unless you know very well what you're doing and you purposefully want to avoid using a build system.

A build system will also move great part of the logic to do the build and installation to the system itself, rather than on the packaging. This results in a cleaner and simpler debian/rules file, which will be much easier to maintain.

Now for your Python app, we did not ask to use a build system on your other question, but we did recommend it. And that was distutils/distutils-extra, as they are the most common ones and with better support for Python. There are also other out there, such as autotools, but they are generally more complex to set up for Python software.

Note that it's not either/or. That's where the confusion might come from. A build system and packaging are complementary. The packaging makes use of the build system to create the package. So it's not that by adding a e.g. setup.py file you'll force your users to use it. Rather on the contrary, you'll make it easier to create a .deb package out of your app, which users can install by just clicking it.

So here are the facts, you do not need to use a build system, but it will greatly help you in creating and maintaining your package. Your choice :)


Recording the image on a USB flash drive

I recommend UNetbootin http://unetbootin.sourceforge.net/, it can create bootable USB for almost anything.


I need to manually parition a HD to install

Delete The partition and Make a Partition form the Unpartitioned Space!

On Maverick Meerkat:

On the partitioning screen Click Specify Partitions Manually(advanced) Just delete the partition and then Select the Unallocated Space and click 'New' Now just enter the size and the other thing you would enter at the install menus.

'/' should be 8GB at least, that is what I recommend.

Hope I was a good help :)


ubuntu 14.04 firefox starting without sudo gives security library failure on SSL sites

I just encountered this same issue, and resolved it without refreshing Firefox.  I noticed that in my Firefox profile, all files were still owned by me, except revocations.txt (now owned by root).

Try running:

find .mozilla/firefox/ -user root

If you find the same results I did, chown revocations.txt back to your user account:

sudo chown user:user .mozilla/firefox/profile.default/revocations.txt

Hope this helps.


Disable orientation lock shortcut Super + O in ubuntu 18.04 gnome

This question has been answered in https://askubuntu.com/a/1187318/1050087 .

That answer comes down to the following commands:

Find the gsetting for the rotation shortcut

gsettings list-recursively | grep -i "<Super>"

Change or remove assigned keys:

gsettings set org.gnome.settings-daemon.plugins.media-keys rotate-video-lock-static []

Reboot your computer


Can Ubuntu One sync files "in place" instead of filling up /tmp?

After four days I resorted to a final solution and disabled Ubuntu One sync daemon. This freed the /tmp and returned my system to a usable state again. This is the only way to solve this problem, I'm afraid.

U1, when running, is a hog on CPU and memory (and disk space in /tmp when creating a snapshot). Its hunger renders my 11.04 amd64 running on AMD Turion 64 X2 with 2 GB of ram unusable to a point in which I'm unable to send an email due to a lack of free space on root partition where my /tmp lives.

U1 effectively duplicates all files and folders scheduled for sync, which is unacceptable for me. I don't need a local copy of my files, I want them to be in the cloud. That's what a remote backup is about. Sorry U1, you failed.


Create pulseaudio socket at system startup in Ubuntu 16.04

I resolved the issue like this :

My container has got a node script which starts the application and this application needs pulseaudio to run properly. So here is my docker run command.
Notice the code in bold. Thats what I modified.

Previous command

sudo docker run --pid=host -dit --restart unless-stopped --env PULSE_SERVER=unix:/tmp/pulseaudio.socket --env PULSE_COOKIE=/home/$USER/pulseaudio.cookie --volume /tmp/pulseaudio.socket:/tmp/pulseaudio.socket --volume /home/$USER/pulseaudio.client.conf:/etc/pulse/client.conf --user $(id -u):$(id -g) --privileged --net=host ubuntu bash -c "node service.js && tail -F anything"

Current command

sudo docker run --pid=host -dit --restart unless-stopped --env PULSE_SERVER=unix:/tmp/pulseaudio.socket --env PULSE_COOKIE=/home/$USER/pulseaudio.cookie --volume /tmp:/tmp --volume /home/$USER/pulseaudio.client.conf:/etc/pulse/client.conf --user $(id -u):$(id -g) --privileged --net=host ubuntu bash -c "sh checksocket.sh && tail -F anything"

In the previous command , the container used to start only if there was a pulseaudio.socket file in the /tmp folder of host.

Now the current working command mounts --volume /tmp:/tmp instead of --volume /tmp/pulseaudio.socket:/tmp/pulseaudio.socket

and sh checksocket.sh command executes the checksocket.sh file that I created inside the container.

Here is the code of my checksocket.sh file :

#!/bin/bash
while sleep 0.5;
do if [ -e /tmp/pulseaudio.socket ]
then
value="node service.js"
exec $value
break
fi
done

This shell script keeps checking for the pulseaudio.socket file in the mounted /tmp folder and if it exists then only it starts my node service.

In this way my container always starts whenever I reboot my machine and the node service starts once the shell script detect a pulseaudio.socket in the /tmp folder.

I hope this helps someone who are trying to use pulseaudio with docker for the purpose of sound multiplexing or to avoid “device or resource busy” error(device or resource busy error comes when you use docker with alsa as alsa directly captures the sound card) on the host machine. Let me know if anybody needs more help


Ubuntu 14.04 + Dell Precision T7500 = not bootable?

I have the same machine (with lower specs though) and did install Fedora 20 on it.

It would also not boot correctly because of KMS (kernel Mode Setting) incompatibilities with the nVidia Quadro FX1800. In the boot screen (grub) I edited the boot line to add the nomodeset setting to disable KMS and be able to boot. But it has an impact on the Nouveau driver which cannot use the full resolution. I decided to install the Nvidia binary drivers instead.

To edit the boot in order to solve your issue, when you see Grub, hit the "E" key on your computer. You will then be able to edit the boot commands. Then use the arrow key to look for a line starting with linux /boot (...) go to the end of the line (there should be the keyword splash written) and add the option mentionned above. By pressing the keyboard combination of "Ctrl"+"X" the system should use your custom boot and it should hopefully work.

Once you boot, update /etc/default/grub and modify the following line as suggested below (by adding the above option):

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"

Save your changes and now "install" tre new Grub configuration by issueing the following command:

sudo update-grub

Background info:
I was never really interested in KMS, as previously I always had Intel GPU, so it was just working. But I think you don't loose much without KMS, it removes the "screen flickering" upon boot and maybe a few more seconds boot duration. It should have no other impact AFAIR but for the Nouveau driver it basically disable it as well.

Btw and off topic:
I haven't benchmarked the SAS RAID controller integrated to the motherboard, but I would doubt it brings much benefits. I have not configured any RAID using the SAS controller, but I have used Linux software RAID for the boot and swap partitions, and BTRFS for the rest (although I would advise you to use Linux software RAID for the rest as well given BTRFS maturity).
Linux software RAID is really performant and flexible, you can define RAID per partition (so having a RAID1 for /boot and / but RAID 0 for swap and /tmp and /var/tmp). The only drawback compare to a real RAID card is the high-end one would have a battery backed controller (which is not the case of your on-board SAS controller).
I am still struggling with my configuration, I decided to plug the HDD to the SATA and not SAS controller. When plugged to the SAS controller the 2 HDD are "named" sdc and sdd because the USB live CD is seen as sda and I have a USB card reader which takes the sdb. The problem is when I remove the USB disk, the letter of the drives changes (to sdb and sdc) and this does not play well with the default Fedora grub installation (which already did not like too much that I put the / under btrfs...). By putting the HDD on the SATA controller, they are "registered" before the USB or SAS devices, so they get sda and sdb naming and it does not change on reboot. I know that one can use UUID and labels for identifying drives, but I had no desire to fix the default grub configuration.

Other Linux:
I tried just out of curiosity 2 other Linux distributions (just as Live USB). Ubuntu 14.04.1 booted fine with the nouveau driver but ArchLinux 20140801 showed a black screen after the Grub prompt and it was stuck in this mode. It is my first time with a Nvidia card on Linux, and this is shitty!! I had no troubles in the past with Intel or AMD GPUs using the opensource drivers.


Interpreting lshw output - can I get SATA III speeds?

lshw or lspci do not directly tell you which version of sata is supported. You need to check the shown chipset against its specification, which you'll have to google. As an example I use

lspci  | grep -i sata

to find out which sata controller I have. The output is in my case

23:00:1f.2 SATA controller: Intel Corporation 82801IBM/IEM (ICH9M/ICH9M-E) 4 port SATA Controller [AHCI mode] (rev 03)

This means I have either the ICH9M or the ICH9M-E controller. Googling for the former yielded a wikipedia article: http://en.wikipedia.org/wiki/List_of_Intel_chipsets telling me that it supports SATA 3.0 Gbit/s, hence SATA revision 2.0.
hth :)


How to slice a tuple using variable indexes, output as textual list

This should solve your problem
def tuple_slice(startIndex, endIndex, tup):
    return ",".join (str(n) for n in tup[startIndex:endIndex])

Using your example
[In]: print(tuple_slice(1, 4, (76, 34, 13, 64, 12)))
[Out]: 34,13,64


Why is the monitor's backlight turning off, when I use the Intel® Sandybridge Mobile drivers?

Finally I have found the problem, and solved it. The problem was apparently that the monitor backlight was completely switched off. Until now I have used the Bootoption nomodeset to prevent it. However, I just had to add the following boot options instead:

acpi_backlight=vendor acpi_osi=Linux video.use_bios_initial_backlight=0


ubuntu 14.04 resolution and mouse messed up

Install this update then boot to 3.13.0-47 and see if it fixes the issue http://www.ubuntuupdates.org/package/canonical_kernel_team/trusty/main/base/linux-image-3.13.0-47-generic


Maybe you are looking for this:

Launch System Settings:

Change the configuration

Source: http://ubuntuguide.net/ubuntu-12-04-actions-cd-dvd-blu-ray


short answer : those cannot change size. You can change their style with themes, but then size is fixed.

What can be done, however, is to use Settings->Display options to scale top panel up , but that will scale up over all UI, so this might not be exactly what you want


Is there a tool to remove all hyperlinks from an html file?

You could use sed for that, but it will only work for links that are in a single line in the html code.

Update:

Damn greedy regex! ;) This one should work now!

sed -i 's|<a[^>]\+>|<a>|g' <the-html-file>


How can I manually remove a WINE program when the uninstaller doesn't work?

Open terminal and cd to the wine Z:\ drive (in my case it is ~/.wine/drive_c/).

Now use sudo rm filename.

It will delete the file.


How to sort a file before redirecting it as an input to a bash script?

( and ) are parentheses rather than braces - which would be { and }
The <(command) construct is called process substitution, and is syntactically equivalent to a file. To make it syntactically equivalent to redirection from a file you need another < operator:
while IFS=, read var1 var2
do
//code//
done < <(sort -t"," -k 2 file.txt)

The other common way to sort then redirect would be a simple pipe:
sort -t"," -k 2 file.txt | while IFS=, read var1 var2
do
//code//
done

The latter is more portable (process substitution is not a POSIX requirement, and is not supported by /bin/sh for example).


How come rsync copies files faster than Krusader?

if I use rsync, it is about 5-6 times faster. How come?

A few things:

rsync uses a clever algorithm to compute a binary diff between two files on different machines and to send only the differences
it tries very hard to keep the tcp pipe totally full, whereas sftp or other protocols can sometimes stall waiting for earlier data to arrive
rsync is smart about gzipping files that are likely to benefit from it

To say more means knowing more about the specific situation and what you're comparing it to.


TRENDnet TEW-648UBM 802.11n 150Mbps Micro Wireless N Adapter not working

Your device uses the driver rtl8192cu. The built-in driver is known to be unstable and tricky to connect. With a working internet connection,please do:

sudo apt-get install linux-headers-generic build-essential dkms
git clone https://github.com/pvaret/rtl8192cu-fixes.git
sudo dkms add ./rtl8192cu-fixes
sudo dkms install 8192cu/1.10
sudo depmod -a
sudo cp ./rtl8192cu-fixes/blacklist-native-rtl8192.conf /etc/modprobe.d/

Reboot


how to install 64bit packeges on my ubuntu 12.04 64bit?

You probably havent opened up the necessary repositories, heres how

To enable Partner and Independent Repositories in Ubuntu Software Center

Open Ubuntu Software Center and select “Edit” and then select “Software Sources”:

Make sure both Canonical Partner repositories have check marks next to them

Now open up Terminal and copy and paste

  sudo apt-get update


Partition not loading automatically - Ubuntu

Use blkid to get the UUID for the partition, then add a line to /etc/fstab to tell the system where you'd like it mounted. You will find advice on doing that in many places, such as here


Ubuntu OpenStack Autopilot Install Failing

I had this same issue and never could figure out why. I ended up doing a manual juju boot strap and then deploy the juju-gui. Then deploying landscape on top of that(I used 14.04 LTS).
Creating environments.yaml
Create or modify ~/.juju/environments.yaml with the following content:
environments:
  maas:
    type: maas
    maas-server: 'http://${my-maas-server}:80/MAAS'
    maas-oauth: '${maas-api-key}'
    admin-secret: ${your-admin-secret}
    default-series: trusty

Now deploy juju:
$ sudo apt-get install juju-core
$ juju bootstrap --upload-tools
$ juju status

Now once the juju bootstrapped node had finished deploy the juju-gui
$ juju deploy juju-gui
$ juju expose juju-gui

To keep track of the progress of the gui keep checking 'juju status' or run 'watch juju staus'. When it is done you will see something like:

Then you can enter that IP into your browser to access the juju gui. After that on the juju going search for the landscape bundle and deploy.


No way to access NetworkManager via GUI in settings. No try showing I"m connected

Network Manager will not manage interfaces that are declared in /etc/network/interfaces. Your will appears to have some questionasble entries. I suggest you amend it to:

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.1.66
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 192.168.1.65 208.67.222.222 208.67.220.220

Is 192.168.1.65 the correct DNS nameserver? If in doubt, remove it altogether or check other devices on the network. Restart the interface:

sudo ifdown eth0 && sudo ifup eth0

Check:

ping -c3 192.168.1.1
ping -c3 www.ubuntu.com


You can visit this site for reference: Command Line Learning Resources

Well, it spurts out file not found because the file test.php must be located in another location. Well if you do not want to read huge tutorials and do it the easy way, type this in terminal:

sudo apt-get install gksudo

Then run:

gksudo nautilus

gksudo will grant nautilus root priveleges after you type in the password in the pop up. You will then be able to copy paste the files anywhere easily. It is just that vulnerable files are located in placed other than the home directory, altering which may lead to an unusable system. Hence this extra step must be taken, i.e. giving root privileges using the command sudo. Also note that nautilus should be replaced with thunar, dolphin, pcmanfm in case you are using xubuntu, kubuntu, or lubuntu respectively.


How to create dedicated "Reserved BIOS boot area" partition

You probably need gparted on the live-system to partition your medium on the computer properly...
First I think that you should format the 1MB free space as fat and give it the MBR-partition flag... in gparted...
But why do you need a MBR boot partition??? The GPT partition is newer and more robust... Anyhow this is what I think you could do but BE CAREFULL!!!
You should always read the instructions carefully before doing anything to the primary startup medium. There are stil a manyfold of mistakes you can make by manually partioning a disk.
Partitioning a disk manually is prone to very severe wrongdoings so read the manuals(man 7 -k partition for a list of posibilities to educate oneselve) and read other askubuntus->partioning to reassure yourself


So things are swinging back in my favor.  Thanks to askubuntu, I was able to identify the i386 library that all apps on a 64 bit machine use to run 32 bit aps like wine.   It's called 'libc6-i386'.

I then ran sudo apt-get remove --purge libc6-i386*

reboot

The I reinstalled the reinstalled package, so that programs like wine can have access to it as necessary.  sudo apt-get install libc6-i386

Now my machine is humming along as normal...  We learn by trial and error...

D


I have removed my crontab. How can I recover it?

If you have no /var/log/syslog file, you can recover the commands (but not the timings) from the syslog file.

use:grep 'CRON' /var/log/syslog

you can then figure out the timings by looking at the date-stamps.

Credits: Recover cron jobs accidently removed with crontab -r

PS: To avoid such problems in the funture, try to add a cron to backup your crontab everyday.


This sounds like a job for a reverse SSH tunnel.
Server B is on a network behind a NAT or firewall you don't have control over. In this case port-forwarding on the router wouldn't be possible.
2021 Update: use the ProxyCommand or ProxyJump options instead: https://www.redhat.com/sysadmin/ssh-proxy-bastion-proxyjump
ProxyCommand:
Add the following to your ssh config at ~/.ssh/config:
Host server-b
  ProxyCommand ssh user@server-a -W %h:%p

You can even do this on the command line:
ssh -o ProxyCommand="ssh -W %h:%p server-a" server-b

ProxyJump:
SSH version 7.3 and upwards have the -J flag for ProxyJump:
ssh -J user@<server-a:port> <user@server-b:port>

Original answer:
In a reverse tunnel, you tunnel the connection to B via the publicly accessible A. To do this, you SSH from B -> A with a port-forward specified on the command line.
    ssh user@server-a -L 2222:server-b:22 -fN

Then SSH from Local -> A with your forwarded port specified:
    ssh -p2222 server-b-user@localhost

... which would connect you to server B.
Sources:
https://www.redhat.com/sysadmin/ssh-proxy-bastion-proxyjump (2021)
http://www.revsys.com/writings/quicktips/ssh-tunnel.html
You might also want to use autossh if you want to automatically create and keep open your connection.
http://www.ubuntugeek.com/automatically-restart-ssh-sessions-and-tunnels-using-autossh.html


As per this other question i found, i used a different source for the Xorg drivers. this fixed my issue:

Garbage on rotated screen when I rotate a certain monitor


I usualy use MP4 as prefered format on Ubuntu Touch no problem. It's very basic video player many things are unsupported. I suspect that you are using unsupported codec for example h.265 or other fancy codecs. Try converting it to h.264 (working for sure).


The 0x42 ("42" under the "Id" column in your fdisk output) partitions mean that your disk is using Microsoft's Logical Disk Manager (LDM), aka dynamic disks. This is a non-standard meta-partitioning scheme conceptually similar to Linux's Logical Volume Manager (LVM). Installing Linux to an LDM disk is difficult at best. Your best bet is to convert your LDM configuration to a more conventional partition scheme. This can be done with some Windows tools, such as EaseUS Partition Master and perhaps one or two others. Note that this has nothing to do with GPT; your disk is definitely not in GPT format, and there's no evidence of stray GPT data from your fdisk output.


Headphones not working on Windows after installing Ubuntu

I have had this problem also. You just have to shutdown from Ubuntu not restart. Once the computer is off start it and choose windows, everything should work just fine.


A workaround has been created, but it is not pretty. To bypass the
  protection, you need to download the extension or userscript to the
  local system. Once there, you need to drag and drop it into the
  chrome://chrome/extensions/ page in the browser. If you drag and drop
  it elsewhere, nothing will happen.

  When you drop it on the extensions page, you will notice an install
  option popping up there.

  When you select that option, you will see the standard installation
  dialog that informs you about the rights that the script or extension
  is requesting.

Sourced from: Chrome Fix: Extensions, apps, and user scripts cannot be installed from this web site.

Edited on 20121125:
I came across another way which requires starting the browser from the command line.
For example, if you are using Chrome and want to install an extension not from the Web Store, the following code entered in a terminal starts Chrome in a "permissive" mode for this instance:

google-chrome --easy-off-store-extension-install

Explanation for the switch:

  Enables extensions to be easily installed from sites other than the web store. Without this
  flag, they can still be installed, but must be manually dragged onto chrome://extensions/.

Source: http://peter.sh/experiments/chromium-command-line-switches/

The usual caveats apply. The user should be careful about installing extensions. Commmand line switches come and go and need not work with earlier versions or future versions of the browser.

I can't answer about Chromium because I don't use it.


Try:

ssh localhost -t bash -ci l.

Note:

The alias should be in ~/.bashrc on the remote server, not on your local machine.
The -i option tells bash to run an interactive shell. Aliases are enabled by default only in interactive shells.
The -t options tells ssh to allocate a pseudo-tty. Without this, bash emits a warning message when started in interactive mode. This also enables ls colors. Without it, you'd have to use --color=always, see man ls.
There is another way to enable aliases, without setting the interactive flag, namely shopt -s expand_aliases. So you could try:

ssh localhost 'bash -c "shopt -s expand_aliases; l."'

However:

Your .bashrc might only define aliases if the shell sourcing it is interactive. In this example, the shell would not be interactive at that time.
If you try to define aliases on the same line, see this.


Got 2 user folders in /home after reinstall | But only one user

Try this:

sudo rm -R 'folder_name'

With me it worked.
If it doesn't work, try this one:

sudo rm -Rfv 'folder_name'

or

userdel -r 'user_name'

http://www.cyberciti.biz/faq/linux-remove-user-command/


How do I run a vpn on my ubuntu computer and access with my android

OpenVPN is a good way to go and there are plenty of tutorials on how to set this up.

Just remember that Android and iOS only support the TUN interface and not TAP. You will understand once you start reading the tuts!


wireless detected but Can't connect to network, Wifi card intel pro wireless N100 BGN

I think the problem is "tx-power off", you can try to type this:

sudo iwconfig wlan0 txpower 14

14dbm is the maximum tx-power for my card, I don't know your.

However, I think the card is powered off,  have you turned on the wireless? :-)


It specifically says right their what to do: type fsck /dev/sda5.  Type that into the shell their and press enter.  Update the question if you need more help.


How to recover 1 specific partition using live cd (usb)?


According to:  Error running C program compiled with Geany IDE Error Code: 127

There are at least two possible ways to solve it:

1) Update your geany via repository: http://sysads.co.uk/2014/07/install-geany-1-24-1-ide-on-ubuntu-14-04/

2) Follow these steps:

  You only compiled your source file, but didn't build your
  application, meaning the linking was not done and the executable was not created. Use the "build" sub-menu from the "build" menu (default
  shortcut is F9 if I recall correctly) and try again.

Read also: How run C++ in Geany Ubuntu 12.10

Hope it help


Hope this will help for someone,
I had a issue with rt5370 wifi dongle, it did not work properly, but somehow I managed to fixed it.

Open the terminal:

apt-get install linux-headers-generic build-essential
gksu gedit /etc/udev/rules.d/95-RT5370.rules

A new empty document will open. Copy and paste the text as follows:

SUBSYSTEM=="usb", ATTR{idVendor}=="148f", ATTR{idProduct}=="5370", RUN="/etc/RT5370.sh"

Save and close gedit Create another file:

gksu gedit /etc/RT5370.sh

A new empty document will open. Copy and paste the text as follows:

#!/bin/sh
modprobe rt2800usb
echo 148F 5370 > /sys/bus/usb/drivers/rt2800usb/new_id

Save and close gedit

make the file executable:

sudo chmod +x /etc/RT5370.sh

Go to super user mode:

apt-get install linux-headers-generic build-essential git
git clone https://github.com/xiangzhai/rt5370.git
cd rt5370/
make
make install
echo rt5370sta >> /etc/modules

Unplug the wifi usb dongle

Reboot the machine and plug the wifi usb dongle


Your dpkg command doesn't catch everything. Try this command instead:

$ dpkg -l libglib2*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name              Version       Architecture  Description
+++-=================-=============-=============-=======================================
ii  libglib2.0-0:amd6 2.48.2-0ubunt amd64         GLib library of C routines
ii  libglib2.0-bin    2.48.2-0ubunt amd64         Programs for the GLib library
ii  libglib2.0-data   2.48.2-0ubunt all           Common files for GLib library

Although my Ubuntu 16.04 works perfectly for my needs it appears I have similar glib errors to you. I'll just ignore them though because I don't need to reinstall glib:

$ sudo apt install libglib2.0
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libglib2.0-0-refdbg' for regex 'libglib2.0'
Note, selecting 'libglib2.0-cil-dev' for regex 'libglib2.0'
Note, selecting 'libglib2.0-tests' for regex 'libglib2.0'
Note, selecting 'libglib2.0-0-dbg' for regex 'libglib2.0'
Note, selecting 'libglib2.0-bin' for regex 'libglib2.0'
Note, selecting 'libglib2.0-cil' for regex 'libglib2.0'
Note, selecting 'libglib2.0-dbg' for regex 'libglib2.0'
Note, selecting 'libglib2.0-dev' for regex 'libglib2.0'
Note, selecting 'libglib2.0-doc' for regex 'libglib2.0'
Note, selecting 'libglib2.0-data' for regex 'libglib2.0'
Note, selecting 'libglib2.0-0' for regex 'libglib2.0'
libglib2.0-0 is already the newest version (2.48.2-0ubuntu1).
libglib2.0-data is already the newest version (2.48.2-0ubuntu1).
libglib2.0-bin is already the newest version (2.48.2-0ubuntu1).
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help resolve the situation:

The following packages have unmet dependencies:
 libglib2.0-0-dbg : Depends: libglib2.0-0 (= 2.48.0-1ubuntu4) but 2.48.2-0ubuntu1 is to be installed
 libglib2.0-0-refdbg : Depends: libglib2.0-0 (= 2.48.0-1ubuntu4) but 2.48.2-0ubuntu1 is to be installed
 libglib2.0-dev : Depends: libglib2.0-0 (= 2.48.0-1ubuntu4) but 2.48.2-0ubuntu1 is to be installed
                  Depends: libglib2.0-bin (= 2.48.0-1ubuntu4)
                  Depends: zlib1g-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

On one hand the messages say the most current version is already installed on the other hand it says incorrect versions are installed. At the end it says there are broken packages.


Setting up Dual Boot with Cloned Image of Windows 7 and Ubuntu

First, check your firmware settings for anything referring to the Compatibility Support Module (CSM) or "legacy boot support" and disable any such option you find. (A few EFIs phrase these differently; they refer to "UEFI boot support" or something similar, which must then be enabled.) It's clear that you're booting your Ubuntu installation and repair media in BIOS/CSM/legacy mode, but Windows is installed in EFI/UEFI mode. It's this discrepancy that's causing your problem.

Second, you must install an EFI-mode boot loader for Linux. There are two relatively easy ways to do this and many more harder ways. The two easier ways are:

Boot Repair -- This program will re-install GRUB; however, you must boot an Ubuntu repair disc in EFI mode for this to work. If you can't boot your Ubuntu install/repair disc after disabling your CSM, that means it wasn't prepared correctly; see here for more on that topic. Note also that, although Boot Repair usually works, sometimes it doesn't, and on rare occasions it will render the computer unbootable, so you should be prepared for that possibility.
rEFInd -- This program, which I maintain, is an alternative to GRUB, but with some important differences. You can download a USB flash drive or CD-R image with rEFInd from its downloads page, prepare a boot medium with it, and boot it. This should then let you boot both Windows and Ubuntu. If both options work, install the PPA or Debian package in Ubuntu. rEFInd will then take over as the default boot manager and everything should work.


App to create a Video from an MP3 File and GIF Picture(s)?

I'd probably do it the hard way! I'd break the gif into frames and then reconstruct it with an audio track. Sounds hard but how's this:

convert input.gif input%05d.jpg
ffmpeg -r 5 -i input%05d.jpg -i audio.mp3 -acodec copy  -y -an -map 0:0 -map 1:0 ouput.avi

Alter the -r 5 argument to change the framerate of gif video.

ffmpeg can handle animated gifs but it struggles with the framerate and colours. It's much happier with jpegs. It's a big tool that few people fully understand (I'm still learning) but it's very powerful.


Connected but no internet access in Ubuntu 14.04

In the Internet, every computer has an Address, just like houses in the real world. If you don't know where someone lives, but you do know his/her name, you call some service hotline (or look in the phonebook). In the Internet, the equivalent to this service/phonebook is called DNS, which means "Domain Name Service". You basically call this Domain Name Service, and ask them, hey, where does this PC named google.com live? In your case, your dns does not work (since you can ping google if you use its address, but not if you use the name).

To solve this, open the network manager, click on your connection, edit the settings (not really sure where to find the button in Ubuntu, in my network manager its in the lower right of the window). In the settings window, go to the IPv4 section. There is a field under DNS, in this field, enter 8.8.8.8. If you want, you can add another entry by clicking the plus, and in this field enter 8.8.4.4. Those are googles DNS servers and they should work pretty much all the time!

EDIT: If you cannot do as mentioned above, because you can't find the option or whatever, just run the following command:

sudo sh -c "echo 'nameserver 8.8.8.8' >> /etc/resolvconf/resolv.conf.d/head"


How to change GRUB timeout only for the next reboot?

You can make use of Grub's Environment-block.

We can save a variable in /boot/grub/grubenv and modify
the value of the variable during the next boot.

Add the following lines to /etc/grub.d/40_custom:

if [ ${boot_once_timeout} != "x" ]; then
    set timeout=${boot_once_timeout}
    set boot_once_timeout=x
    save_env boot_once_timeout
fi

Make the file executable with sudo chmod +x /etc/grub.d/40_custom

Run sudo update-grub.

Now write the variable to /boot/grub/grubenv and reboot:

sudo grub-editenv - set boot_once_timeout=0
sudo grub-reboot 0

You can always check the value of the variable with

~$ cat /boot/grub/grubenv
# GRUB Environment Block
next_entry=
boot_once_timeout=x

Note that this will work only if Grub is able to write to /boot/grub/grubenv, so if your /boot folder resides in a BTRFS-partition or in a LVM-volume this solution will not work.

Please also take a look at this answer, another example which explains the use of Grub's environment-block.


Yes, you install Ubuntu Server and then the cloud tools. You should try the image described here: Ubuntu Cloud Live. Probably it's a better start than installing a bunch of os's. You can use it to boot real machines or as a vm disk.
Hope it helps.


/tmp shows 690 Mb full, actual size 72 K, Why?

It is possible for programs to unlink files but still keep them open. Such a file will still consume space until all programs stop accessing it, either by closing it or by terminating.

This is normal behaviour on Unix. It is common for programs to immediately unlink temporary files in this way in order to make sure that they disappear eventually.

Use lsof -a +L1 to see a listing of files in this state, together with the processes responsible.


Cannot create a new partition for my unallocated space

You'll need to use Gparted from a Live CD/USB, and expand the 28GB Extended partition all the way to the right. Then you should be able to create more logical partitions.


How do I request the addition of BitPim to 16.04

BitPim has been removed upstream at debian.

Bug#808105: Removed package(s) from unstable

bitpim REMOVED from testing

Ubuntu 16.04 uses the testing branch of debian thus if a package is removed from debian testing it is also removed from ubuntu.

You would need to go back to Ubuntu 14.04 or install BitPim manually from their homepage.


Wake-on-LAN packets are not routable and will therefore not work from outside your home network.


I have exactly the same issue on Ubuntu 18.04, but R. Pietsch's solution doesn't solve it :(

sudo crontab -e
@reboot /usr/sbin/netplan apply

I also tried to enable the root user, that it's disabled by default on Ubuntu, but no luck.

The only way I have to gain connectivity is to:

login into the machine using its own keyboard;
type "sudo netplan apply";
then I'm finally able to SSH into the machine.

If I don't "sudo netplan apply", I have no connection on the machine.
How is it possible to put into a LTS release such a broken piece of software?

I would like to add more details about my scenario, to be useful to other people to recognize the phenomena we are talking about. This is what it was happening in my case:

I installed Ubuntu 18.04 on my Intel NUC using the netinstall;
I configured the netplan YAML file to get a static ip address when wireless connected;
I applied it with "sudo netplan apply";
I rebooted my NUC;
I launched a "ping -t " from my Windows machine;
Once re-started, the NUC showed the LXDE login prompt;
At that point, the NUC was unreachable according to the ping;
I logged in, typed "sudo netplan apply" and after few second it became reachable.

I think netplan is a good improvement compared to /etc/network/interfaces, but this behaviour should be fixed as soon as possible :)

UPDATE:

I debugged the issue using the following commands:

$ journalctl --no-pager -lu systemd-networkd
$ networkctl

It seems it was the Network Manager panel in LXDE interfering with it.
Even if the connections were displayed as "unmanaged", I un-checked the "Enable Networking" and it seems it fixed the issue.

We can close this one :)


Do I see this right that LTspice is a windows program that only runs under wine and doesn't have any command line interface? I don't know much about neither MATLAB nor LTspice, but I seriously doubt that there's any way to script an application under these circumstances. I'd be happy to be corrected if I'm mistaken though!

Edit

The best I can come up with is a key press automation, I use xdotool for this, examples being

xdotool key --window 11 alt+r # sends ALT+R to window with id 11
xdotool type 'random text' # types "random text" in current window
xdotool mousemove 50 50 click 1 mousemove restore # moves mouse to 50 50, performs a left click and returns cursor to previous position

For more information read xdotool's manpage – “You can also write scripts that only execute xdotool”!


Evince, mouse wheel does not change pages (page up/page down behaviour)

I think I was a bit heedless, it works when I disable continuous mode and viewing with "best-fit" zoom level. (It works only within the best-fit mode, when switching to 50% or something similar it does not work).

To change modes click the box displaying the zoom percentage.


Suspend Button in interactive power button menu

Although there is an extension that does exactly what you want: Suspend Button by laser_b, it appears to have problems with current versions of Ubuntu 18.04.

Another option is using Unity instead of Gnome: Where is the power off button in Ubuntu 18.04 LTS ?

Your best bet is to change Gnome's configuration of what happens when you press the power button. Rather than the "Power Off" it can be changed to "Suspend". After the change, if you want to "Power Off" then hold the Alt key for Power off option when Power Button is pressed.

Notice the bottom right corner where you select "Suspend".

Image and Concept Credit: https://askubuntu.com/a/968628/307523


Which is better for a home media server: zfs or btrfs or LVM/md?

I am currently using btrfs, having used zfs in the past. zfs is quite memory hungry and isn't "linux-native", so if you're happy with a newer / less proven filesystem I recommend btrfs.

If you do go btrfs on Ubuntu LTS I recommend holding out for 14.04 since the recent kernels have a lot of btrfs updates.

A more traditional system would involve LVM + md software raid, this is a tried and tested solution that can give you the expandable storage, software raid, snapshots, etc etc but is not as "cool" as the newer filesystems and misses some features (like checksumming / COW).


[Solved]Screen Tearing in games after shifting to ubuntu

The Nvidia 340 driver is out dated, use 346, works great for me, change it in additional drivers or

sudo apt-get purge nvidia-340
sudo apt-get install nvidia-346

Still got tearing ?

Go to the Nvidia settings, and choose openGL settings and check sync to vblank this is hardware enabled v-sync and should force v-sync on your game.


What conv=fsync does in dd command-line utility

Some devices use buffers and caches in order to improve their throughput and latency performance. This command makes the device flush its buffers and caches so that if the device is removed the data is written to it before the operation is marked as complete and control passed back to the terminal prompt.


The solution that worked with me, as shown here, just create an empty file, type :
sudo touch /etc/cloud/cloud-init.disabled


Unity App Bar - Move open programs to the top?

No, Unity opens programs in launcher where they are and everything else to the bottom of last launcher Icon. But you can move them manually. Just click and hold the icon in launcher and drag left out of launcher and drop in position on launcher you want.

Unless Canonical or somebody else does a work, it remains impossible AFAICS


Yep, Grub Customizer didn't work for me as well in the latest Mint. I was only able to change the image background. Here is how to change font colors easily:

In Grub customizer, go to File > Change environment

In the dialog that opens check the CFG_DIR line to know where is the grub config directory for your system. In my case it shows:

CFG_DIR: /etc/grub.d

Open your /boot/grub/grub.cfg in read only mode. At the top of the file you will see this warning:

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

This is exactly what grub customizer does, it makes the grub.cfg from the templates you have in CFG_DIR.

Search in grub.cfg for this text: "set menu_color_normal"

Chances are that this line appears in a couple of places. Pick the one closest to the end of the file that is not inside an if. For instance, this one not:

if background_image /boot/grub/splash.png; then
    true
else
    set menu_color_normal=white/black
    set menu_color_highlight=black/light-gray
fi

It will be something like this one:

### BEGIN /etc/grub.d/06_mint_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/06_mint_theme ###

See the begin and end tags around it? That is the template from where grub customizer is obtaining the font color config. And yes, it totally ignores what you set in the GUI. In my case, it is /etc/grub.d/06_mint_theme as I'm on a Mint distro. In your case it might have another name in the form XX_something_theme.

The easiest way of having your colors show up is:

Open the /etc/grub.d directory as root
Edit the XX_something_theme file and change the colors to your liking. There are 3 colors to tune:
menu_color_highlight: highlighted menu entry and its background.
menu_color_normal: normal menu entries and background. Also the box border.
color_normal: text and background outside of box (title and bottom help).

The possible colors are {black, blue, brown, cyan, dark-gray, green, light-cyan, light-blue, light-green, light-gray, light-magenta, light-red, magenta, red, white, yellow}. Remember black means transparent for grub. Save the file.

Open Grub customizer
Make some changes to the colors (it doesn't mind which ones you pick, they will be ignored) and click save.

At that moment the colors you edited in the template will be appended into the definitive /boot/grub/grub.cfg file. Open this file in read only mode again to make sure.

Reference: Grub2/Displays - Community help wiki


trackpad not working at all after installing ubuntu 16.04.1

You could have accidentaly pressed the toggle trackpad button (Fn+Fsomething). Try pressing it again.


iscsi_trgt missing because can't build kernel module

It depends on your ubuntu-version.

On newer systems (since Maverick) you have to install some additional packets:

sudo aptitude install iscsitarget iscsitarget-source iscsitarget-dkms

This compiles the required module automagically.

On Lucid you have to compile yourself (and maybe again after every kernel-update):

sudo aptitude install iscsitarget iscsitarget-source
# compile with module-assitant
sudo m-a a-i iscsitarget


You’ve surely already found this informative blog post: Decrypting Android M adopted storage


Enigmail issue with Ubuntu 16.04, Thunderbird 38.8.0

How I solved this:

Essentially, the only sane way I could find of fixing this was to completely reinstall the OS. I was able to do an export of my previous enigmail settings (including the key) and subsequently import it to a different client. I moved from Ubuntu 16.04 to Kubuntu 16.04, so there should be little difference behind-the-scenes, there.

Either way, that's it. If you're having a similar issue and don't want a reinstall, try making a new question. Sorry for not providing a cleaner solution.


Do you have chrome-remote-desktop installed?
I had the same problem, and uninstalling chrome-remote-desktop was the fix, as per this question


Listing files of identical type with ls command can produce files with different colors

The file WhiterShadePale1.jpg has execute permissions. That's all there is to it. The executable colour overrides the *.jpg colour.


How to open folder as a playlist in Audacious from context menu

This is the way I did.

I ran the following command:

sudo apt-get install nautilus-actions

Then run the Nautilus-Actions Configuration Tool, and create a new item:

Label => Open with audacious
Path => /usr/bin/audacious
Parameters => %U
Working directory => %D -

Good luck.


how to completely remove all libraries installed using sudo apt-get install  , etc?

You can do sudo apt remove package1 package2 package3...

Then do sudo apt autoremove to remove dependencies that you no longer need.

To see which packages you have installed recently, look in /var/log/apt/history.log.


quickly should support the EDITOR environmental variable.

$ quickly help ubuntu-application edit
Usage: quickly edit

A convenience command to open all of your python files in your project
directory in your default editor, ready for editing.

If you put yourself EDITOR or SELECTED_EDITOR environment variable, this latter
will be used. Also, if you configured sensible-editor, this one will be
choosed.

I don't have any other GUI IDEs installed, but I tested it with $ export EDITOR=nano && quickly edit and all files were opened in nano instead of gedit. Adding export EDITOR=nano to your ~/.bashrc should make this change persistent.


I found the solution: remove the folder .gstreamer in the home directory.


R/Shiny WebApp logs, running in shell (Ubuntu crontab)

To make logs of Rscript function in terminal appear, I needed the following command:

@reboot sh /home/admin/AutoRun.sh > /var/log/WebApp.log 2>&1 &

And in the AutoRun.sh file:

#!/usr/bin/Rscript
Rscript -e 'shiny::runApp(...)'


iRedMail MySQL install prompts for password, hangs

I was able to get to a functioning password prompt by downloading the packages from MySQL's website.  apt-get still froze.  However, the underlying issue was actually a PAM configuration problem.  I had haphazardly included the use_authtok option in my password configuration in /etc/pam.d/, which prevented anything from checking the password.  I'm still not sure why the install required it, but at least it worked.


How do you set scaling for a high dpi monitor and low dpi monitor independently?

My monitors are only 1920x1080: a 17" laptop and a 50" TV. The smaller laptop sits four feet away and I need to increase the size of everything to see it better.
Go into System Settings -> Screen Display
On the Scale for menus and title bar, I set to 1.5 on 17" Laptop screen but leave at 1.0 for TV. I'm not sure if this will work for you...

Edit 1 - Increase overall DPI scaling
The deafult DPI in X is 96 Dots per inch. This can appear very tiny on my 17" laptop screen with a resolution of 1920 x 1080. You need to stick your face 6 inches from the screen to read the screen for the Kids3 application for example:

To solve this (in my case), use:
xrandr --dpi 168

Then reopen the application:

This is a manual method. You can make it permament but you can have X calculate the DPI by passing it your resolution and screen size in the Xorg configuration file:
Section "Monitor"
    Identifier             "Monitor0"
    DisplaySize             286 179    # In millimeters
EndSection

I haven't played with this yet.


Run sudo apt-get remove oracle-java8 oracle-java8-installer and then sudo apt-get install openjdk-7-jdk. This will remove Oracle's Java and install OpenJDK, which is a little more stable and, I believe, is under more development.


Check this site http://www.ubuntugamer.com/

This site is dedicated for gaming in ubuntu. You can find lot of games at this site.
I hope you can find some interesting games from this site.Just try and what ever the result feel free to post it here.


MBR is on wrong drive (USB) now windows/ubuntu won't boot w/out usb connected

Test this:

Boot your pc from the HD.

Extract the usb drive.

Open a terminal. CtrlAltT.

Run it:

sudo -i
apt-get update
apt-get install reinstall grub-pc grub-pc-bin grub-common
grub-install /dev/sda
grub-install --recheck /dev/sda
update-grub
reboot

This procedure is for non-UEFI bios.

For UEFI procedure is:

sudo -i
apt-get update
apt-get install reinstall grub-efi
grub-install /dev/sda
grub-install --recheck /dev/sda
update-grub
reboot


Oddly enough I discovered if I type in the Ubuntu's machine UNC name, it works perfectly. Even shows on the left panel after doing that, but in the right panel (where it says network) its missing. Some bug in Windows 7 I guess.


I have a very similar keyboard (MaxKeyboard Nighthawk X8, looks identical to yours), and the following terminal command worked for me:

sudo kbd_mode -u

This should fix the NumLock LED issue.  The CapsLock issue still eludes me, and I haven't been able to locate much regarding that myself.  Hope this helps!


Take a look at aria2.

aria2 is a lightweight multi-protocol & multi-source command-line download utility. It supports HTTP/HTTPS, FTP, BitTorrent and Metalink. aria2 can be manipulated via built-in JSON-RPC and XML-RPC interfaces.aria2

Also you may want to look at Curl, and rsync


Unable to open xls file in Openoffice calc

Possible solutions:

Use LibreOffice instead.
Convert it to ODS using Microsoft Office.
Convert it to ODS by uploading and converting it to Google Sheets format first.
Convert it to ODS by using a website such as Zamzar (source).


Installing Ubuntu along WindowsXP 32 bit

In Windows XP create a new partition for ubuntu through disk management.
Then create a bootable ubuntu live usb through unetbootin software.
Boot from the ubuntu live usb,click on install ubuntu option,and then select the something else option.select the partition where you are going to install ubuntu and format it to ext4 filesystem.
Then install ubuntu on that partition.

Also refer this for dualbooting windows and ubuntu.


Enable universe repository by executing:

sudo add-apt-repository universe

sudo apt-get update

Or by using the Software & Updates application:

Then execute:

sudo apt-get install python-pandas

You may use Ubuntu Software Center instead:


List of all base packages installed in Ubuntu laptop versus Ubuntu tablet/smartphone

To list the Files that you have installed:

dpkg --get-selections | grep -v deinstall

To copy the Packages to desktop in .txt that you have installed:

dpkg --get-selections | grep -v deinstall > ~/Desktop/packages

To list the packages that you have installed:

dpkg -l
apt --installed list

Note: sudo is not necessary for the above two commands


How do I install AMD Radeon HD 7570M/Intel Hybrid drivers?

You have two options. Either downgrade to 14.04 or install open source AMDGPU/ATI drivers.
This is how I installed AMD drivers in my Ubuntu 16.04 Xenial
Download the AMDGPU-PRO from here
Run the following commands in the terminal
tar xvzf amdgpu-pro-16.40-XXXXXX.tar.xz
cd amdgpu-pro-16.40-XXXXXX
chmod +x amdgpu-pro-install
sudo ./amdgpu-pro-install
Replace XXXXXX with the build number. Finally issue the following obvious command.
sudo reboot
To verify if it installed successfully issue dpkg -l amdgpu-pro
Source: https://support.amd.com/en-us/kb-articles/Pages/AMDGPU-PRO-Install.aspx


How do I install wallpapers of 13.10 on 13.04

You can download saucy wallpapers from the Launchpad page.

Graphically

Through your browser visit this page and download the file : ubuntu-wallpapers_13.04.0+13.10.20130924.1.orig.tar.gz

Then open the file manager goto the Downloads folder and right click on the file and "extract here". A folder with the same name will be created. If you want this folder in the original wallpapers folder you will need root privileges in order to move it there. (/usr/share/backgrounds/)

For terminal

Open a terminal (CTRL+ALT+T) and execute the following commands one by one

wget "https://launchpad.net/ubuntu/saucy/+source/ubuntu-wallpapers/13.04.0+13.10.20130924.1-0ubuntu1/+files/ubuntu-wallpapers_13.04.0+13.10.20130924.1.orig.tar.gz"

tar xvzf ubuntu-wallpapers_13.04.0+13.10.20130924.1.orig.tar.gz

sudo mv ubuntu-wallpapers-13.04.0+13.10.20130924.1/ /usr/share/backgrounds/

Alternatively

You can locate and download the .deb package for an easy installation. The installation process it will install the wallpapers at the right directory.

wget "https://launchpad.net/ubuntu/+archive/primary/+files/ubuntu-wallpapers-saucy_13.04.0%2B13.10.20130924.1-0ubuntu1_all.deb"
sudo dpkg -i ubuntu-wallpapers-saucy_13.04.0%2B13.10.20130924.1-0ubuntu1_all.deb


I'm almost certain that the error is because your system is configured to use mawk (which currently does not appear to support the switch ... case construct) as the default implementation of awk - rather than gawk (GNU Awk):

$ sudo update-alternatives --set awk /usr/bin/mawk
update-alternatives: using /usr/bin/mawk to provide /usr/bin/awk (awk) in manual mode
$
$ echo 'abc:123' | awk -F: '{switch($2) {case /^[0-9]+$/: print $1; break;}}'
awk: line 1: syntax error at or near {
awk: line 1: runaway regular expression /: print $1 ...

whereas with GNU awk

$ sudo update-alternatives --set awk /usr/bin/gawk
update-alternatives: using /usr/bin/gawk to provide /usr/bin/awk (awk) in manual mode
$
$ echo 'abc:123' | awk -F: '{switch($2) {case /^[0-9]+$/: print $1; break;}}'
abc


faster (and less precise) alternatives to dd

If you prefer a full, mountable, image backup, then e2image has gained the ability to copy the filesystem with data, skipping the free space in 14.04.  Of course, tar or dump also lets you do incremental backups.


windows 7 not booting boot-repair problem

Boot on an Ubuntu disc (USB or DVD).
Choose 'Try Ubuntu'.
Connect internet
Install and run Boot-Repair

Alternatively, you can:

Download a Boot-Repair-Disk image
Burn it on a CD or an USB key
Boot on it. This will launch the Boot-Repair utility automatically.


Samsung SCX-4200 Scanner not working (printing OK) 14.04

This is a kind of an old question, but I had similar issues in Ubuntu 18.04.

The problem in my case was USB3. After putting the cable to an USB2 input, it worked all fine.

This has been discussed here (in french language): https://forum.ubuntu-fr.org/viewtopic.php?id=2023391

Might be related to this one: scanner of Samsung SCX-4200 does not work on ubuntu 12.10


How to merge two partitions on the same hard drive (one of which is the system file)?

Every partition question is individual, and what's more: different options are possible, and the choice between these is to an important extent a matter of preference on how you want to organize.
A partition of 30GB for a linux system is plenty. You do run out of space because you also keep user data there. If you would move out all your user data, you would have plenty of space to install additional software.
Option 1. Your current sda5 system partition is at the end of the disk. To enlarge it, you would need to first move it to the front, after which you could expand it to the right. Moving a partition can be a very lengthy operation with quite some chance it will not succeed successfully. I would not recommend to attempt this, even if it is possible in principle.
Option 2. 30 GB for the system is (by far) enough if you keep all your user data out. So you can instead create a big data partition and move your data folders there. When you replace the current datafolders by symbolic links pointing to the real folders in the data drive, the system will, for daily use, work exactly as before.
Your current sda4 is a partition formatted in ntfs, the Windows file format. For use with linux, you shoudl use the ext4 format. Either keep it and create a new ext4 partition in the free space, or delete it and create one big ext4 partition in the free space.


How do I determine which HDD the system was booted from when using UEFI?

I've not tested this experimentally, so it may not work in practice, but the efibootmgr utility does return a variable called BootCurrent that should identify the boot loader that the EFI launched. For instance:

$ sudo efibootmgr -v
BootCurrent: 0001
Timeout: 3 seconds
BootOrder: 0000,0001
Boot0000* EFI DVD/CDROM ACPI(a0841d0,0)PCI(14,1)ATAPI(0,1,0)
Boot0001* OsLoader0000  ACPI(a0841d0,0)PCI(11,0)03120a00000000000000HD(1,800,5ede2,2c47c282-ee6e-45de-a5ad-e8658ca67de6)File(\EFI\BOOT\BOOTX64.EFI)

This output indicates that the system was booted via entry 0001 (Boot0001). The -v option to efibootmgr used here adds verbose information, which includes the GUID of the partition on which this boot loader was stored -- 2c47c282-ee6e-45de-a5ad-e8658ca67de6 in this case. Note that this is a partition GUID, not a filesystem UUID. AFAIK, the only way to extract partition GUID data in Linux is via gdisk, cgdisk, or sgdisk. For instance:

$ sudo sgdisk -i 1 /dev/sda
Partition GUID code: C12A7328-F81F-11D2-BA4B-00A0C93EC93B (EFI System)
Partition unique GUID: 2C47C282-EE6E-45DE-A5AD-E8658CA67DE6
First sector: 2048 (at 1024.0 KiB)
Last sector: 390625 (at 190.7 MiB)
Partition size: 388578 sectors (189.7 MiB)
Attribute flags: 0000000000000000
Partition name: 'EFI System'

Note the Partition unique GUID line, which matches the value included in the efibootmgr output (aside from case, which varies). Given the input to sgdisk in this example, it means that partition 1 on /dev/sda (that is, /dev/sda1) held the system's first boot program. You may need to scan all your partitions, or at least all the ones on which EFI boot loaders might be present, to be sure of finding a match. Even then, you might not find a match -- for instance, if the boot loader was on a USB flash drive that's since been removed from the computer, or if you've changed the partition's GUID.

Based on my check on the system at which I'm sitting, it appears that the efibootmgr -v output reports the boot loader program that the EFI launched. This may not be the same as the one that launched Linux, since the program the EFI launched may have been a boot manager that in turn launched another boot loader. If your system's boot process is simple, this may not matter; but if your boot process includes the possibility of cross-disk redirection, this technique won't be reliable.


Go to System Settings -- > Brightness & Lock panel from the Unity Launcher.

Where you will find a tick option like "Require my password when waking from suspend". Just uncheck the tick option. I hope that this will do the needful


Just installed Unbunto via Windows XP and cant log in

Wubi has bugs like that, it is better to install Ubuntu via a live CD or a USB device.
You can uninstall Ubuntu by going onto Windows XP -> Control Panel -> Add or remove software -> Ubuntu / Wubi

Live CD: https://help.ubuntu.com/community/LiveCD