Dell T7400 won't boot Ubuntu unless the live USB is connected

It was a very simple error - GRUB was on the USB. It was a very simple fix; I just had to boot as normal with the USB connected and then run this command:

sudo grub-install /dev/sdb

(on my machine, sdb was the install target drive)

It's all working nicely now

See this post on Super User for more details Ubuntu Server installed from USB puts GRUB on the USB drive instead of the hard disk.


Persistent (hardware?) problems over multiple Ubuntu reinstallations

Most likely it was RAMs' fault. After having opened the case, having removed the RAMs and removed lots of dust from their heatsinks, having cleaned everything else from the lots of dust present and having updated the BIOS to a new version which sets the memory timings correctly i was able to reinstall and to use the PC without problems


Accessing encrypted boot drive as extra drive

How to Mount an Encrypted Partition at Startup via GUI
1. Connect your device and run Disks:

2. Select the device, select the encrypted partition. Don't unlock it yet. From the 'Gears' menu select Edit Encryption Options:

3. Into the dialogue box Encryption Options:

Set Automatic Encryption Options to OFF
Tick the option Unlock at startup.
Enter your Passphrase.
Then press OK (and authenticate yourself into the next dialogue).

4. Click on the 'Padlock' icon to unlock your encrypted device:

5. Now select the partition (the inner part) and from the 'Gears' menu select Edit Mount Options:

6. Into the dialogue box Mount Options:

Set Automatic Mount Options to OFF
Tick the option Mount at startup.
Tick the option Show in user interface, if you want.
Change the Mount Point.
Then press OK (and authenticate yourself into the next dialogue).

7. Now press the 'Play' button to mount your device:

8. Close Disks and restart the system to check the result.
That's it!


best version for r15-s829 toshiba satellite

From Googling the model number, the specs are:

Intel Pentium® M Processor 735 1.70GHz, 2MB L2, 400MHz FSB
512MB DDR333 SDRAM

You are definitely going to want Lubuntu. For convenience, here's a direct link to Lubuntu 14.04 LTS: http://cdimage.ubuntu.com/lubuntu/releases/14.04.5/release/lubuntu-14.04.5-desktop-amd64.iso


Custom keyboard shortcut to print symbol

xdotool -> link where i found how the tool should work
This program will work only on a xorg system.
sudo apt install xdotool and then when creating a shortcut,
set the command as xdotool key -. This should simulate the key press.
Note that i didn't try this program so i don't know if it works, please comment below if it worked.


Logitech K750 stops working after booting

OP posted:

  It seems the solution is a mix of two things, one is the adapter has to be taken out and put back in and the above modprobe command must be run.


Want to convert ubuntu 12.04 desktop to server

Maybe I'm wrong, but I believe you can install the server version as normal via cd. The setup manager will ask you if you want to keep your profile and update your desktop installation. Just a thought. --Regards.


The short answer is no. Ubuntu uses Upstart as its init daemon. Upstart does handle runlevels and legacy init-style scripts for backwards compatibility, but most boot processes installed by Ubuntu itself are Upstart jobs. Upstart jobs do not start and stop on numbered runlevels like traditional init scripts do.

However, on a Red Hat system, the primary difference between runlevel 3 (multi-user text mode) and runlevel 5 (graphical desktop login) is whether gdm is running. So to approximate Red Hat's runlevel 3 on Ubuntu, the lightdm login manager can be either uninstalled or disabled.

Uninstall lightdm with

sudo apt-get purge lightdm

or disable the lightdm upstart job following the instructions in this answer.


reinstalling boot loader after linux partition removal

this site may have what you need.
http://www.webupd8.org/2012/09/grub-customizer-30-released.html
http://www.webupd8.org/2011/02/how-to-boot-iso-with-grub2-easy-way.html..


Allow users in the "exampleuser" group to run su -c exampleuser

The rule should actually be:

%www-data ALL = (www-data) NOPASSWD: *

The specification in the brackets (Runas in sudoers) is to specify the target user (and/or group) (the one you specify using -u).

That said, what you should actually be doing is setting correct permissions, including the setgid bit. How to avoid using sudo when working in /var/www?


Installation: can't boot the ubuntu 12.04

Check your BIOS SATA Mode, it has two options: IDE Mode and AHCI Mode. IDE Mode enable you to see the disk

Hope it's helpful!


First, I used these commands (thanks, Beleriand):

sudo ifconfig eth0 up
sudo dhclient eth0

Then I solved it by upgrading the network manager: 14.04 - Network manager stopped working

Thank you!


Guessing you have added a line in /etc/apt/sources.list for tor repository
The next step is : importing the signing key

curl https://deb.torproject.org/torproject.org/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc | gpg --import
gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -

TorProject provides a Debian package to help keeping the signing key up-to-date. They recommend to use it.

sudo apt-get update
sudo apt-get install deb.torproject.org-keyring

For reference information: https://2019.www.torproject.org/docs/debian.html.en


Apache2 throws 403 Forbidden error when accessing site resources

Alrighty guys, so I know for most people this won't be the answer they're looking for. But to successfully fix this issue, I uninstalled apache2, and looked online for a lamp-stack install guide, and this new install fixed these errors!


vmhgfs module not compilable for VMware Tools 9.9.0 (Fusion7.1) after Ubuntu Linux kernel update to 3.13.0-46-generic?

The tools can be patched manually. In vmhgfs.tar, inode.c d_alias must be changed to d_u.d_alias , put back to the tar and then recompile tools.

A script that does that (tested on 32-bit ubuntu 14.04, vmware workstation 11.1 on a windows host) is here:

#!/bin/sh -x
cd /usr/lib/vmware-tools/modules/source
tar xf vmhgfs.tar
grep -q d_u.d_alias vmhgfs-only/inode.c && echo "already patched" && exit 0
sed -i -e s/d_alias/d_u.d_alias/ vmhgfs-only/inode.c
cp -p vmhgfs.tar vmhgfs.tar.orig
tar cf vmhgfs.tar vmhgfs-only
vmware-config-tools.pl -d -m

NOTE: this makes the tools incompatible with older kernel versions, i.e. 3.13.0-45.


This worked for me:

https://serverfault.com/questions/880950/network-issue-ifup-says-unknown-interface

iface enp0s3 inet dhcp

Followed by:

/etc/init.d/networking start


How to get default (vanilla) GNOME shell theme in Ubuntu 18.04 after update?

It seems you've logged into an (default) Ubuntu session somehow instead of a (vanilla) GNOME session.

To do that when you boot your system and get to the GDM login screen you should find a cogwheel (⚙) next to the sign in button. If you click on the cogwheel you should find an GNOME (and GNOME on Xorg) option. Select it and log in.

If you want to adapt my answer from the post you linked, you need add the following line to the created gnome-shell.css file

@import url("/usr/share/gnome-shell/theme/gnome-shell.css");

instead of the

@import url("/usr/share/gnome-shell/theme/ubuntu.css");

line.

As suggested by the author of question @Crantisz, to make the topbar always opaque, add the following to the created gnome-shell.css file.

@import url("/usr/share/gnome-shell/theme/gnome-shell.css");

#panel {
  background-color: rgba(0, 0, 0, 1);
}


How to remove KDE stuff from software updater

kubuntu-desktop or kubuntu-full are metapackages. Uninstall these packages does not uninstall kde packages. You need to uninstall all packages manually...

You can view the list of installed programs by looking at my /var/log/apt/history.log.*. In these files you can locate the packages installed in the kubuntu install and remove they.


do i need to install motherboard and graphic card drivers..? if yes then how..?

You do not need to install "motherboard" drivers.

But you probably may want to install proprietary video drivers from System Settings -> Software & Updates -> Additional Drivers


How can I change the login screen theme in GDM?

Use this command in the terminal:

sudo cp /usr/share/applications/gnome-appearance-properties.desktop /usr/share/gdm/autostart/LoginWindow

Logout, and you will be prompted with the Appearance window. change the theme as you change it for the desktop, and login back, and type this command:

sudo rm /usr/share/gdm/autostart/LoginWindow/gnome-appearance-properties.desktop

That's it.


The best you can get currently seems to be gyache. Even though it is old and not maintained anymore. From the website:

  This Yahoo! client for Linux operating system supports almost all of the features you would expect to find on the official Windows Yahoo! client: Voice chat, webcams, faders, 'nicknames', audibles, avatars, display images, and more. Yet, it remains very light-weight and memory-friendly. GyachE Improved uses Gtk-2 for its user interfaces (Gtk-2 2.0.6 or better required).

You need to install from source though. From install.txt:

Steps for building a gyachi executable

use the autogen script to generate a configure script:

./autogen.sh

run configure, with any options that you might prefer:

./configure --disable-rpath --enable-maintainer-mode --prefix /usr

To generate a spec file

make gyachi.spec

To build an image that will be installed over existing executables
(not recommended):

make
make install


How to open shared folder in Windows XP from nautilus

In Nautilus you should be able to select "Connect to Server.." from the File menu.

This will give you a dialogue to fill in.

First set the type to "Windows Share" then fill in the information for the server you want to connect to.

Once connected you can then bookmark the directories that you are interested in for easier connection later.


Resizing partitions on a RAID 0 Array by command line

Ext2, ext3 and ext4 are evolutions of the same filesystem; in fact an ext4 filesystem with none of the newer features activated is an ext3 filesystem, and an ext3 filesystem with none of the newer features activated is an ext2 filesystem. That's why there's no separate set of programs for ext3 and ext4: it's the same set of tools, e2fsprogs, that's been gradually enhanced to cope with ext3 and ext4.

A limitation of resize2fs (“ext2/ext3/ext4 file system resizer”) is that it can shrink a filesystem only while it's unmounted. So if you want to shrink /home, you'll need to unmount it first. You can enlarge a mounted filesystem, that won't be a problem for /.

Your bigger problem will be resizing the RAID-0 array. The one tool to manage RAID arrays is mdadm. As far as I know, it's not possible to resize a RAID-0 array.

As far as I can see, you're stuck with this configuration unless you're willing to copy all the data off /home and / for the duration of the maintenance. (You could get away with copying only the data off /home and creating a larger root partition encroaching on its space.) You could use that unpartitioned space at the beginning of the disk to store the current contents of /home. This is not very difficult, but it is error-prone. That's not something I'd attempt without physical access (it's especially easy to screw up the bootloader when you're shuffling the root partition around). Your lack of familiarity with the tools makes it all the more likely that you'll make a tiny mistake that's easily fixed but only by inserting a boot CD.

My recommendation would be to move a large chunk of / to /home and create a symbolic link, until such time as someone can attend that server physically.

For the future, I recommend not using md-RAID's RAID-0 and using LVM stripping instead. LVM volumes can be resized, even stripped volumes. LVM is slightly slower here, but easier to manage (as the issue you're having now illustrates). Use RAID for mirroring (RAID-1) and for other RAID modes.

Also, should you decide to stick to RAID-0 for that 5% performance boost, it would have been easier if you'd had a single RAID-0 array.


I am just answering 2nd part of your question, because 1st part is not possible using just ls command.

to list only hidden files and only hidden directories sorted in alphanumerically manner. folders will come in alphabetically order(along with files), not before files

ls -a1d .*

-a gives you all file/directory hidden or not
-1 gives you one result per row
-d stops ls from listing subdirectories and files inside any folder it comes accross
.* wild card allows to list only hidden file/directory


Setting default window size in Ubuntu 16.04 terminal

In Ubuntu 16.04 open the terminal, select Edit->Profile Preferences, General tab and change the values for columns and rows after where it says Initial terminal size:.


Cannot install ubuntu 12.04 or 13.04 in dualboot with windows 8.1, UEFI

Since sdb is a MBR(msdos) partitioned drive it will only boot in BIOS mode. You would need to convert  it to gpt partitioning to boot with UEFI.

It also looks like you did the Boot-Repair 'buggy' UEFI rename. If booting Ubuntu in BIOS mode you do not need that. And best not to use that if your system will boot ubuntu if in UEFI mode. Only required for those systems/vendor that modify UEFI to only boot Windows. Boot-Repair cannot tell and just offer it if you run it more than once.

To undo & to rename files to their original names, you just need to tick the "Restore EFI backups" option of Boot-Repair.

UEFI and BIOS are not compatible. So once you start to boot in one mode you cannot change or use grub to select system. Or you can only boot from UEFI or perhaps one-time boot key if your system auto switches to match install mode. Some require you to turn on/off UEFI or CSM/BIOS boot mode to change in UEFI menu also.

I would suggest backing up data on sdb & convert to gpt partitioning since sda is UEFI with gpt partitioning.

GPT Advantages (older but still valid)  see post#2 by srs5694:

http://ubuntuforums.org/showthread.php?t=1457901

https://wiki.archlinux.org/index.php/GUID_Partition_Table#Advantages_of_GPT

You may be able to convert, but need good backups anyway.

http://www.rodsbooks.com/gdisk/mbr2gpt.html


Option for Install Ubuntu alongside Window 7 not showing up

I kind of had the same issue when I first tried to install Ubuntu. Originally my laptop came with Windows 8. After enabling legacy OS in the BIOS I was able to install Windows 7, but I installed in on the original Windows 8 partition structure, but when I tried to install Ubuntu, the option to install alongside Windows was not available. I tried Windows repair to see if maybe the boot structure was install incorrectly, reboot after reboot, tweaks left and right inside Windows, and the BIOS to try and allow Ubuntu to load side by side with Windows but nothing worked. I ended up having to re-install Windows 7 and wiping the entire HDD when I did it. Once the HDD was wiped and a fresh install of Windows 7 was loaded, Ubuntu showed the option to install along with windows.

My best guess as to why I had the issue was that with the original set up, UEFI (Unified Extensible Firmware Interface, along with the format did not allow for Ubuntu to accurately check for other OS's. Unfortunately I an not Ubuntu savvy enough to figure it out on my own.

I do hope that this helps a little.


grub-install not working to update location of grub.cfg

Ah ha! Grub doesn't understand lvm snapshots. I copied my root filesystem to a regular lvm volume and things started working again.


you can change your keyboard layout to your's desired one.type as keyboard in your unity dash or open system settings , there you will find keyboard layout option .click it to open and in that window ,click at layouts and there you can set your layout .for more information you can have a look at the image .


How to disallow access to folder even for admins?

You can encrypt the files/folders using seahorse. It integrates well with Natuilus, and you can simply. Encrypt by clicking right and select encrypt

Reference: https://askubuntu.com/a/27780/488702


Are you able to use the network in some other context? Booting Windows or another version of Ubuntu or Linux, perhaps?

What version of Ubuntu did you upgrade from? Was the network working before you upgraded?

Is this a wired ethernet or wireless connection? (I'm guessing wired, but safest to ask.)

What have you already done to determine the network is not working? Have you tried to start the network by clicking on the Wired connecction entry in the pull-down menu for the networking in the upper right hand corner of the desktop?


From POSIX standard definition:

  $

  Expands to the decimal process ID of the invoked shell. In a subshell (see Shell Execution Environment ), '$' shall expand to the same value as that of the current shell.

This is necessary when you might send signals, such as KILL or SiGTERM to shells other than you're currently using, determining process info about the shell via data available in /proc/$$/ directory, and many other things.  I vaguely recall using it once in shell script to capture script's PID, and then distinguish it from function calls defined within the script. It can also be used to distinguish multiple instances of a script of the same name.


You can find all about what tty means in here: What does "TTY" stand for?.

Basically, it is a CLI (command-line) interface, simple text only. Just enter your password. If that doesn't work, type: sudo su and enter the root password. Then type startx. A graphical interface should appear. If it doesn't, probably, something went wrong with the update. Type sudo apt-get update, then sudo apt-get upgrade to redo the update.


Configuring Bonding of Two 10Gb NICs Using Netplan

network:
  version: 2
  renderer: networkd
  ethernets:
    ens1f0:
      dhcp4: no
    ens1f1:
      dhcp4: no
  bonds:
    bond0:
      interfaces: [ens1f0, ens1f1]
      addresses: [192.168.1.49/24]
      gateway4: 192.168.1.1
      nameservers:
         addresses: [8.8.8.8,8.8.4.4]
      parameters:
        mode: 802.3ad
        lacp-rate: fast
        primary: ens1f0
        mii-monitor-interval: 100

Use this please


What script is used for creating usbboot partition, and installing grub in mkusb

Short answer
In mkusb I use the shellscript dus-persistent to create the persistent live system. It consists of several functions, and specifically the function grub_n_iso to create partitions and put things into them. (The name is inherited from an old system, where iso files were used.)
Longer answer
If you have already installed mkusb, you can read the file dus-persistent with less or with your favourite text editor.
less /usr/sbin/dus-persistent

If you have not installed it yet, you can read it via the following link,
phillw.net/isos/linux-tools/mkusb/dus-persistent
Detailed answer
But I think you want more detailed information, that shows the details, where the third partition usbboot is created and filled with content (grub).
1. From the function grub_n_iso
echo "item 30"
echo "30
# make partitions: preparing $part" >> "$tailfile"

if $grubimg
then
 /bin/echo -e "$inversvid using grub.img: keeping file system of $part: $resetvid "
else
 echo "preparing $part  ------------------------------------------------"
 dd if=/dev/zero of="$part" bs=1024 count=1024 2>&1
 sync
 umount  "$part" 2>&1
 sync
 sleep 1
 mkfs.vfat -v -F 32 "$part"
 echo " "
 sync
 sleep 0.5
fi

In several versions of Ubuntu when installed, it is difficult to create grub for the 'other' boot mode, particularly to create grub for BIOS mode when booted in UEFI mode. For this reason there is an image grub.img, prepared like described below, that can be used.
When suitable, the partition is created with mkfs.vfat, and it will be labeled usbboot.
label="usbboot"
dosfslabel "$part" "$label"

2. From the function grub_n_iso
echo "item 70"
echo "70
# installing bootloaders" >> "$tailfile"

if [ "$distr" == "opensuse" ]
then
 grub_inst=grub2-install
else
 grub_inst=grub-install
fi

if $grubimg
then
 /bin/echo -ne "$inversvid UEFI Bootloader: $resetvid "
 $grub_inst --force --removable --no-floppy --boot-directory="$targ1"/boot \
 --efi-directory="$targ1"/EFI/BOOT "$2" 2>&1
fi

if $biosbl
then
 /bin/echo -ne "$inversvid UEFI Bootloader: $resetvid "
 $grub_inst --force --removable --no-floppy --boot-directory="$targ1"/boot \
 --efi-directory="$targ1"/EFI/BOOT "$2" 2>&1
elif ! test -f "$looper"/boot/grub/grub.cfg
then
 if test -f "$mkusb_sdir"/usb-pack_efi.tar.gz
 then
  if ! $upefi
  then
   echo "$inversvid Select 'upefi' to use 'usb-pack-efi' $resetvid"
  fi
 else
  /bin/echo -e "$inversvid No 'grub.cfg' for the UEFI Bootloader found in the iso file $resetvid
${version% *} needs the package 'usb-pack-efi' with the file
'usb-pack_efi.tar.gz' to make a persistent live system with
this iso file boot in UEFI mode."
  if test -f /usr/bin/apt-get
  then
   echo "You can use the following command lines in a terminal window.

sudo add-apt-repository ppa:mkusb/ppa
sudo apt-get update
sudo apt-get install usb-pack-efi"
  else
   echo "
Use search string 'ubuntu dus-plus' for the tarball 'dus-plus' which contains
'usb-pack-efi'. Be prepared to tweak the system manually afterwards. It may be
difficult to create a persistent live system in your linux distro."
   echo "$separator"
  fi
 fi
 if $grubimg
 then
  /bin/echo -e "$inversvid BIOS Bootloader via 'grub.img': $resetvid "
 else
  /bin/echo -ne "$inversvid BIOS Bootloader: $resetvid "
  $grub_inst --force --removable --no-floppy --boot-directory="$targ1"/boot "$2" 2>&1
 fi
fi

The command grub-install is used (in Ubuntu and Debian). It uses the option --efi-directory for the UEFI bootloader.

If the setting 'upefi' (usb-pack-efi) is selected or necessary, it will be extracted.

The command grub-install is used again. For obvious reasons it does not use the option --efi-directory for the BIOS bootloader.

3. From the function grub_n_iso
echo "item 80"
echo "80
# copying files ..." >> "$tailfile"

error=""

# start copy/extract boot files (not upefi) ----------------------------

if ! $upefi && test -f "$looper"/boot/grub/grub.cfg
then

# copy the boot files from the iso file

/bin/echo -e "$inversvid 64-bit bootloader: copy the boot files from the iso file $resetvid"
echo "looper=$looper"
echo "targ1=$targ1"

rsync -Ha --exclude=filesystem.squashfs "$looper/" "$targ1"
symlink_error_comment="rsync:$inversvid  don't worry, $resetvid symlink errors are *expected*
because of the target file system."
/bin/echo -e "$symlink_error_comment"
#if [ "$disk_name_type" == "debian" ] && [ "$release" == "stretch" ]
#then
# mount -o loop "$looper"/boot/grub/efi.img "$loopefi"
# rsync -Ha "$loopefi/efi" "$targ1"
# umount  "$loopefi"
# ls -l "$targ1"|grep ^d    ###
# find "$targ1/efi"         ###
# read -p "after rsync efi" ###
#fi

is_file "$targ1"/boot/grub/grub.cfg
if [ $? -ne 0 ]
then
 echo "'$targ1/boot/grub/grub.cfg': file not found"
 echo "This way to use ${version% *} needs 'grub.cfg' from the source iso file,"
 echo "and it is available in Debian and Ubuntu family *amd64* iso files"
 clear_grn "$pid" "$looper" "$targ1" "$tailfile" "$usbdata"
 exit
fi

# tweak 1 grub.cfg

sed "$targ1"/boot/grub/grub.cfg \
-e '/menuentry/a \ set root=(hd0,4)' \
-e '/linux/s#/#($root)/#' \
-e '/initrd/s#/#($root)/#' \
> "$targ1"/boot/grub/grub.cfg0
sync
menu_entry_1 "$targ1"/boot/grub/grub.cfg0 "$targ1"/boot/grub/grub.cfg
if [ $? -ne 0 ]
then
 error="$error - menu_entry_1: tweaking grub.cfg"
fi
rm "$targ1"/boot/grub/grub.cfg0

else  # ... copy/extract boot files (upefi) ----------------------------

# extract files originally from Andre's zip-file (except grub.cfg grub4dos/ ini/)

if $grubimg
then
 /bin/echo -e "$inversvid Bootloaders via 'grub.img', skipping 'usb-pack_efi': $resetvid "
 rm "$targ1"/boot/grub/grub.cfg
else
 if test -f "$mkusb_sdir"/usb-pack_efi.tar.gz
 then
  echo "using usb-pack_efi.tar.gz"
  tar -xvzf "$mkusb_sdir"/usb-pack_efi.tar.gz --directory "$targ1"
  if [ $? -ne 0 ]
  then
   error="- tar: extracting usb-pack_efi"
  fi
 fi
fi

# tweak 2 grub.cfg

if ! test -f "$targ1"/boot/grub/grub.cfg
then
 < "$mkusb_sdir"/grub.cfg sed '2'q > "$targ1"/boot/grub/grub.cfg  # copy two first lines
 if [ $? -ne 0 ]
 then
  error="$error - sed: copying start of grub.cfg"
 fi
fi
sync
sleep 0.5
cat "$targ1"/boot/grub/grub.cfg

# append the rest of the file (after two first lines)

menu_name

< "$mkusb_sdir"/grub.cfg sed -e '1,2'd \
-e '/menuentry "ubuntu/a \ set root=(hd0,4)' \
-e '/menuentry "memtest/a \  set root=(hd0,3)' \
-e '/loopback/d' -e 's#iso-scan/filename=/ubuntu.iso ##' \
-e 's/loop/$root/' \
-e "s%ubuntu.iso%$menuname%g" \
-e "s/vmlinuz/$vmlinuz/" \
-e "s/casper/$persist/g" \
-e "s/initrd.lz/$initrd/" \
-e '/menuentry/s/"./\U&/' \
>> "$targ1"/boot/grub/grub.cfg

#read -p "at 'append the rest of the file (after two first lines)'
#disk_name_type=$disk_name_type"

if [ "$disk_name_type" == "debian" ] \
|| [ "$disk_name_type" == "torios-debian" ] \
|| [ "$disk_name_type" == "9w-debian-wheezy" ]
then
 sed -i 's/persistent --/persistence --/' "$targ1"/boot/grub/grub.cfg
fi

if [ $? -ne 0 ]
then
 error="$error - sed: appending grub.cfg"
fi

fi  # end copy/extract boot files --------------------------------------

I do not add more detailed explanations now. Please specify exactly what needs to be explained, if you want more details.


How can I use an Epson Stylus C64 printer?

Turns out all I had to do was plug in the USB cable. This has to be the cable that connects to the printer, not some other random cable. Yes, I plugged in the wrong thing :P

When I plugged it in, I got a notification telling me that the printer had been added. I could then select this printer from the print dialog.


ubuntu gnome ,what is short cut key to show/ hide left bottom lancher?

That is known as the Legacy Tray. It used to be known as the Message Tray and had a shortcut of SuperM. Now the Message Tray has moved to the dropdown from the clock on the top panel and took that shortcut with it, and the GNOME documentation does not list a new shortcut for the legacy tray. This Reddit post has a command that can be used to show the tray.

I just move the icons in the legacy tray to the top panel using the TopIcons extension and ignore it.


To get your files you could try to start Disk Utility and then search the drives and partitions with that tool. You should be able to mount the partitions and open them with Nautilus (file manager) by clicking onto the path shown after "Mount Point":

I don't know if you can rescue your old system with all the custom settings. Possibly you should do a complete reinstall and use the full harddisk after you got your files.


Close specific pdf open in Document Viewer

The command

ps -Af|head

displays the a header and the first 9 processes. This helps you identify which column that contains the process ID (PID).

The command

ps -Af|grep evince | grep abc.pdf

displays processes where evince is running files, that contain adc.pdf in the file name. Normally it will be only one such process. And you kill it like you did manually, but with that command in the script.

You can create a variable that contains the PID, and use it for the kill command. In my Lubuntu 16.04.1 LTS system the second column contains the PID. The following two command lines should do the job from a shellscript file.

pid=$(ps -Af|grep evince | grep abc.pdf| tr -s ' ' ' '|cut -d ' ' -f 2)
kill $pid

You may have to modify the first of these lines, so that it picks the correct column or 'field' with the option -f at the end. (And you may have to modify the file name, if it is not always abc.pdf.)


How should I setup the File Sharing to access Works Files from Home PC (VPN is ok)

SSH

I would suggest git, but since you want access to all the files you might also want to try SSH.

Advantageous over Samba

I have found samba to be slow at times.
At times editing a file is not possible because of the permission setup being wrong.
Connection is encrypted.

Work computer setup

You simple install an ssh server on the work computer. Openssh will work which you can install using

sudo apt-get install openssh-server

Home computer

On the home computer go to nautilus, click file -> Connect to Server and choose SSH as service type. In server put the IP (or alais) address of the work computer, port should be 22, root folder ('/') for folder is fine and in user name the name of the user for the work computer (root is NOT recommended).

I don't have a 12.04 install so there might also be a password field to fill in (can't remember if 12.04's nautilus has one).


How to change "user" name? (Only account)

enter code hereThe out put is showing you your username which is user.

You can either change your username or change the PS1 variable.  Only do #1 or #2.

#1 Change your username to a name of your choice

The best way is to login via different account.  The specific user account can't be active when making this modification.  So you may have to create a temporary account with sudo active, if you don't already have one.

Then from the other account run this command:

$ sudo usermod -l newname user

The parameter user is the current name being changed.  The newname is what it's being changed to.

Then you will have to move the directory to that new name.  Do this with:

$ sudo usermod -d /home/user -m newname

#2 Change the PS1 variable in your ~/.bashrc file

If you just want to have your name displayed in a special way you can edit the PS1variable in your ~/.bashrc file.  You can use the line below or any other variation.  In this case the newname in the line is what you would change to what you want to appear in your terminal prompt.

PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]newname@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '

Adding user from the commandline

You can add a user from the commandline with:

$ sudo adduser usernametoadd

You can add this user to sudoer access with:

$ sudo adduser usernametoadd sudo


How to load missing firmware to the install media

"Insert your device into your computer containing the installation ISO of Ubuntu (Whether CD, DVD, USB stick or whatever), wait for appearance of this screen

and Immediately press a button. Choose the language of the installer and press enter. You will see something similar to this:

at this point position yourself to "Try Ubuntu without installing" or "Install Ubuntu" (Is irrelevant) but DO NOT PRESS ENTER: instead the press F6, Immediately followed by the ESC key: You should be able to write in a textbox. Now go (in the textbox) more to the right that can, leave intact the existing text and write, Appended to it (and being careful that after the two dashes there is a space), the string

b43.blacklist=yes

after that press Sending.

system installation will start and will not hang over!"

http://linux-software-news-tutorials.blogspot.com/2012/04/installing-ubuntu-1204-crashes-because.html

and

http://ubuntuforums.org/showthread.php?t=1966631


Deleting /usr/share/icons folder and now icons are missing

You can check which packages have files in /usr/share/icons by running:
$ dpkg -S /usr/share/icons
fontforge-common, gnome-sudoku, gnome-software-common, drumkv1-common, cheese-common, libkf5purpose-bin:amd64, libpeas-common, usb-creator-gtk, qemu-system-data, libgeocode-glib0:amd64, orca, modemmanager, rosegarden, gcr, aptdaemon-data, aisleriot, kipi-plugins-common, digikam-data, indicator-applet, imagemagick-6.q16, hugin-data, rygel, xjadeo, ubuntu-artwork, compton, transmission-common, thunderbird, gnome-power-manager, gnome-mahjongg, yelp, gnome-font-viewer, gnome-control-center-data, gnome-characters, cabextract, gnome-screenshot, gnome-mines, audacity-data, apport, software-properties-gtk, vlc-data, calf-plugins, indicator-printers, gnome-bluetooth, gnome-disk-utility, gnome-shell-common, eog, indicator-messages, xcursor-themes, ubuntu-web-launchers, gnome-todo-common, inkscape, ario-common, gnome-calculator, vim-common, indicator-session, unity-settings-daemon, poedit, gnome-online-accounts, rhythmbox-data, hicolor-icon-theme, blender-data, obs-studio, feh, gnome-calendar, totem-common, firefox, qdigidoc-tera, deja-dup, synaptic, update-notifier, nautilus-data, qsynth, qjackctl, vmpk, network-manager-gnome, file-roller, openshot-qt, yaru-theme-icon, oxygen-icon-theme, skypeforlinux, amsynth, dgedit, kdenlive-data, kdeconnect, gnome-system-monitor, gnome-logs, gmrun, xmonad, pianobooster, dmz-cursor-theme, minuet-data, baobab, wireshark-common, compizconfig-settings-manager, simple-scan, shotwell-common, seahorse, gnome-accessibility-themes, breeze-icon-theme, ibus-data, humanity-icon-theme, remmina-common, gedit-common, winetricks, virt-viewer, virt-manager, samplv1-common, fwupd, evince, flowblade, marble-qt-data, ubuntu-mono, adwaita-icon-theme, gnome-terminal, lmms-common, libreoffice-common, qdigidoc4, evolution-common, gimp-data, hydrogen-data, libkf5sane-data: /usr/share/icons

If you want the icons for a particular package back, you can re-install it. That will restore any missing files:
apt reinstall gimp-data

The only side-effect I can think of is that these packages will then be marked as manually installed and won't be later removed by apt autoremove if you've removed the package that caused them to be installed in the first place. I can't immediately see an option for disabling that though :(
If you want to reinstall all of the packages (which would make sense) you can use sed to get rid of the commas in dpkg -S output so it would be easier to copy-paste on to an sudo apt reinstall command line:
$ dpkg -S /usr/share/icons | sed -e 's#,##g'


How can I transfer media files from an Ubuntu PC to a Windows Phone?

I recently faced problems transferring files to my Lumia 620. I have three suggestions for you:

If you have a wifi connection available, just use the OneDrive linked to your Microsoft account. It has a pretty decent space of 15GB. Use this to transfer your files to the cloud and then download them on the phone.

The Windows Phone developers may want the user to adopt these wireless techniques instead or direct USB transfers. The Windows Phone Support page about file transfers from a PC is kind of indirect: “If, though, you still want to transfer files through USB...”.

Have you tried downloading the “File Manager” app (the official one from Microsoft Corporation) to your phone to browse these files in your phone’s storage?
Make sure your media files aren’t protected for copyright reasons and meant to be played only on one device. Try sending these files through a MTP client installed on your Ubuntu PC (Qlix or GMTP are available in the Ubuntu Software Center).

I hope one of these three ways works out for you.


Install clang 3.3 on Ubuntu 12.04 and see unmet dependencies errors

You can read the list of packages provided by the repository at llvm-toolchain-precise. You will see that it provides both 3.3 and 3.4 packages.

If you look at the error message, you will note that where the version number is not specified as part of the package name, the 3.4 versions are trying to be installed, which are not compatible with 3.3. apt-get always tries to install the highest version number.

You have several choices depending on why you need a particular version:

1) Use the default versions in the standard 12.04 repositories based on clang 3.0

2) Modify your command to use the 3.4 versions from the llvm repository.

3) Use Synaptic to specify the versions you need.

4) Force apt-get to use the 3.3 versions of the problematic packages. Warning: the man file man apt-get says this has the potential to destroy your system.

5) Build the 3.3 version and it's dependencies from source and install to Home.


UBUNTU 16.04 (64 bit) with AMDGPU-PRO-16.50-362463 generates continuous stream of system errors

Solved! Uninstalled the amdgpu-pro-16.50-362463 driver and replaced with the new amdgpu-pro-16.60-379184 driver. The syslog flood of DRM debug messages have stopped.  Installing the new driver seems to replace the 10-amdgpu-pro.conf file, so need to revise  per https://community.amd.com/thread/205475 to stop Xorg.0.log "flood". Tnx to those that have helped debug - and especially those that have revised the driver!!


Disable compiz in XFCE and switching back to the normal window manager?

After installing XFCE on my ubuntu system, I tried enabling compiz with:
compiz --replace ccp &

Why did you added ccpand not just compiz --replace?

However, I have since been unable to remove compiz from the XFCE login. I tried killing compiz, and now I don't have any window manager, and opening the "Window Manager" and "Window Manager Tweaks" pages in the settings panel brings me to an empty page.

Yes, because you're not running XFWM4 which is the XFCE window manager.

Since I've never really played around with XFCE much I have no idea what window manager it uses. So I don't know how to phrase reverting it to the old one.
How can I revert back to the old manager?

Uninstall Compiz and go to Settings>Session and Start up>Application Startup and add an entry for xfwm4 --replace.


Same background color (not wallpaper image!) on dual monitor Lubuntu 14.04 setup

I achieved that in Lubuntu 16.04

Config your second monitor in extended mode.
There is a desktop config file in ~/.config/pcmanfm/lubuntu/desktop-items-0.conf
Make a copy renaming it to desktop-items-1.conf
Now restart computer and you'll have the same config in your two desktops.

After that you can right click each desktop and config them separately.
I hope this help.


Is your computer capable of booting from DVD/CD drive? Most like it can. Is it configured to do so? Sometimes by default it does not. You may have to enable it.

Do a complete shutdown power off. Boot from no power. Some codes will show up listing memory and devices in ugly big text before you get into anything with graphics like the Windoos logo. Options will be usually listed on the bottom like < F2 > for System Rom or < F10 > Boot Manager or something similar. Be aware, some systems like Dell/Gateway/BigCompany install several boot up ROM utilities.

Sounds like you have some problems creating bootable media. If it was a 32/64bit problem, you would still be able to see a bootup from the installation media, and mostly likely a error message to that effect. I've gotten the boot manager message before on a USB stick and it's always been something I didn't do properly.


broken packages with PgAdmin3 version 1.20 in Ubuntu 14 LTS

pgadmin3 (= 1.20.0-1.pgdg14.10+1) needs libstdc++6 (>= 4.9) and this package isn't available for Trusty and as you say in your comments

  I need Ubuntu LTS, LST, stable (!)

don't add a PPA with higher versions of libstdc++6. These packages are an integral part of the system.

Install pgadmin3 (= 1.18.1-2) again

sudo apt-get install pgadmin3=1.18.1-2

and wait some days for Ubuntu 16.04, the next LTS release.


windows 10 major update wiped GRUB, how do I recover partitions properly?

Windows 10 Anniversary Update, and the more recent Windows 10 Creators Update, have a really bad habit of wiping out Linux partitions on MBR disks. Sounds like you're a victim.

Recovery is possible, but it can be tricky.

Boot to the Ubuntu Live DVD/USB.

Open Software & Updates and make sure that all of your software repositories are enabled.

In terminal...

sudo apt-get update # update the software database
sudo apt-get install testdisk # install testdisk
man testdisk # read the manual
sudo testdisk # start testdisk

You can also get specific instructions here: http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step


An application that I have personally found useful is testdisk. You can install it with

sudo apt-get install testdisk

It is a command line utility, but very powerful.


Unable to use proprietary NVIDIA graphics driver after upgrading from Lubuntu 20.10 to 21.04

As ChanganAuto commented, the NVIDIA driver 340 isn't officially supported on the kernel that 21.04 uses, 5.11. (The error log for the installation I mentioned actually doesn't contain anything other than what I was shown when installing.)
However, I was able to find a way to work around the issue and use the driver anyway, by following the instructions at https://launchpad.net/~kelebek333/+archive/ubuntu/nvidia-legacy. Basically, you have to enter the following three commands:
sudo add-apt-repository ppa:kelebek333/nvidia-legacy
sudo apt-get update
sudo apt-get install xorg-modulepath-fix

After executing these three commands and reopening the Software Sources settings, the option to select the NVIDIA driver was showing once again. I selected it, and it's working fine now.
Just a word of warning, though: after doing this, I noticed that the options for Important and Recommended Updates were deselected, so my system wasn't updating anymore. I selected those again and that solved that.


How to change from Ubuntu Dual Boot to a Single Ubuntu Boot(Used Wubi Installer for Windows)

This can be done (as the various available duplicates will point out) but unless there's been a major development that I haven't yet seen, it's definitely not something for a beginner.

I would suggest a new install from CD/USB alongside your existing Windows installation (proper dual-boot, not Wubi) and after you've copied out all the files you want to keep, you can minimise the space Windows takes up or get rid of it altogether.

I say this for two reasons:

Installing Ubuntu from scratch takes very little time and has less chance to mess everything up.
Converting the Wubi soft-partition to a real one and installing a bootloader (which you'll have to if you migrate your Wubi install) is very technical and takes a long time in itself.


You can try ybacklight
git clone https://github.com/szekelyszilv/ybacklight

cd ybackight

mkdir build; meson build; cd build; ninja install

ybacklight -get

sudo ybacklight -set 20

Also, you can modify your sudoers file to run ybacklight without sudo:
https://unix.stackexchange.com/questions/18830/how-to-run-a-specific-program-as-root-without-a-password-prompt


Choosing partition types for swap and root and choosing device for bootloader installation

For root and swap you can choose logical or primary your choice but remember you can only have 4 primary partitions on the hard disk after that no more partitions(logical or primary) will be created(i mean you cannot create partitions after that). If you want to create partitions you should convert one primary to extended(or logical) partition and split that into several partitions.

so if you are out of primary partitions then its recommended to install both in logical, if not you can install them on primary partitions(if you don't have any use of primary partitions in future like installing windows again)

I hope that helps


Firefox losing functions after opening a link from Dash

I believe this may be the same bug you are experiencing https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1027501

If you want to check there it appears it's been confirmed. Although I do not see a current fix or workaround.


Screen freezes when attempting changes in xrandr

As you said when you plug the monitor before booting it gives a bad resolution, I believe adding a particular resolution in .profile would solve this issue.

Open the terminal and run the following command.

xrandr

Note the display device name from the output.In my case its eDP-1.

next run the following command

cvt 1920 1080

Copy the whole Modeline from the output.

In my case it is as follows

"1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync.

And run the following command:

sudo xrandr --newmode "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync

NOTE the command sections after --newmode are copied from the output I got in the previous step.

Now add the newly created mode for your display device.

sudo xrandr --addmode eDP-1 "1920x1080_60.00"

Finally Apply the new resolution in the Display settings. Select the "1920x1080" resolution as your preferred resolution.

IMPORTANT: To make Ubuntu remember the new created screen resolution at next start, you have to edit your .profile. Use any text editor, for example:

vim ~/.profile

add the last 2 commands to the end

Save and reboot. Hopefully the system will detect 1920x1080 resolution in both your displays.


Ubuntu 14.04 disconnects from the network via wifi

Happened to me once, fixed it by switching the "Ad-Hoc" mode into "Infrastructure" mode. Try that. :)

Edit: "Ad-Hoc" mode only works for the personal user account that created the network in first place. Upon switching to ubuntu, it becomes read as a different user, even if it's actually the same computer. So word of advice, keep it on infrastructure.


Adding hours to an arbitrary, unformatted date

If your system has the GNU date function, it should be possible to do the arithmetic natively e.g.

date --utc --date="12am today + 84 hours"

date --utc --date="18:00 today + 84 hours"


How come the override_dh_build-indep sequence isn't run by debuild?

I stumbled back on this question today. So I took the time to actually grab the code and figure this out. It seems like my comment above is correct. Use the override_dh_auto_build-indep target to build the docs.

This diff was able to produce a doc package with the doxygen generate docs building in a clean raring pbuilder.

=== added file 'debian/nitroshare-doc.install'
--- debian/nitroshare-doc.install   1970-01-01 00:00:00 +0000
+++ debian/nitroshare-doc.install   2013-07-01 18:29:50 +0000
@@ -0,0 +1,1 @@
+doc/* usr/share/doc/nitroshare-doc/

=== modified file 'debian/rules'
--- debian/rules    2013-07-01 18:07:18 +0000
+++ debian/rules    2013-07-01 18:09:03 +0000
@@ -7,3 +7,6 @@

 %:
    dh $@
+
+override_dh_auto_build-indep:
+   doxygen

Though this doesn't really answer your question, it does solve your problem...


The link that you created in /dev disappears on reboot.

Edit /etc/rc.local and add your ln -s /dev/ttyACM0 /dev/ttyUSB0 command at the end, and it'll survive reboots.

gksudo gedit /etc/rc.local


Unable to access .jar file with .desktop

You cannot use ~ in a .desktop file, it will not expand. Only use absolute paths. You need to change the Exec= -line to:

Exec=java -jar /home/myuser/Descargas/Minecraft.jar

In case the directory includes spaces:

Exec=java -jar "/home/my user/Descargas/Minecraft.jar"


Unable to use a custom splash screen in Ubuntu 16.04LTS

I also encountered this problem, here's how I fixed it.

The basis of the problem

Put simply, the file layout in Ubuntu 16 changes the location of plymouth themes from /lib/plymouth/themes to /usr/share/plymouth/themes and so all of the theme install scripts that assumed the previous layout now install to the wrong location.  Thus, when update-initramfs runs, the source data is not where it's supposed to be which causes this error.

plymouth module "(/usr/lib/i386-linux-gnu/plymouth//.so)" missing, skipping that theme

and because of that, the theme is not installed.  The fallback is the default ubuntu logo theme.

Fixing things

I found it convenient to simply perform things manually, and since you're familiar with Ubuntu, I'll concentrate on describing the approach rather than making it cut-and-paste like.

Partially initialize-correct with apt-get

Run the following command which will not only install a number of new themes into the correct location but also will fix the now incorrect update-alternatives scheme.

apt-get install plymouth-themes

after this runs there will be a new directory structure anchored in /usr/share/plymouth/themes which will have an identical layout to the previous path.

Move old themes

Consider if each theme is worth migrating, there might be duplicates in which case use the already installed ones.

ls -ltrd /lib/plymouth/themes
ls -ltrd /usr/share/plymouth/themes

migrating to the new location is simple; just move the directory as each theme is contained in a directory named after the theme

cd /lib/plymouth/themes
mv <theThemeDirectory> /usr/share/plymouth/themes

Fix old themes

The old themes are self-referential in that the .plymouth theme file contains a reference to the directory that the theme is installed.  Change these references to the correct ones (e.g. vi /usr/share/plymouth/themes/orb/orb.plymouth and then replace /lib/plymouth with /usr/share/plymouth).

Update list with update-alternatives

Extending the orb example, use update-alternatives to make the theme list selectable.

update-alternatives --install /usr/share/plymouth/themes/default.plymouth default.plymouth /usr/share/plymouth/themes/orb/orb.plymouth 100

This has the added benefit of leveraging the script update-plymouth that is included with most themes from gnome-look.  I'll include the text

#!/bin/bash

echo "Choose the number of the theme you want to use, then [ENTER]"
echo
sudo update-alternatives --config default.plymouth
sudo update-initramfs -u
echo
read -p "Do you want to test the theme? (Y/N) "
if [ "$REPLY" != "n" -a "$REPLY" != "N" ] ; then
 echo
 echo "Running 10-second test..."
 sudo plymouthd ; sudo plymouth --show-splash ; for ((I=0; I<10; I++)); do sleep 1 ; sudo plymouth --update=test$I ; done ; sudo plymouth --quit
fi
exit

Running update-plymouth will allow you to select the theme you want, automatically build the new initramfs and let you preview it.

Bonus: use art from deviantart

Armed with this knowledge, we don't blindly have to run an installer, but rather with the understanding that all it takes to install a new theme is

copy a theme directory to /usr/share/plymouth/themes
run update-alternatives as described above
run update-plymouth

That gives us access to larger selection of themes of which I think this sonic theme is the best.


Dual Boot on win8.1 with Ubuntu 14.04 LTS

U could go through the link Boot-Repair

This will fix the loader and u will dual boot.

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


tcpdump if you want a lightweight, console only program.

Wireshark if you want a full fledged GUI, which can visualize and filter dumps from tcpdump, or capture all by itself.

Nethogs seems to be able to give you a per process network usage, though I never tried it. I think this should be the closest one to glasswire.


Change Ubuntu Software Center Download directory to Different drive from OS drive?

When you download a package via Software Center, it is installed to your /usr/bin folder. Otherwise you will not be able to start it.

Edit: Your /usr/bin folder is, as I understand, on your SSD.


It's probably the operating system that's the problem, try installing an older version of Ubuntu and see if that works.  I also have a mid 2010 Mac Mini that's currently running OS X Mavericks, and I've been attempting to install Ubuntu through various methods (LiveCD method, bootable USB, and dual booting) and they all never work.  What would happen is that I would get Ubuntu to load at start up but then it would take a long time to actually load into the operating system, I also have this unusual issue with my monitor that isn't present in OS X (Or Windows for that matter) where Ubuntu seems to lag and the screen flashes (This happened the first time on dual booting).  In my opinion, if you want to try out a Linux distribution, do so on a PC, Macs are very close sourced as far as hardware and software goes, so even if you got it to work, you probably wouldn't have a lot of options. I know this response is a few months late and you've probably either got it to work, or gave up on it... but I felt my response was relevant, as someone who also owns a mid 2010 Mac Mini. My advise would be to reinstall OS X and leave it at that, and if you really want to try out Linux, call Apple to see what they say because as far as operating systems go, Mac really wasn't meant for anything but OS X.


It appears that when I removed evolution*, it took the indicator with it.

When I went to install indicator-datetime, I saw that it requires some baggage:

The following NEW packages will be installed:
  evolution-data-server evolution-data-server-common indicator-datetime
  libedataserverui-3.0-1


Changing grub.cfg to boot Ubuntu with run level 3

Editing grub will change all boots.
You can add boot entries in 40_custom and edit boot parameters. Copy current boot stanza and edit to change quiet splash to desired parameters.

sudo nano /etc/grub.d/40_custom

After edits:

sudo update-grub

https://help.ubuntu.com/community/Grub2/CustomMenus

How to update grub on a dual boot machine?


How to enable desktop effects on my Ubuntu 11.10?

May be you should look into the additional drivers that might be required to enable desktop effects. System->Administration->Additional Drivers.

Alos look at this documentation page Restricted Drivers


I've no idea what you're using this for but the proper way to grab that page's content is via the Youtube API. You can search by trending. It deals in nice JSON responses that you can tweak to whatever you like.

Their page itself looks like it's using the API, or perhaps a private version, but the data is on there, it's just deferred. Here's one of the images:

<img width="196" onload=";__ytRIL(this)" alt="" height="110" src="/yts/img/pixel-vfl3z5WfW.gif" data-thumb="https://i.ytimg.com/vi/Rqa9ph0cWSA/hqdefault.jpg?custom=true&amp;w=196&amp;h=110&amp;stc=true&amp;jpg444=true&amp;jpgq=90&amp;sp=68&amp;sigh=Vt5qpPXMxoaOiEG4ohSszdhmMJU" data-ytimg="1" >

Normally you'd be able to fix this image by doing a simple string replace but Youtube changes the order of the attributes between refreshes. You need to process the HTML and convert the data-thumb attribute to the src (and delete a load more tags). And then you'd need to download those (because wget won't have) and then convert the links.

But that's considerably more work than just using the API from the first paragraph.
Not to mention that what you're doing is all sorts of against their terms of service.

So my answer to this is the same as the short one: Use the API.

If you're really determined to do this the wrong way, you can manipulate a real browser, get it to load the page and then dump the DOM (what it's actually rendering).

It's actually rather neat and serves a real purpose for testing automation and generating screenshots of pages, but you're still going to have to pass it through something to convert the links and download the assets. You're probably bored of me saying this now but, just use the API ☺


First, I would install Ubuntu on Samsung 850 Evo.

Then  using this guide:
https://help.ubuntu.com/community/Partitioning/Home/Moving

I'll move /home to Samsung 850 Pro.

This has the advantage that you'll have /home on a separated disk, so your data remain intact in case you need to reinstall the OS. Also you'll enjoy higher life expectancy of the Pro disk where you value more the data, at your home folder.


Poor SSD RAID0 write performance, alignment on raid?

What did you use to partition /dev/md0?  Any partitioning tool in the last several years should have started the first partition on sector 2048, not 63, which does cause an alignment problem.


Is there a public list anywhere of people who have signed the Canonical Contributor Agreement?

Yes; people who have gone through the contributor agreement process are active members of that group.


Configuring GitLab and Jenkins on different URLs

For changing Jenkins Port

use

java -jar jenkins.war --httpPort=9090

or

java -jar jenkins.war --httpsPort=9090

Source

This will work only temporaly (for testing). To make the change permanent do

/etc/default/jenkins
Find the line HTTP_PORT=8080 and change it to your needs
restart jenkins sudo service jenkins restart

Source

For changing Gitlab Port

Do

sudo -e /etc/gitlab gitlab.rb
Change external_url from yourdomain.com to yourdomain.com:9999

9999 -> Port you want it to run

(instead of changing the port here you could also try to directly add the path like yourdomain.com/gitlab but I'm not sure this works)
gitlab-ctl reconfigure

Source

Note:
I would prefer changing the Jenkins port because more usual user want to access Gitlab just by entering the domain name maybe while for Jenkins probably only few administrators need access. Let those use the domain+port or domain/jenkins if you prefer so.


How do I format code from the web using Vim?

(Firstly, you need a semicolon before the last } in order for this to be valid C; the semicolon should be thought of as terminating statements in C, rather than as separating statements.  Smart automatic indentation may not work properly unless you add that semicolon.)

Vim's = command (:help =) can be used to run code through an automatic indentation program, though it requires some configuration.  The basic idea is that you set the equalprg option (:help 'equalprg') to a program that applies the indentation you want, and then use = in command mode to run it.  = works like other Vim motion-based commands such as d and y; for example, == indents the current line, =ap indents a paragraph, or you can use a visual range: ggVG= indents the whole file.

Now, by default, equalprg is set to the empty string, which only does basic per-line indentation built into Vim.  To do the kind of thing you're asking for, the best tool for the job is indent:

indent

indent has a vast array of options for various indentation styles; by default it uses the GNU coding style, but you'll probably want to customise it to suit your project's preferences.  See
man indent for details.  To include spaces in the value of equalprg, you need to quote them with a backslash, so for example if you wanted to use K&R indentation style you would use :set equalprg=indent\ -kr.

You can also have the '=' command choose the appropriate indentation based on the file type, by using :filetype indent on - type :help filetype within vim for more info.

:set autoindent will tell vim to indent as you type. Adding either of these commands (minus the leading ':') to your ~/.vimrc file will make them permanent.


I tried to reproduce you error, and yes at GIMP 2.10 when I run menubar Tools > GEGL Operation, whenever I click on the canvas the GEGL Dialog will appear. This is because the GEGL session is still active. To deactivate it, simply use any tool from toolbox for instance Rectangle Select tool and the GEGL will disappear.


Persistent usb computer system requirements

Yes, more RAM will make a persistent live drive more responsive when running, particularly if you run it with the boot option `toram', and have the whole compressed file system in RAM.

But it may still be slow when booting. The bottleneck might be the speed of the USB drive. If you get a fast USB 3 drive (best with an SSD, but there are also some fast USB pendrives), it will be more responsive.

It is also possible with an installed system in the USB drive (installed like into an internal drive).

Links:

Installation FromUSBStick: Prerequisites

Step-wise instructions for installed system in a USB drive

help.ubuntu.com/community/mkusb


Can a friend upload files to my UbuntuOne folder?

Yes. When sharing a folder to someone, you have the option of granting them permission to write to that folder. If you've already shared the folder without write access to that person, you may need to re-share it to them again, and select to allow write access.

Also note, any files the other person puts in your folder, will count toward your storage quota. If the file you want her to upload to you through Ubuntu One is larger than you're remaining available space, she won't be able to upload it until you either make space by deleting files you may no longer need, or purchase more storage space.


Why would screen brightness not adjust ofter closing laptop lid?

I had the same problem with a Toshiba Portege R935, and I discovered this (not so elegant) workaround:

as root change the value in
sys/class/backlight/intel_backlight/brightness

for example:

echo 3000 > /sys/class/backlight/intel_backlight/brightness

Warning: these values are not between 0 and 7 (as the ones in sys/class/backlight/toshiba/), but between284and4539`, or something like that.


According to the documentation at: http://backintime.le-web.org/documentation/ Back In Time uses cron to schedule the backups, so you should not need to be logged in for the backup to take place.


The quick way to take a screenshot on Lubuntu is simply hitting the PrtSc button. It saves your file to your home folder.

The software mentioned below, Kgrab, and Ksnapshot, bothe were installed from the Lubuntu Software Center.  Meanwhile, mtPaint was available by default under the Graphics menu.

However, certain actions can't be captured using the PrtSc button. Sometimes a time delay is required in order to begin a specific function. I use Kgrab

or Ksnapshot

As you can see both have the options to choose full screen, wndows, etc.., and both have time delay.

You can use mtPaint. It comes default on Lubuntu. In the menu, there's a timedelayed screenshot option.  Not as easy as the above, but it will do the job.


Since you already have the iso (you didn't have to, the wubi.exe installer can be downloaded independently), there is no need to download the installation package again.

Just place the iso image in the same folder where the wubi.exe file is; start wubi.exe -- it should detect the iso file and run the installation offline. More on that here.

Alternatively, you can use the iso to install Ubuntu on a separate partition.


How to make Caps Lock change keyboard layout without delay?

I use Shift + Caps Lock to trigger the keyboard layout switch.

When using both layouts, I very frequently switch back and forth, and the switch seems instantaneous. That is, I never experience a hang (and I'm a fast touch typist - on both layouts).

Maybe worth considering?


Is it possible to uninstall a software from Ubuntu 12.04 installed on USB stick?

Boot using the usb stick.
run sudo apt-get remove remastersys remastersys-gtk
Open /etc/apt/sources.list file and comment out OR remove line containing remastersys reference.


Many programs, including openshot, store user settings in your home directory.

These user configuration files are not removed when you remove programs including the use of the purge option. You have to remove them manually.

In this case

rm -rf ~/.openshot

openshot will re-create these files next time you start the program.

Hard to know what exactly was corrupted.

See man apt-get for details

  remove

       remove is identical to install except that packages are removed
       instead of installed. Note that removing a package leaves its
       configuration files on the system. If a plus sign is appended to
       the package name (with no intervening space), the identified
       package will be installed instead of removed.

   purge

       purge is identical to remove except that packages are removed and
       purged (any configuration files are deleted too).

Note: "configuration files" refers to system files , not user files in home.

See also How to remove configuration files completely


Accept it.

... the fact that your (or any other) Bay Trail device is hopeless crippleware.
Bay Trail reboots into a completely different random universe.
 each and every time the power button is depressed.
Conceivably, you might try i915.modeset=1 in your grub options,
 but don't get your hopes up.

Condolences are in order  :
  It is almost as if there is a hard-wired random number generator
 attached to the power button.
It starts with faulty pin control, arising from the fact that some
 of the power controls have default states that do not get reset
 upon power on power off cycling.

And cannot be fixed. Ever.

Intel Bay Trail is a spectacular train wreck complete with super-size-me body bags,
 due to some overlooked architecture issues which the Intel folks
 seem to so nonchalantly overlook prior to market release.

from http://www.bit-tech.net/news/hardware/2014/04/24/intel-n2820/1

  " Intel has officially discontinued its Celeron N2820 Bay Trail chip
  mere months after launch..."

Their 'release to market, oops, then fix the bugs modus operandi' is so much fun:

  "Some of those flaws, it would appear, have been traced back to the
  processor's design"

Windows has the same problem and it cannot be patched over - it just stutters a lot.
These crippleware kits always come with Win 8 installed,
 I should have known better than to blithely assume because it had Win 8 we could
 simply replace it and proceed at pace.

I paid good money for a (Kick me again if I ever buy another SoC cesspool from ACER)
 Iconia W4-821 with 3740 Bay Trail and I have been on a rocket-launch learning curve.

Google "fedlet" or "bay trail kernel" to see what a bunch of us who deluded ourselves
 into spending time and money on BAY TRAIL and you will see what is involved.
Kudos to the guys who got there first and shined a bright light on the issues:

Adam Williamson "Fedlet"  (he is an ex-Mandriva rock star from way back).

Jerry Wells "Ubuntu on Asus Transformer Book T100"

...but the juiciest comments are in the kernel mailing list,
 where some of the guys who are trying to patch the linux kernel
 to accommodate faulty Intel hardware have some interesting perspectives:

Quoted - I kid you not ! - from

https://lkml.org/lkml/2014/2/11/962

Re: Baytrail/T (ASUS T100 etc) regression from 3.13 onwards

  Ugg, so reverting a real fix to make the T100TA work by accident...
  this is ugly.
  ... ...

    A module paramater to fix a bug? Ugh, that's almost worse than just
    reverting the original patch, right?

    Please don't do this, the distros will hate you even more than they
    currently do :)

I could send you videos of how random this power reboot issue is
 but it would be an utter waste of time and bandwidth.

Brick, uses power, and displays random color schemes.

...Bay Trail.


This can be done by adding the following PPA to your system:

  ppa:canonical-qt5-edgers/ubuntu1204-qt5  (Click here for instructions on using PPAs.)

You can usually do this with the following commands:

sudo apt-add-repository ppa:canonical-qt5-edgers/ubuntu1204-qt5
sudo apt-get update

The next step is to install the necessary packages for Qt5 / QML 2.0 development. You can do that by running these command:

sudo apt-get install qtdeclarative5-dev

This will install the headers / libraries necessary for development with desktop Qt and QML. You will also probably want to grab the latest release of Qt Creator from this page.

I've found that Qt Creator sometimes has problems finding your new Qt5 installation. If that is the case, perform these steps:

open it up and go to Tools->Options
click the "Build & Run" section in the left menu
click the "Qt Versions" tab
click "Add..." and enter the location that corresponds with your OS:

32-bit: /usr/lib/i686-linux-gnu/qt5/bin/qmake
64-bit: /usr/lib/x86_64-linux-gnu/qt5/bin/qmake

Previously these packages were located here:

  ppa:ubuntu-sdk-team/ppa

According to the "Ubuntu SDK Team": Old Ubuntu 12.04 LTS Qt 5.0 packages have been moved to https://launchpad.net/~canonical-qt5-edgers/+archive/ubuntu/ubuntu1204-qt5/, and that seems to have occurred sometime in May of 2016.


No signal to monitor after driver install

There was a bug that had a problem with the ATI driver.  The bug has now been fixed, so if you update it should now work, although I recommend you reconfigure your xorg.conf from scratch by moving the old one:
sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.bak

Link to the original bug: https://bugs.launchpad.net/ubuntu/+source/unity/+bug/685682


disable the use of ubuntu at night with an password

There is this project Timekpr-nExT that does precisely that (similar to parental controls). You could use it for your own user if you want to limit yourself of screen time.


I always used this

sudo shutdown -h now

Note that here now is time and can replaced by -t sec 30 that mean 30 seconds later


Login Loop in Ubuntu 16.04 after editing the Path

Have you tried logging in at a text terminal:

Ctrl+Alt+F1
Enter user name then password

If you can log in this way you could temporarily rename ~/.pam_environment:

mv ~/.pam_environment ~/.pam_environment.bak

Then switch back to the graphical login (Ctrl+Alt+F7) and try again.


I think unfortunately you will have to install more dependencies, and the one you are missing is gnome-session, without which unity 2d can't run, and you get the error message you received. This is actually detailed at Launchpad; installing unity 2d manually from Synaptic does not automatically pull in the correct dependencies.

Running an apt-cache rdepends unity-2d proves this:

unity-2d
Reverse Depends:
  unity-2d-dbg
  unity-2d-common
  libunity9
  unity-2d-dbg
  unity-2d-common
  ubuntu-desktop
  libunity9
  gnome-session
 |gnome-session

If you don't want absolutely everything that gnome-session includes, you could try installing it with the --no-install-recommends flag and this will install just the essential elements needed for unity-2d.

Run in terminal

sudo apt-get install gnome-session --no-install-recommends

It should not be necessary to install the ubuntu-desktop package as well, but keep that in mind if all else fails.

Using unity-2d should now be possible and it should be a login option at the Xubuntu screen and if you have any visual defects in it is also worth installing the following, according to this Launchpad report.

sudo apt-get install light-themes ubuntu-mono ubuntu-wallpapers-precise gnome-themes-standard

As the two bug reports at Launchpad have proven, you do need to install a fair amount of things to run unity-2d on Xubuntu.


try just

sudo apt-get install avant-window-navigator-trunk

that did the trick for me on natty just 5 secs ago. I think yours is just a typo problem :)


found : libata.force=noncq
but this add-in commandline isn't complete

added by changing:

GRUB_CMDLINE_LINUX="libata.force=16.00:noncq"

in /etc/default/grub. after exit-save

update-grub

found also :

libata.force=8.00:noncq
tried libata.force=16.00:noncq

for dmesg shows

>> ata3: SATA max UDMA/133 port i16@0xbc00 bmdma 0xcc00 irq 11
>> ata4: SATA max UDMA/133 port i16@0xc000 bmdma 0xcc08 irq 11
>> ata5: PATA max UDMA/133 port i16@0xc400 bmdma 0xcc10 irq 11

doesn't resolve

>>>ata5: SATA max UDMA/133 port i16@0xbc00 bmdma 0xcc00 irq 11
>>>ata5: link is slow to respond, please be patient (ready=0
>>>ata5: COMRESET failed (errno=-16)

hmm

ok, solved it.. but this makes it outside the situation you guys/girls have
i removed a Promise ATA card (133/TX3) and mounted the boot-disk at onboard port.
That made the SATA work - sigh.. knew it.. it was something simple..


Make sure you're following the instructions on http://conjure-up.io, you're using an older version of Juju 2 (probably a beta version) where that --upload-tools flag has since been removed.

Basically

sudo apt-add-repository ppa:juju/stable
sudo apt-add-repository ppa:conjure-up/next
sudo apt-get update
sudo apt-get install conjure-up


while installing ubuntu facing error "root is not defined

Check out this answer How to use manual partitioning during installation?.

It has step by step procedure to install ubuntu for dual booting.

Select the protocol which has a green tick mark beside to it.

Cheers!


How to uninstall gcc 4.6.2 installed from source?

Don't need to uninstall 4.6.2. If you have installed it from the repositories and also have gcc 4.5 installed, you can do:

sudo update-alternatives --config gcc

which will allow you to choose what is your default compiler.  Uninstalling gcc 4.6.2 could impact other packages.


How do I get a Mac-like Gnome panel/menu bar (which changes accordingly to the active window).

Can you provide more information? Unity already comes with a global menu.
But if you use GNOME2 or GNOME3 you can use the globalmenu package.
You can find more information here:

http://code.google.com/p/gnome2-globalmenu/

And install instructions over here:

http://code.google.com/p/gnome2-globalmenu/wiki/Installation

This adds the same global menu as in Unity.


Support

Normal Ubuntu releases are supported for 18 months. So Ubuntu 11.10 will be supported until April 2013.

Previous Ubuntu LTS (Long Term Support) releases are supported for 3 years on the desktop and 5 years on the server. Starting with Ubuntu 12.04 LTS, LTS releases will be supported for 5 years on both the desktop and the server.

SUPPORT RELEASES


Sounds like you've checked everything that can be wrong with MySQL. The next thing I would check is to see if MySQL is still running and listening on the correct port.

service mysql status

If it is note running, start it:

service mysql start

After that, I would make sure it's still listening on the default port by running

netstat -tlpen | grep mysql

The default port for MySQL is 3306 so it should return something like this:

tcp 0 0 127.0.0.1:3306 0.0.0.0:*  LISTEN  107  8073  790/mysqld


Samba password problem between Mac and Ubuntu

Yes, I know I can refer to something.local for example to look at web
pages on other machines. But neither caja nor Finder allow me to use
that syntax to access other devices

Of course it does. If I open up Caja > Browse Network I see my MacOS SMB server:

If I double click that I enter credentials for someone on the Mac ( in your honor I created a user with a Capital letter and entered a just made up Domain name which matches noting on my network:

Then with some drill downs I can access "Pat's" Public folder:

All done with mDNS. And your can always use Connect to Server in either Caja or Finder to connect explicitly:


What is the default username and password for ubuntu touch?

The username is phablet, you don't need to enter a pin if you did not set it. You can change that in the settings or when creating a new emulator.


I was able to view Telugu on NPP in WINE.

You first need to configure the font used to display the text. You can change the font by

Going to Menu -> Settings -> Style Configurator
Change the font there.

I change the font for Global Style and enforced this global style for all source types by using Enable Global Font option. Use an unicode font with Telugu support. You can use Noto Sans Telugu, but in my system that made the English text unreadable. So, I used Giduga font, which can display both English and Telugu scripts. You can download the fonts from this site http://fonts.siliconandhra.org/ (It's the first link)

Check this question for help installing font - How do I install fonts?

Once you changed the font, you can write Telugu in Notepad++.

Here is a screen-shot of Telugu in NPP. (Forgive me if that magically appears to be a bad word. I typed that one totally random)


Fail to see sharing in one computer of 3

Try using the IP address of the 3rd computer instead of the hostname (ilan-main), using the hostname might be an issue depending on your network configuration or software packages installed.


How to access mounted drive using terminal if drive contain space in name?

Put the name in between double quotes (") but you can also escape the space or use the tab to auto-complete. These will work:

cd /media/rinzwind/"disc world"
cd /media/rinzwind/disc\ world

But this will work too:

cd /media/rinzwind/disc{tab}

and the last one will add the remainer and escape the input.

Example:

mkdir "tmp tmp"
$ cd tmp\ tmp/

where I hit the tab after the 1st "t".


You can use the following code without the need to kill any process, after the end of the specified time (secs) it will exit.

#!/bin/bash
###
### Run command for given number of seconds then kill it
###
read -p "How long should I run for? ==> " count_secs
echo "Time specified: " $count_secs
# $SECONDS is a shell variable
# we can use it in conjuction with
# our user input
while [ "$SECONDS" -le "$count_secs" ]
do
  # execute any commands here (put your code bellow and remove echo commands)
  echo `date +%r`
  echo "i am doing my work now"
  # sleep (in secs) before the next execution
  sleep 1
done
# when the count_secs elapses exit
exit 0


My guess would be that you need to either add a swap partition, or kill off the incomplete install, so it can start again. You shouldn't have got that far, and maybe ought to file a bug on the installer - it should insist on a swap partition (it can be small).

Boot from a live CD, and use the Disk Utility to re-partition your free space so there is something which can be used as swap. You will probably then need to add this to /etc/fstab on the main boot partition.

You need a line something like this:

/dev/sdb5 none            swap    sw           0    0

This is fairly involved, and might not be quite as I've described, but it might be enough to get you going. Make sure you do not damage your Windows partition, or the boot sector of the drive. You might need to mount the Ubuntu partition first before you can edit fstab, and it might appear at media/drive_name/etc/fstab from the live CD.


Cannot see bottom of printer setup screen

Your screen is simply too small (1024x768).

Configure your printer with a browser.

Open the URL

localhost:631

Log in with your user name and password and add your printer.


I can't sign in: "An exception representing an authentication failure"

There was an issue in the server more or less the time you ask your question. If you try again it should be ok.


After upgrading from 13.04 to 13.10 I cannot get any image to display on the login screen, why?

To change the login screen background of the lighdm login manager:

First backup the configuration file:

sudo cp /etc/lightdm/lightdm-gtk-greeter.conf /etc/lightdm/lightdm-gtk-greeter.conf.old

Then edit it, changing background=CURRENT-IMAGE.jpg to background=LOCATION-OF-WANTED-BACKGROUND-IMAGE.jpg

sudo gedit /etc/lightdm/lightdm-gtk-greeter.conf

Then test it, by running:

sudo lightdm --test-mode


You've likely already resolved the problem (either by figuring this out yourself, or ignoring it), but the problem you were seeing is that the patch you're linking to expects the bstack layout to already be patched into dwm. This is pretty bad form as the bstack / bstackhoriz patch doesn't directly modify dwm.c by default (it puts it's two layouts in their own file), so patch was written by someone who took the initiative to put bstack and bstackhoriz into dwm.c. This means that the patch will NEVER apply against a clean dwm build.

Long story short - you can completely ignore that offset's error. You can just run make and will have uselessgaps in your tiled layout.

(A word of warning as well: That patch assumes topbar to be True in config.h. If you have topbar set to False, you'll see strange problems wherein the uselessgaps are exactly right on all but the bottom of the window. You can fix this by modifying resizeclient in dwm.c to look like this:

void
resizeclient(Client *c, int x, int y, int w, int h) {
    XWindowChanges wc;
    gap = c->isfloating ? 0 : c->mon->lt[c->mon->sellt]->addgaps ? gappx : 0;
    c->oldx = c->x; c->x = wc.x = x + gap;
    c->oldy = c->y; c->y = wc.y = y + gap;
    c->oldw = c->w; c->w = wc.width = w - (gap ? (x + w + (c->bw * 2) == c->mon->mx + c->mon->mw ? 2 : 1) * gap : 0);
    if(topbar) {
        c->oldh = c->h; c->h = wc.height = h - (gap ? (y + h + (c->bw * 2) == c->mon->my + c->mon->mh ? 2 : 1) * gap : 0);
    } else {
        c->oldh = c->h; c->h = wc.height = h - (gap ? (y + h + bh + (c->bw * 2) == c->mon->my + c->mon->mh ? 2 : 1) * gap : 0);
    }

    wc.border_width = c->bw;
    XConfigureWindow(dpy, c->win, CWX|CWY|CWWidth|CWHeight|CWBorderWidth, &wc);
    configure(c);
    XSync(dpy, False);
}


terminal is not opening after uninstalling termite

There's no official Ubuntu package for termite, you must have installed it from some 3rd party source.

termite requires vte-ng (not sure about the exact package name, might also depend on the source where you got termite from), which replaces the Ubuntu package libvte-2.91-0 and probably its friends (-common, -dev) too.

For a long time, vte-ng was at version 0.50, whereas gnome-terminal  in Ubuntu 18.04 requires libvte-2.91-0 version 0.52, 0.50 isn't new enough for that.

You should uninstall vte-ng and its related packages (whatever their exact names are), and reinstall libvte-2.91-0 and friends from the Ubuntu repositories.

Another approach is to update vte-ng to 0.52, although if you've removed termite anyway then I'd rather reinstall the mainstream Ubuntu packages and not the termite-specific ones.


Can't start apache2.4 after upgrading subversion to 1.8.5

I just ran into the same problem when installing WANdisco's code distribution to Debian 6 (Squeeze). The solution is quite simple: server, and Apache support are in different packages. Here, this is what WANdisco writes on their web-site:

    Note: This software will install the Subversion client.
    Optionally it can install the Apache HTTPD server (apache2) and Subversion modules.

Just do an apt-get update, upgrade libapache2-svn, and you're set.


Should I install Node.js globally or on a virtual environment?

If you plan to do project that need a specific version of node JS to work yes you can, otherwise and since this is the first time you use it you should be fine with using the latest version globally.


Ubuntu 14.04 LTS can not access internet

Go to System Settings -> Network.

You don't see a wired interface

If you don't see a wired interface there, your adapter is not being recognized by Ubuntu, probably because it is too new or too old. You should identify the exact model of your motherboard and check

https://wiki.ubuntu.com/HardwareSupport

for compatibility support.

If you don't find your card there, you know what the problem is and might want to research a bit in order to be able to use it with Ubuntu.

If you find your card there, post the exact model here.

You see a wired interface

If you see a wired interface, your adapter is being recognized and you might want to check its configuration in order to match your network settings by clicking in the "Options" button on the bottom of the screen.

Regards


Ways to identify a remote SSH servers Key Length

Usually with nmap and ssh-hostkey

nmap host --script ssh-hostkey --script-args ssh_hostkey=all

Maybe you need to install nmap first:

sudo apt-get install nmap

More information here.

But there seems to be a bug in 15.04. The command works perfectly in 15.10.


How do I open the Disk Utility in Unity?

Accessing Disk Utility:

I'm sorry you have encountered this level of confusion. Help is referring to the activities overlay that is in GNOME Shell, but you are most likely using Ubuntu's Unity Desktop. Since both are "Shells" for GNOME, the help can overlap sometimes.

What you need to do is open the Unity Dash (it's the button with the Ubuntu logo on the upper left), and type Disk Utility.

Gparted:

However, as Bruno pointed out, you need to install Gparted to actually create partitions with a GUI.

To do this, open the Software Center, search for Gparted, and click install. (Or click this icon: gparted )


How do I disable touch screen on Ubuntu 17.10 permanently?

You can add the below to one of your startup scripts

xinput disable `xinput --list | grep -i "touch " | sed 's/id=//g' | cut -f2`

The opposite will re-enable it

xinput enable `xinput --list | grep -i "touch " | sed 's/id=//g' | cut -f2`

Note that there is a space after "touch". This is to prevent the command from picking up the touchpad on your laptop!


How to set margin using print to file (pdf)

File -> Print Preview -> on the top left second button from the left ("Page settings"(?))

Here you should be able to select the Papersize. Create your own custom new papersize with bigger margins.

(I have different language settings, so I hope my translations above are ok)


Problems mounting an SMB share in my fstab

Install smbfs.

Sounds silly that a package could fix this but when you use credentials files, the kernel diverts to the mount.cifs command rather than doing the mount itself. This package provides mount.cifs so should get you on the road to victory!

Edit: As Klaus points out in the comments, for 13.04 and later, you need cifs-utils.


wget only download the index.html in each and every folder

This will work, it will copy the website locally.

If that is what you want, please use the command as follows ( change domain.com to your desired domain ):

wget --recursive --no-clobber --page-requisites --html-extension --convert-links --domains=domain.com domain.com

--recursive means: download the whole site.
--no-clobber means: do not overwrite existing files.
--page-requisites means: download all the components of the page including images.
--html-extension means: save the pages as .html files.
--convert-links means: convert all the links to run locally ie. offline.
--domains=domain.com means: do not follow links outside this domain.

Notice:

Some web-servers use compression with served pages and wget will download a compressed file index.html.gz like so:

  2019-07-04 14:13:38 (1.84 MB/s) - ‘domain.com/index.html.gz’ saved
  [18714/18714]

In this case wget needs an extra option --compression=auto or --compression=gzip to correctly handle and decompress pages locally. You can use the command with this option like so ( change domain.com to your desired domain ):

wget --compression=auto --recursive --no-clobber --page-requisites --html-extension --convert-links --domains=domain.com domain.com

For further reading, please refer to Wget - The non-interactive network downloader


Ubuntu synaptics touchpad mouse move over buttons doesn't work

There was this kind of problem with some touchpads in xorg-synaptics driver.

You can try to use libinput instead.

Here is the manual to install it.


Developing Ubuntu Phone apps using .NET through Monodevelop

No, ubuntu phone is not yet supported in mono. AFAIK ubuntu don't have any plan to create official monotouch for ubuntu phone. So the answer is #No    untill some one creates it


If you deleted your partitions than there is nothing left to boot, and you may have also deleted your /boot if you had one. To install windows 8 place the cd or usb in and try to boot from it by hitting esc or whatever your pc manufacturer specified. Windows 8 should reinstall its boot loader by itself.


Cannot open software sources after removing a PPA

Quick thing to do is remove and reinstall

sudo apt-get update

sudo apt-get remove --purge software-properties-gtk

sudo apt-get install software-properties-gtk

The next thing I would do if that didn't work:

Backup the file

sudo cp /usr/lib/python2.7/dist-packages/softwareproperties/SoftwareProperties.py /usr/lib/python2.7/dist-packages/softwareproperties/SoftwareProperties.py.backup

Then remove it

sudo rm -rf /usr/lib/python2.7/dist-packages/softwareproperties/SoftwareProperties.py

do this to other offending files and try again


If your .sblive file is larger than 4 GB, the conversion to a .iso file is not possible.

This is a file system limitation.

You should find an .sblive image in the defined storage location ready to convert to .iso image.

If you've installed too many applications on the system, the size will reach beyond 4 GB, and you won't be able to convert it.


That's the one you are currently chatting with, I can't imagine the message indicator was designed to show all contacts currently online.


what is minimum required size of /boot partition for Ubuntu 18.04.2?

What is minimum required size of /boot partition for Ubuntu 18.04.2?

Answer: 732.00 MiB. I just did an Ubuntu 20.04 install on a completely empty disk and I let it do all the partitioning stuff. I chose the options for "LVM" and "encrypted partition" or whatever, then looked at gparted to see what partition scheme it produced. Here's what I saw on my 512GiB drive:
Partition   Name                    File System          Mount Point        Size        Used        Unused      Flags
---------   ----                    -----------          -----------        ----------  ----------  ----------  -----
/dev/sda1   EFI System Partition    fat32                /target/boot/efi   512.00 MiB    1.02 MiB  510.98 MiB  boot,esp
/dev/sda2   (none)                  ext4                 /target/boot       732.00 MiB   47.66 MiB  684.34 MiB  (none)
/dev/sda3   (none)                  [Encrypted] lvm2 pv  vgubuntu           475.72 GiB  475.72 GiB    0.00 B    (none)

So, it gave the /target/boot partition 732.00 MiB. If I was doing this manually, I'd just give it 1 GiB and call it good.
Update: I've posted this on ServerFault here too.


How to open files with emacs in new tabs

You are actually opening each file in a DIFFERENT copy of emacs. Probably not the best usage of system resources.

In your ${HOME}/.emacs file, ensure that you execute the server-start function as part of your emacs startup. Start emacs before the following

Then edit your files with:

# wait until you type ^X# in the emacs buffer
emacsclient file.txt

# do not wait
emacsclient --no-wait file.txt

Rather than retrain my reflexes, I define an alias in my ~/.bashrc:

alias emacs='emacsclient --alternate-editor /usr/bin/gvim'

and start my initial emacs with

/usr/bin/emacs24 &

or by clicking on an icon.


Is it possible to call Python functions from Libre Office Calc?

Hope this helps..
https://www.openoffice.org/udk/python/python-bridge.html

and this page talks about integrating python
https://sites.google.com/site/rampatilsprofile/resources/python-resources/programming-in-python-for-friends-and-relations


libvirt pfSense guest not able to obtain WAN-ip (DHCPv4) on bridged NIC

A simple reboot of the modem was not good enough. It seems to take approximately 10 seconds for my ISP to recognise the modem as down. The assigned external (public) IPv4-addresses are then removed so I can receive new ones. My ISP does not allow me to retrieve more then 4 external IP-addresses it appears.


why ls -a command showing file name in red color?

The colours from ls are as follows:

Blue: Directory
Green: Executable or recognized data file
Sky Blue: Link
Yellow (black background): Device file
Pink: Graphics image file
Red: File Archive

cf: What do the different colors mean in ls?
So most of the files are links, apart from the non-link file archive which is red.


Configuring graphical desktop on Linode VPS

Add some parameters to launch gnome-session in your ~/.vnc/xstartup file

gnome-session --session=gnome-classic &

or

exec gnome-session --session=gnome-classic &


LibreOffice 6.1 won't open files over cifs network share on Ubuntu?

On my Ubuntu 18.04 LTS MATE I can confirm your issue using LibreOffice 6.1 installed from snap:

$ snap list libreoffice
Name         Version  Rev  Tracking  Publisher   Notes
libreoffice  6.1.0.3  80   stable    canonical✓  -

I have mounted two shares from Caja:

SMB/CIFS (on /run/user/1000/gvfs/smb-share:server=192.168.111.111,share=public)
SFTP/SSHFS (on /run/user/1000/gvfs/sftp:host=192.168.111.111/home/user/Public).

When I try to open ODS or ODT file from them with LibreOffice I get almost similar error messages from LibreOffice:

I tried to solve the problem by connecting interfaces to the Snap

snap connect libreoffice:removable-media
snap connect libreoffice:network
snap connect libreoffice:network-bind

with no luck.

So we have discovered new problem of Snap applications. We already have problem with external media.
As we need to use network storage we will remove this pretty new Snap packages of LibO with

snap remove libreoffice

and install normal deb-based version instead:

sudo apt-get install libreoffice

and open network files in normal read and write mode.


What gaming keyboard(s) will work with Ubuntu?

I know this is an old thread, but I would like to toss in my three cents, adjusted for inflation.

I personally run Ubuntu 13.10 in a home-built quad core gaming rig, which used to run Windows 7 Ultimate x64. I reformatted and installed Ubuntu about eight months ago, and I haven't looked back since. I use a Razer Lycosa backlit keyboard with a matching Razer Imperator mouse, and both work flawlessly. I don't use the built in macros on the keyboard, so I can't vouch for that. What I can vouch for, is the backlighting works perfectly, the multimedia keys are flawless, and the anti-ghosting is excellent. I'm an exceptionally fast typer (90-105 wpm) and this baby never flunks out on me. I've had serious issues with Logitech boards dogging out when I'm in "beast mode," typing reports, papers, etc. I don't get that with my Lycosa.

The extra USB port, as well as headphone and mic jacks also work on the back of the keyboard, because they're just extensions/pass throughs from the back of the tower. When you hook up the Lycosa to your PC, you have two USB ports, as well as a mic and headphone jack to plug in as well.

In conclusion, the keyboard works perfectly out of the box for Ubuntu, unless you HAVE to have the macros. I'm pretty sure you can plug it into a Windows machine for configuration, and then plug it back into your linux box to use them, since your macros are stored in the keyboard itself.

The Razer Imperator mouse also works like a dream in Linux. Since it was first used on a windows machine, the DPI settings were already loaded into the mouse's memory. Once plugged into ubuntu, no software was needed because the Imperator is hardware based. The DPI adjusters on the spine of the mouse still work flawlessly, as well as the extra thumb-buttons for back and forward, or whatever you choose to run there. All of the lights work, and I've had absolutely no mishaps on either device.

I hope this helps at least one person out there. If so, my work here is done. :-)


Will videos/slides from the UDS be available?

Videos go to the Youtube Channel:

http://www.youtube.com/user/ubuntudevelopers

They get posted originally to

http://ubuntudevelopers.blip.tv/

and then distributed to YouTube and archive.org. The AV team typically gets the videos up a day or so after the session has happened, so the UDS videos will be uploaded as they are finished.

Audio recordings of each session are available here.


Trying to setup webserver and not able to access from outside network

Try putting the IP address in DMZ (Demilitarized Zone).

For me it looks like this:


Using bac0n's comment I replaced:
paste <(ls "$@") <(cat "$@") | column -s $'\t' -t | sed "s#$prefix##g"

with:
paste <(ls "$@") <(printf '\e[1;91m%s\e[0m\n' $(cat "$@")) | \
    column -s $'\t' -t | sed "s#$prefix##g"

Now it displays as desired:


Is there any record of group membership changes?

In a standard Ubuntu installation there's a groups config backup file in /var/backups/group.bak. So (from a root recovery console) you could do something like

grep <your_username> /var/backups/group.bak

to list all groups you used to be in.

EDIT: as Lekensteyn rightly pointed out, it would be better to use the /etc/group- backup file, not the /var/backups/group.bak one.


Is there a lightweight way to snap windows in Lubuntu?

Super + arrow

Super + ← and Super + → split the screen horizontally.

Super + ↑ and Super + ↓ split it vertically.


Just this one made your system unusable:

Package: libc6 (2.15-0ubuntu10.5) [security]
Embedded GNU C Library: Shared libraries
Contains the standard libraries that are used by nearly all programs on the system. This package includes shared versions of the standard C library and the standard math library, as well as many others.

I would suggest to re-install without(!) formatting discs. It is the easiest and quickest method to get your system back up. In case you have files on that system you need to save: use the live dvd to mount your user partition and burn them to a dvd. Just as a precaution.


Xubuntu 16.04 uses Noto Sans as the default font for it's User interface. In previous releases, It used to use Droid Sans though.

In Ubuntu flavors, typically xubuntu-default-settings package controls the default look and feel for a flavor. It's xubuntu-default-settings for Xubuntu, lubuntu-default-settings for Lubuntu.

The dependencies of xubuntu-default-settings verifies this -

xubuntu-default-settings
 |Depends: dconf-gsettings-backend
  Depends: <gsettings-backend>
    dconf-gsettings-backend
  Depends: xubuntu-artwork
  Depends: fonts-noto-hinted
  Depends: x11-common
  Depends: lightdm-gtk-greeter
  Recommends: xfce4-session
  Recommends: libxfce4ui-utils