Infinite Login Loop after upgrade to 20.04

So, after plugging through XORG docs for hours, I decided to check the distro upgrade logs and found one little line stating my AMD GPU drivers failed to update properly.
Had to uninstall the drivers completely (which also gave me a bit of trouble), but finally came through.
Followed the instructions to fix it here:
AMD GPU Installation and Configuratoin


How to configure Intel Wireless N 7260 on Ubuntu Server 20.04.1

Bingo! A great article by Yu Ping solved this for me: https://medium.com/@yping88/how-to-enable-wi-fi-on-ubuntu-server-20-04-without-a-wired-ethernet-connection-42e0b71ca198
I'll describe what I did here, for others:
Ubuntu Server needed the wpasupplicant package, which isn't included in the ISO.

On a separate machine running Ubuntu Desktop, which comes with wpasupplicant, I repackaged it and its dependencies:
 sudo apt-get update
 sudo apt install -y dpkg-repack
 sudo dpkg-repack wpasupplicant libnl-route-3-200 libpcsclite1

I did this from my home folder, so that's where dpkg-repack produced the three .deb packages. Then I drag & dropped the .debs into a USB drive.

I plugged the USB drive into my machine running Ubuntu Server, mounted it, and installed the packages:
 sudo mkdir /media/usb
 sudo mount -t exfat /dev/sdb1 /media/usb
 cd /media/usb
 sudo dpkg -i libnl-route-3-200_3.4.0-1_amd64.deb \
   libpcsclite1_1.8.26-3_amd64.deb \
   wpasupplicant_2.9-1ubuntu4.1_amd64.deb

The final netplan I landed on is:
 network:
   ethernets: {}
   wifis:
     wlp1s0:
       dhcp4: true
       optional: true
       access-points:
         "***":
           password: "***"
   version: 2
   renderer: networkd

After configuring my netplan (/etc/netplan/00-installer-config.yaml), I applied it and rebooted:
 sudo netplan apply
 sudo reboot now

My Intel Wireless N 7260 now connects to my router, and I'm successfully pinging and running apt-get update as I type this.


How can I install Ubuntu on a 2007 Macbook Pro?

Apart from just giving this computer to someone who’s more technical - I guess I’m out of luck.

I don’t understand VMware or Oracle. The Oracle page has so much verbiage and all these different versions I wouldn’t know which one to choose.

Thanks for the effort.


Installing Windows7 on a laptop that was on Windows8, then on Ubuntu

If your laptop is trying to boot from the hard drive ignoring the bootable USB drive, then either 1) USB drive is not set as highest-prority boot device in BIOS setup; 2) the USB drive isn't actually "bootable".


Grep for a word in a file and show below and above lines too?

Suppose your file is called filename, your regular expression is foo, and you want to print matching lines and lines within 10 lines (above and below) matching lines:

grep -C10 foo filename

More generally, for n lines before and after matches:

grep -Cn foo filename

This solution will work with GNU grep (which Ubuntu and just about every other Linux-based operating system has). The -C flag is not necessarily supported in all grep implementations, though.

To print lines only before or only after matches, use the -Bn or -An switches respectively, where n is the number of lines you want before or after. For more information about an alternative way to do it, see this related question (kudos to fossfreedom for noticing the similarity).


You can resize the launcher in Unity 2D, in Ubuntu 12.04, by manually editing a few files. This link contains detailed instructions.

On later versions, you'll find a setting already in the 'Appearance' configuration window.


Is swapfile has nearly the same performance as a swap-partition. You can check it by simply issuing

free -m

it should look something like this:

             total       used       free     shared    buffers     cached
Mem:          1754       1645        109          0         42        227
-/+ buffers/cache:       1375        379
Swap:         1023        245        778

since sudo swapon didn't throw an error it should have been successful. Now you can make this permanent by editing fstab: sudo nano /etc/fstab. On the last line add:
    /swapfile swap swap defaults 0 0
with /swapfile [TAB]swap[TAB] etc... (so no spaces).

You can read more at the Ubuntu Wiki swap FAQ


How do I set up Ubuntu Server 10.04 LTS to serve as a samba Primary Domain Controller uses pam modules to authenticate against an LDAP server?

There are guides like this one which look at this issue thoroughly.

I find this quite difficult to answer, given all the variables. Since samba and openldap need some extra configuration, an answer here might not be complete.


Boost installed via Boost.Numpy not compatible with newer version

As you do not want to upgrade to 18.04 LTS, so let's stay on 14.04 LTS.
But create Ubuntu 18.04 LTS schroot in it with new Boost here:

sudo apt-get install schroot debootstrap -y

cat <<EOF | sudo tee /etc/schroot/chroot.d/bionic.conf
[bionic]
description=Ubuntu 18.04
directory=/srv/chroot/bionic
root-users=$USER
type=directory
users=$USER
EOF

sudo mkdir -p /srv/chroot/bionic
sudo debootstrap bionic /srv/chroot/bionic

cat <<EOF | sudo tee /srv/chroot/bionic/etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu bionic main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu bionic-security main restricted universe multiverse
EOF

schroot -c bionic -u root apt-get update
schroot -c bionic -u root apt-get install software-properties-common sudo
schroot -c bionic -u root apt-get install libboost1.65-dev

Do not forget to change root to this chroot when you want to compile Boost-NumPy stuff:

schroot -c bionic

After this command the command prompt will change from user@host:~$ to (bionic)user@host:~$ and you can run compilation inside this shell.

I previously tested this method with other applications.
Currently I have 12.04 LTS (now EOL) schroot inside my 16.04 LTS for some development tasks.


lshw unclaimed memory and processor core

The maximum supported RAM for that model is 4GB so it won't utilize the second 4GB stick of RAM. Your options are to upgrade the motherboard to one that supports more RAM or obtain a different system that can or live with 4GB and add swap space as necessary to support your needs.

Sources: http://www.cnet.com/products/acer-aspire-4520-5950-14-1-turion-64-x2-tl-58-2-gb-ram-120-gb-hdd/specs/

Experience


First of all you would need to install the OpenVPN client. After that,
If you got an *.ovpn file from your vendor, then you can refer to this thread to get a quick start:
How to setup OpenVPN Client
Otherwise, you would need to refer to "Step 8 — Creating the Client Configuration Infrastructure" as documented in this link:
How To Set Up an OpenVPN Server on Ubuntu 18.04.
I hope this helps.


Casio fx-9750GII calculator file transfer

Casio provide an application called FA-124 that can be used to transfer files from a Windows computer to a 9860GII or 9750GII (or similar). You could try running this in WINE but this of course isn't an ideal solution since it's not a native application.

Alternatively, there's a project written by Andreas Bertheussen called xfer9860. I found this didn't work out of the box with my CASIO fx-9860GII calculator - my understanding is that CASIO changed how the communication protocol worked with the "GII" calculators which causes the xfer9860 utility to not work with the newer calculator models since it was designed for a fx-9860G model.

I searched around and found some forum posts with information on what parts of the code needed changing. After modifying the code given in the forum posts I was able to get the project to compile and transferring files in both directions worked without any issues.

I have a fork of the original project on GitHub which includes the patch
I talked about above. Whilst I've only tested this with a 9860GII calculator, I'm optimistic it will work with a 9750GII as long as you're not trying to transfer G1A files (add-in applications), since the 9750GII's software doesn't support running user-supplied add-in applications.

It's worth noting you can upgrade the 9750GII's firmware to the 9860GII's in some cases since the 9750 is essentially a 9860 with dumbed-down software and a lower price point (though this will void the warranty) so this might be a good idea if you don't have any luck at first with the transfer application.


how to restart java/flash from command line?

Flash typically isn't persistent but can hang. For Chrome and Firefox (at least) the Flash plugin runs under the following guise (If you're using flashplayer-nonfree):

/usr/lib/nspluginwrapper/i386/linux/npviewer.bin --plugin /usr/lib/flashplugin-installer/libflashplayer.so --connection /org/wrapper/NSPlugins/libflashplayer.so/30310-2

To find the pid you could simply run the following from the command line:

ps -aef | grep flashplayer

This should produce an eight columned list. The second and third columns are the pid and parent pid (respectively) so you should be able to just run kill <pid> replacing the bracketed pid with the numerical PID.

As for restarting the flashplayer plugin it should automatically start up again on the next invocation (or refresh) of a page requiring flash.


Will removing Open JDK stablize crashing ubuntu?

I found the solution here, which is to just add the line

-Dorg.eclipse.swt.browser.DefaultType=mozilla

to your eclispse.ini

The eclipse.ini can be found at

usr/lib/eclipse/eclipse.ini

Also the bug report is here


If I had to guess I would say you need to install the closed source video drivers.

Type : Additional Drivers in the Dash.


How can I lower the memory usage in nautilus elementary?

It seems it was not Dropbox or Ubuntu One after all. I disabled some other plugins: coverthumbnailer, eicel, ground control, etc, and restarted nautilus.

Memory usage dropped to 45MB. Much better!
I will continue to try to see if there are any other culprits, and also if I can narrow down the cause to one or two plugins, but I'm satisfied for now.


Is there a Quickly command to completely remove a project

I do not now if my approach is the best practice!

But if you have performed a quickly install in the directory beforehand!

Then i would cd to the directory and run : quickly uninstall
Then  cd ..   and do rm -rf  .
This approach works for me! ;)


How can I install Gangal's font in Linux?

I solve that by following steps.
Step1:- I copy Gangal's fonts from /home/your_username/.wine/drive_c/windows/fonts folder. (I was already installed Baraha and Sopi marathi) or यॆथुन आपण गांगल फाॅन्ट डाउनलॊड करु शकता.you can download it from here.

step2:- open terminal by Ctrl+Alt+T
नंतर आपल्या संगणकात टर्मीनल उघडा. टर्मीनल उघडण्यासाठी Ctrl+Alt+T असॆ एकाच वॆळी टाईप करा. नंतर टर्मीनलमध्यॆ पुढील कमांड टाईप करा.
step3:- type command in terminal sudo -H nautilus
sudo -H nautilus असॆ टर्मीनलमध्यॆ टाईप करा. नंतर एक फॊल्डर ओपन हॊईल.

step4:- open folder /usr/share/fonts and copy Gangal's fonts into that folder.
ओपन झालॆल्या फॊल्डरमध्यॆ /usr/share/fonts ही फॊल्डर शॊधून त्यात फाॅन्टस् टाका.
step5:- after copy close fonts folder close terminal.
नंतर टर्मीनल व ओपन झालॆली फॊल्डर बंद करा.

Gangal's fonts in Open Office Linux.
ओपन आॅफिस मधील गांगल फाॅन्ट
my source :- How to open /usr/share/fonts folder into graphical root privilege?


18.04 playonlinux extremley frustrating bug

This is only a temporary work around and the problem should be filed as a bug appropriately.

The following line will change the size of the add window in PlayOnLinux.  Copy and paste it to a terminal window to change the size:

sudo sed -i 's/windows_add_size = 25/windows_add_size = 75/' /usr/share/playonlinux/python/lib/Variables.py

To undo the changes copy and paste this line:

sudo sed -i 's/windows_add_size = 75/windows_add_size = 25/' /usr/share/playonlinux/python/lib/Variables.py

Hope this helps!


First, BACKUP YOUR DATA. I really, really mean that.

Since partitions have to be contiguous, you'll have to move the free space to either end of sda4 (did you really mean sda4, the Win 95 partition?

Boot from a Live CD containing gparted, and run gparted. Do NOT try to boot from disk and run gparted on the same disk.

Use gparted to move partition sda9 up 20GB (to the end of the free space). This will put your 20GB free space between sda8 and sda9.

Repeat moving sda8, then sda7, then sda6, and finallysda5 up 20GB. This will put the free 20GB between sda4 and sda5.

Using gparted, extend sda4 to include the 20GB.

Now, all that's left is to inform Windows that it's disk has grown. I don't know how to do that, and this is the wrong place to ask.

Having the disk partitioned the way you do is sub-optimal. Read partitioning How-Tos, etc. at the Linux Documentation Project, at IBM Developer Works, at ccfl.edu, and at LinuxQuestions.

The 'good' way (IMHO) to partition a disk is to have a few, not too big, partitions at the beginning of the disk (/boot, swap, foreign Operating Systems), then an "Extended" partition covering the rest of the disk, with the rest of the partitions allocated within it.

BACKUP YOUR DATA!


Stuck at GRUB command line after editing grub.cfg and other changes

Have you tried to boot with a LiveCD, and fix with Boot-Repair?

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

boot-repair

It is straightforward to use, and worked for me before.

and it allows yo to change kernel options as well:


How do I use the lock-keys-applet in Unity?

Currently, there is no way to use Gnome panel applets in Unity. The only panel applets that work are indicator applets.

You can use another indicator applet called "Indicator-Keylock" To install it, type the following two commands into your terminal:

sudo add-apt-repository ppa:tsbarnes/indicator-keylock
sudo apt-get update && sudo apt-get install indicator-keylock

Then simply run the application and that should do it.

If you want a certain type of icon, you can install one of these three to match their respective themes:

sudo apt-get install indicator-keylock-ubuntu-mono
sudo apt-get install  indicator-keylock-humanity
sudo apt-get install indicator-keylock-elementary


Integrated Graphics Controller is not listed in Ubuntu 14.04

The intel-linux-graphics-driver is probably the easiest way to install the correct intel linux graphics driver. This package is provided by intel's Open Source Technology Center

To summarize thier instructions:

Download the latest deb file from the downloads page.  The latest installer, intel-graphics-installer-linux-1.0.7 should work for Ubuntu 14.04. Install this package using:
sudo dpkg -i intel-linux-graphics-installer_1.0.7-0intel1_amd64.deb
In order to "trust" the Intel® Graphics Installer for Linux*, you will need to add keys to Ubuntu's software package manager ("apt"). Open a terminal, and execute these line:

wget --no-check-certificate https://download.01.org/gfx/RPM-GPG-KEY-ilg -O - | \
sudo apt-key add -

wget --no-check-certificate https://download.01.org/gfx/RPM-GPG-KEY-ilg-2 -O - | \
sudo apt-key add -

Once installed, you can find the Intel Graphics Installer for Linux* in your application dashboard. Just look for our logo, or begin typing 'Intel'. If you are a power user, you can open a terminal and execute: intel-linux-graphics-installer

Not sure which Dell Inspiron you are using, but I believe that my solution should work for all of them.


Need a MP3 ID3 tagger, and cover fetcher

EasyTAG

You can try EasyTAG, a nice graphical editor for tags in mp3 and aac files.


Your problem could, in both Windows and Ubuntu, be caused by a failing Hard Disk drive it may be worth scanning the disk in Windows to see how good the HDD is.

If  it has bad sectors, it may be worth your while to Google the cost of a new Drive and loading which ever version of Ubuntu you prefer.

Once you change to Ubuntu, you will not want anything else.


Libreoffice 5.4.5.1 gets access denied on NFS mounted filesystem

Temporary solution till the reboot (see this bug libreoffice cannot open a document not within $HOME):

sudo apparmor_parser -R /etc/apparmor.d/usr.lib.libreoffice.program.*

Permanent solution to disable user profiles:

sudo ln -s /etc/apparmor.d/usr.lib.libreoffice.program.* /etc/apparmor.d/disable/


Confusing behavior when running script from cron

The Maim screenshot tool aims to be a better choice than scrot. Systemd.timer works as a time-based activation. By default, your timer activates a service with the same name. Scheduling your task, you can either use a real-time timer defined by calendar expressions or monotonic timers that start the moment the timer itself activates (or you can combine them both).
/etc/systemd/system/maim-screenshot.timer:
[Unit]
Description=Take a screenshot every 15 minutes.

[Timer]
OnBootSec=5m
OnUnitActiveSec=15m

[Install]
WantedBy=timers.target

/etc/systemd/system/maim-screenshot.service:
[Unit]
Description=Maim Screenshot service.

[Service]
UMask=0077
ExecStart=/opt/bin/maim_screenshot.sh

The script iterates all logged-in sessions, looking for x11 sessions. The script then tries to use the user's Xauthority file located in the user's home directory. The Xauthority file will allow maim to run as root.
/opt/bin/maim_screenshot.sh
#!/bin/bash
#
# Based on maim (make image) utility.

# Screenshot folder.
mkdir -m 750 -p /opt/images; images=$_

b=($(loginctl show-seat seat0 \
    -p Sessions --value --no-legend))

mapfile -t < <(loginctl show-session ${b[@]} \
    -p User -p Display -p Type --all | tr -s \\n)

declare -A A
((c=${#MAPFILE[@]} / ${#b[@]}))
for ((d=0, e=0; $d < ${#b[@]}; d++, e+=$c)); do
    A=()
    for f in "${MAPFILE[@]:$e:$c}"; do
        [[ $f =~ ^([^=]*)=(.*)$ ]] && \
        A[${BASH_REMATCH[1]}]=${BASH_REMATCH[2]}
    done
    if [[ ${A[Type]} = x11 ]] \
        && [[ $(getent passwd ${A[User]}) \
        =~ ([^:]*:){5}([^:]+) ]] \
        && [[ -r ${BASH_REMATCH[2]}/.Xauthority ]]
    then
        XAUTHORITY=${BASH_REMATCH[2]}/.Xauthority \
        maim -x "${A[Display]}" -i root "/$images/screenshot_$EPOCHSECONDS.jpg"
    fi
done
exit 0

Last we need to make the script executable and start the timer.
$ chmod +x /opt/bin/maim_screenshot.sh
$ systemctl enable --now maim-screenshot.timer


FIXED! Apparently, X wasn't configured properly. After reinstalling X11, I tried Xorg -configure, but it kept talking about another X process running. I went and got the 3.7.7 kernel, rebooted, and got into low graphics mode. Was able to get it to configure from there. This whole process has been very educational, but I'm glad it's over.


How do I use screen sharing in Ubuntu GNOME?

To connect to your VNC server, I recommend you use remmina.

If it is not installed by default, you can install it, by typing the following in a terminal:

sudo apt-get install remmina

However, if you want to do remote admin work, it's a good practice to use the command line and ssh.


Tata Photon 3g ZTE MF190 detected in Ubuntu 13.04 but not connected

Downloaded Sakis3g from http://sourceforge.net/projects/vim-n4n0/files/sakis3g.tar.gz/download and executed the script on the terminal.Followed the connection steps guided by the script and able to connect internet now through ZTE MF190 USB modem distributed by TATA PHOTON 3G - Thanks


How to run an executable file through JRE by default?

Ubuntu Tweaks is a useful program that can manage this I think.  Install and run it, then go to Admins > File Type Manager, select Category 'All' then find 'Java archive'.  Edit that, and if it is not on the list, use the Add button, and select it, or use the 'Custom command' option at the bottom.


Transport endpoint is not connected error when trying view my flash drive

It turns out this is an issue on the Live CD. Once you install Ubuntu, the issue goes away.


sudo subl and desktop entry for sublime text launches different apps

I solved it.

The problem was that the packages were installed in .config/sublime-text-3 and the owner of the directory was root, so the desktop entry did not have access to it.

sudo chown -R username:username /home/username/.config/sublime-text-3

The above command solved it.


Choosing OS from startup - too many options

You can modify the grub.cfg. It is located in

/boot/grub2/grub.cfg

This file is laid out in an xml format. Looking at it you can gain an intuition as to how you would like it modified. I recommend commenting out the entries you dont want by putting # at the start of all lines relevant to the entry. Because you are new to this interface, I am showing you gedit, it works like a supercharged Windows Notepad.

I recommend backing up your grub file with the first command.

$sudo cp /boot/grub2/grub.cfg ~/grub.cfg.bak
$sudo gedit /boot/grub2/grub.cfg

Now you can modify at will, because you have root permissions.

In the event you want to undo your modifications

$sudo update-grub

will automatically detect,and setup all detected bootable partitions.


My TV is a Panasonic TC-P50X1 (50" plasma), upon installation of Ubuntu 13.04 I connected my HDMI cable to find that Ubuntu did not display correctly ...e.g. display are was larger than my external screen (Panasonic TC-P50X1). This can be fixed (at least in my case for sure) by downloading the ATI binary x.org driver (proprietary) w/Optional add-on via software center. Install, reboot, then navigate via dashboard ("start button" for you Windows familiar persons) software & Updates, then additional drivers, try each of the drivers that you should see following these steps apply changes then reboot if any of them work your screen will display correctly upon reboot. Good luck!!!


Ubuntu installation VS UEFI on Dell XPS 13 9343

I have received from Dell the Dell iso image for 14.04. This should load the default Dell BIOS.

An update to A04 BIOS will be necessary to avoid some issues with the keyboard. Additionally, you'll want to download and install the packages to avoid issues with your trackpad; click here for information.

Hope this helps.


You can achieve this as follows:

Turn off your printer.
Press and hold the feed button.
Then press the power button while holding the feed button for 10s.
            Maybe there is some blinking (mine had nothing).
Turn on again. (Should be clean and ready!)

I hope that helps someone, I've been struggling with that for years.


Ubuntu 14.04 sendEmail issue: invalid SSL_version specified at /usr/share/perl5/IO/Socket/SSL.pm

I was able to find a resolution by deleting this faulty AWS instance and deploying a new one, again of Ubuntu Server 14.04, only this time I followed these instructions to get sendEmail going: https://ubuntuforums.org/showthread.php?t=1127478

sudo apt-get install sendemail
sudo apt-get install libio-socket-ssl-perl

I assume that my problem was with the old command I was using to install perl5 before (but don't know for sure, or if so, why):

apt-get install libio-socket-ssl-perl libnet-ssleay-perl perl


It worked after reinstalling resolvoncf, as described in this link: "ping: unknown host google.com" but IP's works fine

sudo apt-get remove --purge resolvconf && sudo apt-get install --reinstall resolvconf

Thanks to @chilli555 for walking me through the first stages of the problem.


How to add a command permanently to grub2

If you add this code to /boot/grub/custom.cfg (creating the file if it doesn't already exist) then it will be executed just before the grub menu is displayed.

I don't know what exactly those outb commands are doing so I have no idea if it is safe to run them at all, or if running them will interfere with display of the grub menu, so do this at your own risk.


you can check this repository.
open terminal ,add the following repository

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

This PPA provides updated X (2D) and mesa (3D) free graphics drivers for radeon, intel and nvidia hardware.

https://launchpad.net/~oibaf/+archive/ubuntu/graphics-drivers


Unable to mount Windows 10 partition; it “is in an unsafe state” (don't want to disable fast start)

You fight against the system, but it will be in vane.

Fast start in MS Windows does not fully closes file system, as one of the measures taken to allow fast resume, leaving these potentially in a "dirty" state.
Linux will not by default mount a volume that is in a "dirty" state.

Thus, you will not be able to mount the drive in Linux if you insist on holding on to "fast start" in Windows. Before mounting the drive in Linux, make sure any other operating system that has worked with it before, has properly closed the drive. One way to ensure that Windows closes it properly is to turn off "Fast resume".

As you indicate a read-only mount would be OK, you can mount manually:

Make a mount point, e.g. sudo mkdir /media/xxx/Windows
Mount the drive read only: `sudo mount -t ntfs -o recover,ro,uid=1000,gid=1000,umask=222 /dev/sdb1 /media/xxx/Windows

The option recover will cause the file system to be mounted read only if the drive is unclean. As such, the option ro may not be needed: it will cause the partition to be mounted read only anytime, even if the volume is clean. uid and gid assign the owner and group. The umask option sets the permissions of the file system.

If that works, then you may include a corresponding entry in /etc/fstab to have the mount performed automatically at startup.


Try help cd:

 Options:
    -L  force symbolic links to be followed: resolve symbolic links in
    DIR after processing instances of `..'

    -P  use the physical directory structure without following symbolic
    links: resolve symbolic links in DIR before processing instances
    of `..'

    -e  if the -P option is supplied, and the current working directory
    cannot be determined successfully, exit with a non-zero status

    -@  on systems that support it, present a file with extended attributes
        as a directory containing the file attributes


What to do when keyserver.ubuntu.com is down?

The short answer is Yes, with the addition of "sooner or later".

Whatever the sync happens sooner or later depends on what alternate key server you choose. A good choice is picking another one of the SKS Keyservers.


You should be able to just install the Deb file from DISA's Forge.mil. Back when I had my CAC it worked just fine.

Then you need to go to (again this is from memory) the Firefox settings. Then the Advanced tab. Encryption sub-tab -> Security Devices. Then hit the Load button and name it whatever you'd like. Then for module filename, navigate to /usr/lib/libcackey.so (Hey, what do you know, I still have my CACkey security device...). Then hit OK. That's it! You may have to restart the browser to get it to load up right.

Admittedly, this was from a 32-bit install, but the process should be the same.

You will also need to install the pcscd package if you haven't already to get Ubuntu to recognize your card reader (I have a Gemalto Gem Plus that worked beautifully)


Why is the USB installation stopping just after it starts?

Problems with ACPI can be caused by Firmware bugs. I'd recommend to try to update the Mainboard firmware (BIOS), and if that doesn't help, try to use the latest Ubuntu version. If the Linux developers get to know about buggy firmware, they often implement so called quirks, which should enable Linux to run on it nevertheless, and maybe a suitable quirk for your hardware is already included in the latest Ubuntu.

You can also try to disable ACPI when booting, but if you don't get it running after installation, you might not be able to use power management features. To disable ACPI, you can pass the ACPI=off parameter to the kernel. A temporary way to do this is to press "e" in the GRUB menu to edit the current selection, then add the paramter in the appropriate line (the one that also has quiet written in it) and then press CTRL+x to boot. For a permanent setting after installation, edit /etc/defaults/grub. For more details see http://wiki.ubuntu.com/DebuggingACPI


I cant install ubuntu in my dell laptop using bootable pendrive

If you used Rufus to create the installation USB stick, then you’ll need to download version 3.14 (or newer) and recreate the media. Otherwise, there is a security patch that will need to be installed.
This comes from the developer of Rufus who recently provided a bit of detail about why the issue is happening


I change the sources.list to another server(NetEase 163 Mirrors), then the problem was fixed.


If as it appears you installed the snap version of gimp in 16.04 you won't find it in the Dash. This should allow it to appear

sudo apt install snapd-xdg-open
Then try a log out/in, (may work) or a restart will definitely work

Also note that the snap version of gimp installed from the software manager will be confined. If you need it to open files from other partitions then remove the snap & re-install using the --classic option. Ex.

sudo snap remove gimp

sudo snap install gimp --classic

Note that there is little support for bugs with snaps, no launchpad bug reporting, ect. More like what you get installing apps from play stores like google's and apple's.


You can use tee;

echo 3 | sudo tee /proc/sys/vm/drop_caches

Or you can simply run a bash string as sudo:

sudo bash -c "echo 3 > /proc/sys/vm/drop_caches"


Dependency issue while installing libgtk-3-dev on Ubuntu 18.04

Thank you Terrance for pointing me to the right direction.
Had to enable "Recommended updates (bionic-update)" under Software & Updates->Updates and after that I was able to install libgtk-3-dev 3.22.30-1ubuntu4 even without explicitly specifying the version.
Recommended updates (bionic-update)


I ended up refreshing my HOME directory, cleaning out all kinds of old "junk" from it, paying special attention to cleaning out the .config directory.  I also created a new user so I could get a fresh copy of the .bashrc and .profile files.  This appears to have solved this (and another) problem.


Panasonic cards are formatted using exFAT.
To automatically mount exFAT filesystems, install following 2 packages:

$ apt-get install exfat-utils exfat-fuse

Cheers.


How can I set /etc/network/interfaces to just autoconfigure ipv6?

The magical /etc/network/interfaces keyword when you don't want any configuration is manual. If I understand your question correctly, you will want to define eth0 the following way.

auto eth0
iface eth0 inet manual
iface eth0 inet6 auto


Set up Unison for use over internet with dynamic ip

The easiest way would be to use a third machine as a server that your home and office computers have ssh access to and storage access to (see star topology). Since your ISP doesn't provide you with a static IP, you'll probably need to use a third-party service (something like rsync.net).

Actual instructions for setting this up would be a bit too general and lengthy to be a good answer on this site, so for info on that see the following references:

The Unison Tag Wiki on this site
A good guide to setting up Unison by Philip Guo
The Unison Manual


Seems having custom stuff in ~/.xinputrc was the culprit. But no error message in the GUI, only when running im-config -n ibus did it show a warning.


Clean you fans. many of times due to dust, these issue occurs.

Also, You need to install the Graphic Card Driver. HP should have provided you with either NVIDIA or ATI Raedon

NVIDIA Graphic Card -

Just go to "Software Source" app -> Addition Drivers and select Proprietary Driver. It will install the driver for you. Then restart the machine.

ATI Catalyst - ATI Raedon Driver

Do not use Additional Drivers for ATI. Its giving problem for me atleast. I followed below steps:

First of all download - ATI Catalyst driver from official site. I am using beta version and its working beautifully. Download the driver from Official ATI Catalyst Driver

Execute below steps in terminal sequentially:

For building ATI packages for Ubuntu 13.04

Extract the ATI Driver archive to a folder.

sudo sh ./amd-*.run --buildpkg Ubuntu/raring

32 bit packages - required if you are using 64bit OS

sudo apt-get install ia32-libs lib32gcc1 libc6-i386

Normally required packages

sudo apt-get install build-essential cdbs fakeroot dh-make debhelper debconf libstdc++6 dkms libqtgui4 wget execstack libelfg0 dh-modaliases linux-headers-generic xserver-xorg-core libgcc1

Remove old fglrx drivers if any(I advise to execute this to avoid any problems)

sudo apt-get remove --purge fglrx fglrx_* fglrx-amdcccle* fglrx-dev*
sudo rm /etc/X11/xorg.conf
sudo apt-get install --reinstall xserver-xorg-core xserver-xorg-video-intel libgl1-mesa-glx libgl1-mesa-dri libgl1-mesa-glx:i386 libgl1-mesa-dri:i386
sudo dpkg-reconfigure xserver-xorg
sudo reboot

Now, again go to terminal and execute below

sudo dpkg -i fglrx*.deb
sudo aticonfig --initial -f
sudo reboot

If required you can also install TLP. It will improve battery life.

sudo add-apt-repository ppa:linrunner/tlp
sudo apt-get update
sudo apt-get install tlp tlp-rdw
sudo tlp start

I hope, your problem will be solved. Do write back for any further issues.


I had linux mint and elementary os dual boot. Accidentally deleted elementary partition. So I used the bootable pen drive. Clicked on try the os without installing. Then connected another pen drive, backed up my files from the second partition. And then reinstalled the os. If you were not on dual boot. I don't know. But if you were try the above mentioned process. Incidental this happened yesterday(16.12.2016)


Printer not printing, ejects a blank page

Try reinstalling the printer from the System Settings > Printers menu. Check the driver you are using on it, and send a test page to print. Also, try to print something from the Document Viewer and not from the Google Chrome, sometimes the problem is with the browser printing.


Run this command,

dpkg -l | grep -i mysql-server

This should return something like this.

ii  mysql-server
ii  mysql-server-5.6
ii  mysql-server-core-5.6

You want this one mysql-server-5.6.

sudo dpkg-reconfigure mysql-server-5.6

This should ask you for a new password and it'll reinitialize the tables. Now you can connect like this..

mysql -h localhost -u root -p
Enter password:

And, that's the most Ubuntu/Debian way I've found to this easily.


Remove drivers intalled from Additional Drivers section

It is possible to deactivate it from the application "Additional drivers" found in your main menu under "System > Administration".

After you have deactivated the driver, you must restart your computer for the changes to take effect. Upon login after restart Unity should work again.


Ubuntu won't load, freezes on purple screen

I was able to find the answer by going an alternate route, suggested here:
How can I uninstall a graphics package in recover mode?

Though I had to go a roundabout way to actually use the command, I was able to uninstall the last package I had updated, and my desktop loaded back up.


Installing Ubuntu 13.04 on MacBook Air (Mid 2012) [HELP]

If you plan to install OS X on the computer in the future, do so now. OS X includes tools for managing boot loaders on a Mac that are more-or-less necessary for managing the boot process in EFI mode. Once you've re-installed OS X, you can install rEFInd or use bless to register GRUB as a valid boot loader.

If you want the computer to be a Linux-only system, I have two suggestions; try whichever sounds best to you:

Download the USB flash drive version of my rEFInd boot manager and write it to a USB flash drive. Try booting Linux using that. If it works, copy the entire contents of the USB flash drive to your /dev/sda1 EFI System Partition (ESP) and see if you can boot without the flash drive. If this works, leave it that way.
Use gdisk (in the gdisk package) to convert the partition table from GPT to MBR: Type sudo gdisk /dev/sda, then type r to enter the recovery & transformation menu, then type g to convert to MBR and answer the prompts. When you're done, reboot into an emergency system and re-install GRUB. This process will convert the system to boot in BIOS mode rather than in EFI mode. A Linux-only install on a Mac is likely to be easier to manage in BIOS mode than in EFI mode.


I added a second harddrive and now I am trying to format the first one and I am having an issue

Try with GParted.

sudo apt-get install gparted

Open it through the menu or typing sudo gparted in terminal.

Choose the disc you want to format, unmount it, select the partition type and apply the changes.

A guide with screenshots: http://itsfoss.com/how-to-format-a-sd-card-or-usb-drive-in-ubuntu-12-10/


Using command line to copy html file to clipboard

I found a similar question Copy the contents of a file into the clipboard without displaying its contents - Unix & Linux :

Install xclip using:

sudo apt install xclip

To copy the script:

xclip -sel c < yourfile.html

To copy the text (suggested by KJA in a comment):

xclip -t text/html -sel c < filename.html


Does duplicity detect when a Backup Is Already In-Progress?

As of 0.6.23, duplicity will do file locking on the cache directory associated with the backup.  It is possible to have two duplicity instances running as long as they are different backups.  Duplicity will not allow overlap of the same backup.

The previous versions would not detect the problem and that would potentially cause problems when trying to restore the overlapping backups.

...Ken (Duplicity Maintainer)


Can't install Project Prey on Ubuntu 14.04

This command worked for me:

sudo /usr/lib/prey/versions/1.5.0/bin/prey config gui


Minimize, Maximize, Close buttons gets hidden under top panel

The same happened to me as well. It's quite annoying and I don't have a perfect solution although here is what worked for me.

Press win_logo + w choose that particular window and press and hold alt and move the window until you can see the buttons.


Try upgrading to version 3 :

  sudo add-apt-repository ppa:jacob/media
    sudo apt-get update
     sudo apt-get install rhythmbox

Important note: a recent update broke the installation of librhythmbox-core8 (resulting in an error like this: dpkg: error processing /var/cache/apt/archives/ibrhythmbox-core8...deb trying to overwrite...). Fix this by running the commands below:

  sudo dpkg -i --force-all /var/cache/apt/archives/librhythmbox-core8_3.0.1-1ubuntu2~*.deb
  sudo apt-get install -f


Is filemanager-actions working with 19.04?

The FMA is installable from universe pocket since Ubuntu 19.04 (disco dingo, now EOL) and then on supported 20.04 LTS (focal fossa) with
sudo apt-get install filemanager-actions

Then you need to run fma-config-tool (FileManager-Actions Configuration Tool) and make sure that you have checked checkboxes

Nautilus Item
[v] Display item in selection context menu
[v] Display item in location context menu

and have saved settings.
The documentation is available from official help which is available from fma-config-tool with F1 (or with yelp ghelp:fma-config-tool).
Then you need to install Nautilus Actions package with
sudo apt-get install nautilus-actions

then restart Nautilus with nautilus -q.
The corresponding menu item will be shown in the right mouse click menus:

Note: the actions set in fma-config-tool will be shown in Caja in Nemo too. In these cases we need to install corresponding caja-actions and/or nemo-extension-fma packages.


When you install it, you are given the option to add it to the launcher, so if you want it in the launcher, you can have it in the launcher. The fact the launcher does not work properly could be a bug with it, or it being the wrong launcher - do you get a similar result to when you select GMail normally in the dash/menu?

If you don't want it, you should be able to right click on the icon and remove it:


initctl: event failed after "login: *Starting CPU ..."

Similar errors were apparently caused by accidental removals.
Try getting the log of apt-get, using any of the methods outlined below the line (or otherwise)

cat /var/log/apt/history.log | grep Remove

Look for unintentional removals. Even if you knew which ones were removed, past stories indicate mixed results. Lots of accidental remavals in Ubuntu end up costing a reinstall. It does seem similar to DM issues though.
In which case

sudo apt-get install lightdm
sudo dpkg-reconfigure lightdm

should do.

I don't think it's an issue with initctl itself. We need more information; logs would help. Means and directions which can give hints to the problem follow.

Does Ctrl+Alt+F2 or similar work? It gives you full shell access, it means most of your OS is working.

Are your other OSes working normally? Easy way to tell if it's a hardware issue (temporary one?).

Looking at logs and command history (using a live CD, another OS or mounting your installed partition elsewhere) might help shed some light on what exactly went wrong.
For example, the system could've gotten messed up irrespective of your actions(unlikely), or something else you did which becomes effective after a reboot.

Some of the packages you removed in https://askubuntu.com/a/674294/600169 could be installed previously, and just reinstalled when trying to install PacketTracer (definetely unlikely to cause the initctl error). Also, you could double-check if you've removed other packages along with the purge.


Xsane hangs when starting "Scanning for devices"

The problem was EMC; if I first start Xsane's dialogue, then EMC, it works fine.


How do I change permission back to where it was?


Execute a command on local computer from a connected remote SSH host?

@62mkv's answer is a much better solution. Use that.

For completeness and curiosity though, if you have an ssh server running on your local machine, you could create an ssh tunnel to allow ssh connections from the remote host on port 20202 back to the local one on port 22. Example command:

ssh -R20202:localhost:22 remoteuser@remotehost.com

This will start an ssh connection, but also set up a tunnel back to the ssh server running on your machine. Then you can do this, when ssh'ed into the remote host:

ssh -p 20202 localuser@localhost

Of course, this can quickly get confusing - especially if the technique is nested more than once. It adds a bit of latency, too - since everything you execute on your local machine is bounced through the remote host.

Additional information about ssh tunneling for those whose curiosity hasn't been satisfied yet can be found in answer to this unix stackexchange question.


What is the command to open a specific directory in a new tab in nautilus?

EDIT:

As a result of ongoing insight, below an improved version of the script.

Due to the fact that the script now pastes the path instead of typing it (using xdotool), the script is more reliable. Although the script is not actually faster (consider it is a work around, due to nautilus' lack of cli options) the script "feels" more "crispy". Fact remains however that the script simply needs to wait for the GUI to be ready for each next step, since it simulates user actions. Timing inside the script is on the save side; on faster systems, one might be able to do some optimization.

Use the script exactly as explained in the original answer; it (still) needs both wmctrl and xdotool to be installed. This version furthermore rquires xclip:

sudo apt-get install xclip

The new version of the script:

#!/usr/bin/env python3
import subprocess
import sys
import time

arg = sys.argv[1:]
arg = arg[0] if arg else ""

def get(cmd):
    return subprocess.check_output(cmd).decode("utf-8").strip()

try:
    pid = get(["pidof", "nautilus"])
except subprocess.CalledProcessError:
    wlist = []
else:
    wlist = [l for l in get(["wmctrl", "-lp"]).splitlines() if pid in l\
             and "_NET_WM_WINDOW_TYPE_NORMAL" in get(["xprop", "-id", l.split()[0]])]

if wlist:
    w = wlist[-1].split()[0]
    subprocess.call(["wmctrl", "-ia", w])
    subprocess.call(["/bin/bash", "-c", "printf '"+arg+"' | xclip -selection clipboard"])
    subprocess.Popen(["xdotool", "key", "Control_L+t"])
    time.sleep(0.4)
    subprocess.Popen(["xdotool", "key", "Control_L+l"])
    time.sleep(0.2)
    subprocess.call(["xdotool", "key", "Control_L+v"])
    subprocess.Popen(["xdotool", "key", "Return"])

else:
    subprocess.Popen(["nautilus", arg])

Old answer:

Nautilus does not have a command line option to open a new tab, however, you can "fake" it with the help of a script, using xdotool and wmctrl.

How to use

Install (if necessary) both wmctrl and xdotool:

sudo apt-get install xdotool wmctrl

Copy the script below into an empty file, save it as nautilus_tab (no extension) in ~/bin, and make it executable.
If the directory ~/bin didn't exist yet, create it, and run source ~/.profile to make the directory "show up" in $PATH. (or alternatively, log out/in)
Test-run it by running the command:

nautilus_tab <directory>

It should:

if no nautilus window is open, open a new nautilus window in the directory
if a window is open, open a new tab in the directory

The script

#!/usr/bin/env python3
import subprocess
import time
import sys

get = lambda cmd: subprocess.check_output(cmd).decode("utf-8")
def run(cmd):
    subprocess.call(cmd)

try:
    arg = sys.argv[1]
except:
    arg = ""

try:
    pid = get(["pidof", "nautilus"]).strip()
except subprocess.CalledProcessError:
    run(["nautilus ", arg])
else:
    w = [l.split() for l in get(["wmctrl", "-lp"]).splitlines() if pid in l][-1]
    print(w)
    w_id = w[0]
    if len([l for l in get(["xprop", "-id", w_id]).splitlines() if all(
        ["_NET_WM_WINDOW_TYPE(ATOM)" in l, "_TYPE_NORMAL" in l])]) != 0:
        run(["wmctrl", "-ia", w[0]]); time.sleep(0.1)
        run(["xdotool", "key", "Control_L+t"])
        if arg != "":
            run(["xdotool", "key", "Control_L+l"])
            time.sleep(0.2)
            run(["xdotool", "type", arg])
            time.sleep(0.02*len(arg))
            run(["xdotool", "key", "Return"])
    else:
        run(["nautilus", arg])

Notes

The script is a workaround, to simulate user actions. As a result, the timing "inside" the script is important. I set timing to "safe" values on my system, and made it "smart" if possible. If it might not work correctly on your system, leave a comment.
The script will possibly brake if the targeted window (to add the tab to) is on another workspace
In case of directories with spaces, use quotes:

nautilus_tab '</directory/with spaces>'

If no argument (-directory) is used, the script will open a new tab in the same directory as the currently opened nautilus window. If no `nautilus window was opened, a new window will open in your home directory.


Doubled Printers in Settings/Devices/Printers

One of the solutions might be just removing the avahi service by sudo apt purge avahi-daemon.
This results in proper, only one printer entry.


This is part of my rsync backup bash file. I have had it fill / when not correctly mounted, so I had to add this:

my_mount="/mnt/backup"
# /dev/sdb4 backup_b partition on Z170, became sda4 with new NVMe drive
if grep -qs "$my_mount" /proc/mounts; then
  echo "It's mounted."
else
  echo "It's not mounted. Trying mount"
  mount -t ext4 /dev/sda4 $my_mount
  if [ $? -eq 0 ]; then
   echo "Mount success!"
  else
   echo "Something went wrong with the mount..."
   exit $?
  fi
fi

I have a lot of excludes, so use a file.

Backup your home directory with rsync and skip useless folders &

What files and directories can be excluded from a backup of the home directory?


Midori crashes randomly and often in 14.04

Do not maximize midori. It crashes in this mode. With a small window it won't crash.

I hope this is helpful.


Installation of ImageMagick software fails with "configure: error: libltdl is required"

As steeldriver suggests in their comment, it is recommended that you install imagemagick from the official Ubuntu repositories (imagemagick 6.9 for Ubuntu 18.04 - 20.10), by running:
sudo apt install imagemagick

However, if you still need to install imagemagick from source, just install the libltdl development package, as the error suggests, by running:
sudo apt install libltdl-dev


You probably installed with legacy mode and your computer doesn't know about legacy, it tries to boot in UEFI mode and searches for a UEFI/EFI partition. If it doesn't find a UEFI partition then it wouldn't boot like in your case.
When partitioning a disk for Ubuntu , if you want it to be UEFI then you should create a partition for UEFI. For example i have a 300mb fat32 UEFI partition and i flagged it when partitioning.

An example UEFI partitioning:

200-500MB FAT32 UEFI (This must be flagged)
--As much as you like--GB Ubuntu OS
--Usually twice as RAM--GB swap

In your case, you should boot from live cd/usb and partition your disk with GParted. In GParted, partition your disk with the example provided above and make sure you flagged your UEFI partition to boot and you are good to go.
After partitioning turn off the live session and start the installation , if you did everything correct, you should not be selecting a mount point for bootloader.
You can get more information from here. UEFI-Community


What ports does the Samba client require?

This is from https://wiki.samba.org/index.php/Samba_Port_Usage

  Identify on which ports and interfaces Samba is listening

  You can use netstat to identify which ports Samba and related
  daemons are listening on and on which IPs:

# netstat -tulpn | egrep "samba|smbd|nmbd|winbind" The following is a snippet of an example output:

tcp        0      0 127.0.0.1:139               0.0.0.0:*              LISTEN      43270/smbd           tcp        0      0 10.0.0.1:139
0.0.0.0:*                   LISTEN      43270/smbd           tcp        0      0 10.0.0.1:88                 0.0.0.0:*

  LISTEN      43273/samba          tcp        0      0 127.0.0.1:88
      0.0.0.0:*                   LISTEN      43273/samba          tcp        0      0 127.0.0.1:445               0.0.0.0:*
  LISTEN      43270/smbd           tcp        0      0 10.0.0.1:445
      0.0.0.0:*                   LISTEN      43270/smbd

  The above example shows, that the services are listening on
  localhost (127.0.0.1) and the interface with IP 10.0.0.1 - each on
  the listed ports (139, 88, 445,...).

  Port usage when Samba runs as an Active Directory Domain Controller

Service   Port    protocol

DNS   53  tcp/udp

Kerberos  88  tcp/udp

End Point Mapper (DCE/RPC Locator Service)    135 tcp

NetBIOS Name Service  137 udp

NetBIOS Datagram  138 udp

NetBIOS Session   139 tcp

LDAP  389 tcp/udp

SMB over TCP  445 tcp

Kerberos kpasswd  464 tcp/udp

LDAPS (only if "tls enabled = yes")   636 tcp

Dynamic RPC Ports*    1024-5000   tcp

Global Cataloge   3268    tcp

Global Cataloge SSL (only if "tls enabled = yes") 3269    tcp

Multicast DNS 5353    tcp/udp

  Samba, like Windows, supports dynamic RPC services. The range starts at 1024. If something occupies this port for some reason, it will be a
  different port (literally walked up from 1024). Remember, that there
  can be other ports too, which are related to your Samba installation
  but not provided from Samba itself, like if you run a NTP server for
  time synchronisation as well.

  Port usage when Samba runs as an NT4 Primary Domain Controller

Service   Port    protocol

End Point Mapper (DCE/RPC Locator Service)    135 tcp

NetBIOS Name Service  137 udp

NetBIOS Datagram  138 udp

NetBIOS Session   139 tcp

SMB over TCP  445 tcp

  Port usage when Samba runs as a Member Server

Service   Port    protocol

End Point Mapper (DCE/RPC Locator Service)    135 tcp

NetBIOS Name Service  137 udp

NetBIOS Datagram  138 udp

NetBIOS Session   139 tcp

SMB over TCP  445 tcp


Permissions problem after saving file from Mac

Try to add the following directive in your [data] section:

force create mode = 755

This ensures the minimal level of mode when creating a file.

From the Samba manual:

  This parameter specifies a set of UNIX mode bit permissions that will
  always be set on a file created by Samba. This is done by bitwise
  'OR'ing these bits onto the mode bits of a file that is being created.
  The default for this parameter is (in octal) 000. The modes in this
  parameter are bitwise 'OR'ed onto the file mode after the mask set in the
  create mask parameter is applied.


How to mount a NFS share in Ubuntu 16.04?

I found the following solution here. Apparrently, you have to use specific systemd options in fstab.

servername:/home   /mountpoint/on/client  nfs  noauto,x-systemd.automount,x-systemd.device-timeout=10,timeo=14,x-systemd.idle-timeout=1min 0 0


Missing fonts in sticky notes of Adobe Reader in Wine

For me, installing the Segoe fonts (e.g. from here) solved the problem.


vim cursor color change only applied upon movement

It works the same in gnome-terminal. If you wait a second it does change to the correct color, but I think that second or two are not controllable because the codes are inserted by vim based on events internally. I don't think that precise second can be fixed.


How do I add HPLIP version 3.12.2 to my repository?

There is a PPA on launchpad but from the package contents it has not been updated for sometime (it is older than the version you have manually installed) - it currently only contains a package for Lucid/Maverick and Natty.  It might be worth contacting the maintainer to see if he intends to update this for oneiric.

An alternative Debian package could be from Debian themselves.

However, remember, whilst Debian and Ubuntu share the same format, it is not always guaranteed that a package from debian will always install successfully on ubuntu due to possible differences in the packaging mechanism.

As such - if you are upgrading you will often get the latest version (at the time) of the feature freeze.  Indeed - for Precise, the 3.12.2 will be installed when you upgrade.

As such - if you have a good stable system - stick with either the version in the distro, or the latest from HP themselves.  You would rarely need to continually upgrade printer drivers during the distro-cycle itself.

Linked Question:

Which is the best way to install new hplip versions?


Undot all files and folders in an external disk

Name clashes

The first question you need to ask yourself is if there is a chance of name clashes. In other words; if there possibly exist both a hidden version and a non-hidden version of the same directory or file in one and the same directory.

From bottom to top

Assuming that is not the case, this is one of the situations you need to rename from bottom to top, since you cannot rename (move) files inside folders that were just renamed; the script will not find them anymore and break.

Making hidden files visible

Furthermore, while writing this answer, a comment of @Rinzwind just popped up above my head, mentioning pressing Ctrl+H will make all hidden files and folders visible, which is true of course.

If you nevertheless would like to rename the files and folders:

A script to do so

#!/usr/bin/env python3
import os
import sys
import shutil

directory = sys.argv[1]

for root, dirs, files in os.walk(directory, topdown=False):
    for f in files:
        if f.startswith("."):
            shutil.move(os.path.join(root, f), os.path.join(root, f[1:]))
    for dr in dirs:
        if dr.startswith("."):
            shutil.move(os.path.join(root, dr), os.path.join(root, dr[1:]))

How to use

Copy the script into an empty file, save it as rename_dotted.py
Open a terminal and type the command:

python3 /path/to/rename_dotted.py '<directory>'

where '<directory>' is the directory, needs to be in quotes if it includes one or more spaces.

As always, please first try on a sample.


How to set temperature warnings to avoid overheat?

You can use psensor to monitor the computer temperature. This is a GUI application that readout the CPU and Mainboard sensors.

sudo apt-get install psensor

After starting psensor, go to the "Sensor preference Menu", choose your CPU sensor and click on  Alarm - Activate Desktop Notifications. You can modify the temperature limit for your needs:

Can also start after login:


How to show only one week with cal/ncal command?

You can't list a week with ncal without some extra processing:

$ week=20 ncal -hbwm \
  $(date -d "01-jan now $((week-1)) weeks" +%m\ %Y) | \
  grep -e '^[[:blank:]]w|' -e "^[[:blank:]]*$week|"

-h Turns off highlighting of today.
-b Use oldstyle format for ncal output.
-w Print the number of the week.
-m Display the specified month.


Why I can't do a let with decimals in a shell? What is a BC?

There is no floating point arithmetic operation in bash. So, you can use BC to calculate it:

#!/bin/bash

n1=3.5
n2=3.6
n3=3.7
promedio=`echo $n1 + $n2+ $n3/3 | bc`
echo $promedio   # 3.5 + 3.6 + 1 = 8.1 **This might be not what you want**

BC is a simple command line calculator.

BTW, echo <expression> | bc command will send the calculation of the expression that is obtained using BC to bash.

A little explanation:

So, by encapsulating with two `, you are telling that the value
promedio is a result that is obtained by command. (In other words, it
is called command substitution, see here for more information)
By using echo you are saying that the result will be the output
of some calculation that is obtained by BC.
And there is a logical flaw in these commands, if you use bc like
this, it will divide in terms of integer, (3.7/3 = 1), so you should
use bc -l command to (3.7/3 = 1.2333...) calculate precisely.

And to divide the sum of these 3 numbers, you should properly do parenthesis:

#!/bin/bash

n1=3.5
n2=3.6
n3=3.7
promedio=`echo "($n1 + $n2+ $n3)/3" | bc -l`
echo $promedio     # (3.5 + 3.6 + 3.7)/3 = 3.60000...


you can change the default document root in

/etc/apache2/sites-available/default

Apache is mostly configure files. by changing settings in the .conf, you can achieve almost anything.

open a terminal and type:

sudo nano /etc/apache2/sites-available/default*

your file should start like:

<VirtualHost *:80>
        ServerAdmin webmaster@localhost

        DocumentRoot /var/www
        <Directory />

change Document root to wherever you want, and press Crtl+X to save and exit.

then reload apache with:

sudo /etc/init.d/apache2 restart


How to move the user cache directory [~/.cache] out of the /home directory to another partition

If you don't care about keeping the stuff there across reboots, you can use tmpfs to store the cache.

Set something like the following in /etc/fstab:

tmpfs /home/someuser/.cache tmpfs defaults,size=512M 0 0

Now, your .cache will be stored in memory instead of on disk, though if you have insufficient memory it could end up being swapped out.

A more traditional approach would be to move the directory to wherever you like and symlink it as appropriate:

mv ~/.cache /some/other/place
ln -s /some/other/place/.cache ~/


How to exit nano and save to current file automatically?

According to Nano manual

You can configure ~/.nanorc to Save automatically on exit, don't prompt

($:~)=> nano -w ~/.nanorc

# Save automatically on exit, don't prompt
set tempfile

  Note: as @cutrightjm commented - the above setting can cause major
  problems in configurations if you are not careful and modify files and auto-save on exit.


How to prevent autossh from becoming stuck once in a while?

Use the ServerAliveInterval (with a value in seconds) make the ssh client send a null (keepalive) packet over the encrypted channel every so often in order to detect a broken connection:

/etc/cron.d/autossh
@reboot autossh -f -nNT -R 3269:intranet.example.com:3269 -o ServerAliveInterval=30 public.example.com &

You should probably also set the corresponding ClientAliveInterval setting in /etc/ssh/sshd_config on your server to make the server drop dead client connections too:

# Drop dead client connections after 10 minutes of inactivity
ClientAliveInterval 600


It's possible thanks to Erich Hoover and his pipelight team. You can make yourself Ubuntu ISO after installing silverlight. You can use Ubuntu-Builder to make yourself USB runnable ISO images.

Pipelight can run flash, shockwave, silverlight and unity player through wine FDS-Team | Pipelight - Installation


will Cario Dock install as a desktop environment on CLI

Currently you need to install a desktop environment, as while it does display as a DE, it does not have a functioning window manager so it might display applications but it wouldn't be usable as a DE.


How to fix an error for an old removed package in RStudio?

Remove GEOquery from the list of required package
At some point you (or someone else) added this package as "required" in the .Rprofile.
Background:
Only the base packages are loaded on startup. However you can choose to load additional packages by adding them to your .Rprofile which you must create. This is simply a text file (called .Rprofile) with R code that is stored in your initial working directory (your home directory unless you change it). The code you place into this file will run on startup. For example you could include the following code to load a package called GEOquery:
library(GEOquery)

or
require(GEOquery)

How to remove the requirement

Determine working directory for RStudio. This can be your /home/<userid> folder, or another folder.
Find the .Rprofile file. Note, the dot in front. This is a hidden file. In Nautilus press Ctrl+H to un-hide the hidden files.
Double click the .Rprofile file to open it in gedit. Remove the line with GEOqury.

Source: https://stackoverflow.com/questions/10300769/how-to-load-packages-in-r-automatically
Hope this helps


Search multiple tags - OR instead of AND

Well the answer was way simple. Sorry for bothering everyone.

The magical word was OR.

  tag:first OR second

will give you all the files that have either one of the two tags


Ok, using Kubuntu 15.04 KCron must be started using the command line:

kdesudo kcmshell4 kcm_cron

The corresponding package is kde-config-cron.

Using 15.10 it seems there is an entry in the system settings but I couldn't test this yet.


You should use:

dd if=out/one.img of=out/go.img conv=notrunc

See also man dd.


Is there an alternative for Scrivener (a tool for writers to arrange ideas?)?

Celtx

  Celtx is the world's first all-in-one media pre-production system. It replaces 'paper & binder' pre-production with a digital approach that's more complete, simpler to work with, and easier to share.

Kabikaboo (Click To Install)

  Kabikaboo is meant to help you plan a novel, but could be used for anything that would benefit from tree-based text organization. Kabikaboo is not meant to create a formatted document - you should use AbiWord/OpenOffice/LaTeX or some other editor for that purpose.

Storybook

  Storybook is a free (open source) novel-writing tool for creative writers, novelists and authors which will help you to keep an overview of multiple plot-lines while writing books, novels or other written works.


New System Windows 8.1 dual boot and virtualbox

I installed Windows 8.1 from the recovery thumb-drive.
It installed:
                                   (Flags)
ntfs     RECOVERY            600 MiB  hidden, diag
unknown                      128 MiB  msftres
ntfs     Acer                120 GiB  msftdata
ntfs     Push Button Reset 14.89 GiB  hidden, diag

Ubuntu reduced the Acer partition and created three partitions:

fat32   /target/boot/efi ESP 300 MiB boot
ext4    /target               83 GiB
linux-swap                  3.82 GiB

Tested the boot:
First time, I got a micro-text of grub.
I chose Windows and aborted by turning off the computer (I wasn't ready to register.)
When it came up, I did not get the grub.  It went to booting Windows.

Then I rebooted and chose the bios boot options, which gave me a choice of Windows (at top) or Ubuntu.  When I chose Ubuntu, it came up fine.
Did a shutdown and powered the computer back on.  The computer came back up on Windows.

The end result is that with UEFI, dual boot appears to be managed by the bios. When I choose Ubuntu, it gives grub.  When I choose Windows it brings up windows.

And when I turn on the computer and leave the bios to work, it chooses Windows.
(I'll check the bios to see if the order can be changed.)

This is different, not what I expected, but not bad either.

As for the virtualbox issue, I'm off to look for the proper forum.

Thank you

PS I hoped I could close this, so moderator, you may close this issue.


Remmina RDP - No sound from remote Windows 7 computer - Ubuntu 13.10

i had the same problem, couldn't fix it, i installed 2XRDP and after that the problem was solved, probably a setting are lib-file was update


WiFi drops after period of time for ubuntu 12.04 on HP Pavilion g seres

Solution found.

very simple actually.  I needed to load the chipset specific driver.

I found the specific version of my chipset with lpci

Then I looked on the chipset manufacturers web site and found linux drivers.

I downloaded and extracted the tarball.

I ran "sudo make install" from terminal in the appropriate directory.

Reboot and all seems perfect.

I will try to add truly specific instructions later when I am back with my laptop.


If you are not fond of grub than you can try BURG. It has better GUI than the windows boot loader (Trust me on this one). You can select different themes for that as well. Also if you have dual booted your system then you can remove other options from the options screen and set just two options i.e WINDOWS and LINUX. To know how to install BURG here is the link :
How to install BURG on Ubuntu 16.04


how to install ubuntu from usb if bios have no such option

There is a handy page in the Ubuntu documentation for situations such as these. See options 4, 5, 6 and 7: https://help.ubuntu.com/community/Installation#Installation_without_a_CD


Ok, found the answer. Not sure why is stopped working, but here's how to get it working again. Go into keyboard shortcuts and re-create custom shortcuts:

Play/Pause toggle:

dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause

Previous:

dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous

Next:

dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next


Will ubuntu work for a windows surface 2

It is not impossible, but since you are new to Linux, it is very unlikely that you could get it to work satisfactorily. Surface 2 is an ARM system that requires a signed bootloader. To install Ubuntu, you would have to jailbreak the Surface 2, then build your own ARM image of Ubuntu (Ubuntu does not ship images for ARM hardware) and then install it. And then you will have to deal with the numerous driver incompatibilities you will run into.

The Surface Pro, on the other hand, is an x86 tablet, and the boot loader isn't locked down, so an install is a much easier prospect. See Linux users rejoice, here’s Ubuntu on the Surface Pro 3


"Battery not present" on Toshiba Satellite L500D

Restart your laptop with different OSes. If Windows or Mac OS does not find any batteries, it is a hardware problem - with your battery, your battery "jack" (the part that takes power from the battery and feed it to the computer), or the connection. Reinsert your battery. If not working, request a warranty.


You can disable the keyboard via boot options:

Open /boot/grub/grub.cfg as sudo with your favourite text editor.
Add i8042.nokbd, preferably to the end of the file, and save.

Source: Ubuntu Forums Thread


When you reinstall a machine it gets a new ssh host key, but the old one is still stored in your key file.

Open ~/.ssh/known_hosts with an editor and remove the lines containing the problematic host keys.

You'll be asked to verify the new host keys the next time you connect.


If there is potential bruteforce on ssh, apache etc, fail2ban will become aggresive and consume lots of cpu time.

The easiest way to see, which one is causing high load is by top command.

To me, this load seems perfectly ok due amount of cores.

I would chech IO of HDDs to check does they are bottleneck.

Check the wa column in top as well. If it is high, then you have a problem.


How to install latest ubuntu-device-flash in Ubuntu 14.04?

You can install the latest ubuntu-device-flash using the ppa:

 sudo add-apt-repository ppa:ubuntu-sdk-team/ppa
 sudo add-apt-repository ppa:phablet-team/tools
 sudo apt-get update; sudo apt-get install ubuntu-device-flash

When trying to update, the ubuntu-device-flash might be held back. If this is the case, you can upgrade that package using sudo apt-get dist-upgrade


Open terminal and type into it:

sudo -H gedit

and hit enter.

This will open gedit with the appropriate permissions. Then all you have to do is browse to the document on the hard drive and make the necessary changes.


Environmental Variable for current domain


If this is a fresh install and you have logged in for the first time, you may need to install and activate proprietary drivers. From the dash, search jockey or "Additional Drivers" to check for any display drivers you might need to install.

Once your drivers are up-to-date, you can change your display settings by selecting Displays from the cog icon system menu in the top right of the screen (or use the dash to search for "Displays")


I'm here in 2019 with an answer! Kinda. Idk about compiling from source, but using the package manager:

Install the cmus-plugin-ffmpeg package to add m4a support, among others


Ok, it's not a common problem and I have no idea why it doesn't work out of the box.

But after reading some fcitx docs I set all these envvars manually. Also I've to add fcitx to startup.

Now it works like expected. Maybe it'll help.

Thanks, Gunnar.


Is quoting filenames enough security for running `xargs sudo rm -rf`?

In Linux, any character is a valid filename constituting character except:

\0 (ASCII NUL): as used for string termination in C
/ (forward slash): as used for path separation

So, your approach will definitely not work in many cases as you can imagine e.g. does it handle a newline (\n) in filename? (Hint: No).

Few notes:

Don't parse ls; use dedicated tools (there is at least one for most use cases)
When dealing with filenames, try to leverage the NUL separated output provided by almost all GNU tools that work with such data
Take care when piping, make sure both programs can understand NUL separations
Whenever you're invoking xargs, see if you can get away with find ... -exec; in most cases, you will be fine with just find alone

I think these will get you going for now. steeldriver already provided the NUL separated idea in the comment (printf -- '%s\0' /path/to/some/folder/* | head -zn -2 | xargs -0 rm), use this as a starting point.


“Invalid MIT-MAGIC-COOKIE-1 key” message - MPI on Ubuntu 20.04

Did the problem persist? I had the same as you or the one you mention and fixed it ("it fixed itself" would be more accurate).
I had installed a NVIDIA driver to use OpenCL and CUDA before installing MPI on my local computer and had the same warning. I switched back to X.Org driver (my way of doing it: Software & Updates -> Settings -> Additional Drivers -> Using X.Org), rebooted and warning messages had disappeared.
I tried to switch again to my NVIDIA driver, rebooted and the warning didn't reappear, so eventually just changing driver may solve the problem. It's not elegant and doesn't explain much, but it is worth trying. Also, as I fail to reproduce the problem, it is possible that simply "turn it off and on again" was what did the magic, which is why I asked if your problem persisted.
This was done out of total despair after an hour or more of looking for an answer to similar problems. xhost +local:, xhost +, unset DISPLAY or export DISPLAY=whatever:X.X didn't change anything, nor did it work to specify DISPLAY in the mpirun options (as stated in the official documentation). I had also rebooted (before changing the driver), and grep xauth ~/.bash* didn't give any result (so my .Xauthority file had not been modified from the terminal).
Another way I found to avoid the problem while I had it was to disable the graphic interface and go with only the command line (ctrl+alt+F3), but I believe the warning is a minor inconvenience compared to no graphic interface.
Clues for people who are far more knowledgeable than little me about mpi and Xserver and somehow want to tackle this:

The question here may be related, and apparently compiling with mpich solves the problem, while when I compiled a small c script with mpicc I had the warning.

Clues for people who would have this, and for whom changing driver + rebooting didn't work and are as clueless as I was about xauth and .Xauthority:

The path to your .Xauthority file referenced in so many similar problems (like here and there.) can be found with echo $XAUTHORITY.
As stated in this problem, you interact with it through xauth. I was about to try to manually change MIT-MAGIC-COOKIE-1 as a last resort, although I believe at this point it would probably be easier to install older versions of mpi and switch between them with update-alternatives


Why there is no difference between / and ////// in bash path

The reason is simple: because it's a standard which isn't bash specific, but is specified by POSIX standard, see Definitions chapter, section 3.266 Pathname

  Multiple successive slashes are considered to be the same as one slash.

These specifications are meant for portability and specify how Unix-like operating system and utilities should behave. bash has to support it if it wants to be used as /bin/sh shell, which on Ubuntu it actually used to be symlinked to /bin/sh. See also What is the point of sh being linked to dash?


HPLIP SysTray icon is broken, crashes on every login - why?

First of all we need to determine file type of hp-systray:

$ which hp-systray
/usr/bin/hp-systray
$ file $(which hp-systray)
/usr/bin/hp-systray: symbolic link to ../share/hplip/systray.py
$ file $(readlink -f $(which hp-systray))
/usr/share/hplip/systray.py: Python script, ASCII text executable

- so it is Python script.

Then by reading crash dump at /var/crash/_usr_share_hplip_systray.py.1000.crash we can determine the following.
The crashdump contain references to python modules, installed by pip3:

...
ProcMaps:
...
 ... /usr/local/lib/python3.5/dist-packages/sip.so
 ... /usr/local/lib/python3.5/dist-packages/sip.so
 ... /usr/local/lib/python3.5/dist-packages/sip.so
 ... /usr/local/lib/python3.5/dist-packages/sip.so

So we need to remove problematic sip module with

sudo pip3 uninstall sip

It solved HPLIP problem as it will use sip from python3-sip package.

But removing sip breaks ReText which was installed from pip3 too.
To fix it we need to:

adjust ReText dependencies to get it working:

sudo -H pip3 install sip==4.18 PyQt5-sip==4.19.11 PyQt5==5.7 retext

but this method results in slow text editing and cursor movement on some not too new hardware.
remove deb/APT version of hplip as described on my other answer and then install ReText with:

sudo -H pip3 install PyQt5==5.9.2 retext

Note: PyQt 5.9.2 is needed to have normal operation of Chromium (WebKit) renderer and coexistence with Spyder3.


missing C libraries errors when running gedit

With the export of LD_LIBRARY_PATH in your .bashrc, you are adding a new search path for libraries that has precedence.

The problem now is that gedit also expects the library libstdc++.so.6 which is picked up in the Matlab install directory. Obviously the library has the same name, but does not match to the gedit expected one.

To get rid of your problem, you should remove that Matlab specific stuff from your .bashrc and maybe write a wrapper script to start Matlab:

$ cat matlab.script
export LD_LIBRARY_PATH=/usr/local/MATLAB/MATLAB_Runtime/v901/runtime/glnxa64:/usr/local/MATLAB/MATLAB_Runtime/v901/bin/glnxa64:/usr/local/MATLAB/MATLAB_Runtime/v901/sys/os/glnxa64:
<path-to-matlab-binary>

As you mentioned to use SDK, not sure if you need that in bash you only should load the LD_LIBRARY_PATH for Matlab when needed. You also might want to have a look at environment-modules which is a helper programm to configure different development tools and their needed pathes and keep up with the mess.


Where is ~/.bash_profile located in Windows Subsystem for Linux?

From the man page for bash:

  By  default, it first reads and executes commands from the file > /etc/profile, if that file exists.  After reading that file, it
  looks for  ~/.bash_profile,  ~/.bash_login,  and ~/.profile,  in that
  order, and reads and executes commands from the first one that exists
  and is readable.

So it exists in your home directory IF AND WHEN you create it and make it readable.


Creating ubuntu 14.04 boot into external hard drive

A simple solution with no need for other applications or software.
Just remove the connection of your internal storage and keep your external connected.
 Now just install Ubuntu 14.04 or whatever in the external hdd.
Once you are finish connect your internal storage again.
Now you have a bootable external drive

If you really want to do it with a software. you can enjoy the vast:

UUI : Universal USB Installer

Unetbootin

sudo add-apt-repository ppa:gezakovacs/ppa
sudo apt-get update`
sudo apt-get install unetbootin

MultiSystem

LiveUSB

YUMI


How to make GoogleCalendarScreenlet to show Google Calendar?

TL;DR - it is impossible because Google disabled ClientLogin and asks applications developers to use OAuth 2.0 instead.

Details is below.
The GoogleCalendarScreenlet is based on python-gdata library.
This library has special Google calendar demo program (it is installable from python-gdata-doc package). It can be launched with
/usr/share/doc/python-gdata-doc/examples/calendar/calendarExample.py --user [username] --pw [password]

When I launch the example program I get the following output:

Traceback (most recent call last):
  File "/usr/share/doc/python-gdata-doc/examples/calendar/calendarExample.py", line 617, in <module>
    main()
  File "/usr/share/doc/python-gdata-doc/examples/calendar/calendarExample.py", line 613, in main
    sample = CalendarExample(user, pw)
  File "/usr/share/doc/python-gdata-doc/examples/calendar/calendarExample.py", line 51, in __init__
    self.cal_client.ClientLogin(email, password, self.cal_client.source);
  File "/usr/lib/python2.7/dist-packages/gdata/client.py", line 441, in client_login
    captcha_token=captcha_token, captcha_response=captcha_response)
  File "/usr/lib/python2.7/dist-packages/gdata/client.py", line 373, in request_client_login_token
    response, ClientLoginFailed, response_body)
gdata.client.ClientLoginFailed: Server responded to ClientLogin request: 404, https://developers.google.com/accounts/docs/AuthForInstalledApps

Visiting the https://developers.google.com/accounts/docs/AuthForInstalledApps page gives one interesting quote:

  Important: ClientLogin has been officially deprecated since April 20, 2012 and is now no longer available. Requests to ClientLogin will fail with a HTTP 404 response. We encourage you to migrate to OAuth 2.0 as soon as possible.

So really it is a "problem" with python-gdata library and not GoogleCalendarScreenlet itself.

Alternatives:

for Ubuntu 16.04 LTS - Rainlendar Pro (it uses OAuth);
for Ubuntu 18.04 LTS - indicator-datetime with GNOME Evolution or GNOME Calendar.


when i run sudo apt-get update i got this error

It means the ppa repository is deprecated or no longer in use
remove the ppa repository by adding --remove to the same command you added it with


Try to reinstall the mysql-workbench.

To be sure you don't lose your connection data, copy following file: ~/.mysql/workbench/connections.xml

sudo apt-get remove mysql-workbench
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install mysql-workbench

Or do the following to clean up system (after upgrade to higher Ubuntu version):

sudo apt-get remove mysql-workbench
sudo apt-get autoremove
sudo apt-get clean

Install workbench from official website (select the correct Ubuntu version).


Ubuntu 20.04 Mate: Cannot acces data from external harddrive

If your user name is fred then the command is
sudo chown fred:fred /media......
add any options as required.
replace fred with your own username.
man page chown


You didn't mention what you have tried, so try this:

[Desktop Entry]
Name=someName
Comment=
Exec=/path/to/script.sh
Icon=/path/to/icon
Terminal=false
Type=Application

Make sure that your script is executable, like this:

sudo chmod +x /path/to/script.sh

It also won't work with if your script uses the sudo command, or anything else that requires user input.

If you want it to open a terminal window when you run it (if you needed to add input or watch the output) set Terminal to true.

Terminal=true


Can swap settings be adjusted for swap files using the same methods for Swap Partitions?

Yes to both. Swappiness will be set the same way for swap files and swap partitions. I would recommend using a separate configuration file in /etc/sysctl.d/ though.

To check whether the swappiness has been set after reboot, use the following command:

$ cat /proc/sys/vm/swappiness
40

If you want to test that the swappiness does actually change, you can do a simple test as described in this article: https://rudd-o.com/linux-and-free-software/tales-from-responsivenessland-why-linux-feels-slow-and-how-to-fix-that.

Take also note of this question discussing the pros and cons of reducing swappiness: Why most people recommend to reduce swappiness to 10-20?


What would be the most practical way for a web developer to develop on Ubuntu but test on IE

Just install Windows on a machine ( or virtual machine ) and install a VNC server ( like UltraVnc http://www.uvnc.com/download/index.html ).

On the windows machine you can create the amount of users that you need, then configure the UltraVnc server to permit LogIn with Window Authentication.

Then with any VNC client (like Vinagre) from your Ubuntu desktops you can connect to the Windows machine ( using a different user for each developer ) and enjoy :)


Skylar, please advise how you are performing this. I'm on my phone, so I will refine at a later date.

Step 1- Create the partition in Windows.

In your Window's 8  OS, right click on Computer, select manage and go to disk management. From here, create the desired partition for Linux- try to make a minimum of 20GB.

Step 2- Burn the ISO

There are several tools in which you can use, I would recommend using RUFUS to perform this. Now in regards to the iso file, I would recommend using one of the later Linux versions- e.g. Ubuntu 14.04.

If you do use RUFUS, select MBR or UEFI for Secure Boot machines. Once the iso has been burned to the USB, reboot the machine and boot to USB; either edit this in your Bios or manually select it. To manually select it you will need to go to the boot manager; this is usually achieved by pressing F12 on boot.

Step 3- Installation

From here, complete the setup as desired. When it comes to the disk selection, ensure you select something else and then install to your partition. You'll just need to make "/", and a swap area, plus whatever else you need. You should not need an EFI boot section as it will write to the Windows MBR, but if you're really worried you can dedicate 100mb to this.

If you're unsure of any of the steps, please let me know.  Here are some links to help:

Here is a quick link to my blog where I have complete a guide and referenced other guides: http://bit.ly/1s4oceI

Here is the link to the issues I have had with, where you may find some useful comments: Ubuntu 14.04 LTS Install Issues

Lastly, I would highly recommend you reading this answer: https://askubuntu.com/a/228069/212930

If I've taken your question in the wrong direction please let me know. If it does not help, please update your question with your method, and the outcome.


How to set Bluefish as a default editor in FileZilla

In the Filezilla FTP client, go to settings. Scroll down until you hit "File Editing" and select "Use Custom Editor:"

You can either browse to the Bluefish exeutable inside of usr/bin/, but the file path that should work (if you have it installed) is /usr/bin/bluefish

I'm relatively inexperienced, and was pleasantly surprised to discover that this /usr/bin/ folder is where most executables of installed programs are located.

Yay for learning new things!


How can I find the memory usage on my GPU?

For Nvidia GPUs:

nvidia-smi

For Intel GPUs:

intel_gpu_tools

For AMD GPUs:

aticonfig --odgc --odgt

For real time watching -- example:

sudo watch nvidia-smi


Using the ls command on an Ubuntu 14.04.10 server to explore my files

No, the ls command does not work differently on server editions of Ubuntu.

What does work differently is that, by default, user creation on the server additions does not include populating the new user's home directory with folders such as Desktop (because there isn't one), Pictures and so on. So ls is simply telling you that there are currently no ordinary (non-hidden) files or directories within your home directory. If you want to see hidden files and directories, add the -A or -a flags e.g.

ls -A

See man ls

   -a, --all
          do not ignore entries starting with .

   -A, --almost-all
          do not list implied . and ..


Attempting to install packages - stuck connecting to security.ubuntu.com

Could be just a slow connection ... to find the fastest Ubuntu server :

System Settings -> Software & Updates -> Ubuntu Software

click on

Download from :  choose Other ...

choose

Select Best Server

let the test run for a few seconds while it probes to discover the answer ... then

Choose Server

let us know if this helps


Most of your PPA are outdated or doesn't exist anymore. For example the last one "http://ppa.launchpad.net/amith/ubuntutools/ubuntu/dists/raring/main/binary-i386/Packages" should be replaced with "http://ppa.launchpad.net/amith/ubuntutools/ubuntu/dists/quantal/main/binary-i386/Packages".

Look at your /etc/sources.list (or the files in /etc/sources.list.d) and remove or fix those lines that cause the error.

UPDATE:

The answer here should help.


What happens if you use @reboot reboot in crontab file?

Testing result:

If you add

@reboot reboot

This did not work!!! Why?

$ which reboot
/sbin/reboot

Now When i added the full path of reboot, the cron job runs normally.

So you got an infinite  loop of rebooting in the case:

sudo crontab -e

And add the line:

@reboot /sbin/reboot

EDIT:

If you want to get rid off this, you probably need to boot from an Live CD, then mount your disk drive and go to the cron file and remove the added line.

sudo gedit /media/some-UUID/var/spool/cron/crontabs/root

Save and then remove livecd and reboot again, and you'll be safe


How do I make Tools Options show up in GIMP 2.8?

In menu go to :

Windows>Dockable Dialogs> Click on Tool Options

You can select any other needed window in Dockable Dialogs.


It was an issue with the firewall that this server routes through. Once we allowed 10.0.0.0/8 :80 out, it worked. I think the wget worked is because 443 was allowed.


Everything uninstalled by `apt purge openssl` on Ubuntu 14.10

I figured it out somehow.

sudo apt-get install ubuntu-desktop

seems to have returned everything I lost.


How can I disable touchpad while typing in ubuntu 14.04?

First entirely undo the current setting: Remove the tick for Disable touchpad while typing in Mouse & Touchpad settings.

Now search for and open Startup Applications from the Dash. Click Add.

  Name: Syndaemon

  Command: syndaemon -i 1.0 -K -R -t

  Comment: Disable touchpad while typing, with a reasonable delay and
  only for tapping and scrolling

The -i 1.0 parameter sets the idle time of the keyboard to 1s. -K option ignores the Modifier keys. -R option uses the XRecord extension for detecting keyboard activity instead of polling the keyboard state. -t option disables tapping and scrolling but not mouse movements.

Click Add and then Close.

Reboot your computer.

Note: this is a user preference, so repeat this in every user account.


had this problem about 2 days ago... I fixed it in a very strange way, I'll just tell you what I did and good luck

go to sound settings (up right from the "speaker" icon) then go to "input" tab and play around a little. All I did was change the input device from the "record sound form" menu and then change it back to the mic.


Is it possible to undervolt modern intel chips in Ubuntu?

IT'S FINALLY POSSIBLE!

https://github.com/georgewhewell/undervolt

tom@159560:~$  sudo undervolt --re
temperature target: -3 (97C)
core: -110.35 mV
gpu: -65.43 mV
cache: -110.35 mV
uncore: -110.35 mV
analogio: -110.35 mV

There is also another way that I've seen some other people having success with, but it seems the other way is more Archy, and this way is more Ubuntuey.


Is it possible to install and use two Steam clients on one Ubuntu machine?

I have run Steam on Linux and Steam on Wine on the same system. (At the same time as well.)

Your machine's hostname is mostly another bit of data they collect, it's not something that particularly matters since you can set it to anything. Steam is not particularly restrictive in that regard - you can be simultaneously logged in on multiple systems, but some (most?) games can be played only on one system at a time (though it's usually fine to have them installed on multiple systems at the same time). It's best to keep the library folders for the two separate though.

Whether the games you want to play are available for Linux is a different problem.


Where do I download the Ubuntu touch Rom?

You should be following the Touch/Install instructions.

The general procedure is as follows:

Desktop Setup (Setup the Touch Developer Preview Tools)
Back up Android Device.
Unlock device.
Download and deploy factory image.

The factory images for the Nexus Devices are here.


Why won't Ubuntu copy large files to flash drives or network locations?

This is not about ubuntu. This is about file systems. Fat32's partitioning is different from New Technology File System (NTFS) or EXT. Because the partition sizes are different, you "can" have trouble about moving files to FAT32 from newer partitions.

Additionally, you can use

`CONVERT X: /FS:NTFS`

to convert your FAT32 driver to NTFS without data lose under Windows, CMD. But don't forget that; you won't be able to revert.


The following command will remove 95% of Xubuntu and XFCE -- instead of the other commands mentioned that remove only 50% ... 60% ... of the packages.

sudo apt-get autoremove --purge xubuntu-* && sudo apt-get autoremove --purge xfce*

If you're willing to be more radical... You can run the following command. This one remove almost everything about xubuntu/xfce:

sudo apt-get autoremove --purge $( dpkg-query -l *xubuntu* | grep ii | tr -s " " | cut -d" " -f2; dpkg-query -l *xfce* | grep 'ii' | tr -s " " | cut -d" " -f2 )


How to add an IPv6 address and default route with netplan in Ubuntu 17.10 artful?

OK, to augment the netplan configuration you need to add a or edit an existing .yaml file in /etc/netplan/. The files are considered in order and the ones with higher numbers override those with lower.

My cloud provider created a default .yaml /etc/netplan/50-cloud-init.yaml which I left as is and added a /etc/netplan/99-static-network.yaml which augments the provider's config:

network:
  version: 2
  ethernets:
    yournetworkinterface:
      match:
        macaddress: it:sm:ac:ad:dr:es
      dhcp4: true
      addresses:
        - your:static:ip::v6/64
      gateway6: your:default:ipv6:gateway

Then I created the config files from my yamls with netplan generate and applied the changes with netplan apply.


If you read the log carefully, you see that the problem is that there is a package called libmysqlclient-dev with the version 5.5.23-1~dotdeb.0 which provides the file /usr/lib/mysql/plugin/ha_example.so. So, it seems that you had mysql installed from http://www.dotdeb.org. Try removing those packages first. You can find out which packages are from there using the following:

aptitude search "?installed?origin(packages.dotdeb.org)"

Remove them and then also remove the corresponding entry in your /etc/apt/sources.list file. Run apt-get update and then re-try installing your MySQL server.


Need Software to view and record ip camera

iSpy is an open source security camera software that works great on Linux and Windows from the times I have used it. You can find it on here:
https://www.ispyconnect.com/


On this webpage there is a bash script that will attempt to keep your CPU below a specified temperature. http://seperohacker.blogspot.com/2012/10/linux-keep-your-cpu-cool-with-frequency.html

You just need to provide it with your desired maximum temperature, and it will throttle your CPU(s) in an effort to stay below that temperature.

Shameless plug- I wrote and maintain the above script.


Synchronisation Of Contacts In Evolution Via CardDAV (Baikal)

First download your server certificate & move them to /usr/share/ca-certificates:
sudo cp /home/$USER/Downloads/YOURSERVER.crt /usr/share/ca-certificates

And then updates the ca-cert database, since it is self-signed: (Add a star to the new certificate while running the configuration):
sudo dpkg-reconfigure ca-certificates

Install syncevolution:
sudo apt-get install syncevolution

Then query the server with following command: syncevolution --print-databases backend=carddav username=yourusername "password=*****" syncURL=https://www.MYSERVER.de:443/card.php/addressbooks
It will print out all contact databases with their url. The use that url in evolution in when setting up carddav server.

For baikal, the default url looks like:
https://www.MYSERVER.de/baikal/card.php/principals/USER/

DONE!

NOTE: You can also manually install certificates. Open Evolution, then go to Edit->Preference->Certificate. There you can manually import certificates.


How can I boost performance on my Lenovo C40?

I'm afraid your processor (CPU) is too weak at 1.8 GHz to play heavy games. But upgrades to a better graphics card (GPU) and a solid state drive (SSD) could help to make your laptop faster. The 64 bit version of Ubuntu also improves the performance a bit.

However, I don't think you should go ahead with replacing your CPU. The hassle won't be worth it, and your cooling (fans) will not keep up. The question is even if you can replace your CPU. So try installing an SSD, using the 64 bit Ubuntu and probably a new graphics card.


How can I use my USB flash drive again after I zeroed it out in Disks?

First re-install a partition table on it. You can do this in GParted or any other generic partition table editor. Make sure you select the right device in the top right corner of the window. Then in menu Device -> Create partition table and select the good-old MSDOS partition table layout.
Create a new partition. Choose a nice file system you like to use (e.g. FAT32, Ext3, ...)
Apply all changes.
Re-plug the pendrive in the PC. Should work again!


You have NCQ disk errors, See here
Edit your /etc/default/grub file and change the following:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash libata.force=noncq"

Save the changes and update GRUB, and reboot:
sudo update-grub

reboot

And see if the problem is solved. If not, undo these changes, and suspect a bad SATA port, SATA cable, or a possible bad hard drive.


Editing Yaru Gtk theme: where is resource:///com/ubuntu/themes/Yaru/3.20/gtk.css?

There is a file gtk.gresource in the same directory. It contains all packed theme files. resource:///com/ubuntu/themes/Yaru/3.20/gtk.css refers to gtk.css file packed inside this file.
You can view a list of all packed files with a command
gresource list gtk.gresource

You can unpack a particular file using a command eg.
gresource extract gtk.gresource /com/ubuntu/themes/Yaru/3.20/gtk.css >somefile.css

Note that the contents of the file is extracted to stdout so you have to redirect it to some other file.
I don't know however how to pack the files again into gtk.gresource after editing. But you don't have to pack them, you can unpack all files from gtk.gresource file and leave them in unpacked form.
I recommend however that you don't edit the Yaru theme in place because your changes might be overwritten when the theme's files are updated. Make a copy, change the theme's name (you must edit index.theme file in theme's main dir) to something that is unlikely to be used by standard themes (I use "My Theme" for example) and edit the copy.


You can downgrade Conky to version 1.9. When Ubuntu 16.04 is installed a newer Conky version 1.10 was installed and it broke a lot of scripts for many people (including me).

To see which Conky Version you are running type: conky -v.

If you are on 1.10 you follow the answer in this question: Ubuntu 16.04 apt-get doesn't provide conky-all from Ubuntu 14.04 to install 1.9 conky-all.

I doubt Iran is blocking weather websites. They'll probably take a track like Russia of targeting foreign NGO's instead. After all Iran let you into this website and you get to talk to us :)


Apply changes or restart Unity dash/launcher/... without reboot or logout

Press Alt+F2 type unity and press Enter.


Find the name of your audio sink by running

pacmd list-sinks | grep name:

Then run this command (taking care to remove the angled brackets from the result of previous command):
pacmd load-module module-remap-sink sink_name=mono master=NAME_OF_AUDIO_SINK_GIVEN_BY_PREVIOUS_COMMAND channels=2 channel_map=mono,mono

or add
    load-module module-remap-sink sink_name=mono master=NAME_OF_AUDIO_SINK_GIVEN_BY_PREVIOUS_COMMAND channels=2 channel_map=mono,mono

to /etc/pulse/default.pa to have it run at startup.

Then in Sound Preferences choose "Mono" as the output, but remember to reduce volumes by half, since two channels are getting mixed into one, or else you'll have distortion. To test, run:
speaker-test -c 2 -t sine

Same thing in a single command:
pacmd load-module module-remap-sink sink_name=mono master=$(pacmd list-sinks | grep -m 1 -oP 'name:\s<\K.*(?=>)') channels=2 channel_map=mono,mono

To remove the mono channel, just use:
pacmd unload-module module-remap-sink


How to fix not signed repos which worked before?

Okay, I fixed it with the help of dino99. The Google and Jenkins repositories needed https. To fix the Security repository I replaced http://security.ubuntu.com/ubuntu xenial-security Release with http://de.archive.ubuntu.com/ubuntu xenial-security main restricted universe multiverse.
Not sure what the exact issue is, but it worked.


Git does not support a way to continue an interrupted cloning. You need to start from scratch. So, what can you do if your Internet connection is in a mess?

If you can get someone to create a .tar.bz of the clone, you can download using wget -c and then extract on your computer. It is fine even if this is a rather old clone; you or jhbuild can perform a git pull --rebase to that your clone will get updated, which is quite fast.