It seems likely that your installation media is corrupted, that's the most common cause of this kind of installation error.

You should MD5 test the .iso image you downloaded. If that doesn't work out, then you'll have to download a new .iso and start over. try this https://help.ubuntu.com/community/HowToMD5SUM for testing the MD5

you can also check the usb or CD for defects


How to make PXE boot auto detect monitors and setup dual monitors

Use arandr Screen Layout Editor to configure the monitor easily

sudo apt-get install arandr


When connect with HDMI the speed of video is faster then usual

It seems  a known problem  that can be fix passing i915.disable_power_well=0 as kernel parameter:  link

To pass kernel parameter, look this very good page.


I figured it out! In a terminal, I typed: sudo gedit /etc/default/grub
Next, I went to the end of the document and typed this: GRUB_GFXPAYLOAD_LINUX=1440x900

1440x900 being my native resolution for my screen. Yours may vary. Check your monitor settings. After saving and closing the file, I typed in sudo update-grub and voila! My boot screen was back to normal.
 It has something to do with Nvidia chips and wanting to put the terminal in a low resolution mode.


Transmission is not downloading any magnet links!

I had the same problem on Ubuntu 18.04.3 LTS and Transmission 2.92-3ubuntu2.

The browser handles the magnet link and opens Transmission, but Transmission cannot see the torrent file. Pasting the URL of magnet link didn't work for me but installing the QT version did.

First remove transmission-gtk and then install transmission-qt

sudo apt remove transmission-gtk
sudo apt install transmission-qt

Everything working like a charm now, no need to paste URL just click on the magnet link to open Transmission and start downloading


rsync -P is the same as rsync --partial --progress so in supplying -P to get progress you inadvertently got partial too.

So yes, everything is fine now.


Open your terminal by pressing ctrl+alt+t and do:

apt-get update
sudo apt-get install p7zip-full p7zip-rar

If the installation for p7zip-rar fails make sure that you have the multiverse repository enabled and try again. When this is done you should be able to unpack .rar archives with the archive manager or if you want to do it in terminal:

7z x archive.rar


Icons missing after upgrading from 18.04 to 20.04

I think this is because of the custom theme you are using. Try to use another one and check if the problem is solved.


Is there a program to mount all of my drives automatically?

This works in 12.10 - 16.10

Type Disks in Dash, and you will get:

Click on the little gears icon, to get the sub menu, and choose Edit Mount Options.  After that you will see:

Change the Automatic Mount Options to ON.  do that to all the drives that you need mounted on start-up.

Note: Be careful with what you modify, it may cause the system not to work properly.


Sync profile/data/software for multiple computers?

I think I have a plausible answer for you; enter rsync. If you have multiple machines you would want to use this in a script; You would want to ensure that the package, 'openssh-server' is installed on all of the target machines and you would run:

rsync -ar -e ssh /home/* user@destination_hostname:/home

In the above example user would be a user with write permissions to the destination /home filesystem. After each run it will only synch the diffs. You would need to run this on the system that is going to act as the source system along with the target user account having write permissions to /home.

For multiple systems I would throw all of the target hostnames in a file, 'hosts.txt' run this shell code:

for i in cat hosts.txt
do
   rsync -r -e ssh /home/* user@$i:/home
done


I gave two solutions to another user doing something similar just the other day.

The problem with Skype is it's almost completely locked down, being a closed source application and the developers of it have a clear intended use for it (desktop/mobile), and not listening to server rooms. There are a couple of simlpe options though:

Pipe MP3 over SSH. This requires almost no setup, past getting arecord working on the server, installing lame on the server and installing mpg321 on the client machine.

ssh oli@bessy "arecord -q -t raw | lame -x -r -" | mpg321

If you have more than one client listening, it might be bandwidth/CPU heavy so you might want to look at the next option...
Use a broadcast-style application like Icecast or TeamSpeak because they're better designed for problem than Skype.


Where do you set keywords for applications in order to get them to show up in software center and dash searches?

As per Recognized desktop entry keys you would use the Keywords key in the .desktop file for the application.


How can I change chrome unstable to chrome beta

With .deb package you have got new file in /etc/apt/sources.list.d with google chrome repo description. So now it's possible to install and remove chrome as any regular package:

sudo aptitude purge google-chrome-unstable
sudo aptitude update
sudo aptitude install google-chrome-beta


how to make a symbolic link to a folder at first logon

I think that the scripts in /etc/profile.d are executed before xdg-user-dirs-update creates the folders for the new user. One possible solution would be to create the Desktop folder in /etc/skel. Your script should now work for newly created users.

Also, is chmod -R a+rwx /home/userxx/Desktopreally necessary in your case?


How to not always show left Ubuntu Dock in gnome-shell?

You can auto-hide the Ubuntu Dock by going to Settings > Dock and the toggling on "Auto-hide the Dock".

If you wish to have a pure GNOME experience, follow this Q&A: How do I get a vanilla GNOME after Ubuntu 17.04?


USB Drive not recognized in Ubuntu 16.04

You need to create a partition on USB since it does not have any partition.

Open a terminal and type in sudo gparted
In the top right corner, change the device to sdb.
If there is any partition, delete that by right clicking and choose delete.
At this point the whole USB should be a single unallocated block of memory.
Right click and create a new partition.
Set the partition as primary and choose a filesystem (usually fat32 or exfat).
Click Apply to apply all of the changes.


Alternatives for XAutoClicker (without X11 Installation)

ok, the following commands helped!

sudo apt-get install g++

sudo apt-get install libxtst-dev

sudo apt-get install libgtk2.0-dev


Multiple Sound Device Ordering Not Always Working

modprobe allows only a single options line for each module; a later line will just replace an earlier line.

If one module handles multiple cards, you have to give all options at once:

options snd_virtuoso id=DX index=0  # Xonar DX
options snd_hda_intel id=Generic,NVidia index=1,2  # Realtek On-board, HDMI
options snd-usb-audio index=3,4,5,6 vid=0x046d,0x0d8c,0x1235,0x0d8c pid=0x082d,0x0005,0x8016,0x0004
# Webcam C920 Mic, Snowball Mic, Focusrite Scarlett 2i2, Modi Multibit

And only USB devices have PID/VID values.


How do I enable 132x50 text mode for console instead of 80x25?

One of the most authentic sources on kernel parameters can be found in the kernel tree under the name Documentation/kernel-parameters.txt, an online version can be found at the GitHub mirror of Linux.

Verbosity can be controlled by the quiet parameter, removing it will increase verbosity.
The resolution can be set with the vga parameter, possible values are documented in the TLDP framebuffer HOWTO. For example, if you'd like the boot resolution to be 1024x768 with 24 bits color depth, the parameter should be set like vga=0x318. The actual character count can be determined by taking the kernel font size into account.


how to use at command to schedule browser opening at a scheduled time

sleep 120; firefox; Is correct.

But to clarify:

sleep is counted in seconds so sleep 120 is what you need for it to wait 2 minutes.
Then firefox is what you need to open a browser.

If you'd like it to open say Google, the command is

firefox https://google.com


How can I delete a file with permission 444?

Ideas:

some process may use the file, with lsof you can look, which process has it locked:

$ lsof | grep vestacp

If you see the process, you should kill it first and then try to delete the file.

Reboot, choose in grub menu recovery option and try to delete the file.


chkrootkit says /sbin/init is infected, what does that mean?

It's likely this is a false positive since there's a bug in chkrootkit (supposedly fixed in a later version 0.50-3ubuntu1). Apparently chkrootkit doesn't perform a rigorous enough check.

See:
https://bugs.launchpad.net/ubuntu/+source/chkrootkit/+bug/454566

Additionally you could try rkhunter which is similar to chkrootkit.

Some more information:
Fortunately, running file `which chkrootkit` shows us that chkrootkit is just a shell script so we can inspect it directly.

Searching for Suckit in the file /usr/sbin/chkrootkit we find:
   ### Suckit
   if [ -f ${ROOTDIR}sbin/init ]; then
      if [ "${QUIET}" != "t" ];then printn "Searching for Suckit rootkit... "; fi
      if [ ${SYSTEM} != "HP-UX" ] && ( ${strings} ${ROOTDIR}sbin/init | ${egrep} HOME  || \
              cat ${ROOTDIR}/proc/1/maps | ${egrep} "init." ) >/dev/null 2>&1
        then
        echo "Warning: ${ROOTDIR}sbin/init INFECTED"
      else
         if [ -d ${ROOTDIR}/dev/.golf ]; then
            echo "Warning: Suspect directory ${ROOTDIR}dev/.golf"
         else
            if [ "${QUIET}" != "t" ]; then echo "nothing found"; fi
         fi
      fi
   fi

The key line is:

cat ${ROOTDIR}/proc/1/maps | ${egrep} "init."

Since recent versions of Ubuntu, running that command does produce some output (need to run as root or sudo) :

# sudo cat /proc/1/maps | egrep "init."
b78c2000-b78db000 r-xp 00000000 08:02 271571     /sbin/init (deleted)
b78db000-b78dc000 r--p 00019000 08:02 271571     /sbin/init (deleted)
b78dc000-b78dd000 rw-p 0001a000 08:02 271571     /sbin/init (deleted)

However, this is not an infection by a rootkit. I have also looked at the rkhunter code, and the checks are far more rigorous (testing for all sorts of additional files installed by the rootkit).

I have changed lines 1003,1004 in chkrootkit file not to check perform the check of /proc/1/maps (remember to take a copy first)

if [ ${SYSTEM} != "HP-UX" ] && ( ${strings} ${ROOTDIR}sbin/init | ${egrep} HOME  ) \
             >/dev/null 2>&1


Try using these keyboard shortcuts to zoom in and out.

  Ctrl+8+scroll with middle mouse button – Zoom in and out

  or

  Alt++8 – Turn zoom on or off
  Alt++= – Zoom in
  Alt++-  – Zoom out


On boot menu (grub2, where you choose between "Try Ubuntu without installing" and several other choices), select the option I just mentioned (Try without installing), but don’t press ENTER, instead press E.

In the following menu, search the line where you can find quiet splash and replace that with nomodeset.

It will boot to a console after some time where you should see lots of commands and text, until it stops and it is written something that looks like this:

ubuntu@ubuntu : []

You should be able to type. Enter the command startx.

After some waiting (the screen can be black but it is normal), it starts! The resolution is not maximum but that is temporary (your Ubuntu install will be normal).


i downloaded
ftp://download2.boulder.ibm.com/ecc/sar/CMA/XSA/ibm_fw_srsupp_7_12_14_anyos_32-64.iso

You declare a kernel file to be the boot image. But the original ISO is
equipped with ISOLINUX boot image  bootcd/isolinux/isolinux.bin .
Hiding that kernel file will not be helpful either.

So quite surely wrong with your genisoimage run is

-b bootcd/isolinux/vmlinuz -hide /mnt/ibm_cd/bootcd/vmlinuz2

and quite surely missing are options

-boot-load-size 4 -boot-info-table

See also ISOLINUX wiki.

I.e. it would have to be something like

sudo genisoimage \
  -c bootcd/isolinux/boot.catalog \
  -b bootcd/isolinux/isolinux.bin \
     -boot-load-size 4 -boot-info-table -no-emul-boot \
  -input-charset iso8859-1 -output-charset iso8859-1 \
  -r -U -V "ServeRAID_v7_12_14" -iso-level 3 \
  -o /tmp/ibm_cd2.iso /mnt/ibm_cd/

The burn program has no stake in the correctness of symbolic links.
Option -raw96r is quite exotic, though. Is your burner known to
refuse on -tao or -sao ?

There are a few broken symbolic links in the original image.  E.g.

/mnt/ibm_cd/bootcd/usr/X11R6/bin/xsetbg -> usr/X11R6/bin/xloadimage

And some which lead out of the ISO image. E.g.

/mnt/ibm_cd/bootcd/etc -> /etc

Those will not get repaired by a genisomage run. You will have to
fix them in an unpacked copy of the ISO file tree. E.g.

cp -a /mnt/ibm_cd $HOME/unpacked_ibm_cd

But the link libncurses.so.5 seems to be ok.

/mnt/ibm_cd/bootcd/usr/lib/libncurses.so.5 -> libncurses.so.5.2

It has size 17. By what means do you see size 0 ?

Have a nice day :)

Thomas


simply need to copy program file notepad.exe from the \windows to the \tools directory using command prompt

Try the below command,

cp /path/to/notepad.exe /path/to/the/parent/directory/tools

The above command copy the notepad.exe file from the directory(according to yours) to your tools directory.

/path/to/notepad.exe  - full path of notepad.exe file

/path/to/the/parent/directory/tools - full path of tools directory

Run man cp for more details.


You can export a virtual machine from VirtualBox as a so called virtual appliance in UVF format. Your students then can import those UVF files into their local VirtualBox installations.

You should find the menu items for exporting and importing appliances in the "Files" menu of the VirtualBox Manager.


How to remove unwanted program installed in error

If you installed it using apt or apt-get you can remove it with sudo apt remove xsane or sudo apt purge xsane. The latter removes configuration files as well.


There used to be; it was called the mini installer I think. It did basically what you said - a 20MB iso which got some basic settings and downloaded the rest from a mirror.  Unfortunately after looking through both cdimage.ubuntu.com and releases.ubuntu.com it looks like they've dropped support. I'd try downloading another copy of the iso.

EDIT: Just thought; if you have another PC available, you could try network booting the installer, and that will allow you to download everything from a mirror.


Which files in home directory should not be shared between machines

if they share the same architecture (32/64 bit) then everything except the /sys /system and /root partitions can be shared, the drivers kept in /bin and /usr/bin won't conflict under normal circumstances, and the exact same installed binaries can be run on machines with different resolution/specs


trying to setup multiple email domains using postfix

You need to add the other domain to the mydestination directive in your Postfix configuration.


New to Ubuntu -- loaded my weather..now what

Hit the Super key or click in the launcher Ubuntu icon, then write the name of the program (you can try typing"indicator"in this case) and just hit enter.

Easy peasy.


To find files last modified more than five days ago:

find /path/to/directory -type f -mtime +4

To delete them at the same time (test the above first):

find /path/to/directory -type f -mtime +4 -delete

To automate it so that you're running this daily, run crontab -e (as the user you wish to run this task) and add:

@daily find /path/to/directory -type f -mtime +4 -delete

An experiment to show which mtime value you want to use. The manual is rubbish. I had assumed +5 was what we wanted but a comment disagreed. The documentation appears to conflict so I started by creating three files, each 1 day apart:

$ mkdir test
$ touch test/now
$ touch -d "1 day ago" test/yesterday
$ touch -d "2 days ago" test/day-before-yesterday
$ ls -l test
total 0
-rw-r--r-- 1 oli oli 0 Nov 26 13:12 day-before-yesterday
-rw-r--r-- 1 oli oli 0 Nov 28 13:11 now
-rw-r--r-- 1 oli oli 0 Nov 27 13:12 yesterday

If we want something that is between 24-48 hours old exactly, we use 1 without a sign.

$ find test -mtime 1
test/yesterday

But if we want things 24hours +, +1 doesn't work:

$ find test -mtime +1
test/day-before-yesterday

+1 seems to mean "more than what 1 shows"... So +0 is used:

$ find test -mtime +0
test/day-before-yesterday
test/yesterday

All very annoying if you're used to being correct like me... But I'll recover, I'm sure. Thanks for the poke from Adaephon.


Unity 3D vs Unity 2D vs Gnome shell for battery life (resource use)

The 3D requirements of Unity (and Gnome 3, I would think), such as compositing, effects, etc. are minimal and cannot be compared to things like 3D gaming or 3D modeling.
If you are using a integrated graphics adapter that supports Unity 3D, such are the Intel HD series, there will be negligible effect on your battery life if you use it. This is because the integrated GPU always idles at a minimum clock speed, and that clock speed is only raised (consuming a non-negligible amount of power) if it is loaded beyond a certain degree -- I seriously doubt Unity/Gnome effects would do that.
If you are using a discrete adapter with hybrid/switchable graphics, then more battery life is going to be used regardless of your DE unless you use something like bumblebee or vgaswitcheroo.
This reasoning may not be true in Ubuntu 12.10 and later, if the rumored 3D software rendering for old graphics cards is introduced. In that scenario, the 3D DE may actually use more battery life because the CPU is performing everything in software.


How can set up a file sharing server to allow remote access over a WAN?

This is a short, not very complete answer, but might get you started :

If you intend to copy the Windows file sharing method, you need to use Samba, which is the linux-version of Windows SMB file sharing.

To install it, use sudo apt-get install samba.

As for GUI's, I'd also recommend that you install Webmin from their website (http://www.webmin.com/) which will give you a decent access-anywhere web-based GUI for all your server components.  If you prefer to stick with the repositories, you can also try the GADMIN tools (sudo apt-get install gadmin-samba) or perhaps the EBOX tools (sudo apt-get install ebox-samba).

Samba is a pretty complex topic and perhaps others will post answers that can help, or search this site for more pertinents examples : https://askubuntu.com/questions/tagged/samba


Boot into Linux, type the following three commands in a shell, and post the output here:

ls -l `find /boot/efi -iname "*\.efi"`
ls -l `find /boot/efi -iname "*\.bkp"`
sudo parted /dev/sda print

Note that those are back-ticks (to the left of the "1" key on most keyboards) around the find commands.

The result should be a list of all the boot loaders on your ESP, including both the regular names and the renamed versions created by Boot Repair; and a list of all the partitions on your disk.

Also, what sort of computer are you using? (Brand and model.) Did it come with Windows 8 or did you install it yourself?

Unfortunately, some manufacturers are playing very annoying games with their boot loaders on pre-loaded Windows 8 computers. IMHO, blowing those installations away and starting from scratch is looking more and more like a good solution.

Edit/answer given new information:

There's nothing in your output that's weird or unexpected, so it looks as if something in Windows is "repairing" what it sees as its own "broken" boot loader. This requires some elaboration, which will help you understand what's going on:

An EFI (or UEFI, which is just EFI 2.x) implementation is supposed to check NVRAM entries to decide which boot loader (a file with a .efi extension) to run when it boots. Some implementations are broken, though, and will only boot the EFI/BOOT/bootx64.efi or EFI/Microsoft/Boot/bootmgfw.efi boot loader. Others will boot other boot loaders, but only if they've got the name "Windows Boot Manager" or "Red Hat Enterprise Linux".

To work around this type of bug, the Ubuntu Boot Repair tool implements a fix that's at least as ugly and confusing as the bug it bypasses: It renames those two default boot loaders with .bkp extensions, places copies of GRUB in their place, and adjusts GRUB so that it will launch the Windows boot loaders using their new names. This gets GRUB booting, but in a way that Windows doesn't understand and might try to "fix" itself. I think that this is what's happening -- when Windows boots, it's seeing that its boot loader has been overwritten by another one and so it tries to correct the problem.

I recommend you try the following:

Check your manufacturer's Web site to see if there's a firmware update. If there is, update your firmware to the latest version, just in case there's a bug fix for this type of boot bug.
Boot Windows and reboot to verify that when you reboot you go straight into Windows. You want to start from this point because it's more standard than the way that Boot Repair sets up.
Boot a Linux emergency disc in EFI mode. (The Ubuntu install disc should work fine for this.)
Install the efibootmgr utility, if necessary. In the Ubuntu live CD, you'd do this by typing sudo apt-get install efibootmgr.
Type sudo efibootmgr -c -l \\EFI\\ubuntu\\shimx64.efi -L "Windows Boot Manager" -p 2. Be careful to type this command exactly as specified, including the doubled-up backslashes as directory path separators. This should set up GRUB to launch as the default boot loader, giving it the firmware label "Windows Boot Manager" in case you've got that bug. (You could try with a less deceptive name, and on most systems that will work, but maybe not for you.) If you're not using Secure Boot, you could substitute grubx64.efi for shimx64.efi in this command, but given that shimx64.efi is present on your system, my suspicion is that you are using Secure Boot.
Reboot and test it.

If it works at this point, then great. If it boots to GRUB but GRUB can't launch Windows, you may need to adjust your GRUB configuration so that it references EFI/Microsoft/Boot/bootmgfw.efi rather than EFI/Microsoft/Boot/bootmgfw.efi.bkp.

If you can't get your system to launch GRUB in this way, then you may have a very brain-damaged firmware combined with something in Windows that's automatically "fixing" a "damaged" boot loader on every boot, closing off your best (albeit ugly) avenue of repair. In that case, I have several further suggestions:

If the computer is new enough, return it to the store and get a new one. Make it very clear, both to the store and to the manufacturer, why you're returning it.
Look for whatever in Windows is checking and "repairing" its boot loader and disable that. You should then be able to use Ubuntu's Boot Repair, or do something similar manually, to get it all working.
Create a second ESP and install GRUB (or another Linux boot loader) to it using the Microsoft names. By juggling partition ID numbers (using gdisk, for example -- use the t option on the experts' menu), you might be able to get the firmware to use your desired boot loader while getting Windows to look at its own boot loader. This is highly speculative, though; it might not work at all.
Create a USB flash drive with my rEFInd boot manager. You'll then be able to insert it into the computer and boot from the USB device to get rEFInd, which should then detect both Windows and GRUB and give you the option of booting either. With a little extra reconfiguration, you could get it to boot Linux directly. If you can set your firmware to boot from the USB device by default, you could leave the USB drive plugged in permanently for a permanent solution.
Install rEFInd or GRUB from Windows. I'm far from positive of this, but if you install a boot loader from Windows (as described on rEFInd's Web site), it might bypass whatever in Windows is juggling the boot loaders, thus enabling your preferred boot loader to run by default.

Note that, if you use any solution that involves rEFInd, you may need to set it up with Secure Boot, with involves jumping through some extra hoops. (This situation will improve in time, but for now it's still a bit awkward.) Alternatively, you could disable Secure Boot in your firmware.

I hope this helps!


Finding Number of Days Since a User Changed Their Password

Use the chage utility (part of the passwd package):

chage -l $user

chage requires root privileges but any user can use chage -l for itself.


Lenovo ThinkPads, brightness function keys make two steps instead of one, looking for workaround

as a workaround suggest the "brightness" applet in gnome

http://library.gnome.org/users/gnome-power-manager/stable/applets-general.html.en


How to update gcc to the latest version(in this case 4.7) in Ubuntu 10.04?

12.04
Add the toolchain ppa test repository, then do apt-get update, and apt-get dist-upgrade
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install g++-4.7 c++-4.7

This is only available in 12.04 - older ubuntu versions cannot be updated to this same version using this method.
See here for further information about PPAs
https://help.launchpad.net/Packaging/PPA


How can I get persistent output from apt-listchanges without intervention?

Read how to configure apt-listchanges

before upgrade:

apt-get changelog <package name>

after upgrade:

To list all packages installed on the system, from a terminal prompt type (large output):

dpkg -l

To pipe the output through grep to see if a specific package is installed:

dpkg -l | grep <package name>

To list the files installed by a package:

dpkg -L <package name>

To identify which package was installed a file:

dpkg -S /somedir/some.file

Read more about dpkg or man dpkg.


Installing Ubuntu on an SSD with documents folders on a HDD

https://tutorials.ubuntu.com/tutorial/tutorial-install-ubuntu-desktop#0 shows you the installation process, step by step.

Step 6 shows installation drive selection choices, and if you already have Windows installed on the destination drive, it will show another option to put Ubuntu on the drive alongside Windows, what's called a 'dual boot' installation, by reducing the size of the drive allocated to Windows and giving some of it to Ubuntu (30GB should suffice). That's called partitioning.

Instead, I would suggest when you get to Step 6, choose Something Else, as oldfred suggested in his comment to your question above. Put /home on that second NVMe SSD you mentioned.

Ubuntu is much better at reading and writing Windows drive partitions than Windows is at reading and writing Ubuntu drive partitions (generally an ext4 partition), so if you keep you data on the Windows side (an NTFS partition) and access it from Ubuntu, you will have less trouble.

In Windows, create a new directory in the root of the NTFS HDD named Content. Move your Movies and Music folders to folders under Content, following this process. You would also reassign the location of Quick Access items Music and Video to the new drive in Explorer] When Explorer asks to move existing files, tell it yes.

After completing the install of Ubuntu, make sure NTFS partition is mounted at startup (i.e. in /etc/fstab). Then follow the steps at https://ubuntuforums.org/showthread.php?t=838937 to soft link to the Content folder in the NTFS partition on the HDD with

ln -s source destination


Run following command to, when you want to edit files. (This make file accessible/editable for all users)
sudo chown -R www-data:www-data /var/www/html/
sudo chmod -R 777 /var/www/html/
And to revert back, run following command (make file inaccessible/ to group and others)
sudo chmod -R 755 /var/www/html/
sudo chmod -R 644 /var/www/html/


First thing to try before reinstall is to connect to the console to get access to the command line where you can check things like disk space, CPU usage, process running, etc.
If you don't know the cause of the problem the reinstallation may not work either.

Try:

Press Ctrl + Alt + F1
Log in. It's ok not to see the password you are typing in.
Use ps or top command to check the process running, CPU usage, etc.
Check the disk usage by typing the command dh -h and verify if you have enough space on the all partitions.
In case of doubt when using any command you can always find more information typing
man name_of_command to access the manual pages for the command you want to know more about.


PHP is not working with Apache on Lamp server

easiest would be to

sudo apt-get install tasksel

then

sudo tasksel install lamp-server

or you could do

sudo tasksel

and follow the onscreen menu.

source: https://help.ubuntu.com/community/Tasksel


Not enough /boot space running "sudo make install" while compiling Linux kernel

If you are compiling the kernel then it is best to do that outside the /boot directory. This is the process that I follow when compiling from source:

Download or clone the desired kernel source to a directory on a device with at least 25GB of storage available
Go into the source directory
Copy your existing config from /boot
cp /boot/config-$(uname -r) .config

Use the Terminal-based configuration tool
make menuconfig

Add/remove options based on your hardware
Compile the kernel with Clang
make CC=clang -j12

Install the kernel
sudo make install

Update grub
sudo update-grub

Reboot
sudo reboot

That’s usually all there is to it.


Made an ubuntu live usb on a compromised system. How to make sure the usb isn't compromised and how to securely reinstall ubuntu

You can run a checksum verification on an .iso image. However, you should not be burning the image to disk from an infected system. Create your bootable medium on a different machine or order a disk online. An additional concern is that a virus can also be written into a boot record, firmware compromised, etc. So once a machine is compromised, you can't really trust it to be able to clean itself.

It seemed worth adding that since you are interested in checking file integrity in an environment with LIKELY malicious tampering that the MD5 algorithm is no longer considered secure:

  The underlying MD5 algorithm is no longer deemed secure, thus while
  md5sum is well-suited for identifying known files in situations that
  are not security related, it should not be relied on if there is a
  chance that files have been purposefully and maliciously tampered. In
  the latter case, the use of a newer hashing tool such as sha256sum is
  highly recommended.  md5sum wiki article


Use sudo vim /etc/default/locale to add the missing lines:

LANGUAGE="en_US.UTF-8"
LC_ALL="en_US.UTF-8"

Then reboot your system and everything should be fine.


Is there any light user interface or gtk package for Gstreamer 1.0?

I'd say that the default package in Ubuntu answering your question is Totem:

   Totem - GNOME desktop movie player based on GStreamer


Okay, I got what the problem really was - it was related with the connector I used. There's no way to fix it another than changing connector to converter as far as I'm concerned.


How can I run Citrix Receiver on 13.04 x64?

I had a similar problem after virgin install of 13.04.

Found this article What to do after installing Ubuntu 13.04

Inside it found these 2 things that worked for be

sudo apt-get update && apt-get upgrade
sudo apt-get install ia32-libs

Then followed instructions on CitrixICAClientHowTo again Citrix worked, problem seemed to be nspluginviewer was still 32-bit and I had not installed the ia32-libs correctly until I did 2 things above.


Can't get my Kubuntu VM full screen on Windows 7 host

The problem is that gcc is required
solution:

install build-essential
run VBoxLinuxAddition.run
reboot


How to get snap installed SimpleScreenRecorder to save output file to removable media?

Currently we have "good" and "bad" snaps:

"Bad" snaps do not have access to removable-media.
"Good" snaps have access to removable-media. I created small list of them in other answer.

In your particular case (as you already wrote):

snap connect simplescreenrecorder:removable-media

will return

error: snap "simplescreenrecorder" has no plug named "removable-media"`.

So it can't access removable media by design.

But you have other option - remove this nice snap with

snap remove simplescreenrecorder

and install version from APT (as it is available in the universe repository):

sudo apt install simplescreenrecorder


You need to have Windows 8 installed first. You need to create some unalocated space.This allocated space will be used for Ubuntu to be installed on. You can use this tutorial that shows you how to make an unalocated space in windows 8.
Now you just have to install Ubuntu normal and it will now to use that unalocated space. When it promps you how you want to install it you just chose "Install allong side Windows". and you will have windows 8 side by side with Ubuntu.


Try to constantly hit the ESC button on startup. After the BIOS screen has been shown and tries to boot the OS you should get boot options.

One of these boot options on my laptop is "General" which means USB. That way you should successfully boot your laptop from USB and you'd be able to install Ubuntu on it.

Success!

Fred Handoko


Download some image with appropriate resolution (I've downloaded this one)
Copy it into appropriate place: sudo cp ~/Pictures/wallpapers/forest-wallpapers-1366x768-0000.jpg /boot/grub/nsplash.jpg
Run sudo update-grub
Reboot

The next could be helpful if previous method did not work:

Edit /etc/default/grub file and put there the next:

GRUB_BACKGROUND="/boot/grub/nsplash.jpg"

You could specify a different path to image.
Run sudo update-grub
Reboot

  Choosing a GRUB 2 Background Image GRUB 2 can use PNG, JPG/JPEG
  and TGA images for the background. The image must meet the following
  specifications:

  JPG/JPEG images must be 8-bit (256 color). Else you will get errors
  saying "Too many Huffman tables". Since most of the time you will not
  want to limit yourself to 256 colors (which is totally yesteryear) you
  will probably find PNG much preferable. Images should be
  non-indexed, RGB. The GIMP image editor is one application which
  can edit images to conform to the GRUB 2 standards. Use the Image >
  Mode menu options to set the properties to RGB and ensure the mode is
  not set to Indexed.

  Sample GRUB 2 splash images are contained in the grub2-splashimages
  package in the Universe repository. The package can be installed in
  several ways:

  Synaptic (if installed). Select and install grub2-splashimages.

  Ubuntu Software Center. Search for grub2-splashimages and click the
  Install button.

  Terminal:

sudo apt-get install grub2-splashimages

  Once installed, the images are located in the /usr/share/images/grub
  folder.

In my case I was observing this picture as a splash image in grub menu, however, it does not meet all those specifications:

It could mean those specifications have been written for older grub versions.

Reference


apt and dpkg are unusable since installing kernel 4.13.0-36 hangs. How can I skip or cancel installation of kernel version?

I had the same problem. In my case, I could connect it to a similar update issue in grub-common, and finally found that /lib/lsb/init-functions is hanging when running hooks on plymouth, which is a graphical boot image. Not OK!

You could try this with minimal system impact:

sudo mv /lib/lsb/init-functions.d/99-plymouth ~
sudo apt install -f

If successful, follow up with:

cd ~
sudo rm 99-plymouth
sudo apt remove --purge plymouth

Should that fail, you could try the slightly more heavy-handed approach directly, if there's any other lockups caused by plymouth:

sudo dpkg --force-depends --purge plymouth lightdm plymouth-label plymouth-theme-ubuntu-logo plymouth-theme-ubuntu-text libplymouth4
sudo apt install -f

Either way, it stops plymouth from locking up your kernel & boot-loader upgrade.

Consider any normal maintenance:

sudo apt update && sudo apt upgrade && sudo apt autoremove

Note that this will also remove lightdm if you have it, since there's dependencies on plymouth, so make sure you have an alternative. For example, I have gdm3 installed as default.


What is the "t" letter in the output of "ls -ld /tmp"?

So what is the sticky bit?

A sticky bit is a permission bit that is set on a directory that allows only the owner of the file within that directory, the owner of the directory or the root user to delete or rename the file. No other user has the needed privileges to delete the file created by some other user.

This is a security measure to avoid deletion of critical folders and their content (sub-directories and files), though other users have full permissions.

Why does /tmp have the t sticky bit?

The /tmp directory can be used by different Linux users to create temporary files. Now, what if an user deletes/rename a file created by some other user in this directory?

Well, to avoid these kind of issues, the concept of sticky bit is used. So for that a 777 is given but preserving the sticky bit is not a bad idea.

How can I setup the sticky bit for a directory?

I'll set a sticky bit on a directory called test on my Desktop.

Symbolic way (t represents the sticky bit):

chmod o+t ~/Desktop/test

or

chmod +t ~/Desktop/test

Numerical/octal way (1, sticky bit bit as value 1 in the first position)

chmod 1757 ~/Desktop/test

Now let us test the results:

ls -li ~/Desktop/test

1551793 drwxrwxrwt 45 hadi hadi 20485 Mar 11 14:35 ~/Desktop/test

To delete/Remove a sticky bit

chmod o-t ~/Desktop/test

Now let us test the results:

ls -li ~/Desktop/test

1551793 drwxrwxrwx 45 hadi hadi 20485 Mar 11 14:35 ~/Desktop/test

Source: “What is a sticky Bit and how to set it in Linux?” at The Linux Juggernaut


You're missing the leading slash from your home directory in the crontab command, so you're syncing across to a location that doesn't exist already. You should check whether you've created a backup in /root/home/mypc/backup/ on the VPS which you will probably wish to delete.

Change

0 */2 * * * rsync -avz -e "ssh -i /home/mypc/.ssh/bkpRsync" --delete home/mypc/backup/ root@vpsxxxxx.ovh.net:backup/

to

0 */2 * * * rsync -avz -e "ssh -i /home/mypc/.ssh/bkpRsync" --delete /home/mypc/backup/ root@vpsxxxxx.ovh.net:backup/


How can I change this animation in Ubuntu Dock?

In my case I use Budgie DM. And it uses Plank as a dock panel.
To configure it, I go to:

Main menu -> Accessories -> Plank Preferences

It has Appearance, Behaviour and Docklets tabs.

But if you want to change icon pictures, you could try different themes available in:

Main menu -> System Tools -> Budgie Themes


Sub Woofers not working on HP-DV6 on upgrading to 12.04

My hp touchsmart sound is coming up using this

options snd-hda-intel model=touchsmart


How to launch two Sublime instances in different windows?

I am not sure I get the question correctly, but of course you can.

just press Shift+Ctrl+N to create a new window (or choose File > New window as you mentioned (thanks) ), then press Shift+Ctrl+Alt+ arrow key to move the window to another workspace.


In Nautilus I have two identical entries in my devices list, why?

You could try writing the fstab entry for  Data like this

/dev/disk/by-uuid/ee7513f0-0875-4451-a346-56368896d12b /media/Data ext4 users 0 0

very old bug report for reference https://bugs.launchpad.net/gvfs/+bug/442130


How do I get an Nvidia Geforce 310M working?

you need bumblebee. You can call this optimus (unofficial) for linux. To install it in ubuntu

sudo add-apt-repository ppa:bumblebee/stable
sudo apt-get update
sudo apt-get install bumblebee

Please visit the bumblebee link above.


how to install the amd graphic card driver?

Open-Source drivers are already installed.

If you want to get the proprietary drivers working or would just like to possibly improve the performance of your card, check out this excellent tutorial.


Try to remove gateway 10.1.1.250 from interfaces eth1, eth2 and eth3. You do not need them. Default gateway is setting for all networks.


Graphics problem on Ubuntu 18.04 - blurred text + screen flickering

To get rid of the flicker, I had to REMOVE these two lines from /etc/environment (you probably don't have them, unless you installed gnome-wobbly-windows extension)

CLUTTER_PAINT=disable-clipped-redraws:disable-culling
CLUTTER_VBLANK=True

And I also had to run sudo ubuntu-drivers autoinstall and then reboot

For nVidia cards:
To make the text non-blurry, I just increased the screen resolution via nvidia-settings (the Display dialog did not let me change the resolution)


How to set default application for a specific file extension

First, run mimetype on your file to get the mimetype as follows:

$ mimetype bunny.obj
bunny.obj: application/x-tgif

Once you've determined the corresponding mimetype, add your application as the default in /usr/share/applications/defaults.list:

$ sudo su
$ echo "application/x-tgif=meshlab.desktop" >> /usr/share/applications/defaults.list

It's important to use two > symbols in the command above, not one. Consider making a backup of /usr/share/applications/defaults.list beforehand as well.


Unable to install guest additions: unknown filesystem type 'iso9660'

I was able to resolve the mounting issue by the reinstalling the linux image:

sudo apt-get install --reinstall linux-image-$(uname -r)

BTW, it all started with upgrading VirtualBox. Bidirectional clipboard stopped working so I tried  to reinsert Guest Additions ISO. This caused above stuff. Now, Guest Additions are mounted back, but clipboard wtill doesn't work...


Anyone know of any OpenGL apps in Ubuntu 12.04?

The package mesa-utils contains some simple OpenGL programs like glxgears.

Running

apt-cache rdepends libgl1-mesa-glxq

on the command line will give you a list of more packages using OpenGL


Recover Ubuntu - after failing Update to version 11.04

Can you go to a terminal (Ctrl + Alt + F1)?

Then you can uninstall fglrx:

sudo apt-get remove --purge fglrx

Or:

cd /usr/share/ati
sudo sh ./fglrx-uninstall.sh
sudo reboot now

References: 1, 2.


ttf-mscorefonts-installer is not available

You probably need to add this to your /etc/apt/sources.list

deb http://us.archive.ubuntu.com/ubuntu/ lucid multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid multiverse
deb http://us.archive.ubuntu.com/ubuntu/ lucid-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-updates multiverse


eject -t <device>

is probably what you are looking for


It sounds like Intel Rapid storage is turned on. If so you need to turn off the RAID and use SATA or ACHI mode depending on your BIOS terminology

Disk caching a SSD to mSata cars has no performance benefits in Intel RST anyway it's only designed for HDD (hard disks)


Best /etc/fstab setings for boosting SSD/HDD

The howtogeek site is the more responsible of the two sites you mentioned. The atime tweaks are just metadata optimization that pipeline when a file will receive a certain timestamp update. It's applicable regardless of the media you use, it also depends on how sensitive your application is to the coherency of that metadata. Most desktop users won't miss it.

Now as for disabling journaling... that's just crazy. That's the whole point of using these advanced file systems: better performance while securing data integrity. Understand that if you make this trade you're exchanging your personal data for a modest increase in speed. I personally wouldn't recommend it. Most people don't keep good backup's to begin with to compensate for taking this risk.

Partition alignment does matter but not tweaking that bit won't kill you either. It really depends on how heavily the disk is accessed. Assuming it's unaligned, if you had tons of I/O going on a regular basis (server) you would see an improvement. On average desktop usage, who knows, probably not appreciable.

I would disregard that Ubuntu wiki you mentioned except for the notion that partition alignment is valuable. Here's a more responsible link:

http://www.ibm.com/developerworks/linux/library/l-4kb-sector-disks/index.html?ca=dgr-lnxw074KB-Disksdth-LX

Some of the recommendations in that Ubuntu wiki are just plain wrong, like the reconfiguration of tmpfs using "nodev". It's already a RAMFS!

Moving firefox cache to /tmp may increase speed in your current session. Though it might be a security hazard (not secured in your home anymore) and it will be rebuilt on each boot since tmpfs isn't persistent.

Summary:

Adding discard to ext4 options is prudent, writeback is the default mode, leave journaling settings alone, the atime tweaks are fine, and the switch to deadline or nop scheduler might also be useful, partition alignment is optional. The rest is bunk.


Use certain values for X and Y axis in Calc

Put x and y values in two adjacent columns, select them then choose the menu item Insert->Chart.

In Choose a chart type select XY (Scatter), next choose between the images on the right the type of lines (or points only) then click finish.


b43 Wireless Driver Problems in Ubuntu Server 18.04

You have apparently correctly installed the correct driver and you now have a wireless interface, namely wlp1s0. Now let's set up a connection.

Networking in Ubuntu server 18.04 and later is handled by netplan. Let's edit the netplan file to set your details.

You can find useful templates for netplan in /usr/share/doc/netplan/examples.

The file 50-cloud-init.yaml contains a suggestion:

  To disable cloud-init's network configuration capabilities, write a file
  /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
  network: {config: disabled}

Please do so:

sudo -i
echo "network: {config: disabled}"  >  /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg
exit

Please rename your file:

sudo mv /etc/netplan/50-cloud-init.yaml  /etc/netplan/01-netcfg.yaml

Now fill in the file with your relevant details:

sudo nano /etc/netplan/01-netcfg.yaml.yaml

Change the file to read:

network:
  version: 2
  renderer: networkd
  wifis:
    wlp1s0:
      dhcp4: true
      dhcp6: true
      access-points:
        "network_ssid_name":
          password: "**********"

EDIT: Please note that the name of the network, known as SSID and the password are enclosed in quotation marks.

Of course, substitute your exact details here. Spacing and indentation must be perfect. Proofread carefully. Save (Ctrl+o followed by Enter) and exit nano (Ctrl+x).

Follow with:

sudo netplan generate
sudo netplan apply

Upon reboot, you should be connected. Confirm:

ip addr show
ping -c3 www.ubuntu.com

If you get ping returns, you are connected.


The two most common ways to install software in Ubuntu are:

Ubuntu Software Center

This allows you to install software in a comfortable graphical way like you are used to in Windows or Mac OSX. Software installed from here is updated automatically, although it may not be the latest version which exists of a specific program.

or

Command line (usually apt-get)

To install VLC, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command below:

sudo apt-get install vlc


grub menu problem in windows 8 dual boot

You have installed Ubuntu in BIOS/CSM/Legacy mode and have Windows 8 in UEFI mode. The two boot modes are not really compatible. Once you start booting in one mode, you cannot switch to the other mode. So grub cannot boot UEFI  Windows once you start booting in BIOS mode.

You can either re-install in UEFI mode or use Boot-Repair to convert the Ubuntu install from BIOS to UEFI.

Boot Repair -Also handles LVM, GPT, separate /boot and UEFI dual boot.:

https://help.ubuntu.com/community/Boot-Repair

Install with UEFI:

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

Installing Ubuntu Alongside a Pre-Installed Windows with UEFI


How can I boot directly to Ubuntu after removing Windows from a dual boot?

You can edit grub to don't wait any second (instead of 10 seconds) and boot the first option in the menu:

1) Alt + F2 and paste gksu gedit /etc/default/grub

2) Search for the line "GRUB_HIDDEN_TIMEOUT=10" and change it to "GRUB_HIDDEN_TIMEOUT=0"

3) Open a terminal and paste: sudo update-grub


Make an executable bash script on your desktop:

touch ~/Desktop/shutdown.sh; chmod +x shutdown.sh

Then, open the file, and paste the following inside:

#!/bin/bash

gksu shutdown now

And, then, whenever you want to shutdown, just execute the file. :)

UPDATE: Try this instead:

Change [password] to your password, and then save this into a file shutdown.desktop

[Desktop Entry]
Name=Shutdown
Exec=echo [password] | sudo -S shutdown now
Type=Application
StartupNotify=true
Path=/

Now, double-click to shutdown. You can also make one reboot.desktop, just change the part where it says shutdown to reboot. Hope this helps!


"º" and "<" swapped on spanish Apple Aluminum keyboard - Ubuntu 18.04

For anyone struggling: I have pieced together a solution.

First step: use xev to capture both keys, takes out the guesswork. For me they were 49 & 94.

once you have the key codes, do this:

xmodmap -pke | grep -Pw "49|94" > mychanges

Or whatever your keycodes are instead of 49 & 94, though, they're probably the same if you have the problem with º & < on a spanish keyboard.

Then, edit "mychanges" to swap the keys. You probably have something like:

keycode  49 = masculine ordfeminine grave asciitilde backslash backslash
keycode  94 = less greater less greater bar brokenbar bar brokenbar

Swap the numbers for those two, then xmodmap mychanges, try it out, if you like it do cat mychanges >> ~/.Xmodmap

Sources:

Getting character key code mappings in ubuntu

Apple keyboard swap


Jquery website is not opening in UBUNTU but in XP, Everything is fine

Does it open in another browser, like Chromium or Opera? If so, then the problem may be in Firefox or other browsers. However, it's not a generic problem (for instance, jquery.com works fine for me), but something misconfigured in your particular installation. One thing to try is create a new profile in Firefox and try accessing the site, to override any customizations you made.

If it doesn't open in any browsers (you can even try wget from the command line and see if that is able to fetch from jquery.com) then the problem is at a lower level. You may have some iptables rules blocking access to jquery.com (check with iptables -L, again this isn't something generic in Ubuntu, it would have to be something you configured specifically).

Finally, there may be something blocking access outside your computer, (a caching proxy, or a firewall, or even a routing problem between you and jquery.com). A network problem like this can be diagnosed with traceroute jquery.com, to see how far packets go before they stop.


Make thumbnails persistent for the current session only, do not store them on the disk

For the moment I just made ~/.cache/thumbnails a symlink to /dev/shm which is a RAM disk included on all Ubuntu systems since around kernel 2.6 or so... On my system it was only used by pulseaudio which placed some files in there, but nothing else.

I decided for this way because I then only need a symlink and not another mount entry in /etc/fstab or something like that. It's okay as all the single thumbnail images are stored in subfolders of the thumbnails directory anyway.

So the commands to set it up are:

rm -rf ~/.cache/thumbnails
ln -s /dev/shm ~/.cache/thumbnails

If you have a better option, feel free to post a different answer, I'm open to suggestions.


After install some lens all disappears, just like your.

Well, my problem was solved after removing and installing some libraries from Synaptic.

If you have installed this lens please remove:

unity-lens-shopping
unity-scope-askubuntu

Install this items. I do this form Synaptic, but I believe that you can install from terminal too:

liblensfun-data (0.2.7-0ubuntu1)
liblensfun0 (0.2.7-0ubuntu1)
unity-scope-home (6.8.0daily13.04.23ubuntu.unity.experimental.certified-0ubuntu1)

Like I said, for me it's work. I don't know how is the right library to solved, I install this 3 and solved my problem.

I hope that can help up.


How do I disable intel graphics in a hybrid graphics setup?

You can try vga_switcheroo.

cd /sys/kernel/debug/vgaswitcheroo
cat switch #to see which card is active. Pwr - powered on, Off-powered off, "+" - active card.
echo OFF>switch #to power off inactive card
echo ON>switch #to power on inactive card
echo DIS>switch #to switch to discrete card immediatly(not work with X started)
echo DDIS>switch #to switch to discrete card after X restart
echo IGD>switch #to switch to integrated card immediatly(not work with X started)
echo DIGD>switch #to switch to integrated card after X restart

Works only with open-source i915 and nouveau drivers.
I have the same notebook, and it is only power ON and OFF works for me.

P.S. As I remember(not sure) A08 BIOS has "Hybrid Graphic" option. But i cant rollback to older BIOS version to check it.


How to make automatically boot in every computer?

Can't , you have to set the bios manually, and sometimes even disable UEFI.


Prompt has been changed after upgrade to 18.04.1 after using "su" to change user

Run:

getent passwd username | cut -f7 -d:

if you get an empty result it means your user does not have a default shell thus it is using /bin/sh by default. And that is why it looks like what you are describing.

Run:

sudo chsh -s /bin/bash username

to fix the issue


How do I remove/ignore words from gedit's spell checker dictionary?

Open the dictionairy where your words are saved and remove them. You can find these by opening home folder, hit control-h (shows hidden files) and navigate ~/.config/enchant

I myself have 1 dic file in there and you can open it in gedit.


Dell Precision m3800 wifi "Hardware Disabled"

Had the same problem. Fortunately I planned to dual boot (just in case) for a while. When I boot into Windows and do fn+PrtScr (wifi button), the wifi turns on, then works in Linux too. Not sure why, but the hardware button on the keyboard doesn't seem to work.


It should help:

apt-get download libc-bin
dpkg -x libc-bin*.deb unpackdir/
sudo cp unpackdir/sbin/ldconfig /sbin/
sudo apt-get install --reinstall libc-bin


Errors were encountered while processing issue

As we can read from

dpkg: error processing package libsasl2-modules:i386 (--configure):
dependency problems - leaving unconfigured

1. You have to run

dpkg --configure -a

Which gave us

debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by
another process: Resource temporarily unavailable

2. So in order to unlock /var/cache/debconf/config.dat:

sudo fuser -v -k /var/cache/debconf/config.dat

or run

sudo fuser -v /var/cache/debconf/config.dat

and kill the process using the given PID, such as:

sudo kill PID_HERE & sudo kill -9 PID_HERE

Now after that, dpkg --configure -a should be able to solve the issue, if not, try with sudo dpkg --configure -a --force-depends.

Sources & further information:

http://manpages.ubuntu.com/manpages/xenial/en/man1/dpkg.1.html

http://manpages.ubuntu.com/manpages/xenial/en/man1/fuser.1.html


How to install Compiz effects on Gnome 3?

Unfortunately, mutter (the GNOME compositor) is not customizable at all. Why they thought this was a good idea is anyone's guess, as I find the typical compositor functionality as expressed in Compiz and KDE's compositor very useful, especially the desktop cube.


apt update error: The repository 'http://us.archive.ubuntu.com/ubuntu saucy Release' does not have a Release file

This happens because you still have somehow the sources.list file for Ubuntu 13.10 on your machine:

You can  use sudo -i in terminal and copy & paste the following (complete block) into it:

cat > /etc/apt/sources.list << EOF
deb http://archive.ubuntu.com/ubuntu xenial main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu xenial main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu xenial-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu xenial-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu xenial-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu xenial-security main restricted universe multiverse
#deb http://archive.ubuntu.com/ubuntu xenial-proposed restricted main universe multiverse
#deb-src http://archive.ubuntu.com/ubuntu xenial-proposed restricted main universe multiverse
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner
EOF

This will overwrite your /etc/apt/sources.list file. After that you should use exit to get out of root.

If you not wish all package sources to be enabled you can change this from the GUI applet called 'Software&Updates' which you find within your settings.

Then you should do the obligatory:

sudo apt clean
sudo apt update
sudo apt dist-upgrade


Creating a bootable USB Stick on Mac OS X

Try reformatting the USB key to HFS+ in Disk Utility and making the (only) partition GUID, which is what the Mac expects of any bootable drive.


After freeze, reboot shows blackscreen with cursor

Immediately after the BIOS/UEFI splash screen during boot, with BIOS, quickly press and hold the Shift key, which will bring up a GNU GRUB menu screen. With UEFI press (perhaps several times) the Esc key to get to the GNU GRUB menu screen. Sometimes the manufacturer's splash screen is a part of the Windows bootloader, so when you power up the machine it goes straight to the GNU GRUB menu screen, and then pressing Shift or Esc is unnecessary.

The timing when to press the left Shift or Esc key can be tricky, so sometimes if you miss it you need to try it again.

You will see a GNU GRUB menu screen that looks like this:

From the next screen select any recovery mode option.

From the Recovery Menu use the arrow keys to select network, press the Tab key to put the focus on <OK> and press Enter.
From the Recovery Menu use the arrow keys to select root, press the Tab key to put the focus on <OK> and press Enter.

Check Where can I look up my update history?, and write down every package that was updated in the last update.
Fix E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Up to this point you can run commands in recovery mode, but the commands that you try are not always successful because of package management issues. You can't install software or access the all the default software repositories. I recommend running the Ubuntu live USB/DVD that you used to install Ubuntu as a live session in order to check if the Ubuntu live session also freezes. This is to check the possibility that the freezing may be caused by a hardware issue.


I assume you mean ls /usr/bin? In any case, you can use the -N option:

ls /usr/bin | less -N

From man less:

   -N or --LINE-NUMBERS
          Causes a line number to be displayed at the  beginning  of  each
          line in the display.


You're (maybe) in luck, it appears as though someone is packaging Dangerdeep in a PPA here (last update was in November):

https://launchpad.net/~aegirxx-googlemail/+archive/dftd-latest
What are PPAs and how do I use them?

Here's the quick and dirty way in a terminal:

sudo add-apt-repository ppa:aegirxx-googlemail/dftd-latest
sudo apt-get update
sudo apt-get install dangerdeep-latest

The upstream page does say that the game is in Alpha, so it might be one of those things where you'll need to report the failures to the developers, maybe they're looking for testers!

The binary to launch it is put in /usr/bin/dangerdeep. The deb appears to be missing a .desktop file, which is why it doesn't appear in the menu. This should be filed as a bug report with dangerdeep so that it's easier for users to find it.


How to rotate a specific part of a video file?

That is not the way to rotate part of the file. Metadata apply to the whole file. If you split the file, then change metadata of the second part, these metadata will be lost if you concatenate that part back to the first part.
For rotating part of the video, your only option is to reencode that part. You will need to rotate the image, and subsequently make it fit into the frame size of the first part, by inserting black bars or cropping the rotated image. The result must be reencoded using the same codex as the first part to a new videofile. That new videofile can then be appended to the first part.


plus one for me. But with this, I got it:

sudo apt-get update
sudo apt-get install --reinstall ubuntu-desktop
sudo apt-get install unity

Seems to wired, and I think it was more luck than brain, but it worked for me.


Yes! :D but you'd have to do it from your live USB or CD. you can't resize an active partition! (an active partition is one that is being used)

Just boot from your USB/CD then open gparted and resize it :) you can follow these steps or this question. Tell me if there's something you don't understand :)


Save all music files in a VLC xspf playlist to another folder

This should do it, assuming that none of your file names contain <:

grep -Po 'file://\K[^<]+' now.xspf | while IFS= read -r file; do
    song="${file//%20/ }"
    cp "$song" /path/to/target;
done

Explanation

The -o flag tells grep to only print the matched portion of a line and the -P activates Perl Compatible Regular Expressions which give us \K. The \K causes grep to discard everything matched before it so the result is that file://\K[^<]+ will match the longest string of non-< characters that come after file://.

This is then fed to a while loop with IFS= to turn off word splitting at whitespace and -r to treat backslashes as normal characters.

The line SONG="${file//%20/ }" converts all %20 to  (empty space). Otherwise, it returns a 'path not found' error when it tries to copy the songs in the last line.

If your file names can contain <, use this instead:

perl -lne '@foo=(m#file://(.+?)</location>#g); END{print $_ for @foo}' playlist.xspf |
while IFS= read -r file; do
    cp "$file" /path/to/target/;
done

Note: Both solutions assume that none of your file names contain newlines.


No, unity doesn't follow these gconf rules, and in fact there is a different decorator being used (it doesn't draw the window controls in the unity panel).

This is an often requested feature though.

See these questions for more details:

How can I make the window buttons in the panel match the window buttons in the window decorations?
Can the Close / Minimize / Maximize buttons be pulled out of the Global App Menu when a window is maximized?
https://bugs.launchpad.net/ubuntu/+source/unity/+bug/775346


How to add myself to sudoers when accidently remove main user out of the sudo group

You will need to boot into recovery mode, mount your filesystem and edit the /etc/sudoers file. You can also do similar from live media.


Howto autostart a java -jar file after MySQL (mariadb) has started in Xubuntu 16.04?

Create a script that start every boot that checking every 2 seconds if MySql process is running, if so execute your command.

Lets create the script called filename.sh with this content:

#!/bin/bash
APP="gedit"
while true; do
    PID=`pidof $APP`
    if [ ! -z $PID ]; then
        # We found the process running on the system.
        java -jar "/home/restaurant/Documents/dist/POSv2.jar"
        exit 0
    fi
    sleep 2
done

make it executable:

chmod +x filename.sh

Just change APP="gedit" to the process name instead of gedit.
Make it running at the start up: How do I run a script at start up?.


How to upgrade the php version in Lampp in Ubuntu

Seems you have already installed the newest version of PHP, then jump into the 2nd part of this answer. Please check you have installed LAMP stack correctly, follow a tutorial like this,

Lamp Installation tutorial or this.

Then please follow the exact steps.First,
1. Install the newest version of PHP on your Linux machine
# apt update
Then install following packages to install PHP newest PHP versions using PPA,
# apt install python-software-properties
# add-apt-repository ppa:ondrej/php
Then,
# apt update
Then you can check PHP versions available in apt,
$ apt show php -a | grep version or $ apt show php -a | grep -i version
Then install the newest version available in there.For an example, if you want to install PHP version 7.2,
# apt install php7.2
To check if the PHP is in the newest version, run the following command,
$ php -v
2. Change the PHP version of the lamp
# a2dismod php5 to disable current version
# a2enmod php7.2 to enable current version
# service apache2 restart or # /etc/init.d/apache2 restart
Hope you found it useful.


How do I to run multiple applications and manage them over SSH on one Ubuntu Server?

You could connect with server with ssh clients, but once disconnected, it's hard to get your console back.

There is a program to manage console named screen.

sudo apt-get install screen

Create a new session by

screen -S seesion_name

Then execute your command and press Ctrl + A then D to unbind the session. The commands will still run. You can get back to your session by typing

screen -r seesion_name


I need a lightweight IDE for C coding, for Lubuntu

CodeLite is a powerful and lightweight IDE specializing in C, C++, PHP and JavaScript. Its features include:

Generic support for compilers (for example Clang)
Built-in GDB support
Database-based code completion mechanism
Syntax highlighting for C/C++, Java, Perl, XML, Makefile, Lua, Diff files,
PHP, JavaScript, Python, HTML, and ASP
Text folding
Bookmarks
Find and Replace
doxygen comment generator

To install CodeLite in all currently supported versions of Ubuntu open the terminal type:

sudo apt install codelite


When you mount it via mount -t cifs -o username=user,password=password //192.168.178.26/photo /home/user/photo the open /etc/mtab and use the line from there and put it into fstab.

Something like:

sudo cat /etc/mtab | grep '/home/user/photo' >> /etc/fstab


Extending Root Partition By Deleting Swap Partition

We'll convert your partition-based swap, to a /swapfile. We'll delete the swap partition, and use that unallocated space to increase the / partition. You'll need to have a bootable Ubuntu Live DVD/USB to proceed.
Edit /etc/fstab...
To edit, use sudo -H gedit /etc/fstab or sudo pico /etc/fstab
and comment out this line:
UUID=xxxx-xxxx-xxxx-xxxx none  swap       sw       0       0

Save the edit and quit the editor
Boot to a Ubuntu Live DVD/USB
Start gparted.
Do a swapoff on the /dev/nvme0n1p6 partition
Delete the /dev/nvme0n1p6 partition, as it won't be used any more
Drag the right side of the /dev/nvme0n1p5 partition all the way right
Click the Apply button
Quit gparted
Reboot
Create a /swapfile...
Note: Incorrect use of the dd command can cause data loss. Suggest copy/paste.
In the terminal...
sudo dd if=/dev/zero of=/swapfile bs=1M count=4096

sudo chmod 600 /swapfile  # set proper file protections
sudo mkswap /swapfile     # init /swapfile
sudo swapon /swapfile     # turn on swap
free -h                   # confirm xxG RAM and 4G swap

Confirm this /swapfile line at the end of /etc/fstab... and confirm no other uncommented “swap” lines...
To edit, use sudo -H gedit /etc/fstab or sudo pico /etc/fstab
Note: Use SPACES, not TABS
/swapfile  none  swap  sw  0  0

reboot                    # reboot and verify operation


How can I dual-boot Ubuntu 12.04 with Windows 8?

Explanation:

The error message you got means you tried to install Ubuntu inside Windows (via the Wubi installer).
The problem is that Wubi is not compatible with GPT (preinstalled Windows8 are on GPT disks).

Solution:

Install Ubuntu the standard way, on its own partitions, see https://help.ubuntu.com/community/GraphicalInstall


The error and the path given /scripts/... indicate that this is happening inside the initramfs filesystem.

I suggest backing up the contents of /boot, eg

tar -cvzf ~/boot_backup.tar.gz /boot

And then remove cryptsetup with apt-get; that should recreate the initramfs without the cryptroot script. If everything works, that's your solution. If not, you can restore the originals by extracting the backup tarball, reinstall cryptsetup, comment here and we can continue troubleshooting further.


No sound on headphones after 14.04 -> 16.04 update

I encountered the exact same problem with my stereo plug not being recognized after I changed something with my audio setup but the audio still being output when I selected it manually.

I found my solution in a similar question: I was using the wrong plug on my board. Switching it from the teal-colored rear speakers to "Line Out" (green) now properly makes pulseaudio detect my device and I don't need to disable HDMI output every time the monitor comes back from standby.


These commands will work for
rtl8192ce, rtl8192se, rtl8192de, rtl8188ee, rtl8192ee, rtl8723ae, rtl8723be, and rtl8821ae. If you have any other driver then please search and install.

sudo apt-get install linux-headers-generic build-essential git
git clone http://github.com/lwfinger/rtlwifi_new.git
cd rtlwifi_new
make
sudo make install

After that if your system does not load appropriate kernel module,you can run below command in same directory(make sure to run this for your specific driver in my case it is rtl8821ae):

sudo modprobe rtl8821ae


How can I install gedit-latex-plugin without installing the rest of TeX?

I believe you need to install a dummy package to fool the system into believing the distribution's Tex system is installed, one of the best instructions I have seen to do this is here: http://blogs.ethz.ch/ubuntu/2011/03/14/tex-live-2010-installation/ , it is for Texlive 2010 but just make the modifications to suite your version and platform and it will work.

It essentially means using the equivs package to build the dummy package, for you to install, you still need to install tex-common texinfo and lmodern, perl-tk` is used by the Texlive update system GUI Implementation so if you want to run tlmgr with a Gui you should install it.


Wine 1.6 from default repository has tiny fonts

You configure that in the Wine configuration option. Open terminal and run winecfg command to open Wine configuration dialog, then go to the Graphics tab and set the Screen Resolution slider.  Once configured, relaunch Wine configuration and you should be at your new DPI.

Hope this helps!


Display specific fields from a row for duplicate values in a column


Installer crashed when trying to install Ubuntu 18.04

Check out Ubuntu 18.04 Installer crashes on Dell XPS 15 9560. To summarize:
You are experiencing Bug #1751252.

There are two options to fix this:

Option 1: Install a newer fixed version of ubiquity

Boot your 18.04 Live ISO
Select Try Ubuntu
Before you start the Ubiquity installer, open a Terminal window (CTRL-ALT-T)
Execute the following commands in the terminal to upgrade Ubiquity:

sudo apt update
sudo apt install ubiquity

Then start Ubiquity from the desktop.

Option 2: Apply a patch to ubiquity

Boot your 18.04 Live ISO
Select Try Ubuntu
Before you start the Ubiquity installer, open a Terminal window (CTRL-ALT-T)
Execute the following commands in the Terminal to download and apply the patch:

cd ~/Downloads

wget https://code.launchpad.net/~azzar1/ubiquity/+git/ubiquity/+merge/345056/+preview-diff/831305/+files/preview.diff --output-document ubiquity.patch

sudo cp /usr/lib/ubiquity/ubiquity/misc.py /usr/lib/ubiquity/ubiquity/misc.py.original

sudo patch /usr/lib/ubiquity/ubiquity/misc.py ubiquity.patch

Start the installer by clicking on the Ubiquity icon, and it should now allow you to proceed through the installation.

Note: this is just an edited version of the first answer from the link I gave.

Check out the link for more answers


Can I develop code on my bq Ubuntu tablet and compile and run it on the tablet?

There is right know a problem with Ubuntu SDK IDE. It does not work under Ubuntu touch. At least I did not make it work until now.
If that would work you can start developing Ubuntu apps on it.


Ok, so there are several options:

disown

You can combine disown and & to push your script to the background $ disown [your_script] & [your_script] can be checked by the jobs command. Once typed you will see:

$ jobs
[1]+ Running [your_script]

And the killing can be done by kill %1, the 1 refers to the job number seen above.
This is the better alternative to nohup as it does not leave the nohup.out files littered all over the file system.

screen

Is a "virtual" terminal which you can run from a "real" terminal (actually all terminals today are "virtual" but that is another topic for another day). Screen will keep running even if your ssh session gets disconnected. Any process which you start in a screen session will keep running with that screen session. When you reconnect to the server you can reconnect to the screen session and everything will be as if nothing happened, other than the time which passed.

Excellent source: Speaking UNIX: Stayin' alive with Screen".


How to remove Unity from the available desktop managers in 18.04

As I explained here, for many display managers (including GDM) the desktop environment choices are stored as .desktop files in /usr/share/xsessions (X.org) and /usr/share/wayland-sessions (Wayland). Remove the corresponding .desktop file and the desktop environment won't show up in the greeter.


Can I set dual external monitors on Thinkpad X220?

It works but it is unstable. For example, it you hibernate with the dual display active and resume with just the laptop's screen it may be that you will get no display (actuallym, the display wil lbe full of useless vertical black and white lines). The only way to get out of this is to power cycle or remote ssh and reboot.

On other occasions, if the external screen was the main screen, you may end up having the lap top screen Ok but the Unity focus still on the external screen (which you unplug), thereby preventing you doing anything useful with the desktop. You cannot even reboot since you cannot clock on anything. Againm, the solution is to reboot or ssh remotetly.

I am using with both the ultrabase, at the office, and without at home.


You first need to figure out whether Windows is booting in BIOS/CSM/legacy mode or in EFI/UEFI mode. See this page of mine for details, but basically, you can check the "BIOS mode" line in System Information; it should read "Legacy" or "UEFI," depending on the boot mode.

With the boot mode known, you need to create a bootable Ubuntu installation USB flash drive that includes the appropriate boot loader. Most (but not all) tools for turning Ubuntu .iso files into bootable USB media can create mediea with either (or both) BIOS-mode and EFI-mode boot loaders. Rufus is one of the more flexible of tools in this respect; it has three options for boot loader and partition table inclusions. See this page of mine for some more comments on this subject.

Note that installing Ubuntu in EFI mode when Windows is in BIOS mode, or vice-versa, is asking for trouble. Such cross-mode installations can work, but they require considerable expertise to set up.


Error when using XRANDR to add new resolution

A different name for the mode ending in letters solved the problem for me.

$ xrandr --verbose --newmode "1920x1200_60VGA"  193.25  1920 2056 2256 2592  1200 1203 1209 1245 -hsync +vsync
$ xrandr --verbose --addmode VGA-0 1920x1200_60VGA
$ xrandr --verbose --output VGA-0 --mode 1920x1200_60VGA


Scanner Epson L210 for Ubuntu 16.04 is NOW working

Luckily, I just found a solution based on this instruction: https://help.ubuntu.com/community/sane and problem in installing Epson Scanner in Lubuntu 15.10 (64bits)

What I did:

Installed some packages:

sudo apt-get install sane sane-utils libsane-extras xsane

Edit /etc/sane.d/dll.conf file as follows:

Add epkowa because in my case it is not in the list or remove # before epkowa if it is exist
Add # before epson2 to avoid conflict with epkowa

There is a still message about permission denied when I run xsane, however xsane scanning is working well. The solution is by changing folder permission and any folder/file inside /home/username/.sane to 755 rwxr xr x OR You may try run xsane as root - sudo xsane.

And for iscan, it is also working perfectly without changing any permission.


Is there a NATIVE password manager and generator for Ubuntu 16.04?

I have a couple of years experience with several versions of the open-source (OSI certified) password manager KeePass on Windows and the last few weeks with the latest version on Ubuntu. I can recommend Keepass.
It is available for most other platforms (Windows and Apple devices, Android etc.) and uses the same encrypted database (so you can sync via the cloud).
See http://www.keepass.info/download.html.
For Ubuntu Keepass2 is the best version (works better than KeepassX(C) from the repository. To obtain the latest and best version of Keepass2 see http://ubuntuhandbook.org/index.php/2017/04/install-the-latest-keepass2-2-35-in-ubuntu-16-04-16-10-14-04/.
I sync my Keepass database (and Firefox browser and Thunderbird mail) between Ubuntu en Windows computers via the cloud and this works great.
If you decide to go for Keepass2, the desired user interface language file may possibly be found on: http://www.keepass.info/translations.html.
In my installation this file (after unpacking) must be placed in /usr/lib/keepass2/ where the KeePass.config.xml and KeePass.exe.config files are located.

Success,
Gus


There is similar topic in askubuntu question about telegram and its bad support for Persian language fonts.
A good news is Telegram on newer release add default support to Persian with adding Vazir font family.
For you I suggest to remove telegram-desktop package if install with Ubuntu repository and download the latest one from official website to use latest update of telegram.
apt purge telegram-desktop
If you prefer more info on installing telegram in this method please read my answer on Iranian UBUNTU Community.


How to install Ubuntu 16.04 or 18.04 on Dell XPS

I have a Dell Inspiron, and some years ago I received these instructions from Dell support people:
How to Install Ubuntu Linux on your Dell PC

They are very basic, and for Ubuntu 16.04, but have some useful instructions about UEFI and Legacy ROMs that I suppose still applies to 18.04.


Change boot order on multiboot Windows 10 - Ubuntu 15.10 - Fedora 23

I'll begin by answering the questions at the end of your post:

EFI-mode booting uses the firmware's native boot mode, whereas BIOS/CSM/legacy-mode booting uses the Compatibility Support Module, which permits booting older BIOS-mode boot loaders. See this question and my answer to it on superuser.com for more on this subject.
GRUB is one of several EFI-mode boot loaders for Linux. (There are also versions of GRUB for BIOS and other firmware types.) GRUB Legacy, aka GRUB 1, was never officially supported for EFI, although Fedora did have a heavily-patched version that's now abandonware. Thus, most references to GRUB in an EFI context refer to GRUB 2.
Secure Boot is an optional EFI feature intended to improve system security by blocking an EFI from launching binaries that are not cryptographically signed by a trusted authority. In principle, this authority could be you; or it could be somebody else. In practice, Microsoft holds the only commonly-available keys for Secure Boot, and so controls the process. Fortunately, Microsoft will sign third-party binaries, and Ubuntu has used this to have Microsoft sign a binary called Shim that, in turn, includes Canonical's key, which is used to sign GRUB and the Linux kernel in Ubuntu. Note that, when dual-booting two Linux distributions, neither distribution's Shim will include the key for the other distribution. Thus, you must register the other distribution's key with the Machine Owner Key (MOK) list, which you can do with the MokManager.efi utility under EFI. I think the sb-updatevar utility can do this in Linux, too, but I have less experience with it. See here for several keys in one handy place; you'd need .cer or .der keys. See my page on Secure Boot for more on this subject.

As to your main problem, the efibootmgr -o (or efibootmgr --bootorder) command should give control to whatever boot program you specify. Note, however, that you probably meant to give to control to Boot0001 or Boot0007, not Boot0006 -- Ubuntu uses the name ubuntu, not grub, to describe its own boot entries. You can better identify each of these by typing sudo efibootmgr -v, which produces complete paths to the boot entries (identified using EFI path identifiers, which are long and complex and refer, among other things, to partitions' GUID numbers, which you can get with gdisk or some versions of blkid). Thus, before you do anything else, you might want to try changing the boot order to the correct value, rather than to Boot0004.

In practice, efibootmgr changes sometimes fails to work because of buggy EFIs or corrupted data in the machine's NVRAM (which is where the data that efibootmgr displays and adjusts is stored). Three solutions to such problems are commonly employed:

Wipe unwanted entries -- Sometimes deleting an unwanted or duplicate entry, as in sudo efibootmgr -b 0004 -B to delete Boot0004, will fix a problem. (You might or might not actually want to delete this entry, though.) Sometimes you may need to delete multiple boot entries to get the system working again. Do not delete entries you need to boot, though. Also, most computers have entries that the firmware itself creates, like the two Network Controller entries in your output. Deleting those entries is generally inadvisable.
Reset the firmware to its defaults -- Most EFIs provide an option to reset all settings to their defaults in the firmware setup utility. (What some people call the "BIOS setup screens" or something similar -- although EFIs are technically not BIOSes, despite the fact that many people, and even manufacturers, often refer to them as such.) The drawback to this approach is that it's likely to wipe out all the EFI entries, rendering the system unbootable until you use an emergency disk to restore at least one working entry.
Piggyback your boot loader on another entry -- This approach involves copying or moving/renaming your desired boot loader to use the filename of whatever the EFI insists on launching. It's generally used when an EFI refuses to launch anything but the Windows boot loader, so it shouldn't be necessary in your case.

Stepping back a bit further, though, I'll say that it really shouldn't matter which GRUB you use (Fedora's or Ubuntu's); they're basically the same software. If you're having problem configuring Fedora's GRUB to do what you want, you could always tweak its settings -- but OTOH, GRUB 2 configuration is notoriously difficult once you move beyond some very basic things. For this reason, many people who dual-boot multiple Linux distributions prefer to have a distribution-independent boot loader -- either their own GRUB or something else. My own rEFInd boot manager has several advantages for such configurations, such as a lack of reliance on configuration files to detect kernel updates and its independence from any given OS's configuration scripts. That said, if you're having trouble getting efibootmgr to switch from one GRUB to another, you might also have problems getting rEFInd (or any other boot loader) to launch. Also, if you're using Secure Boot, you may need to register at least one Secure Boot key with your MOK to get rEFInd to work. For that matter, if the reason you want to switch to Ubuntu's GRUB is that Fedora's GRUB won't launch Ubuntu's kernels, then the issue is most likely Secure Boot; adding the Secure Boot key for Canonical/Ubuntu should overcome that problem.

EDIT:

Boot0001 is the entry that's most likely to do what you want, so it should go at the start of your boot list; but it sounds like that's not working for you.

If you can live with leaving Fedora in charge of the boot process, it might be best to do so, lest you end up creating a cascade of new problems. Certainly outright deleting the Fedora entry is risky, since if you then can't get anything else to work, you may be left unable to boot anything.

You might try disabling Secure Boot, assuming it's currently enabled, since that feature can cause problems, particularly on complex setups.


Remount NAS drive with GVFS and user rights when network re-connects?

I fixed it this way:

STEP 1

I decided to use cifs

STEP 2

Added this script to /etc/network/if-up.d

#!/bin/bash

WL=$(iwconfig wlan0 | grep wlan0 | cut -d':' -f2)

if [ $WL == '"yournetworkname"' ]
then
echo "deckoff"
sudo mount -t cifs //192.168.1.106/Public/ /media/MyBookLive -o username=user,password=pass,uid=1000,nobrl,iocharset=utf8,codepage=unicode,unicode

fi

The name and the type of the wifi (wlan0) in my case should be changed to yours. The type can be seen with the command iwconfig

STEP 3

sudo visudo

This command will let you mod which commands could be executed without sudo rights, by which users etc.

Add

deckoff ALL = NOPASSWD: /bin/mount
deckoff ALL = NOPASSWD: /bin/umount

This will let deckoff mount and umount drives without sudo rights

Restart


Here's an article + screencast on the subject:

How to create a .deb for NodeJS apps


The error message tells you:

cannot copy extracted data for './boot/vmlinuz-3.13.0-54-generic' to
'/boot/vmlinuz-3.13.0-54-generic.dpkg-new':
failed to write (No space left on device)

You have insufficient free disk space on /boot.

WARNING Do not simply delete files in /boot. See my answer here
for why.


Cant install chrome - what am I doing wrong?

Go to Ubuntu software centre, search for chromium and install it.
It will ask for password, provide password, and it will be installed.


You need to add ,usrquota to the options of the partition that your created for this.
A possible(!) valid method would be:

home /home ext4 defaults,usrquota 0 0

but since you do not have a partition with mount point home I am just guessing. After that you need to remount /home.

mount -o remount /home

and the filesystem then knows it needs to check for quota (ie. /home/aquota.user).


Spotify support in Clementine broken 12.04 also purging doesn't work

You will have to remove your configurations files.

Paste this at terminal:

rm -R ~/.config/Clementine

Or open Nautilus, press Ctrl + H and navigate to ~/.config, find the folder Clementine and delete it.


Cant ssh a virtualbox instance - Permission denied, please try again

Remove sudo, just do:

ssh nameofvminstance

then enter the password.

If you do sudo ssh nameofvminstance, then you are basically trying to log in to the host nameofvminstance as root, if thats the case then at first you need to enter the password of your account in the host computer to get the sudo access and then the password of the root account of nameofvminstance.

Now if you do ssh nameofvminstance, its basically a short form of ssh username@nameofvminstance where the username in the remote computer is the same as the currently logged in user of the host machine i.e. you can use this format if both usernames are same otherwise you need to mention the username as ssh username@nameofvminstance.


Cannot assign more than 128 outgoing IPs with squid3

After some research I found out the solution, however it comes with a cost. First thing first yes there is a limit of 128 connections. Let me quote

  For each packet read Squid has to check the listening port list to see
  if it is a read() or accept() operation. Doing even 128 checks per
  packet is pushing the boundaries for reasonable performance loss.

So that's why the limit is there. If you want to remove it well you can do it by building the latest version of Squid using:
./configure CXXFLAGS="-DMAXTCPLISTENPORTS=XXX"
where XXX is your new limit

Answer based on:
http://squid-web-proxy-cache.1019090.n4.nabble.com/squid-with-multiple-ips-is-listenting-to-some-ips-with-port-and-not-all-of-ips-td4668784.html


Did you check if the SD Card isn't locked?

Another suggestion: try accessing nautilus as sudo (typing sudo nautilus on terminal) and try copying files to it. If it's a permission thing, may work.

Other suggestion: is this card formatted as exfat (like Canon camera's card?). Maybe you should install exfat-utils (sudo apt install exfat-utils), and then it will work.


A guess...but this may be due to varying signal strength of your connection.

I use the network connections program, which is by default on the xfce panel.  Edit the connection you are trying to use, and enter the MAC address of the hotspot you are connecting to (not your MAC) into the BSSID field. then save.  This causes the software to weld itself to that connection, even though surrounding signals may be stronger. You may need something like WiFi Radar to find out what the MAC address is.

I'm running xfce, so this may vary depending on your gui, and how network connections are handled on your system.  Hope this helps.


how do i fix a mounting error with an external drive

It says that $MFT does not match $MFTMirr. MFT (Master File Table) is a part of the NTFS file system your drive is formatted with. It is like an address book for the system to remember where which files are stored. Because this table is so important, there is a mirrored copy of it.

In your case, the original table and its mirror do not contain the same data, so there is anything wrong with the hdd's file system. Try and hope that Windows' chkdsk /f or another NTFS repairing tool can fix this. Greetings and good luck!


Ubuntu Moblin:There is no log in button on my web services! Please help!

Have you entered in your information and attempted to press Enter?


Sorry if I wasn't clear v2r

There is another box to tick if you click advanced but that is if you have more than 1 NTFS partition but if you only have 1 NTFS partition it should be ticked as default but look anyway just to make sure otherwise there are only 2 boxes to tick.

1 box is called "Enable write support for external devices" and the other box is called "Enable write support for internal devices" so depending if your NTFS drive is internal or external tick the relevant box.

Sorry I can't give you screenshots not enough rep points yet but I'll replace the url typed at the bottom with a screenshot as soon as I have enough points it will have an example of NTFS Configuration Tool or type NTFS Configuration Tool in Google image search.

Edit: This method worked for me.

Open up Ubuntu Software Centre and type NTFS and install NTFS Configuration Tool (it should be the first one in the list of results). Once installed run NTFS Configuration Tool and tick both boxes and now you should have full access to to your drive.


Installing from USB to a new HD - Drive not found

Do I need to reformat the drive as something other than NTFS?

Yes, Ubuntu uses a Linux based permissions system and NTFS does not understand it. Ubuntu needs to be installed onto an ext formatted filesystem. ext4 is the newest version.

  and create a single, primary partition.

This will not work. You need to use partition magic (in windows) or gparted to create a second (can be unallocated) partition. If you have that you will get extra options in the installer (ie. amongst others: "use unallocated space").

  Example as shown in Windows disc manager.

C:  NTFS Has Windows.
unallocated space.

  Example from Ubuntu installer.

sda1  NTFS Has Windows.
unallocatedspace.

You then can use the installer to change the unallocated space into partitions with mountpoint / (everything but 2-4Gb) and swap (that is the 2-4Gb).


Wifi does not work Ubuntu 12LTS Lenovo S540

Open a terminal with Ctrl+Alt+t and type the following commands:

rfkill unblock wifi
nmcli nm wifi on

It should re enable the Wifi interface.


How to set up dynamic screen sizing for a qemu windows 10 guest on ubuntu 18.04?

You need to add a virtio-serial device for the VM to communicate with the spice client on the host. Had you used virt-manager with libvirtd instead of using qemu directly it most likely would have taken care of that for you automatically.
Try adding
-device virtio-serial-pci,id=virtio-serial0,bus=pci.3,addr=0x0
-chardev spicevms,id=charchannel1,name=vdagent
-device virtserialport,bus=virtio-serial0.0,nr=2,chardev=charchannel1,id=channel1,name=com.redhat.spice.0

If that doesn't work, I'd suggest using virt-manager as frontend.


What is the process for getting paid apps into the Ubuntu Software Center?

Paid (and open source) applications can be submitted to:

My Apps in the Ubuntu App Developer site
Learn more about publishing apps
Read the commercial software FAQs


Ubuntu Phone OS 1.0 makes my Galaxy Nexus a lame duck

Yes, it is a known problem:

https://bugs.launchpad.net/mir/+bug/1182930

Unfortunately the Galaxy Nexus is starting to show its age, so certain operations that can run efficiently on newer hardware are problematic on the it.  Things may improve, but I don't know if there is a concrete time line.

As a temporary solution, you could try disabling Mir on the phone by deleting the file /home/phablet/.display-mir and rebooting, which will switch back to the Surface Flinger display server.  Note however that all future development is being done with Mir in mind, so this isn't guaranteed to continue working.


Focusing a specific application instance by code?

Ok, so it turns out that actually switching windows is very easy.

#!/usr/bin/env python

# This code will focus the window with integer id 67108870
# Tips: you can get that with xwininfo -int

# wnck is used for window management
import wnck

# time is needed because wnck requires it
import time

# Get information about windows, workspaces, etc from the X server
wnck.screen_get_default()

# Get a reference to the window we want to focus
# by providing an integer xid
the_win = wnck.window_get(67108870)

# activate the window, providing an int timestamp
the_win.activate(int(time.time())

I'll improve on this answer as I learn.


Intel Ethernet not working - *Network UNCLAIMED

To just help you onto the next step in trying a newer kernel.

You can download the needed packages from multiple places and in multiple ways. One way you could get them is to download them from packages.ubuntu.com You will need this 3 packages for kernel 4.10.0-30-generic:

linux-image
linux-headers-amd64
linux-headers-all
linux-image-extra


How do I install fontforge on Kubuntu 18.04?

fontforge PPA not available for 18.04

The PPA for fontforge is not available for 18.04 as you can see on the PPA's page: https://launchpad.net/~fontforge/+archive/ubuntu/fontforge.

First click Technical details about this PPA and then check the dropdown menu Display sources.list entries for:

How to install fontforge in 18.04 (universe repo)

To install fontforge, which is availbe in the universe repository as dsstorefile pointed out in a comment:

Enable universe:

sudo add-apt-repository universe

See also: How do I enable the "Universe" repository?

Then:

sudo apt-get update

sudo apt-get install fontforge

Remove the useless PPA from your system

Now it is a wise idea to remove the PPA from your system, as it has no use to you.

sudo add-apt-repository --remove ppa:fontforge/fontforge

sudo apt-get update


Can't Mount a not copy protected DVD Video?

mplayer has had problems with libdvdnav, which is what might be giving you problems.

http://lists.mplayerhq.hu/pipermail/mplayer-users/2009-January/075695.html

You might want to try and compile mplayer with out libdvdnav using

  --disable-libdvdnav

in the ./configure file of the source code.

Or simply try something other then mplayer. vlc, or totem. They are perfectly cable player. Then just select play from dvd options.

In totem
Media > open > navigate to dvd on the right hand pane.

In vlc
Media > open disc > play
vlc has many more options to select the location of your device or dvd.


stuart, and you visits this page.

https://launchpad.net/~michael-gruz/+archive/ubuntu/canon-trunk/+packages

this article, is solution for install driver for printer mg6350.
http://linuxg.net/how-to-install-drivers-for-canon-printers-pixma-mg-series-on-ubuntu-14-0413-1013-0412-1012-04-linux-mint-16151413-pear-os-87-and-elementary-os-0-2/

good luck.

Bye.


How to use svn list svn+ssh://user@host/home/svn/myrepo without SVN_SSH path.

It is better to store the command ssh -l user -i /home/user/.ssh/id_rsa in the file ~/.subversion/config in [tunnels] section:

[tunnels]

ssh = ssh -l user -i /home/user/.ssh/id_rsa

and then do svn co in single command.
Works both Linux and Windows. The config you could find in the directory  C:\Users\user\Application Data\Subversion.


You can find all details on ubuntu wiki about how to prepare packages to install offline with aptitude.

Use apt-offline :

apt-offline allows you to easily upgrade or install new packages on your offline PC, by using another online PC.

sudo apt-get install apt-offline

Upgrading

On the offline PC:

sudo apt-offline set /tmp/apt-offline.sig
On the online PC:

sudo apt-offline get C:\apt-offline.sig --bug-reports --threads 5
On the offline PC:

sudo apt-offline install /media/USB/apt-offline.zip

Installing

On the offline PC:

sudo apt-offline set abuse-offline.sig --install-packages abuse --src-build-dep --install-src-packages abuse
On the online PC:

sudo apt-offline get abuse-offline.sig --no-checksum --bundle abuse-offline.zip
On the offline PC:

sudo apt-offline install /media/USB/abuse-offline.zip

More info :

apt-offline homepage
apt-offline upgrade howto
apt-offline install howto


Is it possible to use wildcards with Geeqie?

Geeqie has a rudimentary command line interface as follows:

andrew@ilium~$ geeqie -h
Geeqie 1.3
Usage: geeqie [options] [path]

valid options are:
  +t, --with-tools                 force show of tools
  -t, --without-tools              force hide of tools
  -f, --fullscreen                 start in full screen mode
  -s, --slideshow                  start in slideshow mode
  -l, --list [files] [collections] open collection window for command line
      --blank                      start with blank file list
      --geometry=XxY+XOFF+YOFF     set main window location
  -r, --remote                     send following commands to open window
  -rh,--remote-help                print remote command list
      --debug[=level]              turn on debug output
  -v, --version                    print version info
  -h, --help                       show this message

andrew@ilium~$

Most satisfactory command line that would come close to your needs would be something like:

geeqie --without-tools --list *.png

So the --list option will be your friend and I tested with many regexps with no issue, and certainly wildcards worked very well. The --slideshow option was pretty cool too...