Can i control Ubuntu 12.10 desktop while it is being remotely controlled?

Ofcourse,

Please check my answer here:

Remote desktop for multiple users

X2go and ssh Works with better support and features for linux remote desktop. (Like, file sharing, clipboard sharing, sound over net, web client, etc).

There are other ways to do it, but it worked for me, so I post it.


Dell Inspiron does not go into GRUB after shutdown from Kubuntu

I solved this by disabling the Legacy ROM option in the BIOS settings while leaving UEFI enabled. After reinstallation the laptop now boots as expected.

I didn't try disabling UEFI completely since I prefer that mode.


How to add UTF-8 support to my hard disk in fstab?

With ext4 (or ext3/2) you don't have to specify character set for filesystem. It does not care, as long as you are not using unescaped control characters in filenames.

Your system locale is more important thing. Try dpkg-reconfigure locales and select appropriate UTF-8 locale. Also, if you are using virtual terminal, make sure you have UTF-8 enabled (for example in GNOME Terminal: Terminal->Set Character Encoding).


Sleep Timer to Suspend in Ubuntu MATE 16.04 LTS

If you don't mind using a terminal, you can do it this way.

Execute : sleep 2h 45m 20s && systemctl suspend -i

It suspends your system in 2 hours, 45 minutes, 20 seconds.

I wrote a script for getting a GUI like this:

Copy the content of the script below and save it in your home directory as  fast_suspend.sh.

#!/bin/bash

#   Tested on : Ubuntu 16.04 LTS
#   Date      : 19-May-2016
#
#   This program is distributed in the hope that it will be useful,
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

set -- `zenity --title="Scheduled-action" \
    --forms \
    --text='Enter Relative time'  \
    --add-entry="hours" \
    --add-entry="min" -\
    --add-entry="sec" \
    --separator=".0 " \
    --add-combo=action --combo-values="poweroff|restart|suspend|logout"`

hrs=$1
min=$2
sec=$3
action=$4

time=$hrs\h\ $min\m\ $sec\s

#Checking validity of the input :

re='^[0-9]*([.][0-9]+)?$'

if ! [[ $hrs =~ $re ]] || ! [[ $min =~ $re ]] || ! [[ $sec =~ $re ]]
then
    zenity  --error \
            --title="Invalid Input" \
            --text="You have entered an Invalid time! \n\nOnly positive integers supported"
            exit 1
fi

case $action in
    "poweroff")
        zenity --title=Confirm --question \
        --text="Your system is about to $action in ${hrs%%.*} hours ${min%%.*} minutes ${sec%%.*} seconds. \nAre you sure \?"
        if [ $? -eq 0 ]
        then
            sleep $time && poweroff
        else
            exit
        fi  ;;

    "restart")
        zenity --title=Confirm --question \
        --text="Your system is about to $action in ${hrs%%.*} hours ${min%%.*} minutes ${sec%%.*} seconds. \nAre you sure \?"
        if [ $? -eq 0 ]
        then
            sleep $time && reboot
        else
            exit
        fi  ;;
    "suspend")

        zenity --title=Confirm --question \
        --text="Your system is about to $action in ${hrs%%.*} hours ${min%%.*} minutes ${sec%%.*} seconds. \nAre you sure \?"
        if [ $? -eq 0 ]
        then
            sleep $time && systemctl suspend -i
        else
            exit
        fi  ;;
    "logout")
        zenity --title=Confirm --question \
        --text="Your system is about to $action in ${hrs%%.*} hours ${min%%.*} minutes ${sec%%.*} seconds. \nAre you sure \?"
        if [ $? -eq 0 ]
        then
            sleep $time && gnome-session-quit --logout --no-prompt
        else
            exit
        fi  ;;
esac

Additionally you can create a .desktop file to run it.

Copy the text below and save it as fast_suspend.desktop.

[Desktop Entry]
Type=Application
Terminal=false
Icon=
Name=fast_suspend
Exec=/home/your-user-name/fast_suspend.sh
Name[en_US]=fast_suspend

Provide execution permission for both files - execute :

chmod a+x ~/fast_suspend.sh ~/Desktop/fast_suspend.desktop

When you want to launch this window again, just double click on fast_suspend on the desktop.


Internet via Wifi disconnects when I connect ethernet cable to connect a ethernet device?

Do you have a default gateway set on the Ethernet interface?  If so you are probably routing all traffic to the interface when it is available.

If you are using the Ethernet interface for a single subnet, you can remove the default gateway and everything will work normally.

If you have multiple subnets beyond the Ethernet interface, you will have to add some static routes to your routing table.


When you use LANG=C gcc ...  what happens is that the shell sets LANG for gcc's environment only, and not for the current environment itself (see note). So after gccfinishes, LANG is back to its previous value (or unset).

Additionally, when you use A=10 echo $A it is the shell that replaces $A, not echo, and this substitution (called "expansion") happens before the statement is evaluated (including the assignment), so to work as expected A's value must be already set in the current environment prior to that statement.

That's why A=10 echo $A does not work as expected: A=10 will be set for echo, but echo internally ignores the value of the environment variable A. And $A is replaced with the value set in the current shell (which is none), and then passed as an argument to echo.

So your assumption is correct: VAR=value command does work, but this is only relevant if command internally uses VAR. If not, you can still pass value as an argument to command, but arguments are replaced by the current shell, so they must be set prior to usage: VAR=value; command "$VAR"

If you know how to create an executable script, you can try this as a test:

#!/bin/sh
echo "1st argument is $1"
echo "A is $A"

Save it as testscript and try:

$ A=5; A=10 testscript "$A"; echo "$A"
1st argument is 5
A is 10
5

Last but not least, it's worth knowing the difference between shell and environment variables and program arguments.

Here are some good references:

How To Read and Set Environmental and Shell Variables on a Linux VPS
Understanding Unix shells and environment variables

.

(*) Note: technically the shell does set in current environment too, and here's why: Some commands, like echo, read and test are shell builtins, and as such they don't spawn a child process. They run in current environment. But the shell takes care for the assignment only lasts until the command is running, so for all practical purposes the effect is the same: the assignment is only seen by that single command.


Dual boot problem; How to add Windows Vista on GRUB menu?

Try this : https://help.ubuntu.com/community/Boot-Repair
It saved my grub many times


how to make my /etc/network/interface config work for netplan

This is very simply converted; the only significant difference is that in netplan you would do both dhcp and static addresses on the same interface, rather than using an interface alias for one of the addresses (since interface aliases are deprecated):
network:
  version: 2
  renderer: networkd
  ethernets:
    enp0s31f6:
      dhcp4: true
      addresses: [10.42.2.2/24]


How do I prevent root access from all TTYs

I think you're spending your effort on trifles. If Bad Guy can attach a terminal, Bad Guy can boot from his USB.

But, since man securetty says securetty - file which lists terminals from which root can log in it implies that you could comment out all but TTY1. Commenting out (or not) lines for hardware you don't have makes no difference.

Since, if you mess with /etc/securetty, you can end up locked out of your system, you must test carefully. If you have batch or at set up and running you could do by setting up a root batch job to do::

cp /etc/securetty /etc/securetty.original
cp /tmp/modified.securetty /etc/securetty
sleep 20m
cp /etc/securetty.original /etc/securetty

And do your testing in the next 20 minutes, after which, the original (working) /etc/securetty is restored.


Is there any limit to the number of PPA's I can add to the system? Why?

I'm not aware of a number limit, but I do know that as you add more PPAs, you get more twisted and twisted dependency chains and PPAs can/will begin to conflict with each other.

You should only add a PPA if you really need/want what's in it.  I, for example, have the webupd8 PPA for ST and a couple of other things, X-Swat, and Kernel edgers.

If someone knows of a numerical hard limit, that would be good to know, but this is the reasoning on why I personally limit myself to a few PPAs.

Edit
Evidently there is a hard limit related to GPG keys, and it is being worked on.

Excerpt:
There is a neat way to squeeze couple of PPAs more through this keyhole of 40...
Look into /etc/apt/trusted.gpg.d and You might find some pairs or triples of same size. Check them with diff and if they are same You can leave only one...


Problem in downloading any song or movie

go to Edit --> Preferences.
Select Applications tab.
As shown in the image, change to save file for every content type..


Where does Quickly get the PPA name from?

quickly reads the PPA name from the.quickly file in the root project directory. It looks like:

project = foo
version = 11.10
template = ubuntu-application
ppa = experimental

Though by default, the PPA is not set and quickly will assume that you want to use ppa:launchpad_username/ppa as that is also the default when registering your first PPA on Launchpad.

As the error message suggests, use quickly configure ppa <ppa_name> to change the default. In your case, I think you want:

quickly configure ppa umpirsky/revision-monitor

Or you can manually add the line ppa = revision-monitor to .quickly


I have Dell G5 5587, and I had a problem with dual boot after BIOS update.
After some research, I could hack around it.

After installing both OSes.

I  mounted the EFI partition, using live Linux USB or from cmd using mountvol b: /s (b: is where you mount the partition)

I got into the EFI folder and changed the names of (boot, Microsoft, ubuntu - or any other disto)

I renamed *boot* to *boot.bak* (as a backup in case the laptop wouldn't boot.

I renamed Microsoft to _Microsoft (or any other name you will need it later).

I renamed ubuntu to boot.

I got into the new boot directory, then I changed the name of grubx64.efi to bootx64.efi.

I added the following to my grub.cfg in /boot/grub/.

menuentry "Windows 10 (loader)"{
    insmod part_gpt
    insmod fat
    search --no-floppy --set=root --fs-uuid (type the UUID of the efi partition)
    chainloader /EFI/_Microsoft/Boot/bootmgfw.efi
}

Notice that _Microsoft is the name to which I renamed Microsoft folder.

To check the UUID of the EFI partition using sudo blkid in Linux.

Now grub would work after rebooting.

Notice that I use gpt partition table.

To understand what is happening (not sure 100% about this):

UEFI looks for Microsoft directory to boot into Windows (using Windows boot loader). Which is why we changed its name.

If it doesn't find it, it uses boot directory as a fallback to boot into Windows (Windows boot manager). That is why I changed grub folder 'ubuntu' to 'boot' to make UEFI use it instead of Windows boot manager.

Then I added Windows 10 boot loader manually path to grub. As grub won't find it just by using 'update-grub' or 'grub-install'.


How to disable non-SSL on Apache on only the host without disabling in virtual hosts?

This is almost an answer in that it doesn't leak information out of port 80 by accident:

Create a file in /etc/apache2/sites-available/forbidipaccess.conf with contents:

NameVirtualHost *:80
<VirtualHost *:80>
  <Location />
  Order deny,allow
  Deny from all
  </Location>
</VirtualHost>

Then run:
    sudo a2ensite forbidipaccess and
    sudo service apache2 reload

This doesn't block the IP as such, but it does issue a 403 Forbidden response if there isn't a config with that specific domain name as its ServerName or ServerAlias.

If we wanted to be super-nice and didn't like the "Forbidden" message, we could alternatively use an Apache Rewrite to return a 301/2/3 which would forward the user to the equivalent SSL, e.g.

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{SERVER_NAME}/%$1 [R=301,L]


How to fix "16 bit MS-DOS Subsystem  ... illegal instruction" installing U1 on Windows XP?

This error indicates that a DOS program is being run. Since the Ubuntu One executable for Windows (or its installer) is unlikely to have any legacy DOS components, it seems likely that the installer you downloaded is corrupted.
Just about any download can be corrupted, but the Ubuntu One installer is not very large, so the risk of corruption is usually pretty low. So I visited the download page for the Ubuntu One client for Windows, and downloaded it myself.
I examined the downloaded file (on my Ubuntu system, with file and less), confirming that it did not download correctly. Instead of the executable installer for Ubuntu One, the downloaded file was a web page!
So I renamed the file to have a .html extension, and opened it in a web browser. It looks like it might be a problem with OpenID--that, for some reason, the download page thinks you have to be logged in to download the Ubuntu One client (but downloading it while logged in doesn't work either).
I'll try to look more into this. Ultimately, it should probably be reported as a bug in the Ubuntu One website. Ordinarily we consider bugs off-topic here (reporting them, and most investigation of them), so please don't be alarmed if this question ends up getting closed.
I'm making this answer community-wiki. Anyone with information about this should feel free to edit this answer (unless moderators say not to continue work on this here, of course).
Update
I've reported this as a bug. It is bug 1037771 on Launchpad. I reported it against the ubuntuone-servers project rather than the ubuntu-website project, since the domain is one.ubuntu.com (which I believe is administered separately from the main site). I think I got the project right; if not, a triager or developer should be able to retarget it to the correct project.
I recommend subscribing to the bug (so you receive notifications about it), and indicating you are affected using the green This bug affects... link near the top of the bug page. In addition, I recommend posting your screenshot, as well as any pertinent information that I may have neglected to include, in the bug.
If you don't have a Launchpad account, you'll have to first create one in order to do this. (To do that, click Log In / Register at the upper-right corner of the main page, or any Launchpad page.) But having a second person confirm the bug on Launchpad often substantially shortens the amount of time it takes to fix important bugs like this one. (I say it's important as it is likely to affect a large percentage of users and render the product completely unusable for them; for these reasons, I believe the bug is likely to get swift attention on Launchpad, once it has been formally confirmed.)
Update 2
For the benefit of others finding this question:
The bug has been fixed, and the Ubuntu One client for Windows now downloads correctly.
Anyone who has this problem can simply re-download the installer (the proper file is currently about 20 MB large), and it should be usable.


Dual Boot Windows 8/ Ubuntu 16.04 Grub Issues

Eventually I found the answer: if you do not have one already, create a live CD or USB drive and plug it in your computer.

Keep your BIOS settings on UEFI boot, and when the Logo comes up, press the key that makes your computer show the boot order menu. For my Toshiba Satellite C55 it was F12. Changing the boot order in the BIOS would not let me boot my Live Media unless it was in CSM mode which is what we are trying to avoid.

Then select USB or CD depending on the media you used. Select install Ubuntu, and when given the option, select reinstall Ubuntu and keep files and folders. After the install reboot and cross your fingers...if Windows and Ubuntu are on the Grub Menu while in UEFI mode you got it!


Problem while playing video in Ubuntu 14.04

It seems that the video is lagging a minute after sound. Not sure you are what player you are using. Here is a simple fix for VLC(auuming you are using VLC). http://lifehacker.com/5910943/fix-out-of-sync-audio-in-vlc-with-a-keyboard-shortcut


I suggest you to install Shutter, an excelent screenshot tool.

Open a terminal session and install it:

sudo apt-get install shutter

and assign PrtSc shortcut to it. I use it, it's great!!


How to redirect a URL to another URL using /etc/hosts

What you are trying to do is not possible. Well, at least not how you are trying to do it.
In your desired URL (https://i.imgur.com/6FxzzCT.png), only this part has a specific IP address: i.imgur.com.
$ dig +short i.imgur.com
151.101.16.193

In a simplified form, when you enter that whole link in your browser (https://i.imgur.com/6FxzzCT.png). You are sending a request to 151.101.16.193 asking for 6FxzzCT.png file using HTTPS protocol.
Using /etc/hosts you can only set predefined IP addresses per hosts but you can't handle HTTP requests.
What you might be able to do is to run a simple HTTP server on localhost serving a picture or a random picture at index.html or whatever predefined default page. Then redirect every site you like to 127.0.0.1 using /etc/hosts. Now your page is waiting there to bring up some random picture.


Select the remaining text in a line from a log file

The biggest improvement will be to avoid the shell loop altogether and process each record (line) directly in Awk. For example:

$ awk '{
    printf("%s;%s;%s;", $6, $1, $2)
    for(i=3; i<NF;i++) {
      if(i==6) continue;
      printf("%s ", $i)
    }
    printf("%s\n",$NF)
  }' input
1320;02/01/2018;10:32:35;ANR4930I Reclamation process started for primary storage pool VM_VTL_POOL automatically, threshold=75, duration=None. (PROCESS: 1320)


Collating multiple images into one, programmatically

Install the package named imagemagick:

sudo apt-get install imagemagick

Now you can use the tool called convert:

convert -append input1.jpg input2.jpg inputn.jpg out.jpg

or you can use to append all images

convert -append *.jpg out.jpg


change directory (cd) but by replacing a part of the path only

If you use zsh as shell you can just enter cd 1.0.8 2.0.1.


How to fix a fan's corrupt configuration?

What's happening is that when power is applied to the fan near 100% or the time, it's not operating at full speed.  I would recommend replacing the fan as it is not performing optimally.
To get around this issue without replacing the fan, you can set the maximum pwm value to 210 and it should solve the issue.
Edit /etc/fancontrol and look for MAXPWM.  If the file does not exist, please complete pwmconfig and save it so pwm3 is in the file.  If MAXPWM is not in the file, add it.  Use the same notation that is already there for MINSTART and MINSTOP, so if you have a MINSTART that looks like this:
MINSTART=/sys/devices/platform/it87.656/hwmon/hwmon1/pwm3=70

Then your MAXPWM would look like:
MAXPWM=/sys/devices/platform/it87.656/hwmon/hwmon1/pwm3=210

Though I find it interesting that someone else just had this same issue and it had to be set to 210 as well.  It's possible that it's not the fan but the motherboard itself that is causing the issue.


iptables ruleset blocking all network activity?

My first guess: You need connection tracking.

Without it I believe reply traffic to your requests are filtered, which is probably not what you want.

Try adding the following before your other input rules:

-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT


Build 32-bit on 64-bit Ubuntu: installing ia32-libs does not include libstdc++

You need to install:

sudo apt-get install g++-multilib

Here are more details on Ubuntu wiki.


For such old hardware from my personal experience on about 60 similar machines I can recommend to use normal traditional and fast desktop called MATE DE.

You can install it with sudo apt install ubuntu-mate-desktop^ and then select its session from login screen.

And of course consider to buy more RAM.

Removing some Snap applications may save some boot time too.


How do I use an .img.xz file or get an .img file from it?

xz is a compression format like zip or gz. To be able to decompress it from the command line you need to install xz-utils:

$ sudo apt-get install xz-utils

and then use this command to decompress your file:

$ unxz ubuntu-19.10-preinstalled-server-arm64+raspi3.img.xz

If you are under windows you can use 7zip


How submit a project to Ubuntu Software Center with Quickly

I had some doubts submiting an app to the Ubuntu Software Center for the Ubuntu App Showdown. Here there are all the commands for a right submit:

quickly create ubuntu-application yourProject
cd yourProject
quickly configure bzr lp:~launchpadUsername/yourProject/trunk
quickly configure ppa launchpadUsername/yourProject
python setup.py build_i18n
save "Releasing version 0.1"
bzr push --overwrite lp:yourPPAName
quickly package --extras
sed -i -e 's/Build-Depends:\ /Build-Depends:\ libglib2.0-bin, \ /' debian/control
Open debian/changelog > Change your email to your public key
debuild -S
dput ppa:launchpadUsername/yourPPAName ../project_version_source.changes

Submit the app to http://developer.ubuntu.com/publish/, remember attach the file in the comments and the PPA!!! You don't need upload a package or file, just with the PPA will be fine :)


LXDE and X11 are not quite the same thing. You probably need the X11 header files. Try installing libx11-dev:

sudo apt-get install libx11-dev


If you make a typo like add a space

rm -r ~/ .kodi/

This is treated like

rm -r ~/
rm -r .kodi/

The first one wiped all files form your user directory.

You need to be careful when using rm -r command. The second part gave you en error because the .kodi directory had been already removed.


OpendTect 6.2.0 bad installation in Ubuntu 18.04 LTS x64

I have installed it with the actions below:

sudo apt-get install csh
cd ~/Downloads
wget http://download.opendtect.org/relman/OpendTect_Installer_lux64.sh
sh OpendTect_Installer_lux64.sh

It was installed to ~/OpendTect.

If I start it with ~/OpendTect/6.2.0/start_dtect I get the same
Segmentation fault (core dumped).

But I can launch it by command (specifying library directory manually)

LD_LIBRARY_PATH=/home/$USER/OpendTect/6.2.0/bin/lux64/Release \
/home/$USER/OpendTect/6.2.0/bin/lux64/Release/od_main

Note: I have never used this software, just installed to help you.


Multiple mounts on single partition, fresh install

Figured it out myself.

sudo -H gedit /etc/fstab

should contain

UUID="Your unique partition UUID" /prt2 ext4 defaults 0 0
/prt2/usr /usr            none    bind              0       0
/prt2/opt /opt            none    bind              0       0
/prt2/var /var            none    bind              0       0
/prt2/tmp /tmp            none    bind              0       0


Steps to create a kickstart server on Ubuntu 14.04

This is a good step-by-step guide

  TL;DR; use isohybrid after repacking the custom iso

  To make this usb, I used a virtual machine with Ubuntu 14.04
  installed. The goal here is to make a bootable usb that doesn’t
  require selection of things like keyboard layout, language, etc. We
  want an automatic install of an Ubuntu server.

  We need to get the ubuntu image that we’re going to be customizing for
  our installation.

wget http://releases.ubuntu.com/14.04/ubuntu-14.04.2-server-amd64.iso

  We’re going to need a place to mount the unpacked iso file.

sudo mkdir -p /mnt/iso

  After we have created a mount point for it, now we have to mount it.
  This will expose the files that are held inside the iso.
  Unfortunately, the files will be read-only

  . sudo mount -o loop ubuntu-14.04.2-server-amd64.iso /mnt/iso

  In order to modify the files, we need to copy them to a directory
  where we can modify them, so we’ll create the directory and then copy
  the files to it.

sudo mkdir -p /opt/ubuntuiso
sudo cp -rT /mnt/iso /opt/ubuntuiso

  Our new working directory will be /opt/ubuntuiso

cd /opt/ubuntuiso

  In order to avoid being prompted for language selection in the
  installation process, we need to tell it what language we’re going to
  use. In this case, en is being used because I speak english.

echo en | sudo tee isolinux/lang

  Now we are actually going to build the kickstart file with a program
  called system-config-kickstart. So we make sure it’s installed and
  then run it.

sudo apt-get install system-config-kickstart
system-config-kickstart

  Then save the file from the GUI in /opt/ubuntuiso/. This should save
  a file called ks.cfg. My ks.cfg looks like the following

#Generated by Kickstart Configurator
#platform=AMD64 or Intel EM64T
#System language
lang en_US
#Language modules to install
langsupport en_US
#System keyboard
keyboard us
#System mouse
mouse
#System timezone
timezone America/Denver
#Root password
rootpw --disabled
#Initial user
user ubuntu --fullname "ubuntu" --iscrypted --password $1$MQ0zGB4W$pwjX8nolgr2RJch2Omamt.
#Reboot after installation
reboot
#Use text mode install
text
#Install OS instead of upgrade
install
#Use CDROM installation media
cdrom
#System bootloader configuration
bootloader --location=mbr
#Clear the Master Boot Record
zerombr yes
#Partition clearing information
clearpart --all --initlabel
#Disk partitioning information
part /boot --fstype ext2 --size 100 --asprimary
part swap --recommended
part / --fstype ext4 --size 1 --grow
#System authorization infomation
auth --useshadow --enablemd5
#Network information
network --bootproto=dhcp --device=eth0
#Firewall configuration
firewall --disabled
#Do not configure the X Window System
skipx
%post
#!/bin/bash
exec < /dev/tty6 > /dev/tty6
chvt 6
echo 'Acquire::http { Proxy "http://10.2.4.27"; };' > /etc/apt/apt.conf.d/02proxy
apt-get update
apt-get -y upgrade
apt-get -y dist-upgrade
apt-get install -y git ansible openssh-server vim
chvt 1

  There is a little bit of hijacking done in the postscript (everything
  after %post). The line beginning with exec and the following line
  (chvt 6) are forcing the installer show the output from the commands
  that are run after that. The reason for this is that the loading bar
  will not move during the installation, and it can appear as though the
  installer has hung. The following line that does the proxy is for the
  apt-cache on our local network. The final line (chvt 1) reverts the
  output to the main installer.

  Now we need to add the preseed file so that we can avoid other
  questions.

echo 'd-i partman/confirm_write_new_label boolean true d-i partman/choose_partition \ select Finish partitioning and write changes to disk d-i partman/confirm boolean true' | sudo tee ks.preseed

  Now we need to tell the installer about the files that we just saved,
  so we need to modify isolinux/txt.cfg. First we need to make the file
  writable.

sudo chmod +w isolinux/txt.cfg

  Then we need to replace the append line of the following section

label install
menu label ^Install Ubuntu Server
kernel /install/vmlinuz
append file=/cdrom/preseed/ubuntu-server.seed vga=788 initrd=/install/initrd.gz quiet --

  Replace the append line with

append file=/cdrom/preseed/ubuntu-server.seed initrd=/install/initrd.gz ks=cdrom:/ks.cfg preseed/file=/cdrom/ks.preseed --

  Save and exit the file. We also need to make sure that we put the file
  back in its original state, so remove the write permissions.

sudo chmod -w isolinux/txt.cfg

  Now create the new iso file that we will use to create the bootable
  usb.

sudo mkisofs -D -r -V "ATTENDLESS_UBUNTU" -cache-inodes -J -l -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o /opt/autoinstall.iso /opt/ubuntuiso

  In order to finalize the bootable iso for a usb, we need to hybridize
  it.

sudo isohybrid /opt/autoinstall.iso

  After hybridizing it, we can push it to the usb drive. The usb drive
  in my virtual machine shows up in /dev/sdb, but you need to use the
  correct label, so replace X accordingly Make sure that the usb drive
  is unmounted.

sudo umount /dev/sdX

  And finally push the iso onto the usb drive. (Please note **this
  destroys data on the target device - make sure you know what you are
  doing)

sudo dd if=/opt/autoinstall.iso of=/dev/sdX

  Now your usb drive should be ready for installation!


Delete opvn config after a specific amount of time

The easiest way I can think of is to make a shell script to count down:

#!/bin/bash
#Set x to 100
x=100
#Convert it to hours
x=$(expr $x "*" 60)
#infinite
while true
do
#If x is greater than 0
    if [ $x -gt 0 ]
    then
        x=$(expr $x - 1)
        echo "$x minutes left."
        sleep 60
    else
        #Put code to delete here
        echo "Deleting..."
        /path/to/revoke-full name client
        exit
    fi
done

Although this should work, I haven't had the time to test it.

I got expr help from https://stackoverflow.com/questions/27218141/multiplication-with-expr-in-shell-script


Want to turn off auto-maximizing of windows in 14.04

I use 16.04  Gnome Classic, metacity.

Managed to disable the irritating 'auto resize' problem:

Open 'dconf Editor' ;
Search  for edge-tiling
Uncheck the corresponding box.


OK, it seems like you are trying to install Ubuntu when your computer is set up to boot from bios. To check, boot into your Windows 7 partition, press start,  click on my computer and select manage. Under disk management all of your partitions should come up. If you see a 100 mb system reserved partition chances are your system uses bios.

Steps to take
If your Windows boots fine and works, I would back up the entire disk (it is called create a system image under Windows 7 back up options). You would need another hard drive or a set of DVDs.

This ensures that if you accidentally hose your Windows install you aren't left with a brick.

You would also need to create a repair disk (image back up will prompt you) and system recovery disks if you don't have those already.

What you need to do is resize your main Windows partition (the 400+gb one) so that you have enough space to install Ubuntu.

Once you have done that, to reduce the number of the partitions to less than 4, the safest method is to remove the recovery partition.

This is usually provided by oems to reinstall your computer to factory defaults. However it is not needed if you have create a system image, a repair disk (to let Windows use your system image to restore) and recovery disks so that you can roll back your system to factory defaults.

Once you have wiped the oem recovery partition Ubuntu should install (choose use largest continuous free space


Keyboard layout not working in Ubuntu 18.04

Just for information, if someone is in a similar situation and wants to avoid restarting, this worked for me. TL;DR:

sudo dpkg-reconfigure keyboard-configuration
gsettings reset org.gnome.desktop.input-sources xkb-options


Chrome Screen Tearing while rendering pages

sorry to pop in on this so late. However I was also encountering the issue today and stumbled upon this. What fixed it for me was going to chrome://flags and enabling "Override software rendering list Mac, Windows, Linux, Chrome OS, Android
Overrides the built-in software rendering list and enables GPU-acceleration on unsupported system configurations"

I guess for some reason for me 2D hw accel wasn't working.

Just adding this here in case anyone else ever has this issue.

Kind Regards,
openSUSE user


Ubuntu 12.04 shows Packages 404 not found while updating and Hash sum mismatch

You are using Ubuntu 11.04 repositories on 12.04 which don't work. You can click the links in your question to see that even in your browser.

Go to Software Sources or Software and Updates, select Other software tab, select those two repositories and delete them.

You may want to restore your default repositories. Go to http://repogen.simplylinux.ch/ . Choose Precise, check main, restricted, universe, multiverse, security, updates, backports (both checkboxes for each). Click Generate at the bottom.

Open a terminal and type sudo gedit /etc/apt/sources.list. Put here what it was generated on the site I mentioned.

Do a sudo apt-get update and sudo apt-get upgrade.


Ubuntu halts after few seconds of starting and nothing works command, virtual terminal, GUI

Looking at the output from the terminal, it seems there's some problem with partition inodes, you should try below:-

NOTE:- fsck/e2fsck works on unmounted partitions, so you first need to boot to recovery, and then run fsck from there by the option given or by dropping running to root shell prompt and then running the below commands.

Run:

umount /path/to/device
fsck -t ext3 /dev/whatever

followed by:

e2fsck -f /dev/whatever

EDIT:-

This and this will probably help you alot!


Your machine's BIOS is currently disabling virtualization.

On startup, press enter (or equivalent for your machine) to enter the BIOS.

Locate the Virtualization option - for me, it's in the "Processor" menu.

There should be an option labelled something like "Virtualization Technology". I imagine it's disabled, if you're having this issue. Toggle it to be enabled, and you should be all set. :) I just had to use virtualbox for the first time last week, and I had the same issue. I hope this helps!


How do I download and install libraries from url

Select Software Repositories

sudo software-properties-gtk

Update repositories

sudo apt-get update; sudo apt-get upgrade

Download subversion

mkdir subversion; cd subversion; wget -c --read-timeout=3 -t 0 $(apt-get install --reinstall --print-uris -qq subversion | cut -d"'" -f2)

Install subversion

sudo dpkg -i *.deb

If any version problem arises try this


Invalid User vs. User Not Allowed in ssh log

Invalid user means the ssh request was made by a user name on the system, "cni07" in this case. There is no user "cni07"

User not allowed means there is a user, "root" in this case, but that user is not allowed to log in via ssh. This could be restricted by a variety of means in the sshd_config file.


Answer to first question: Run hostname -I <--- CaSe SeNsItIvE

Answer to your second question: Samba is a network mount. Are you trying to mount it locally, or over the LAN?


Repository returns different packages on two different machines

they are NOT the same repos. one I note is XENIAL 16.04, the other TRUSTY 14.04.

Even if the URL is the same, the version keyword (xenial/trusty) points to a different place at the end of the url.   The repo. name consists of URL & the rest of the info you see in your sources.list record.


Replace Ubuntu MATE default apps with GNOME ones

I don't believe there's any easy way to do this within the MATE desktop environment, since the MATE desktop and MATE apps are designed, coded, and tested to work together as a cohesive desktop.

However, there is a way to run GNOME (which includes all the latest versions of nautilus, gnome-terminal, gedit, etc) in a mode that closely resembles the MATE desktop.

First install the ubuntu-gnome-desktop package, or do a fresh install of Ubuntu GNOME. This will install the full GNOME desktop environment. Next, install the gnome-flashback package. This installs the "classic" mode of GNOME, which is similar to Ubuntu MATE. Now, at the login screen you can choose to use the "flashback mode", and you'll see a desktop that's like Ubuntu MATE, but with all the latest GNOME apps. More information here:
Gnome Classic for 15.04?


Loaded notes whether the service file is loaded into memory. Other possible values besides loaded are masked or error in the case of invalid syntax.
disabled and enabled usually relate to whether the service is set to start on boot or not. From man systemctl:

  Enabling simply hooks the unit into various suggested places (for
  example, so that the unit is automatically started on boot or when a
  particular kind of hardware
             is plugged in). Starting actually spawns the daemon process (in case of service units), or binds the socket (in case of socket units), and so on.

active usually tells you if the service is running or not. Note though that a service can be active but not running due to the RemainAfterExit= directive. "If set to true, the service shall be considered active even when all its processes exited". This directive is documented in man systemd.service.


You could use screen (you may have to sudo apt install screen first).

Read `man screen, or https://manpages.ubuntu.com/manpages/bionic/en/man1/screen.1.html

Using screen's magic keystroke Ctrl A, once the process you're running exits,

C-a h       (hardcopy)    Write a hardcopy of the current window to the file "hardcopy.n".


"W: Possible missing firmware for module i915_bpo" when updating initramfs

The driver package is somewhat lagging the kernel.
In my case the missing firmware doesn't matter because I don't have a SkyLake processor, but in your case it might matter.
You can get the newer firmware from here.

EDIT 1: Note the link changed, but readers should still be able to find what they need in the new link, although sometimes it can be difficult to know exactly what your are looking for.

EDIT 2: This answer should be applicable to some other new firmware requirements that have come along since this answer was originally written. For example:

W: Possible missing firmware /lib/firmware/i915/kbl_dmc_ver1_01.bin for module i915
W: Possible missing firmware /lib/firmware/i915/kbl_guc_ver9_14.bin for module i915
W: Possible missing firmware /lib/firmware/i915/bxt_guc_ver8_7.bin for module i915

EDIT 3: For users that use git, this answer also works well.


Why is the server kernel not install on a server? (10.04.3)

"I cannot wget ubuntu 10.04 server from this page. http://www.ubuntu.com/download/server/download the Direct url for this download link works in the browser, but with wget It gives me 11.10 server".

If you use the drop down box you can get the 10.04LTS. It shows the 11.10 first

I just use whatever kernel is in the default repos. Less work that way. There really isn't a reason to use a different kernel unless you are running into problems, or your hardware isn't supported by the kernel you are using.


Landscape - Postgresql database fill up storage

There is no simple methods to limit physical database size. There is however a way to maintain one database on several disks (partitions).

You can create tablespaces, e.g.

CREATE TABLESPACE extra_space LOCATION '/extra/space';

(note, that the owner of '/extra/space' should be the same as of the default database directory, typically postgres).

You can create new objects (tables, indexes) in non-default location:

CREATE TABLE new_table (id int, val text) TABLESPACE extra_space;

You can even move existing objects to non-default tablespace:

ALTER TABLE old_table SET TABLESPACE extra_space;

Read about tablespaces in the documentation.


"NS=: " in terminal profile when source .bashrc

source .bashrc is used to reload your bashrc file  without logging out and back in

The error raised is probably of wrong typo in your bashrc file so please check the syntax of your .bashrc  file


snap "network-manager" is already installed, but nmtui is not working

You have to remove snap version by
snap remove network-manager

and then install deb-version instead
sudo apt-get install network-manager


Ubuntu is in command mode how to turn on the GUI mode again?

Try restarting LightDM, should work!

sudo service lightdm start

Enjoy!

EDIT:
If that doesn't work try

sudo service lightdm start
sudo service lightdm stop

or

sudo service lightdm restart


On UNIX, this is a virtual-file that can be written to. Data written to this file gets discarded. It is similar to the file call NUL on Windows machines.

Key point; When rooting a machine, intruders will often redirect logging to /dev/null For example, the command ln -s /dev/null .bash_history will cause the system to stop logging bash commands.

In layman's terms, it means much the same thing as black hole. Typical usage: if you don't like what I have to say, please direct your comments to /dev/null.

Think of /dev/null as a "black hole." It is the nearest equivalent to a write-only file. Everything written to it disappears forever. Attempts to read or output from it result in nothing. Nevertheless, /dev/null can be quite useful from both the command line and in scripts.

It discards all data written to it but reports that the write
operation succeeded.
It means redirecting both standard output and error to /dev/null
It prevents the script from displaying anything. like windows "echo
off"

script /dev/null prevent any message from appearing on your screen.  It supresses the messages, byt directing them to the "black hole."

Also, have a look at Why does redirecting 'script' to /dev/null/ allow 'screen' to work while su'ed as another user?

Source:Linux Dictionary


How to remove the bottom panel of Gnome Classic in Unity?

You are probably running gnome-panel.  Check with:

ps -ef | grep panel

and you can see its process ID in second column.  For instance, a running panel for me shows like:

john      2324  2191  0 07:09 ?        00:01:11 /usr/lib/unity/unity-panel-service
john     15587 15557  0 14:18 pts/25   00:00:00 gnome-panel
john     15607 15557  0 14:20 pts/25   00:00:00 grep panel

You'll want to keep unit-panel-service.  Kill gnome-panel using its PID.  For me it goes away with:

kill -9 15587

Where the -9 forces the kill, but is maybe not necessary for this case.


Dual Booting Windows 10 and Ubuntu, how I can SSH to both of them flawlessly?

Try running ssh server on different ports, maybe that will help.

Say Linux on port 22 and Windows on port 222.

Another idea is to copy the same ssh fingerprint/ public key across Linux and Windows.


"An error was found. Do you want to resend it?"

Apparently, I queued a message to be sent in KMail and shut the machine down before it was scheduled to send. The message was asking whether or not I wanted to resend the email.


Ubuntu Doesn't Recognize My Samsung SCH-R580 Phone in USB

My brother has that same phone but the 680 version of it. I believe it uses a MTP transfer method, which unfortunately doesn't work with any of the MTP software I tested in the software center. For my Nexus 7 I use the gMTP program and it works great. THAT IS THE ONLY ANDROID SERIES I have ever seen that doesn't work on Ubuntu to be honest.


What graphical drivers are you using?

I suspect the issue will most likely either be an issue with Xorg or GPU drivers, always is with Ubuntu.


How to uninstall BOOST 1.49 and install BOOST 1.54 in ubuntu?

You need to uninstall the libboost1.49-dev package... actually, it should be removed with a single sudo apt-get autoremove. If you are not sure do this:

dpkg -S /usr/include/boost/version.hpp

This will return the package that has this file, then you can:

sudo apt-get autoremove package


Can you run only part of a script as sudo on startup?

What may work is to split the script: run the rtcwake -m mem -s 1 during startup as root. Nowadays, a crontab may be the most convenient way to do that (unless you fancy writing a systemd service):
sudo crontab -e

To open and edit the root crontab file, and add:
@reboot rtcwake -m mem -s 1

You then could run the next part in another script that you autostart on user login.


heavy write to disk activity as soon as I turn on computer

"Just turning off" your computer can leave your disk in an inconsistent state, so that the next boot has to do a bunch of disk I/O to recover the disk. If you "just turn it off" during this process, the disk state gets worse. Repeat enough times, and your system will fail.

Suggestion:

Reboot your computer. Note the (computer) time

Hit "/" or "F12" (I cannot recall which, offhand, try each) to see boot messages.

Watch the messages.

Allow the disk activity to complete.

Look at the log entries in /var/log/{kern.log,syslog,boot,boot.log,bootstrap.log,dmesg} with time/date fields after the time of reboot noted above. I am old-school and use less, you could use Applications->Utilities->System Log, or any other tool of your choice.

In addition, you could investigate these packages, available through sudo apt-get install or synaptic or the Software Center

bootchart - boot sequence auditing
pybootchartgui - boot sequence visualisation
bootlogd - daemon to log boot messages


sbackup-gtk package is available at universe repository in Ubuntu 14.04. So run the below commands on terminal to install sbackup-gtk,

sudo add-apt-repository universe
sudo apt-get update
sudo apt-get install sbackup-gtk


Take screenshot of selection without "de-clicking"

The key is to use a screenshot utility that also allows you to use a variable delay; enough time for you to create the state you'd like to capture.

Shutter allows this kind of timed delay. However, Shutter has reached end of life unless it is ported to gtk3. It has been dropped from Debian testing since it is no longer well maintained. It is written in perl using libraries that are no longer available.  As of Aug 2018, there is only one release in the last year; the previous release was 2014.

I suggest finding an alternative screenshot utility. Here is a list of alternative screenshot utilities.

For example, Flameshot is newer, active, smaller, and similar featureset including delayed captures just like Shutter ... and isn't built using old perl libraries. It allows you to select partial or full screenshots, annotate, obscure, and quickly save or post to the cloud (Imgur).


Where do you put a document you want as link on your apache website on Ubuntu?

Your title is mileading, I don't see any relation to drive letters. Apache will find files relative to the Directory of your site. Local links will only work on your machine, but then you won't need Apache.

Put your files to your Apache site directory:

/var/www/html/index.html
/var/www/html/contact.html
/var/www/html/about_us.html
/var/www/html/img/image1.jpg
/var/www/html/img/image2.jpg

And then link or embed them in your html page:

Contact
About us
Link to image 1


not able to sudo apt-get upgrade and also on top red minus sign

You can use this command:

sudo apt install libicu55=55.1-7ubuntu0.2

And if its not work, use can use this one:

sudo dpkg -r --force-all libicu55 libicu55:i386
sudo apt install libicu-dev
sudo apt install -f


What is the advantage of using symbolic link?

A symbolic link is a special file type whose data contains a filename.
  This filename is essentially a "soft link" to another file. Whenever
  the kernel encounters a symbolic link file type, it reads the filename
  in the data part of the file and goes to that filename. It's as if the
  Kernel traverses the namespace for the user. Symbolic links are nice
  in that they are links at the namespace level rather than at the block
  level (like hard links)1

1Source:Read Seas

Symbolic links can do 2 things:

Link to files across file systems (since that it's an indirect link)
Link to directories

Symbolic links are done using the ln command with the -s option.


Script to check if some program is already installed

you can do this:

dpkg -s <packagename> &> /dev/null

then check exit status.only if the exit status of the above command was equal to 0 then the package installed.

so:

   #!/bin/bash

    echo "enter your package name"
    read name

    dpkg -s $name &> /dev/null

    if [ $? -ne 0 ]

        then
            echo "not installed"
            sudo apt-get update
            sudo apt-get install $name

        else
            echo    "installed"
    fi


How do I configure my wireless settings for a particular network if all I have are instructions for Windows?

Ok, the I had to go past the first level of computer support but they actually did help me out. The only problem was that I needed to choose an AddTrust CA instead of a GeoTrust CA, even though you need to choose GeoTrust if you're in Windows. Thanks for everyone's input.


Missing shared libraries when using chroot

After a bit of trial/error and lucky web searching I think I found the solution I was looking for.  Here's a summary of the steps I used to solve the issue:

Within the chroot environment run the following command to reveal the missing libraries:

ldd <binary executable>

This will reveal missing libraries as "not found".  Alternatively this command can be piped to grep as:

ldd <binary executable> | grep "not found"

Use the following command to locate the packages that will supply the missing libraries:

apt-cache search <library name>

Install the package from the previous step from within the chroot environment (multiple may be found):

sudo apt-get install <package name>

After I repeated the above steps for all missing libraries I was able to successfully launch the application from the chroot environment.

The reference I found that gave me the clue to search and install missing libraries is here.


Try these steps

service cloudstack-management status

service cloudstack-agent status

service tomcat6 status

service cloudstack-management stop

service tomcat6 stop

service cloudstack-agent stop

ps -efl | grep java

service cloudstack-management start

service cloudstack-management status

service cloudstack-agent start

service cloudstack-agent status


Ubuntu 11.10 as VMware Player guest OS has window redraw issues

The only solution I've found is to use 32 bit Ubuntu when in a VM and using Unity or Gnome. There seems to be an issue with the 64 bit version and the virtualized hardware. 64 bit Xubuntu seems to work well.


Dual boot Windows 8 and Ubuntu on HP ENVY Ultrabook 6t-1100

It's not possible to disable UEFI, since UEFI is the type of firmware you've got. That said, it is possible to boot most UEFI-based PCs in BIOS/legacy mode rather than in EFI mode. Doing so would require either re-installing Windows or reconfiguring it to boot in BIOS mode rather than in EFI mode. Overall, that's probably not the best way to go.
Ubuntu 12.10 ships with EFI support. It also supposedly ships with support for booting with Secure Boot active. (Any PC with a Windows 8 logo must ship with Secure Boot active.) That said, I've never tried it, so I don't know how well it works in practice. If necessary, you should be able to disable Secure Boot, too.
In theory, you should be able to install Ubuntu on the SSD and Windows 8 on the spinning disk.

You may want to check out my Web page on EFI boot loaders for Linux. It's not really an EFI primer, but it does have some basic information on it, and on options for how to boot Linux on an EFI-based computer.


WiFi is painfully slow, sometimes stops altogether

Go to the Network menu and click on the "Connection Information" menu. If there's nothing under the IPv6 box, you can safely disable IPv6. Also, it would be useful if you could compare the connection speed (located under the "General" box) between Windows (or any other OS you have installed) and Ubuntu.
If you use a Wireless N device, you should install the wlan-ng drivers (you can search them in the Software Center).

Finally, you can try resetting your modem and/or your router. To do so, follow these steps:

Disconnect your modem from the power source.
Wait 15 seconds.
Connect your modem again
Wait for it to boot, it may take a while.

I hope this helps.


If I convert my Ubuntu into Xen hypervizor, will I lose access to the bcache devices?

Xen does not change the kernel; it is a hypervisor that sits below the kernel.  Grub loads xen, and your normal kernel and xen creates a virtual machine to run that kernel in.  This initial virtual machine has acess to all of the real hardware and ram ( that xen itself isn't using ) on the system, so the kernel operates just as it normally does.  It just has the option to give up some ram and have xen create a new virtual machine and load a new kernel there, while normally only providing the new virtual machine with emulated hardware that is is passed back to the initial vm to handle.


Where does Banshee store playlists and podcast metadata?

This can be answered visiting the Banshee FAQ page on their website, namely this section of it:

  Where does Banshee store configuration files/the library database?
      It is stored under ~/.config/banshee-1/. The library database itself is called banshee.db and is a SQLite 3 database.

It is then kept at the home of the user under the folder /.config/banshee-1/ and its a SQLite3 database.

To be able to open such a file you can use most of the SQL browsers out there that support SQLite3 file database connections.

One of such utilities is sqlitebrowser, look for it in the Ubuntu Software Center or install the package with apt-get in a terminal.

I am assuming that if you save the .db file (just copy it or the complete folder to another location) you will be just able to restore it to a new installation as long as the Banshee versions are not so far apart.


Have a look here ~/.cache/ubuntuone/log in the log files. Maybe you find some hint there what is going on.


KDE: shortcut to screenshot directly to clipboard

Had lots of discussion and comments on the KDE sub on reddit.

The final choice involved maim, xclip, and klipper config.

After unsetting Klipper's option to "ignore images," the standard xclip instructions appear to work.  Of the many screenshot options suggested, maim has the best options and requires only two clicks (and no keyboard) to make a rectangular selection.  My final command looks like:

maim -s /tmp/ss.png && xclip -sel clip -t image/png -i /tmp/ss.png

A big part of my problem was that I was testing with thunderbird, which doesn't (seem to) comprehend image/png clipboards.  If you want thunderbird to work, you need to clip it as -t text/html, thus:

echo "<img src='data:image/png;base64,"$(base64 -w0 "/tmp/ss.png")"' />" \
| xclip -selection clipboard -t text/html -i


Ubuntu 20.04 lts Could not access fingerprint readers

Not all the fingerprint scanners have drivers in Linux.
I have the same issue with a Dell laptop. One of the easiest ways to check I've found it to use Hardware prob application. It's available in Ubuntu App store in form of a snap, you can find the description at asnapcraft webpage: snapcraft.io

What id does - it scanc you system and then provides you with a link to a summary. The devices that do not have drives or have some issues or pure compatibility are marked. Results are based on other user's systsems/comments (you can edit the report after it's loaded) and LKDBB: LKDBB It's open source and doesn't share you prive information (you can even find the reference in Fedora Project wiki Fedora Wiki). If you do not want to share your specs, you still can use the search on their site: Hardware Probe Search to find which scanner you have you can use lsusb and lshw commands.

In some cases you can try to request new drivers at libfprint gitlab page: libfprint gitlab but I'm not sure how effective is this as it didn't help me - the Goodix scanner I have apparently doesn't have open source code and atherefore the dirver can be provided only by manufacturer or Dell and neither of them have real interest in doing so. You can also find the list of currently supported devices there: libfprint supported devices

Hope it's not too much information at once.


awk -F'[ )]+' '/^KeyPress/ { a[NR+2] } NR in a { printf "%-3s %s\n", $5, $8 }'

-F'[ )]+' tells awk to split the line on any number of spaces or brackets. So, the fields in state 0x0, keycode 133 (keysym 0xffeb, Super_L), same_screen YES, would be:

          # empty field
state
0x0,
keycode
133
(keysym
0xffeb,
Super_L
,
same_screen
YES,

/^KeyPress/ { a[NR+2] } creates an empty entry at line number + 2 in the array a, for lines beginning with KeyPress.
NR in a checks if the current line number has an entry in array a. This would be true if a line beginning with KeyPress came two lines ago.
Then it prints the fifth and eighth fields, which are 133 and Super_L as can be seen in the first point.

xev output actually looks like:

$ xev
...
KeyPress event, serial 36, synthetic NO, window 0x2a00001,
    root 0x29c, subw 0x0, time 217441518, (91,162), root:(91,697),
    state 0x10, keycode 134 (keysym 0xffec, Super_R), same_screen YES,

So, for each keypress, the second line after that has the keycode and name.


Grub menu won't show up after updating Ubuntu, can boot only into Windows

You can try reinstalling grub from within the live cd. Remember to replace 'sdX' with your desired boot disk/partition.

$    sudo grub-install /dev/sdX

$    sudo update-grub

If that fails try using boot-repair by following the steps below:

Boot into your live cd.
Download and install boot-repair (instructions here).
Run from terminal: $ sudo boot-repair
Select 'fix recommended'
Reboot.


How to install from ubuntu installation Ubiquity skipped plugins and updates

It install Ubuntu restricted extras. Recommend not to use it while installing as installation may freeze. Later install it from ubuntu software center.


unmet dependencies error after installing squid

Problem solved...
I had to download the "squid-langpack" using my browser and installed it on the ubuntu after which the "sudo apt-get install squid-common" and "sudo apt-get install squid3"


SAMSUNG scanner not found, printing works (18.04)

You need the Samsung drivers from HP (HP bought Samsung printer line, I think). Other alternative is to install the original Samsung drivers or use the SULDR repository: https://www.bchemnet.com/suldr/


Could not open connection to host (ubuntu server) on port 23, 5432, 3306

Can try

  nmap ip_address_of server

from cilent

also check firewall on server

  sudo ufw status


Groovy Gorilla, Raspberry Pi and Mathematica

No, Mathematica is only bundled with Raspberry Pi OS. The version of Ubuntu released for the Raspberry Pi is almost same as the regular version of Ubuntu (but optimized for Pi), which does not include Mathematica.
You can still technically install the ARM version of Mathematica on it, but it is not included for free.


Alternative way to run a sudo command on startup

Run sudo crontab -e -u root and append the line @reboot /path/to/script to the bottom of the file, then the root user will automagically run your script as root on login. And a friendly reminder to make sure nobody apart from you and root can access the script, otherwise people could run any command as root.


How to know I have to blacklist acer_wmi?

The module iwlwifi is the driver for your wireless device. The module acer_wmi is a helper module that translates key presses, Fn+F8 for example, into action, in your case, 'turn on the wireless radio, please.'

You can gain some clues from the terminal command:

rfkill list all

You may see something like this:

0: phy0: Wireless LAN
    Soft blocked: no
    Hard blocked: no
1: acer-wireless: Wireless LAN
    Soft blocked: yes
    Hard blocked: no

As well, you may notice that any presses of the wireless or airplane mode key doesn't enable wireless. In your case, we also see:

$ lsmod | grep acer_wmi
acer_wmi       20480 0
sparse_keymap  16384 2 acer_wmi,dell_wmi_aio
wmi            16384 4 acer_wmi,mxm_wmi,dell_wmi_aio,nouveau
video          40930 3 acer_wmi,nouveau,i915

The original manufacturer of your Xiaomi is probably not both Acer and Dell.

As an experiment, you blacklisted acer_wmi and the wireless works correctly. I believe you found the correct solution!


How can I install Ubuntu onto a flash drive and boot from any PC using EFI?

I have yet to test this but I think it should work:

Create a LiveUSB installation media for Ubuntu (NOT on your target device ie. the 124GB flash drive you are talking about)
Reboot and select Try Ubuntu. Verify that it has booted with EFI support by [ -d /sys/firmware/efi ] && echo UEFI || echo BIOS.
Insert and mount your 124GB flash drive.
Delete all partitions and volumes on the flash drive using GParted.
Start the Ubiquity installer and when asked for target device choose your flash drive.
IMPORTANT: In the option labelled location to install bootloader don't forget to set it to your flash drive.
Enjoy.

PS: This has a known side-effect (may be good or maybe bad depending on your requirements) that the grub will also detect all OS kernels on all attached devices (like your HDD) and add them to grub.


Ubuntu 13.04 on that system, would probably work, with the hardware that you have.  You may want to pay attention to Graphics, since the machine come with different options for graphics.  If it comes with the NVIDIA Quadro4 400 NVS, you may have a problem.

Personally, I would recommend that you boot from the Ubuntu CD, and Try it before installing.

Below are links were you can find the driver for the other graphics card the system my come with.

Nvidia quadro nvs 280

Nvidia quadro fx 330

ATI Firegl v3100

NVIDIA Quadro FX 1300

For Network Adapters:

Intel Pro 1000 MT

Broadcom Netxtreme Bcm5782

Broadcom 5751 Gigabit Ethernet


PART 1:
i know you probably dont like ubuntu but for this to work you must definitely get you hands dirty with some ubuntu.
since u definitely hate i most definitely wont bother u with command line until its absolutely neccesary.

first things first boot into ubuntu and go the files directory
2:from the side scroll part click on the part that says computer
3:right click and go to properties and then notice that exact size of the computer space directory coz later in windows that would be the partition you will need to delete.

hit crtl + alt + T acess to terminal or command prompt if you must say

PART 2:

Make Windows (ANY variant) the default Grub2 menu option.

Description: This sets Windows as the default boot option, and (with NO user action) the PC will auto-launch Windows on startup.

STEPS:
type in terminal the following

**  for Listing your current menu items**

sudo update-grub

B. Edit setup file

sudo gedit /etc/default/grub

Set the boot default to your Windows boot partition (eg.)

GRUB_DEFAULT=”Windows 7 (loader) on /dev/sda1″

WARNING: Just setting 'GRUB_DEFAULT=n', will NOT work after kernel updates, etc.

(Save the file and close.)

C. Update grub settings

sudo update-grub

Now, on boot, you will AUTOMATICALLY default to MS Windows.

PART 3: (Optional Extra)

Hide the Grub2 menu, and use the default menu option.

Description: This both hides the startup menu, and shortens the (usually 10 second) timeout. The PC will auto-launch whatever the default option is on startup.

NOTE: The user just needs to hold down the Shift key (on startup), to again see the Grub2 menu.

STEPS:

D. Edit setup file

sudo gedit /etc/default/grub

Uncomment the line '#GRUB_HIDDEN_TIMEOUT=0', to look like:

GRUB_HIDDEN_TIMEOUT=0

(Save the file and close.)

E. Update grub settings

sudo update-grub

Now, on boot, you will AUTOMATICALLY boot to the default menu option, UNLESS you hold down the Shift-key at boot time. Then the grub2 menu will re-appear.
load into windows and delete the partition of the size i told you to notice earlier and poof ubuntu is gone


2.6.37 (or 2.6.36) Ubuntu Kernel in Maverick. Is this possible and where can I get it?

I build my own kernels. Following the "old fashioned way" from the Ubuntu help page makes it a doddle. Most of the time is spent waiting for it to compile (it's big -- 6GB over 80,000 files once compiled). Don't be scared by that. It's a good learning experience.

Other people may suggest "mainline" builds but these are only kept up to date for the latest version of Ubuntu. You can usually just pull these back but pair that with GCC version mismatches and other undesirable things, it's usually just easier to compile it yourself.

I've gone over the steps at least five times on here already, so here's a link to my last effort.


I created a simple file that creates the .xml file used to rotate background images. Maybe it will work for you?

https://github.com/snowballrandom/UbuntuDesktopSlideshow

or you can check here https://help.ubuntu.com/community/SlideshowWallpapers


Files deleted using Linux still show up in Windows

This looks like a corrupted filesystem to me. Try chkdsk on Windows or fsck on Linux to check your file system and fix any possible corruption.

I don't think trash is the issue here. Both Ubuntu and Windows have this mechanism, with a similar concept – when “deleting” a file from the file manager, it is simply moved to a special folder instead of being deleted, and some metadata (original location and deletion date) is stored in a database. However, the implementations differ, so files moved to Trash under Ubuntu would not appear in the Windows Recycle Bin and vice versa. However, since files are moved, either way of deleting them will cause them to disappear from its original location.

Note that if you delete a file in another way than through the file manager, the trash folder may not be used and the file actually gets deleted.


Lubuntu installation - - AMD athlon -- boot bypassing grub screen

This is the default behavior, when Lubuntu is the only OS installed.
It's neither a bad install, nor an artifact, and you can still get to the Grub menu by holding the Shift key at boot.


Sending SMS Text Messages to Another Person's Android Cellphone From My Laptop

In your email client, you should be able to write an email and have it sent to his cell phone.  Check what carrier his cell phone is with, then you can check this list here and see what the address is that you send the message to.

Example, if he was with Sprint, you would email your message to

phonenumber@messaging.sprintpcs.com

replacing phonenumber with his cell number.

Hope this helps!


Try using the following command to safely reboot:

sudo reboot

If, instead, you want to shut down the server safely, use this command:

sudo shutdown -h now


Hadoop and Eclipse - Server IPC version 9 cannot communicate with client version 4

Look for your core-site.xml.
Mine looks like this:

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<configuration>
  <property>
    <name>fs.default.name</name>
    <value>hdfs://localhost/</value>
  </property>
</configuration>

when i am running the code from my Eclipse IDE.

Also please make sure that /usr/lib/hadoop/lib/*.jar(I have Cloudera Hadoop distribution) is in your Build path.


How do I uninstall the Cinelerra package?

From the terminal, run this command:

sudo apt-get purge cinelerra\*

This will completely remove (uninstall) the package.


Do I need to notify cron about changes in /etc/crontab?

It's a bad idea to edit the cron directly.  You should use crontab -e to edit cron files as per that answer on a sister site to Ask Ubuntu...

That being said according to the cron manual page:

  There are two ways how changes in crontables are checked.  The first
  method is checking the modtime of a file.  The second method is using
  the inotify support.  Using of inotify is logged in the /var/log/cron
  log after the daemon is started.  The inotify support checks for
  changes in all crontables and accesses the hard disk only when a
  change is detected.

So you should very probably be safe and your cron job will run.

The validation the Oracle site is talking about is a visual validation that you didn't do something stupid like exit your editor without saving your file...  ;-)


Rhythmbox does not add mp3 files from NTFS partition

Your question really lacks detail, so if this does not help, please provide extra detail.

It seems like you don't have executable permissions on the NTFS drive (this is default behavior) so it can't execute the files on the partition.

Open the application Disks from the dash and click the drive on the left, now click the small cog icon under the diagram  and choose Edit mount options.

Turn off Automatic mount options and check mount at start up

Click OK and reboot, now the drive is mounted with permissions for your user and you can import and play the music from that drive.


How to display a USB disk icon on the top bar?

There is a USB Safe Removal Indicator

Description

  Safely remove USB thumb drives, mounted SD Cards and more with ‘USB
  Safe Removal application indicator’ (Or Indicator-unmount’ for short
  ;) ). The tiny app doesn’t sing, it certainly doesn’t dance ,but it
  does do what it says on the tin: let you quickly eject mounted drives.

Download Information Here

OMG Ubuntu Article Source here

IMPORTANT: Keep in mind this article dates from January 2011 and have not seen any updates for 12.04 LTS.  Both the Debs and the Source code are available from the link provided above.


Is there a way to install Ubuntu stripped down without desktop applications?

As far as I know there isn't such a distribution, but you could install ubuntu-minimal using the alternate installer, or use the alternate installer to customize what you want installed on your system.

After installing ubuntu-minimal you would be left with a command line install, but all you would have to do is run apt-get install gnome-desktop monodevelop to get what you are looking for.


Type free -h in console. You will get something like this:

             total       used       free     shared    buffers     cached
Mem:           15G       9,1G       6,1G       270M       524K       7,6G
-/+ buffers/cache:       1,5G        13G
Swap:           0B         0B         0B

The first line says that out of 15G memory installed (marketologist's 16)  I have 9 used for apps and 7,6 for filesystem cache. The third line shows that I have swap disabled.


there is two answers :

the usb is damaged via formatting it , so you need to download an usb fix software.
the iso file is damaged, check the checksum , and re-download it.

best regards,


How can I increase hard disk space in ubuntu server

Test this:

Assuming that your external drive is /dev/sdc

Create a table of gpt partition and a partition:

sudo -i
gdisk /dev/sdc

The initial output is a warning if the disk is not a new disk or a disk already using GPT:

GPT fdisk (gdisk) version 0.7.2
Partition table scan:
  MBR: MBR only
  BSD: not present
  APM: not present
  GPT: not present
***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format.
THIS OPERATION IS POTENTIALLY DESTRUCTIVE! Exit by typing 'q' if
you don't want to convert your MBR partitions to GPT format!
***************************************************************
Command (? for help):

When starting gdisk on a disk with existing MBR partitions and no GPT, the program displays a message surrounded by asterisks about converting the existing partitions to GPT.

Type ? and you will see a list of available commands:

Command (? for help):  ?
b   back up GPT data to a file
c   change a partition's name
d   delete a partition
i   show detailed information on a partition
l   list known partition types
n   add a new partition
o   create a new empty GUID partition table (GPT)
p   print the partition table
q   quit without saving changes
r   recovery and transformation options (experts only)
s   sort partitions
t   change a partition's type code
v   verify disk
w   write table to disk and exit
x   extra functionality (experts only)
?   print this menu

Type n to add a new partition and XXXT to give the partition a size.

Partition number (1-128, default 1):  1
First sector (34-15728606, default = 4605952) or {+-}size{KMGTP}:
Last sector (4605952-15728606, default = 15728606) or {+-}size{KMGTP}: +4T
Current type is 'Linux filesystem'
Hex code or GUID (L to show codes, Enter = 8300): 8300
Changed type of partition to 'Linux filesystem

The w writes your changes to disk whilst q command exits without saving your changes:

Command (? for help):  w

Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!

Do you want to proceed? (Y/N):  y
OK; writing new GUID partition table (GPT).
The operation has completed successfully.

As gdisk creates partitions not filesystems, you will need to format each of your partitions

mkfs -t ext4 /dev/sdc1

Moves files, usually housed in /var/www to the new partition

mkdir /media/newwww
mount /dev/sdc1 /media/newwww
cp -dpR /var/www/* /media/newwww/
mv /var/www /var/oldwww
mkdir /var/www

Get the UUID

blkid /dev/sdc1

      /dev/sdc1: UUID="c676ae51-cb6f-4c0e-b4a9-76850aafa1d6" TYPE="ext4"

Edit the file /etc/fstab

nano /etc/fstab

In the file add this line:

UUID=c676ae51-cb6f-4c0e -xxxx-xxxxxxxx /var/www ext4    defaults        0       2

Control + O, save file. Control + X, close nano.

umount /media/newwww
mount /dev/sdc1 /var/www

If everything works correctly deletes the old directory:

sudo -i
rm /var/oldwww


If you are not a member of sudo group and if your access to chmod command was blocked, then there is nothing that you can do. Due to these reasons Linux like systems are known for their security.

Or, maybe you can do something: convince the admin (root) to change the permissions for that file :).


How do I change the name of the "files" application in Ubuntu unity or gnome

This depends on whether you want this change to apply to your entire Ubuntu installation or only to your user account.

If you want it to only apply to your user account, execute these commands:

cp /usr/share/applications/nautilus.desktop ~/.local/share/applications
cp /usr/share/applications/nautilus-folder-handler.desktop ~/.local/share/applications
cp /usr/share/applications/org.gnome.Nautilus.desktop ~/.local/share/applications

Then open the files you just copied to ~/.local/share/applications in a text editor.

If you want the change to apply to your entire Ubuntu installation, open the files you see as the sources in the copy commands above. Note that you need to open these files with root privileges and therefore shouldn't use a graphical text editor.

Example command:

sudo nano /usr/share/applications/nautilus.desktop

In the second or third line of these files, it says Name=Files. Change it to Name=Finder and save. Then log out and log in again.


"dpkg: error: requested operation requires superuser privilege". Cannot remove all configuration info from removed packages, sudo doesn't work

try to login as root, to gain the super-power, you can do this by typing:

sudo -i

then write (copy/paste :: Ctrl + C / Ctrl + Shift + V <-- paste in terminal) your command in terminal, and it should work


How to connect Ubuntu to a MS SQL server 2005?

You don't have to use Wine for this purpose. Connecting Ubuntu to a Microsoft SQL server is not really possible as the Microsoft MDAC doesn't install on Ubuntu, even in Wine. Here is a good guide that I found in this sense: http://www.omegaprojex.com/index.php/2010/10/15/connecting-ubuntu-to-sql-server-2005-natively/

Here is a quick overview:

Install all the packages needed to get connected to SQL server:

sudo apt-get install iodbc libiodbc2 libct3 tdsodbc unixodbc

Edit /etc/odbcinst.ini file and add the following:

[FreeTDS]
Description = FreeTDS Driver
Driver = /usr/lib/odbc/libtdsodbc.so
Setup = /usr/lib/odbc/libtdsS.so
FileUsage = 1
CPTimeout = 5
CPReuse = 5

Edit /etc/odbc.ini file and add the following:

[ODBC Data Sources]
MyServerDSN = FreeTDS Connection Server
[MyServerDSN]
Driver = FreeTDS
Description = FreeTDS Connection Server
Servername = MyServer
Database = MyDatabase

Edit /etc/odbc.ini file and add the following at the end of file:

[MyServer]
host = x.x.x.x
port = 1433
tds version = 8.5

Connect to SQL server:

isql -v MyServerDSN MyUserName MyPass


...I messed around with Ubuntu on a Windows Laptop, tried to dual boot them, but Ubuntu would not actually load. Since it was out of warranty for quite a while and also did not have a genuine Windows CD/DVD at hand I kind of forced the deletion of Ubuntu. I ran a Ubuntu live session from a DVD. I think lately the live session comes with GParted preinstalled. I ran GParted, deleted all the Ubuntu related partitions and then made them into a single NTFS free space partition. Because of deleting vital information for Booting I ran Boot-Repair. After finishing those I managed to boot into Windows with no problems and free of Ubuntu. Indeed the first screen shown scared me a little as it was a black screen with maybe 2 or 3 lines of text, but the booting sequence afterwards proceeded as usual.

I actually gambled doing so and risked trashing the laptop (from the OS point of view) because I did not know whether it was going to work or not... but it worked, even if it was only a lucky shot. I do recommend looking up some more info, internet is the best documentation source (couple of video tutorials, other forums and opinions)

I'll give you the what you need in order to install GParted (if missing from the live session) and for Boot-Repair, as well as the sources where I got them from.

PLEASE! If a more experienced user takes a look over this brief me in if my approach was "morally" fine or I just trashed something [-o<

GParted

  To install Gparted in Ubuntu Linux enter the following in the terminal. You will be prompted for your password

sudo apt-get install gparted

  Once the Gparted package has been installed, launch it via the terminal by using the following command. You will be prompted for your password. (you have to run it as super-user)

sudo gparted

  source http://www.techheadz.co.uk/223.html#.UwAI6lSki0w

Boot-Repair

install Boot-Repair in Ubuntu
- boot your computer on a Ubuntu live-CD or live-USB.

choose "Try Ubuntu"
connect internet
open a new Terminal, then type:

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

Press Enter.
Then type:

sudo apt-get install -y boot-repair && (boot-repair &)

Press Enter

-Please do follow the using instructions from the source:
    https://help.ubuntu.com/community/Boot-Repair

Praise the Community for the awesome open source concept, it makes life easier by sharing information good to test on your machine, trash it, fix it and make it better... It's kind of fun actually ^_^ ...until you lose data you care for :|
Take care!


Can I install ubuntu on USB with pendrivelinux WITHOUT touching my laptops HDD / Boot ?MBR etc?

If you are simply using pendrivelinux to create an Ubuntu LiveUSB it will not make any changes to the laptops hard drive. You can still use Ubuntu by booting from the USB drive if you make it using pendrivelinux. You will also have an option to choose how much space to use for persistance


External monitor HDMI does not work with Intel HD5500 (Ubuntu 16.04)

I recently ran into this issue with Ubuntu 17.10 and 18.04, and Linux Mint 18.03 with my Dell Latitude E7470 Laptop. The kernel that worked to restore HDMI for me was 4.15.18-041518-generic. I installed it using the ukuu tool from https://launchpad.net/~teejee2008/+archive/ubuntu/ppa .


Can I recover work from a mypaint session that crashes?

Try this to see if there's a timed save or backup file there somewhere:

ls -a ~/* | grep *icyblue*

If there's nothing but the the original file, then you might be out of luck

Save often, and save a lot.  When editing images I often do generational saves, so that if I don't like a subsequent process I can easily go back to the previous save and try again.  This would have also helped you in this case because while you might have lost some work, you would not have lost everything.

To do a generational save, I simply add a number to the end of the filename:

filename.png  (original camera image)
filename1.png (first generation edit)
filename2.png (second generation edit)

and so on.  If I produce subsequent images with different resolutions or for specific purposes then I append that information also.  Yes you can get a lot of files this way, but you'll notice that it saves all of your work right back to the original camera image or draft.


The rtl8192ce driver is included in the kernel, what probably is missing is the firmware. Install package linux-firmware-nonfree.


Ubuntu on Dell Optiplex 755/760 - shall I expect any issues with graphics/audio/stability?

From my experience. Dells themselves do not last long, and are built with profit rather than quality in mind. But as this is an Ubuntu forum I should move on...

Obviously, the best thing for you would be someone who has that computer to tell you it is working fine. In the absence of that the best thing to do is google the part number, and the Ubuntu version you plan to install. If there is nothing on forums about that part, or the only things are fixed or have an easy solution then it should be fine. The big thing to watch out for is the wireless driver if you are going onto 13.10. A lot of people have been having wireless issues with 13.10. For stability, especially for a friend who does not like having to deal with issues when things update, I personally would recommend putting on 12.04LTS.


Full mess on VLC after fresh installation - ubuntu 14.04

I've found the answer. To be sincere I do not remember the internet link where to find this answer.

In .config/vlc just put those 2 files :

vlc-qt-interface.conf :
 vlc-qt-interface.conf file

Then in the file named vlcrc copy the following :

vlcrc file

===>SAVE those two files to the .config/vlc folder and enjoy

PS : I hope the files will be accessible  : I've made a link from personal dropbox files (please tell me if you cannot have access those 2 files too large to copy contents here....


First create your Windows system recovery DVDs from the HP support assistant and then delete the recovery partition that would be around 20GB

If you want more space for your Ubuntu installation than shrink the windows partition using Windows administrative tools then computer management then disk management

Now you will have enough space to install Ubuntu as UEFI only.

Enable secure UEFI boot in your BIOS and whenthe system is just booting press F9 and choose boot from Live USB as EFI and install Ubuntu.
Choose "Something else" during the installation and create an ext4 partition and mount it on /. Create swap at least equal to the size of your RAM and no more then twice your RAM.

Then the system will ask you to create 100MB partition more and told you to marked as boot create that also after finishing installation go to BIOS and enable legacy mode also just when system is booting press F9 it will show you choice of the operating system to boot osbootmanager is for Windows and Ubuntu choose any one and boot if you will not choose anything windows will boot.

Note: Preinstalled Windows 8.1 is installed as UEFI in a way that even without secure boot UEFI,boot-loader of Windows can boot as legacy also.

If you don’t like this method you can download the bootnext utility for dual boot after install

http://www.boyans.net/blog/download-bootnext/

However I’ve not downloaded it as of now just registered and waiting I am booting as what I’ve described as I am also using HP-15 notebook


Looks like it's a confirmed Chromium bug: https://bugs.chromium.org/p/chromium/issues/detail?id=408007


How to customize system preferences settings for all users

There are many different kinds of system preferences that are stored in different ways. So answering your broad question is difficult, but here's the answer to the specific question:

When you use the menu editor to create new shortcuts, it works by creating desktop files which get placed in the user's/home/$USER/.local/share/applications/ directory. This will only add it to the menu of the user used to create the menu item. For the menu item to be accesable system-wide, you can put the desktop file in /usr/local/share/applications/

You could find the desktop file created by the menu editor and move it, or you could just create a file under /usr/local/share/applications/ manually. Here's a sample file, terminator.desktop:

[Desktop Entry]
Categories=GNOME;GTK;Utility;
Comment=Multiple terminals in one window
Exec=terminator
Icon=terminator
Name=Terminator
Type=Application

Replace the values with those appropriate for your application.


Since replacing /2015/09 with "$(/bin/date +/%Y/%m)" in your incron table entry breaks, create a system incron table (in /etc/incron.d/) and manipulate it directly with a root cron job (be generally careful with that). I.e. modify an incron system table entry automatically on a monthly basis to reflect the new date value /YYYY/MM.

$ sudo [yr-txt-editor] incron-daily-tab-update
#!/bin/bash
# script: incron-daily-tab-update  --  owned by root
currentpath=/var/www/html/wp-content/uploads/"$(/bin/date +%Y/%m)"
/usr/bin/printf '%s' "$currentpath IN_CREATE,IN_CLOSE_WRITE /opt/imageopt$" \
     > /etc/incron.d/imageopt.incron-rule
exit 0

Followed by:

$ sudo chmod ug+x incron-daily-tab-update

Then you have two possibilities:

1/ Move the script to /usr/local/sbin/incron-daily-tab-update and create a cron job to be run by root on the first of each month or ASAP afterwards at boot.

$ sudo crontab -e
@monthly /bin/bash /usr/local/sbin/incron-daily-tab-update

2/  move the script incron-daily-tab-update to /etc/cron.monthly/. The result will be the same as creating a crontab entry.

Either way add root on a line of its own to /etc/incron.allow; create that file if it does not exist on yr system.

From incrontab(5), "incrontab files are read after any change" so the change in path should be immediately detected by the incrond daemon and should have an immediate effect on the first boot of any given month...

Tell us how this goes.


taking long time to boot ubuntu 16.04 while screen is flickering

A good place to start investigating this would be to look through the systemd journal after it has eventually booted for any errors which may be adding to or causing the issue.

You can view this with sudo journalctl -xe in a terminal. You can scroll up and down with your arrow keys. Quite often there will be errors in there that are mostly harmless so it will take some investigating.

When I do this I tend to copy the generic parts of any error messages I find into Google as about 99% of the time someone will have already experienced it and hopefully found a fix!


500GB HDD + 1TB SSD + 500gb HDD migration, dual booted Windows 7 and Ubuntu. limited backup options

Since you have both disks connected at once, I'd recommend using dd to clone your old 500 GB HDD to the SSD. This will copy the partition table as well, so your new drive will appear to be 500 GB afterward. Once cloned, you can expand/modify the partitions as you desire to make full use of the new drive (would need more information to be more specific).

Although it shouldn't be required, it is of course good practice to make a backup before performing operations. In addition, the standard dd disclaimer applies: incorrect usage can and likely will destroy data.

In your case, the appropriate command would be

dd if=/dev/sda of=/dev/sdb

This copies data byte by byte from /dev/sda to /dev/sdb, cloning the entire drive, including bootloader and MBR or GPT partition table. Data on the output drive will be overwritten without warning or confirmation. Defaults for dd's other options should suffice, but see the man page for more.

I've personally done this a number of times to copy old hard drives to new; the step with the most potential for data loss is modifying the partitions once they've been copied to your new drive, but assuming you don't format your old drive immediately, you can just copy damaged data a second time. Also note that you can copy data between partitions with dd as well, using /dev/sda1, /dev/sdb1 (for example) as input and output files. This requires manually creating the partitions on the new drive to copy data to, using GParted or your favorite partition manager.


Network file sharing with Apple Filing Protocol (AFP)

No, people, you've got it backwards. He wants a client, not server.

Check this one out: http://sites.google.com/site/alexthepuffin/home


Unable to apt-get update, Synaptic for apt and muon does not start, no way even using a terminal

It seems the file apt-file.conf is finished in the directory /etc/apt/apt.conf.d/ instead of the directory /etc/apt

Try to move it

sudo mv -i /etc/apt/apt.conf.d/apt-file.conf /etc/apt/

maybe is better if you check before that it doesn't exist in /etc/apt and in case you decide which you want to keep.


Grub2 is always asking which version to boot

The default options for grub2 is to use os prober and when more than one os is present offering the option which os to boot. The timeout can be changed to a few seconds so 1st option will automatically boot

Possibly this will help

A graphical grub2 customizer is available:

sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer


Try these commands (although the third one may not be necessary for you):

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

A reboot may or may not be necessary (sudo shutdown -r 0)


Bash script and xdotool == cursophobia.sh

Overview
I think I have a solution that will work for you. It is a bash script that allows you to select a window. Once a window is selected, the script continuously polls window and cursor positions at predefined intervals. If the cursor gets too close, the window moves out of the way.

Dependency
This script depends on the xdotool. To install, run sudo apt-get install xdotool

The script: cursophobia.sh
Create a new bash script with the following contents and make it executable.

#!/bin/bash

windowSelectionDelay=5  # How long to wait for user to select a window?
buffer=10               # How close do we need to be to border to get scared?
jump=20                 # How far do we jump away from pointer when scared?
poll=.25                # How often in seconds should we poll window and mouse?
                        # locations. Increasing poll should lighten CPU load.

# ask user which window to make phobic
for s in $(seq 0 $((windowSelectionDelay - 1)))
do
    clear
    echo "Activate the window that you want to be cursophobic: $((windowSelectionDelay - s))"
    sleep 1
done
wID=$(xdotool getactivewindow)

# find some boundary info and adjustments
# determine where the window is now
info=$(xdotool getwindowgeometry $wID)
base=$(grep -oP "[\d]+,[\d]+" <<< "$info")

# move the window to 0 0 and get real location
xdotool windowmove $wID 0 0
info=$(xdotool getwindowgeometry $wID)
realMins=$(grep -oP "[\d]+,[\d]+" <<< "$info")
xMin=$(cut -f1 -d, <<< "$realMins")
yMin=$(cut -f2 -d, <<< "$realMins")

# find offset values for no movement. This is necessary because moving 0,0
# relative to the current position sometimes actually moves the window
xdotool windowmove --relative $wID 0 0
info=$(xdotool getwindowgeometry $wID)
diff=$(grep -oP "[\d]+,[\d]+" <<< "$info")
xOffset=$[xMin - $(cut -f1 -d, <<< "$diff")]
yOffset=$[yMin- $(cut -f2 -d, <<< "$diff")]

# move window back to original location
x=$(cut -f1 -d, <<< "$base")
y=$(cut -f2 -d, <<< "$base")
xdotool windowmove $wID $[x + xOffset] $[y + yOffset]

dispSize=$(xdotool getdisplaygeometry)
xMax=$(cut -f1 -d ' ' <<< "$dispSize")
yMax=$(cut -f2 -d ' ' <<< "$dispSize")

clear
echo "You can minimize this window, but don't close it, or your window will overcome its cursophobia"
# start an infinite loop polling to see if we need to move the window.
while :
do
    # get information about where the window is
    info=$(xdotool getwindowgeometry $wID)
    position=$(grep -oP "[\d]+,[\d]+" <<< "$info")
    geometry=$(grep -oP "[\d]+x[\d]+" <<< "$info")
    height=$(cut -f2 -dx <<< "$geometry")
    width=$(cut -f1 -dx <<< "$geometry")
    top=$(cut -f2 -d, <<< "$position")
    left=$(cut -f1 -d, <<< "$position")
    bottom=$((top + height))
    right=$((left + width))

    # save mouse coordinates to x & y
    eval "$(xdotool getmouselocation | cut -f 1-2 -d ' ' | tr ' :' '\n=')"

    # If the mouse is too close to the window, move the window
    if [ $x -gt $((left - buffer)) ] && [ $x -lt $((right + buffer)) ] && [ $y -gt $((top - buffer)) ] && [ $y -lt $((bottom + buffer)) ]; then
        #figure out what side we're closest to so we know which direction to move the window
        t="$((y - top)):0 $((jump + (y - top)))"
        l="$((x - left)):$((jump + (x - left))) 0"
        b="$((bottom - y)):0 -$((jump + (bottom - y)))"
        r="$((right - x)):-$((jump + (right - x))) 0"
        coord="$(echo -e "$t\n$l\n$b\n$r" | sort -n | head -n 1 | cut -f2 -d:)"

        # set the offset values for x and y
        newX=$(cut -f1 -d ' ' <<< "$coord")
        newY=$(cut -f2 -d ' ' <<< "$coord")

        #check to make sure we're not out of bounds
        if [ $((right + newX)) -gt $xMax ]; then
            newX=$((-1 * left + xOffset))
        elif [ $((left + newX)) -lt $xMin ]; then
            newX=$((xMax - width))
        fi
        if [ $((bottom + newY)) -gt $yMax ]; then
            newY=$((-1 * top + yOffset))
        elif [ $((top + newY)) -lt $yMin ]; then
            newY=$((yMax - height))
        fi

        # move the window if it has focus
        [ $(xdotool getactivewindow) -eq $wID ] && xdotool windowmove --relative $wID $((newX + xOffset)) $((newY + yOffset))
    fi
    sleep $poll
done

Don't forget to edit the four variables at the very top to your liking. If this script is tasking your CPU, try increasing the poll variable to a larger value.

cursophobia.sh in action
Once you've created your script and made it executable, run it. It will ask you to select a window. Click on the window you want to be cursophobic and wait until the countdown is over. Once the countdown is over, the window you select will be cursophobic. When you're ready to help the window over come its fear of cursors, close the terminal window or kill the script from the terminal window with Ctrl+c

Multiple displays
Please note that this restricts the cursophobic window to a single display. I'm open to edits that would make it work across multiple displays.


I guess this is sort of the reverse of this question: Change default location of programs / users

As always, the safest option would be to backup all your data before messing around with anything.

If 120gb is enough to store all your current data, from all three partitions, I would suggest first booting into recovery mode, and then moving everything to that partition.  Then I believe you would have to edit fstab to be able to actually use the data.

Then, you can edit, i.e. merge, your partitions using gparted from a live USB stick, extending your 120gb partition and getting rid of the other two.

If 120gb isn't enough, I guess you would have to move things around a bit, for example backup to an external disk, and then merge your partitions before you can move the files to the single partition.

Since I'm not particularly well versed in the commands needed for the above steps, I would probably try the following.  Perhaps not the most elegant, but I'm sure it's functional.

First backup all relevant data to an external disk, and then reinstall Ubuntu.  Using the advanced settings from the CD or USB stick, merge the partitions and reinstall to that single partition.  Then restore your backup data.  I know that copying your /home folder also copies any configuration files (for example browser history).  I've only done this with /home, but I would think that the same goes for the "/" and /media/data partitions, meaning you shouldn't lose any of your data.  Just make sure that you backup all the hidden files and folders as well.


Help with gpodder / podcast-parser installation

I had the same problem, the following command should solve the problem:

Under the directory podcastparser-0.6.0 run:
sudo python setup.py install


missing libgl1-mesa-dri:i386, libgl1-mesa-glx:i386, libc6:i386 how do install ubuntu 12.04

Try installing Wine - it resolved the issue for me ;-)

I usually install Wine before Steam and do not get the problem.
After recently completely zapping and reinstalling Ubuntu, I forgot to install Wine and got the same problem with Steam.  After installing Wine the problem disappeared.


I burnt Ubuntu to a cd, and when I went to install it, it asked me to remove the cd and press enter. Then it booted into windows

Try holding Shift during boot-up.

If that doesn't work, then the GRUB bootloader is not installed.

You'll need to reboot into the Live CD, open up the Terminal (CTRL - ALT - T) and type the following commands:

sudo grub-install /dev/sda
sudo update-grub2 /dev/sda

If you run those commands successfully, and you're still booting straight into Windows, then reboot again and hold Shift while it's starting up.


Wifi not getting detected after upgrading to 14.04 [D-Link N 300 DSL-2750U]

You can try sudo modprobe ath9k and see if it will work.  If it doesn't include the results from dmesg | tail

If sudo modprobe ath9k works you can echo ath9k | sudo tee -a /etc/modules so it will work after a reboot


How to tell Gigolo / GVFS to use SMBv2 for Windows shares?

Yes, but it comes at a price. Unlike mount.cifs gvfs and thunar use libsmbclient to access shares and it limits itself to the NT1 (SMB1) dialect.

But you can change that by editing /etc/samba/smb.conf and adding the following to the [global] section:

client max protocol = SMB3

There's another one at the minimum but it normally isn't required to do anything with that:

client min protocol = SMB2

The server and the client will auto-negotiate the best dialect to use between those two values.

The problem is this will disable host browsing so if you go to Network in your file browser it will be empty. Accessing it by name still works but must be done explicitly.


lxc 3.0.2 equivalent of lxc.network.type = veth

Found a tip in /etc/lxc/default.conf:

lxc.network.type

as become

lxc.net.0.type

lxc.network.ipv4  -> lxc.net.0.ipv4.address

lxc.network.ipv4.gateway -> lxc.net.0.ipv4.gateway

lxc.network.veth.pair -> lxc.net.0.veth.pair

Also

lxc.rootfs and lxc.rootfs.backend  -> lxc.rootfs.path


Add an item in the "move to" contextual menu

You can use BleachBit to achieve this,

Install BleachBit On your ubuntu machine

sudo apt-get install bleachbit

Download the latest version using the following command:

wget -c http://katana.oooninja.com/bleachbit/sf/bleachbit_0.9.5_all_ubuntu1210.deb

Now install BleachBit and its dependencies using the command:

sudo dpkg -i bleachbit_0.9.5_all_ubuntu1210.deb; sudo apt-get -f install

you can open BleachBit either from Terminal or from Menu

Also you can add a right click secure delete action for files and folders with the following steps

Make sure you have bcwipe installed from the repo. Create a wipefiles.desktop file and paste this code into it.

[Desktop Action delete]
Exec=bcwipe -rf -mt
Icon=bleachbit
Name=Delete File

[Desktop Entry]
Actions=delete;
Name=wipefolders
Name[en_US]=wipefolders
Type=Service
X-KDE-ServiceTypes=all/allfiles,inode/directory,KonqPopupMenu/Plugin

As root (obviously) put it in /usr/share/kde4/services/ServiceMenus

Log out and back in. There should now be a secure Delete File option in the Actions menu when you right click on a file or folder.

Hope this helps!