How to bulk download videos and rename them simultaneously using youtube-dl?

If you are only renaming files because you don't like the style by which youtube-dl names them, then you can use --output (or -o) with a template to customize the way it names all the files from Youtube metadata.

For example, -o %(title)s.%(ext)s will cause it to leave out the Youtube IDs from all of the filenames.

There are a lot of options, which may depend on your version of youtube-dl, so full details on this can be found at the terminal by typing:

man youtube-dl
/OUTPUT

However if you do want to name each file individually, you could instead run youtube-dl once for each line in the text file like this:

(while read URL NAME; do [ "$URL" ] && youtube-dl --format mp4 -o "$NAME" "$URL"; done) < data.txt

For each line, split it at the first run of one or more tabs and spaces into a URL and NAME, then if the line is not blank, pass them to youtube-dl. If the line just has a URL, the file will not be renamed.


How to automatically slow CPU instead of starting fans?

What you need is cpufreqd, this can take input from various sources and apply rules to set each CPU to a given profile, dependent on a scoring system.

I use it with the lm-sensors package. This lets cpufreqd query motherboard and chip temperatures, voltages and fan speeds (and, dependent on your hardware lots of other things) and you can use that to create weighting factors that are tested by the rules to switch power profiles.

Each power profile can set things like individual CPU frequency, how that frequency is govenered and other things like monitor brightness (for power saving) and fan speeds. It can even run arbitrary programs to do things like send out emails.

Note the default cpufreqd.conf is just an example and pretty useless.
lm-sensors has a utility to help you create it's config file.


Can you help me with Facebook videocall?

You are right. Unfortunately Facebook currently provide plugin only for Windows and Mac OS.


type your game name in the search of unity dash and of course there is a game section which have list of all games installed in the PC . look at the image .


How do I force all internet communication to go through Squid?

You can simply set rules with firewall to deny all outgoing ports except for 3128. Make sure, that you have ufw installed (sudo apt-get install ufw if it isn't), then:

sudo ufw deny out to any # deny all outgoing addresses
sudo ufw allow out from any to 127.0.0.1 port 3128 proto udp # allow the single outgoing port
sudo ufw allow out from any to 127.0.0.1 port 3128 proto tcp
sudo ufw allow out from any port 3128 to any # outgoing from any IP:3128 to any address (to allow packets of squid)

You can't be sure that all existing applications would use proxy for the simple reason that some of them may not even be written with proxy in mind (proxies can not be used transparently, apps have to take special care of a proxy), but the ufw rules would make sure that their packets wouldn't squeeze from other ports. And don't forget to set http(s)_proxy variables into /etc/environment.


You may
1. accidently pressed Delete. Looks in Trash
2. Accidently renamed .  Search for a file in it from nautilus or locate it from terminal locate -i filename.
3. File system corrupted. Check, repair it and recover file sudo fsck /dev/sdXY. Recovered files will be stored at LOST+FOUND directory of root of partition. Only root user can access it.
4. Data corrupted by software/hardware malfunction. Recover file by file using data recovery software like r-linux, test disk, photorec


Login in to Ubuntu 2d

You Have two options to solve this problem

1.

Start ccsm

Check that you have marked ubuntu unity plugin you won't be able to use desktop cubes because unity must have the desktop wall plugin.

It should look like this

Log out and you should be able to login in to unity

2.

Reset to default standard

Start ccsm

Go to preferences

Reset to default

Check if the Ubuntu unity plugin is enabled

Log out and you should be able to login in to unity


How do i install and run LinSSID in Ubuntu 18.04?

LinSSID is a graphical program that displays locally receivable 802.11 wireless attach points and ad hoc networks.

To install LinSSID in Ubuntu 16.04 and later open the terminal and type:

sudo apt install linssid

To open LinSSID search for LinSSID in the Dash and click the LinSSID icon.


Copying one file to many based on other file names and types

Use shell parameter expansion to

remove everything up to the (last, if the filename itself contains them) period and save the result as the extension

ext="${file##*.}"

remove the extension, then add back the new suffix + extension

backfile="${file%.*}[back].${ext}"

Ex.

file=cccf.png
ext="${file##*.}"
backfile="${file%.*}[back].${ext}"
echo "$backfile"
cccf[back].png


Tomboy doesn't open notes from the tray - sends to the launcher

I've always had this same issue with Tomboy, but lowering the Focus and Raise behavior in CompizConfig fixes it. First install compizconfig-settings-manager:

sudo apt-get install compizconfig-settings-manager

Run it with:

ccsm

Then navigate to General / Focus & Raise Behavior.

By default the Focus Prevention Level is set to Low and Tomboy always opens up behind other windows. If I change it to off, Tomboy opens up in front of other windows.

This may have other ramifications (other Windows may begin to steal focus, etc). You can set exceptions in this same settings panel.

Credit to this answer that I used originally to solve this.


how to install newly generated ubuntu kernel .deb files?

Install:

/usr/src/linux-headers-4.4.0-179_4.4.0-179.209_all.deb
/usr/src/linux-headers-4.4.0-179-generic_4.4.0-179.209_amd64.deb
/usr/src/linux-image-unsigned-4.4.0-179-generic_4.4.0-179.209_amd64.deb
/usr/src/linux-modules-4.4.0-179-generic_4.4.0-179.209_amd64.deb
/usr/src/linux-modules-extra-4.4.0-179-generic_4.4.0-179.209_amd64.deb

It is an unisgned kernel which might have issues with secure boot.


Unable to remove trash icon from favourites

try going into properties of dock,
right click on the icon and you will get the option to remove it.


How to setup an extetended monitor with Xrandr on my Acer Aspire One?

xrandr: Failed to get size of gamma for output default is not a good sign and is giving me "dejavu" with Set resolution to 1024x600 in eee pc x101CH question.

I've seen several problems like this myself and I've asked Xorg directly for help, to no reply. I think your best bet is to file a bug, using this guide: http://intellinuxgraphics.org/how_to_report_bug.html


How do I stop Unity from starting windows maximised?

In 11.04, when Unity is the default for desktops as well as netbooks, this behaviour will be set based on screen size by default, but also customizable in Appearance Properties. You will be able to let the system decide, or configure it always to maximise (except blacklisted apps) or never to maximise.


Looks like accops software is installed on the machine. Try entering your password and access. I guess should be able to see the screen then.


Another alternative is to use unity or gnome and get the functionality you like about Gnome Classic. There is a Classic Menu Indicator, for instance.

Here is a quote from http://maketecheasier.com/10-must-have-indicator-applets-for-ubuntu-12-04/2012/06/15:

  ClassicMenu Indicator:

  Aw! You miss the good old classic Gnome2 menu which stayed with Ubuntu
  till version 10.10 but bid farewell since Ubuntu switched to
  Unity/Gnome 3. Here is a good news fellas! We have this tiny little
  applet that gives you (to an extent) same classic menu feel.

  The .deb file is available to be downloaded from here.
  - See more at: http://linux.softpedia.com/get/Desktop-Environment/Tools/ClassicMenu-Indicator-70007.shtml

That indicator is written by Florian Diesch (also a Ask Ubuntu user).


How to open a file outside of the home folder using sudo

By omitting / at the start of the path you are specifying a relative path, but you want to specify an absolute path:

sudo gedit /var/lib/dpkg/status

Also, please use gksudo for graphical applications. sudo isn't really fit for that. Like this:

gksudo gedit /var/lib/dpkg/status

See What is the difference between “gksudo nautilus” and “sudo nautilus”?.


Folding@Home missing dependency for libssl.so.1.0.0 et alii

As Ubuntu 10.10 is now End of Life and no longer supported, as of April 10, you probably want to upgrade to a newer version. Specifically, Ubuntu 11.10 or 12.04, which have OpenSSL 1.0.x packaged, and where you'll find the libssl1.0.0 package, which this version of FAHClient needs. Also in your question, you should note that it requires a newer version of libstdc++, by the GLIBCXX_3.4.15 symbol missing.


Unable to connect to wifi, but able to connect to android hotspot

I was able to get rid of this problem by hard resetting my router. Strange, but it worked...


Desktop Sharing Slow when no monitor is connected during boot

Just so folks know it looks like it had something to do with my AMD GPU.  The driver or something must have been updated or something and took effect during the reboot. I have sense taken the card out with no GPU and is fine now.


IntellIj Idea 2016.2 where to find him to uninstall

To uninstall it you have to look in your home directory. So open your terminal and:

cd ~
ls -a

There you should see directories called .intellij... folowed by the version number. To remove them simply do:

rm -r <direcory-name>

There should be, if JetBrains follows their own rules two of those directories called so, one for the program and one for settings.

For more comprehensive  location information check out their documentation page about that.


EDIT:
Clonezilla is (almost) always a good option, e.g. this.

It depends on many factors.
You didn't mention:

What is the final destination of the cloned data. I assume it is not the flash drive, and I do not know if you are considering "cloning" into the same origin hard drive (I wouldn't call that cloning).

What is the partition structure of the source drive, or if you want to clone only one partition.
From the way you wrote the OP, I guess you want to clone only one partition of 1Tb, and that your partition has the OS, otherwise you could simply rsync the contents.
Then you have to check if you have root and home in separate partitions.

Lacking this information, I would say that if option 1 satisfies your technical requirements, it should work pretty straightforwardly, and I would stick to it.
Alternatively, you could clone directly into your target destination if not the pendrive.
It would help reading Cloning hard disk partition to smaller SSD on laptop
Additionally

https://bln364.com/clone-hdd-to-smaller-sdd-on-linux/
How to clone to a smaller harddisk?


You can do this in vim.
e.g.

/tmp/testDirecctoryEdit>ls -l
total 4
-rw-rw-r-- 1 a a 13 Oct  6 09:00 file
-rw-rw-r-- 1 a a  0 Oct  6 09:00 file1
-rw-rw-r-- 1 a a  0 Oct  6 09:00 file2
/tmp/testDirecctoryEdit>vim .

or
 vim /tmp/testDirecctoryEdit

Now it will list the files under the directory and pretty much edit the file in a way what operations are typically done on a directory
if I move my cursor to "file" and press D, the file will be deleted. Same way I can rename the files, list then by time/size using s.

And if you really want more, you can explore some of the plugins in vim, for directory related tasks. One such plugin is Nerd tree


Ubuntu 12.04 Volume up down mute stopped working

I found a solution: deleting ~/.pulse then logout. Next time it happens I will try the other answer too.


Try Intel Linux Graphics Installer provided by Intel at this link HERE

I hope that helps.


You may use a GNOME Shell extension called "More columns in applications view".

This extension lets you

  Set the number of columns in the "applications" view (by default, the maximum is only 6)

Another similar extension is "Application View Columns" (officially supports GNOME Shell version 3.30 currently). It lets you

  Set the number of columns in the Applications Overview. Controlled by a slider in the system menu with a switch for increasing compactness for up to 12 columns.


Step 1: Don't run a public DNS server. Use a hosted solution. I've just been over the reasons why with another user. There's no decent reason for running your own IMO, at least not for external production hosting.

There doesn't need to be a step 2 but if you're really determined, your DNS server might be being used to contribute to a DDoS attack on another host. DNS servers will recurse to answer a query and this can cause allow massive traffic swarms from DNS servers. I'm saying you could inadvertantly be part of that swarm.

Fixing it is simple enough: don't run a DNS server or disable external recursion.


I couldn't find anything anywhere that stated that Gmail Desktop Notifications provided audio notification. (Although it appears some expect it.)
One possibility to obtain the results you want would be to use an extension called Checker Plus for Google Chrome allows you to receive desktop and audio notifications for Gmail. This functions even when the Gmail window is closed, making it a handy tool for keeping track of new messages outside of the Gmail app (In Franz for instance?) it can be downloaded free from the Chrome Web Store so you can try it out without much risk. Once installed, you need to log in to your Gmail account to activate it. More information is available at the source listed below.
Note that for this to work a supported browser is required. Here is an excerpt from the Gmail Desktop Notifications help page
You can get email notifications on Google Chrome, Firefox, or Safari when you're signed in to Gmail and have it open in your browser.
Note: You won't see any notifications if you turned off all notifications for your browser.
Open Gmail.
In the top right, click Settings Settings.
Click Settings.
Scroll down to the "Desktop notifications" section.
Select New mail notifications on, Important mail notifications on, or Mail notifications off.
At the bottom of the page, click Save Changes.
Note: If you use inbox categories and turned on notifications for new mail, you'll only get notifications about messages in your Primary category. If you turned on notifications for important mail, you'll get notifications for everything marked as important.
Sources:
https://www.maketecheasier.com/get-notifications-for-gmail-in-chrome/


You can find out if the card you're looking for is certified here.

Component Catalog


How to transfer AWS Route 53 domain name to home BIND server

Pointing your domain name to home IP should totally work in your scenario.

See if you can troubleshoot it, you need to only update A records and possibly www CNAME to use that public IP from your ISP.

If you absolutely must move from Route 53, you still won't be able to do properly using a single IP you have at home: usually, DNS zone needs at least two NS servers with different IP addresses (more information here: https://www.iana.org/help/nameserver-requirements)


Even with temperature at 6500K, Redshift seems to "darken" the screen

Color temperature does not equal brightness. Simply put, low color temperatures are more yellowish, while higher color temperatures are perceived more blueish.

The color of each pixel on your monitor is typically composed of discrete red, green and blue sub-pixels (and sometimes additional white subpixels to increase maximum brightness). By changing the brightness of each color component, different perceived colors can be produced. The perceived brightness of a pixel, however, is the sum of the individual components' brightness. If all sub-pixels are at full brightness, the pixel is usually perceived white.

In order to produce a specific color temperature, redshift, as its name implies, shifts all colors such that the result will look more yellowish (lower temperature) or more blueish (higher temperature). Depending on the target temperature, this means increasing some color components, while decreasing others. The decrease inevitably leads to lower perceived brightness.

In your particular case, to achieve 6500K, redshift increases the amount of blue but decreases the amount of red.

In reality, perceived color and brightness are a lot more complicated, but this is AskUbuntu after all.


Computer Boots Straight into Windows (Dual-Boot)

okay first of all you should enter the advanced startup options menu like this (without the boot flash is inserted)

after you should get this screen and from this screen choose use a device

from there you should see the ubuntu partition

also another way
you can try to set grub in front of windows with this command

bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi


It's a theme bug. The panel is using an image background that doesn't fit  the width you're trying to use.

You will have either to change the background image at: /usr/share/themes/<Your_Theme's_Name>/gtk-2.0/panel.png

Or edit gnome-panel.rc file (gksu gedit /usr/share/themes/<Your_Theme's_Name>/gtk-2.0/apps/gnome-panel.rc
) and put # before the line with
bg_pixmap[NORMAL] = "img/panel.png"


Unity doesnt work after activating the sky cube in CSSM

Boot into your desktop as you normally would. Press ctrl+alt+f1 and log in using your account credentials. Now execute:

DISPLAY=:0 unity --reset

Return to your GUI by pressing ctrl+alt+f7. Everything should be back in place now. Reboot your computer to make the changes persistent.


Internet category not returning any results in Synapse

For Google Chrome, you must install the Zeitgeist Extension.

http://www.webupd8.org/2010/12/zeitgeist-extension-for-chrome-to-use.html


I have a Thinkpad t42. Upgraded to 12.04. Clean install. On shutdown it returns to password screen.  Only way to shutdown was to hold power button.  When you log back in again,  go to restart. When the system is up then shutdown in the normal way and it works ok


The "vers" argument seems to be quite tricky and it highly depends on the Samba version of the server (in this case your NAS box). From the man page:

vers=args means SMB protocol version. Allowed values are:

1.0, 2.0, 2.1, 3.0 and 3.1.1 (or 3.11)

From my experience is better for you to try with different versions to find out which one runs with your combination of cifs-utils versions VS. NAS's Samba implementation version.

And to avoid bad results on the tests you make, I recommend you to use the IP instead of the host name ;)


I want to enable a beep sound on my laptop for my charger

Assuming you're running Ubuntu Desktop 20.04, it should beep when power is connected or disconnected. If it doesn't, then there are a few things you'll need to check:
1 — Sound Settings

Open "Settings" and click on the Sounds tab.
Confirm that "System Sounds" is not muted and is loud enough to be heard

If everything there is correct, then ...
2 — Gnome Power Panel

Open "dconf Editor" and navigate to: org / gnome / desktop / notifications / application / gnome-power-panel
Confirm that enabled is enabled
Confirm that enable-sound-alerts is enabled

If you do not have dconf Editor on your system, you can install it like this:
sudo apt install dconf-editor

Hopefully this will help you get the audio confirmation for when power is connected and disconnected


How to restore Ubuntu18.04 network kernel parameter?

Since you didn't specify which parameters you changed in sysctl.conf, it makes it somewhat difficult, but here's the basic method...

boot to the GRUB menu
choose Advanced Options
choose Recovery mode
choose Root access
at the # prompt, type:

sudo mount -o rw,remount /
sudo pico /etc/sysctl.conf
restore the values that you changed
if you need the default values, tell us which parameters you changed
save the file
reboot

Update #1:

Reinstalled Ubuntu. Sysctl.conf restored. System is fully operational.


How much memory (RAM) should I allocate to the Virtual Machine?

You should give virtual machine however much RAM you need for the tasks you're using it to perform.

If you're running a single virtual machine, the suggestion you read is OK (provided that your host machine has enough RAM, which it does). However, depending on what you plan to do with your Ubuntu system, it probably doesn't need 2.7 GB of RAM. I give most of my virtual machines, including Ubuntu virtual machines, 1 GB of RAM, even when I have enough physical RAM available that I could allocate more.

If you plan to run multiple virtual machines, then giving a virtual machine 2.7 GB of RAM out of a total of 6 GB is probably too much. It would not work out well to have two VM's with that amount of RAM!

Finally, your virtual machine will typically reserve all the RAM you give it, whenever it is running. When the virtual machine is turned off, suspended, hibernated, or otherwise not running, this RAM will not be in use. For example, I have about 10 virtual machines, most of which have 1 GB of RAM, on a host machine with 4 GB of RAM. This is not a problem; it just means I can only run up to a few of them at a time.


boot Ubuntu 12.04 directly to a windows RDP session

I suggest open source:  http://remmina.sourceforge.net/

Install it.  Get the plug ins for RDP.  Set "SSH Tunneling" to unchecked in the advanced tab.  Put in the address information.

Then you can create a script to start it with one click: https://superuser.com/questions/628371/how-to-run-linux-remmina-from-the-terminal


VMware Kernel modules update in Ubuntu 15.04

It appears that your kernel has not updated properly with your transition to Ubuntu 15.04 - I would encourage you to make a backup of your data first, and then issue the command

sudo apt-get install linux-generic

After a reboot, you should be running the 3.19 kernel.  You should check to ensure that your kernel version and your header version match; you may also need to execute

sudo apt-get install linux-headers-generic


Corrupt /var/lib/dpkg/arch file, can't use apt or boot

$ cat /var/lib/dpkg/arch
amd64
i386

(ended by newline each)
This is on a 18.04.1 bionic multiarch setup.
So usually you use only one of them depending on your system.

The other file is a list of locations and the packages which created them (I suppose)

$ cat /var/lib/dpkg/triggers/File
/etc/dbus-1/system.d dbus/noawait
/usr/share/dbus-1/system.d dbus/noawait
/usr/share/dbus-1/system-services dbus/noawait
/usr/lib/mime/packages mime-support/noawait
/usr/share/applications mime-support/noawait
/etc/rsyslog.d rsyslog/noawait
/usr/share/mime/packages shared-mime-info/noawait
/usr/share/info install-info/noawait
/usr/share/icons/hicolor hicolor-icon-theme/noawait
/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders libgdk-pixbuf2.0-0:amd64/noawait
/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders libgdk-pixbuf2.0-0:amd64/noawait
/usr/share/fonts fontconfig/noawait
/usr/share/ghostscript/fonts fontconfig/noawait
/usr/share/texmf/fonts fontconfig/noawait
/usr/share/icons/gnome gnome-icon-theme/noawait
/usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules libgtk-3-0:amd64/noawait
/usr/lib/gtk-3.0/3.0.0/immodules libgtk-3-0:amd64/noawait
/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules libgtk2.0-0:amd64/noawait
/usr/lib/gtk-2.0/2.10.0/immodules libgtk2.0-0:amd64/noawait
/etc/sgml sgml-base
/usr/share/sgml sgml-base
/usr/share/xml sgml-base
/usr/share/texmf tex-common/noawait
/usr/share/texlive/texmf-dist tex-common/noawait
/var/lib/dictionaries-common/hunspell dictionaries-common
/etc/ufw/applications.d ufw/noawait
/etc/init ureadahead/noawait
/etc/init.d ureadahead/noawait
/usr/share/doc-base doc-base/noawait
/usr/share/doc/rarian-compat doc-base/noawait
/usr/share/gconf/defaults gconf2
/usr/share/gconf/mandatory gconf2
/usr/share/gconf/schemas gconf2
/usr/share/GConf/gsettings gconf2
/usr/share/menu menu/noawait
/usr/lib/menu menu/noawait
/etc/menu-methods menu/noawait
/usr/share/app-info/icons appstream/noawait
/usr/share/app-info/yaml appstream/noawait
/usr/share/app-info/xml appstream/noawait
/usr/lib/libreoffice/share/extensions libreoffice-common/noawait
/usr/lib/libreoffice libreoffice-common/noawait
/usr/share/slib guile-2.0-libs:amd64/noawait
/etc/lsb-release plymouth-theme-ubuntu-text/noawait
/usr/man man-db/noawait
/usr/share/man man-db/noawait
/usr/local/man man-db/noawait
/usr/local/share/man man-db/noawait
/usr/X11R6/man man-db/noawait
/opt/man man-db/noawait
/usr/share/zoneinfo/leap-seconds.list ntp/noawait
/usr/lib/x86_64-linux-gnu/gio/modules libglib2.0-0:amd64/noawait
/usr/lib/gio/modules libglib2.0-0:amd64/noawait
/usr/share/glib-2.0/schemas libglib2.0-0:amd64
/usr/lib/i386-linux-gnu/gio/modules libglib2.0-0:i386/noawait
/usr/lib/gio/modules libglib2.0-0:i386/noawait
/usr/share/glib-2.0/schemas libglib2.0-0:i386
/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders libgdk-pixbuf2.0-0:i386/noawait
/usr/lib/i386-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders libgdk-pixbuf2.0-0:i386/noawait
/usr/lib/i386-linux-gnu/gtk-3.0/3.0.0/immodules libgtk-3-0:i386/noawait
/usr/lib/gtk-3.0/3.0.0/immodules libgtk-3-0:i386/noawait
/lib/udev/hwdb.d udev/noawait
/usr/lib/systemd/catalog systemd/noawait
/etc/init.d systemd/noawait
/usr/share/package-data-downloads update-notifier-common
/usr/share/applications desktop-file-utils/noawait
/usr/lib/x86_64-linux-gnu/vlc/plugins libvlc-bin:amd64/noawait
/usr/share/cups/ppd-updaters cups/noawait


installing 32-bit version of Skype on Ubuntu 16.04

It seems Skype's providing only 64-bit packages now.

As a workaround you may try Rambox, an Electron based

  Free, Open Source and Cross Platform messaging and emailing app that combines common web applications into one.

Skype is among the available services along with WhatsApp, Messenger, Viber, Telegram, Google Hangouts, Gmail, Twitter etc. There is also an option to add services manually.

To install Rambox, first download the 32-bit deb package of the latest release (v0.5.13) from their official GitHub page. Then run the following command in Terminal

sudo dpkg -i /path/to/the/package/package-name.deb

For example if you have downloaded the 32-bit package linked above to your Downloads folder then run

sudo dpkg -i ~/Downloads/Rambox_0.5.13-ia32.deb

There's a similar application called Franz, but it seems it's recent release(s) offers only 64-bit packages. There is a legacy version of the application with 32-bit packages.


How to sync gnome-calendar with an online calendar?

You can achieve that using the gnome control center in Ubuntu:

Type gnome-control-center into dash, settings will appear select that and select online account:

Then add your google account by clicking the plus sign at the bottom of the dialogue window that appears:

Then turn the calendar associated with that gmail account on, and this should sync it with Ubuntu Calendar.:

If you want more Calendars set it up in Calendar in google from the settings options top right corner of calendar page.
Google has changed how apps communicate with your google account so you have to setup your phone from here else you won't be able to add an account.

Set up Google Account Calendar sync

Go to google calendar:

Get to settings, top right of page:

In ther click on the Calendars tab, top left of page:

In there click on export calendars:

That will export your calendar in a .ics file format. Now Lets instruct Calendar to sync back in Ubuntu desktop.

Instruct Calendar to sync with downloaded .ics file

Extract the downloaded .ics file
Start up Calendar and click on Calendar Settings
Form the dialogue box that appears select from file
Navigate to that extracted .ics file location, select it and choose the one without the #[tag] at the start of the name.
Back in Calendar select synchronize and make sure your internet is working and after a few minutes your synced calendars will appear.


How to remove open source noveau and replace it with the proprietary Nvidia driver?

Have you tried running the additional drivers tool in the menu? This will fetch the right drivers and do what you need. If that doesn't work please update your question with what happened.


I e-mailed Asus support to see if the Asus Bluetooth BT-400 was compatible with Ubuntu.  They were no help so I took the chance and ordered one.

I wanted to use this on an older Toshiba Laptop to connect my Motorola S9-HD Headset that is generally connected to my phone for hands free driving.  It works great with 12.10 and 13.10.  I have also tested this on my towers at home that is running 13.10.

I used the bluetooth setup wizard in system settings.  There is one hitch. I have to turn off the Bluetooth on my phone.  If my head set is connected to the phone it will NOT connect to the another device.

Unfortunately I don't have another Bluetooth device to this with.

I hope this helps.


You can do this with xpra:

xpra start :100 --start-child=PROGRAM --bind-tcp=0.0.0.0:10000
xpra attach tcp:localhost:10000

As a bonus, it also works remotely – you can attach this window to X (or even Windows and MacOS!) on a different machine. xpra is like the console programs screen or tmux for X11.


I'll answer myself just to leave it on the record.
It was simply that the cogwheel appeared after clicking on a user and not the user selection menu.


New install of mythbuntu 12.04.3 disk size reported only 500GB but is 4TB

You must use GPT partition table for disks that are larger then 2 TB.

WARNING:
This steps will erase all content from the drive.

Run LiveCD.
Open GParted
Select "Create new partition table" from menu "Device".
Click on advanced settings.
Select GPT and click on "Create".

Now you can install Ubuntu using the installer!


GIMP: How to extend .xcf file dimensions

You can use the Image/Canvas Size option from the menu in order to change the size of the image without changing the layer's sizes. There is an option to choose which layers you wish to resize in order to adjust them to the size of the new canvas, center the layers, etc.

This may be helpful for you, I am using GIMP 2.8 but it works on 2.6 the same.

Good luck!


Why doesn't my system boot from the installation disk?

To solve your problem:

Boot in Windows 7;
Insert the Ubuntu CD;
When the "Autoplay" pops out click next;
Now click "Help me to boot" and next;
Wait while the boot entry is installed;
Click "Reboot Now" and then click "Finish";
When the boot manager appears use the arrows to select "Ubuntu" and press enter;
Wait;
Install Ubuntu.


Ubuntu dual boot not repaired by boot-repair after installing Windows 7

Sometimes this happens, if you look through the log you will see that windows removed linux so you need to reinstall linux if you still want it


Ubuntu 14.04 termial : hub 4-6 cannot enable port 3. maybe usb cable is bad

Seems like either one of your USB ports is bad, or, like it says, the cable is bad. try moving your USB devices to different ports and try different cables. Try removing everything USB and only using your USB Keyboard/Mouse. You will need to keep moving the USBs to different ports until, through Trial and Error, you figure out which USB port/USB cable is giving you the error. Then either stop using that USB port or get a new Cable, which ever the case may be.

Hope this helps!

Edit HUB 4-6 port 3 means USB plug #6, if that narrows it down for you at all..


How do I install/downgrade version 7.35.0 of Curl on ubuntu 16.04?

I advise strongly against the replacement of any software component from the repositories by a lower version because it's likely going to break something else that relies on this component with at least this version.

I also doubt that cURL v7.47 cannot somehow perform a task that v7.35 could perform. Maybe the usage changed slightly. It would help if you clarified what you want to achieve with it.

If the installation of cURL v7.35 turns out to be the best option for you after all you can download and install it from source. Take care to not overwrite the cURL installation of Ubuntu! You can do that if you specify an installation prefix other than /usr, e. g.

./configure --prefix=~/.local/curl

will install the cURL executable at ~/.local/curl/bin/curl. The default installation prefix is /usr/local and will not overwrite the system installation.


Permission denied from avgscan and when copying to folder from OS X

(1) For this, it seems a simple sudo avgscan ~ will suffice. If you are not familiar with sudo, try man sudo. It temporarily elevates the user to root privileges. man will fetch the manual page for a command. It is very useful to read these pages to understand how commands can be used and what they do.

(2) What exactly did you do with chmod? Remember the following: if using chmod ### the first number is for owner, the second for other users in the file's group, and the fourth for users not in the file's group.

Each number functions as follows:4 for read, 2 for write, and 1 for execution rights. So chmod 777 /media/Ubuntu_Data gives you everything. This isn't good practice unless you have a reason for it.

Also, ls -l /media/Ubuntu_Data will tell you the permissions currently set. At the end of the day, chmod 775 /media/Ubuntu_Data will give you write permissions on your folder without giving everyone in the world write. Give that a shot.

And please, for future question purposes, include as much info as you can, e.g. how you used the chmod command. "I've tried chmod on this folder and I can't get it to work." does not tell us a tremendous amount about what you did.


How to Automatically Kill Out-Of-Memory Firefox?

Well this isn't really an answer because I haven't fully solved the problem myself. My current "solution" is to mostly use Brave but it can't handle all website so it is not a complete solution.

Another solution could be Facebooks OOMD or something similar that keeps track of running processes and automatically kills them if the threaten system stability. That implementation is rather server-centered and probably not very suitable for a desktop (or terminal server)

However the real solution is to download the source code and patch it to become less memory hungry. I am working on that but the irony here is that the build process are killed by the OOM killer. At first it was freezing the system but then  I added RPM_BUILD_NCPUS=1 (I'm doing this on fedora) which made it run almost to the end. But LD chokes on merging all those .o files to a binary and runs out of memory.

I think that the main problem is that Firefox treats available memory (including swap) as free memory and use it for caching and garbage. The first thing that I will try is to find out where Firefox checks/calculates available memory and see if I can plug the memory hunger by correctly assessing free memory. That could be about changing one line of code if they have been kind enough to put such code in one location.

For now my answer is to use Brave when it works and switch to Firefox or Chrome when it doesn't. But NEVER use Firefox or Chrome when another browser is running. Especially not together. They will eat each others memory and often lock into a loop of releasing and grabbing memory.

Finally if you put more than 24 GB per browser you intent to run that should be enough according to testing done by others. Neither Firefox nor Chrome seem to use more than that specific amount.

Oh and another solution man be to use a 32 bit version of Firefox with would be limited to 4GB per process. Although Firefox spawn many processes in recent versions so that may not really solve the problem.

I also tried creating a virtual machine where I tried both NetBSD and OpenBSD with various RAM sizes. In NetBSD I ran Firefox without much problems with 1 GB of RAM.  and in OpenBSD I needed 2 GB. A VM like VirtualBox and without an internal swapfile will physically limit how much memory an application can use. But you will lose all hardware acceleration of graphics. I used VirtualBox and not libvirt because VirtualBox allow constraining both memory and CPU for the guest OS. I did not try this with Linux because my main objective was to try out *BSD OS:es and Firefox was just one of the things I tested in them.

When I triggered heavy swapping in NetBSD the interesting result is that Firefox choked and was frozen for about 15 minutes but the rest of the OS was completely fluent. I seems like swapping is constrained to the individual process somehow in NetBSD. But doing that in Linux would probably require heavy kernel changes and it still doesn't really solve the problem. It solves the problems for the other applications that you are running but Firefox still freezes. I did not try this in OpenBSD but it is a fork of NetBSD so I would suspect similar results.

The goal here would be to get a solution where both the application and the operating system works without freezing or entering a swap loop. Killing the application doesn't really reach that goal. Nor would a different scheduler. The only solution is to fix the application. And frankly Firefox are in need of heavy modularization so that building it doesn't take hours and doesn't require rebuilding all components, including all the bundled third party components.


Networking problem with Ubuntu as guest in VMware workstation on Windows 7 64bit

The gateway in your route table is set to the IP address of the host's VMNet8 interface whereas it should be set to the gateway address of the NAT interface.  If you run the Virtual Network Editor and look at the NAT settings for the VMnet8 interface, you should find the gateway IP.  Try setting the gateway to that address in the virtual machine.

Hope that helps.


Why is my laptop's wireless Internet connection slow?

I had some severe issues with my Atheros based wireless card in my Acer laptop.  It was fine in 10.10, but 11.04 was horrible. the command:

sudo -s

echo "options ath9k nohwcrypt=1" > /etc/modprobe.d/ath9k.conf

fixed it for me.  Others have reported the same issue with the ATH9k driver


Can't login to my main administrator account?

Here is a couple of things you can do :

Delete .Xauthority and try to login

sudo rm .Xauthority

If that fails delete .ICEauthority

sudo rm .ICEauthority

if that fails
press  Ctrl + Alt + F12 then press Alt + F2 login and then run this command:

startx

The last solution would be to purge the video drivers.

Let me know if any of these work.


Edit your /etc/default/grub file.  Place the time in seconds in the GRUB_TIMEOUT= option.

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT="saved"
#GRUB_HIDDEN_TIMEOUT="0"
GRUB_HIDDEN_TIMEOUT_QUIET="true"
GRUB_TIMEOUT="10"
GRUB_RECORDFAIL_TIMEOUT=$GRUB_TIMEOUT
GRUB_DISTRIBUTOR="`lsb_release -i -s 2> /dev/null || echo Debian`"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

Activate this change by running:

$ sudo update-grub


How to switch off caching for usb device when writing to it?

Read this first: http://groups.google.com/group/linux.kernel/msg/8d1591196c0ae15e?pli=1
I am unsure if it is true or not.

You can try using hdparm to set the write caching feature to off at runtime. (You will probably need to run this after every boot or every time you remove and reinsert the device)

sudo hdparm -W 0 /dev/devicename

Please ensure you know the correct device name (sdb, sdc or so on).

You can find out the device name by running:

sudo fdisk -l

You can also edit /etc/fstab and add the mount options sync,dirsync however I am not very familiar with how /etc/fstab works with removable devices. I think they need a permanent mount point.


I had this error after upgrading from 14.04 to 14.10. After hours researching found the command that saved the day:
$ sudo aptitude install --safe-resolver

From the man page:

--safe-resolver
When package dependency problems are encountered, use a “safe” algorithm to solve them. This resolver attempts to preserve as many of your choices as possible; it will never remove a package or install a version of a package other than the package's default candidate version. It is the same algorithm used in safe-upgrade; indeed, aptitude --safe-resolver full-upgrade is equivalent to aptitude safe-upgrade. Because safe-upgrade always uses the safe resolver, it does not accept the --safe-resolver flag.
This option is equivalent to setting the configuration variable Aptitude::Always-Use-Safe-Resolver to true.


grep doesn't replace or modify files.  Use sed:

sed -i 's||link to JS script|' *.html

How it works

-i tells sed to modify files in place.

The most important sed command is substitute.  It has the form s|old|new| where old is a regular expression.  Here, we replace  with link to JS script.

*.html tells sed to operate on all html files that the shell finds in the current directory.


run this command to print out the version in the terminal:

cat /etc/lsb-release

alternatively, you can also use this instead:

cat /etc/os-release

I believe the reason it's not available is because, if anybody wants it that way, they can just run the following command to make it that way:

echo 'alias ubuntu-version="cat /etc/lsb-release"' | tee -a ~/bashrc; . ~/.bashrc

then, type the following command to see the version:

ubuntu-version

Also, logically, there can be no:

ubuntu -v

because there is no command:

ubuntu


Dell Canonical repository is not signed (GPG error)

The error occurs because the Dell repository at the time of this writing has no content for Ubuntu 19.04.
When we add a PPA the package manager APT expects to find a folder for our release and if it's not there it fails to authenticate. It won't do any other search.

According to Dell's customer service, support - including the PPA - is given for the preinstalled Ubuntu release, 16.04. This is a LTS release supported until April 2021. The computer is likely to work fine with newer releases because hardware support tends to improve with each new kernel version so drivers and other software provided by Dell's PPA may not be necessary or redundant in newer Ubuntu releases.


Rename all files in a folder from camel case to lowercase and put underscore to separate words

This bash command do the job. From the command line, enter the folder, and run this line:

for file in ./* ; do mv "$file" "$(echo $file|sed -e 's/\([A-Z]\)/_\L\1/g' -e 's/^.\/_//')" ; done

In script form it looks like this:

#!/bin/bash
for file in ./* ; do
    mv "$file" "$(echo $file|sed -e 's/\([A-Z]\)/_\L\1/g' -e 's/^.\/_//')"
done

Basically sed is used to manipulate strings. There're two expressions:

s/\([A-Z]\)/_\L\1/g: searches for capitals to substitutes them for lower case and add the underscore
s/^.\/_//: removes any underscore which was inserted due to the first letter being a capital (i.e. you don't want _file_name_x.cpp.

Consider using -v, --verbose on mv to explain what is being done.


Set restrictions to HMAC on Apache2 Server in Ubuntu 14.04

I solved the issue by myself.
The trick is to change the ciphersuits in /etc/nginx/ssl.conf to whatever you like. Note that this config file requires a ; at the end of each line. I think this is because of the way Plesk manages all services.

Maybe this helps anybody with simillar problems.


Automatically locking screen without shutting it off

xscreensaver would be simpler

It would be nice for HDMI audio to stay active, wouldn't it...
I don't think there is a way to disable screensaver while video is playing with ubuntu settings. Some players have this setting built in.

I've been playing around with

xset dpms force standby

It does not work with ATI cards but what does :(

You can check more settings with xset -h

Try this, it should work. I wish there was a better solution. It's a blank screensaver. Does not turn off monitor.

xset s blank
xset s 300
xset s on

This blanks the screen after 300sec.

To instantly activate use

sh -c "sleep 1; xset s activate"

if you need to lock the screen, you can use

gnome-screensaver-command -l

You can create a desktop launcher that can be dragged to the unity launcher with

gnome-desktop-item-edit --create-new

If you don't want to use it anymore> To deactivate

xset s off

or

xset s default

should work.

see here for more details.

So many people use hdmi audio. There should be a better solution.


Is LibreOffice Writer able to read properly Ms Office Word docx Files?

Yes it can... Most of the time without issues.

LibreOffice supports by default several formats including the ones used by Microsoft Office, including the Office Open XML specification from .docx, .pptx and .xlsx.

That does not mean that everything will look exactly the same when you open a file in MS Office 2007 and in LibreOffice. To tell the truth not all files created in MS Office 2007 will open the same even in Ms Office 2010, and the opposite is also true.

You should be aware that Office XML specifications were created by Microsoft and that nuances can be seen using different versions of the editor that you are using. That will also be true even with Microsoft software.

Just don't expect that everything will be the same all the time. Things like missing fonts and weird formatting in the original document will cause massive issues while trying to open it in LibreOffice. Open XML formats are bad. End of story.

As an option you can however run MS Office in Ubuntu easily. Nothing is impossible. Just buy a MS Office license, run the installer with Wine and you can do all the things you do in Windows using MS Office 2007 under Ubuntu.


Should I download the ISO image again for the latest version?

Even if you download it again, you'll have to update anyway (there's updates almost every day so if the iso you download now was created some weeks ago, you'll have to update).

What you should do is install with your usb, and when it asks you if you want to download the latest updates from internet during installation answer "no". You can do it later from the desktop and it will be faster.

Let's say the firefox in your "old" iso is 5, and the firefox in the "new" iso is 6. It doesn't matter because the version in the repos is 6.0.2 so whatever you install it will be upgraded, and it will be the same clean install, don't worry (this is not windows, who gets slower in each update...).


Can I install Ubuntu on the same hard drive I booted with?

You need to partion your hardrive first. Then install the live environment on one half. When you boot into the installer you can now install on the other half.


Lagging effect with different kernels suggests to me that it's not a kernel issue per se, so it probably is something in userspace that could be throttling or rate limiting your machine.  One thing to check for is thermal overrun on the CPU and if the CPU is being speed throttled by thermald. The output from dmesg may be useful as that will show if there are any thermal overruns or throttling occurring.


Swap capslock and control in virtual consoles

Set your preferred keyboard options: System > Preferences > Keyboard > Layouts > Options
Apply the layout and options system-wide: System > Preferences > Keyboard > Layouts > Apply System-Wide
Reboot for the changes to take effect in the virtual consoles.

To double-check that the settings have been applied, look for XKBOPTIONS="ctrl:swapcaps" in /etc/default/console-setup. (Alternatively, if you know what you're doing you can go ahead and just edit this file directly.)


How to properly install and use texlive with package manager

Just run tlmgr init-usertree first and then run sudo tlmgr update --all.

Maybe you will get:

/usr/bin/tlmgr: Initialization failed (in setup_unix_one):
/usr/bin/tlmgr: could not find a usable xzdec.
/usr/bin/tlmgr: Please install xzdec and try again.
Couldn't set up the necessary programs.
Installation of packages is not supported.
Please report to texlive@tug.org.
tlmgr: exiting unsuccessfully (status 1).

If so, you have to install the xzdec package, from your package manager or through sudo apt-get install xzdec.

To use the GUI, you also need to install perl-tk:

sudo apt-get install perl-tk

Then you can summon the GUI via:

tlmgr --gui

And then hit the Load Default button.


Thinkpad x220 wireless network slows down after some time

Try creating a file /etc/modprobe.d/iwlwifi-11n-disable with the following content and then rebooting.

options iwlwifi 11n_disable=1

Also read the following bug reports to see if you have the same symptoms.

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1036356
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1049257
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/994104


Work Around

Warning: editing the file /usr/share/X11/xkb/symbols/us is very risky if any small typo mistakes occur.. it leads to login loop.. Proceed only if you can manage things from tty in such case..

change directory to /usr/share/X11/xkb/symbols/

run command:

cd /usr/share/X11/xkb/symbols/

take backup of us file

run command:

sudo cp us usbackup

edit the file us

run command:

sudo -H gedit us

Edit the lines like below

Content:

key <AC01> {    [     a,    A       ]   };
key <AC02> {    [     s,    S       ]   };
key <AC03> {    [     d,    D       ]   };
key <AC04> {    [     f,    F       ]   };
key <AC05> {    [     g,    G       ]   };
key <AC06> {    [     h,    H       ]   };
key <AC07> {    [     j,    J,  parenleft           ]   };
key <AC08> {    [     k,    K,  parenright          ]   };
key <AC09> {    [     l,    L,  minus, underscore   ]   };
key <AC10> {    [ semicolon,    colon,  equal,  plus]   };
key <AC11> {    [ apostrophe,   quotedbl            ]   };

Save the file and Close.
gnome-shell refresh with Alt+F2rEnter or Logout & Login may be required..not tested..
make Caps_Lock as the level3 modifier with the below command

run command:

gsettings set org.gnome.desktop.input-sources xkb-options "['lv3:caps_switch']"

with the above command the Caps_Lock modifier changed to ISO_Level3_Shift which will print the 3rd keysym from the edited us file while Caps_Lock is held down.. similarly 4th keysym if Caps_Lock & Shift are held down..

Now to make the modifier ISO_Level3_Shift to behave on its own while pressed and released.. use the great tool xcape..

run command:

sudo apt install xcape

  Description: Configure modifier keys to act as other keys when pressed
  and released  xcape allows you to use a modifier key as another key
  when pressed and  released on its own.  Note that it is slightly
  slower than pressing the  original key, because the pressed event does
  not occur until the key is  released.  The default behaviour is to
  generate the Escape key when Left  Control is pressed and released on
  its own.

once xcape is installed run the below command to make Caps_Lock behave as Escape when it is pressed and released..

run command:

xcape -e 'ISO_Level3_Shift=Escape'

Add the above command in your startup applications preference list so that no need to run the command on every login/ boot..

thats it.. You are Done..

with the Caps_Lock Modifier all the 4 things ( ) - = and with Caps_Lock+Shift Modifiers _ are achieved..

When only Caps_Lock is pressed and released.. It acted as Escape as that is how we configured.


.VOB file not compatible with anything I try

You aren't supposed to play them directly. Use VLC to play the actual disk, not the files.


Does anyone have a .sh script to scan recursively the current folder for 0 byte files and place them into text file?

Use find command:

find /path/to/directory -type f -empty > zerobyte.txt

-type f look only for files
-empty finds empty files


error after fresh instalation ubuntu 16.04

Sangre Sani sent me this fix (from my post, Ubuntu 16.04 Jan 3 2018 update causing screen/access issues - there is another answer there as well but I didn't use it) and it seems to work:

The solution that worked for me

sudo add-apt-repository ppa:paulo-miguel-dias/pkppa
sudo apt-get update && sudo apt-get upgrade
sudo reboot

That updated the mesa thing to the newer version and the problem is fixed!


You can set a password when you open Remote Desktop.

Or withvncpasswd you can also set the password for the vnc-server.

So if someone want to connect to you, he has to enter the password.


change flavours from Ubuntu 15.04 (Vivid Vervet) to MATE 15.04

Ok got it , it was staring me right in the face!

First make sure your package list is up-to-date by running:

sudo apt-get update

To install MATE, choose one of the apt-get options below.

This will install the base packages required for a minimal MATE desktop

sudo apt-get install mate-desktop-environment-core

This will install the complete MATE desktop

sudo apt-get install mate-desktop-environment

This will install the complete MATE desktop including a few extras

sudo apt-get install mate-desktop-environment-extras


How to get Firefox' about:home page look like the one on Windows?

I don't think this is exactly the same, but you can try this:  http://www.google.com/firefox/

To set this as your homepage you will go to Firefox's menu: Edit (or Firebox button) > Preferences > General > Home Page:

Copy the URL into the "Home Page:" line


Is there an easier way to chroot than bind-mounting?

See the schroot package.  Man Page

As an alternative, you can shorthand the bind mounting with:

for f in proc sys dev ; do mount --bind /$f /mnt/$f ; done


Install Ubuntu GNOME 17.04 on X230 grub error

For some strange reasons Ubuntu isntaller tried to install the bootloader on the USB and not on the hard drive.
Go to manual resize and partition creator install and select your hard drive for the bootloader /dev/sda


Your project is attempting to link with libGL and cannot find it either because it is not present on your system, or because you have not provided the appropriate compile/link flags or environment variables (e.g., LIBRARY_PATH) to allow the linker to locate it.


Virtualization solution with decent graphical capabilities?

In general, physical cards with 128MB video memory can run Unity 3D just fine, but maybe that setting does more behind-the-scenes in Virtualbox.

I haven't used Virtualbox regularly in a while, but I can definitely recommend VMWare Player (free) for your needs; with the 3D acceleration option enabled for a virtual machine, it runs Unity 3D just fine.


Package: evolution (3.2.3-0ubuntu6) are the groupware suite with mail client and organizer. you can read more about here - http://packages.ubuntu.com/precise/evolution

You can resolve the evolution dependencies by Download Page for evolution_3.2.3-0ubuntu6_amd64.deb on AMD64 machines

If you are running Ubuntu, it is strongly suggested to use a package manager like aptitude or synaptic to download and install packages, instead of doing so manually via this website.

You should be able to use any of the listed mirrors by adding a line to your /etc/apt/sources.list like this:

deb http://ubuntu.mirror.cambrium.nl/ubuntu/ precise main

more info visit: http://packages.ubuntu.com/precise/amd64/evolution/download

Download Page for evolution_3.2.3-0ubuntu6_i386.deb on Intel x86 machines

If you are running Ubuntu, it is strongly suggested to use a package manager like aptitude or synaptic to download and install packages, instead of doing so manually via this website.

You should be able to use any of the listed mirrors by adding a line to your /etc/apt/sources.list like this:

deb http://ubuntu.mirror.cambrium.nl/ubuntu/ precise main

more info visit: http://packages.ubuntu.com/precise/i386/evolution/download

try to solve dependencies by download suitable package.


After a restart due to a system crash the ethernet interface is disappeared. How to restore it?

Solved myself. Maybe it can help someone else:

1) I discovered that Ubuntu 19.10 by default is not defining the network interfaces by the /etc/network/interfaces file. This file doesn't exist.
To manage the network interfaces it is using the network manager: http://manpages.ubuntu.com/manpages/cosmic/man1/nmcli.1.html

2) First of all I list the interfaces by this command: sudo nmcli device show

[sudo] password di developer:
GENERAL.DEVICE:                         ens33
GENERAL.TYPE:                           ethernet
GENERAL.HWADDR:                         00:50:56:3A:4B:1E
GENERAL.MTU:                            1500
GENERAL.STATE:                          10 (non gestito)
GENERAL.CONNECTION:                     --
GENERAL.CON-PATH:                       --
WIRED-PROPERTIES.CARRIER:               off
IP4.GATEWAY:                            --
IP6.GATEWAY:                            --

GENERAL.DEVICE:                         lo
GENERAL.TYPE:                           loopback
GENERAL.HWADDR:                         00:00:00:00:00:00
GENERAL.MTU:                            65536
GENERAL.STATE:                          10 (non gestito)
GENERAL.CONNECTION:                     --
GENERAL.CON-PATH:                       --
IP4.ADDRESS[1]:                         127.0.0.1/8
IP4.GATEWAY:                            --
IP6.ADDRESS[1]:                         ::1/128
IP6.GATEWAY:                            --
IP6.ROUTE[1]:                           dst = ::1/128, nh = ::, mt = 256

As you can see the ethernet network interface neamed ens33 is at the moment not handled (in italian "non gestito"), so at the moment is disabled.

3) I enabled it by

nmcli networking on

now it works fine


¿How to get a symbolic link to www folder that don't show changes?

This can be solved by creating a new symbolic link between your two folders.
The ln command takes in two parameters: <real folder directory> and <linked folder directory>. The <linked folder directory> will be /var/www/ in this case.

Assuming that the www folder located in your user's documents is the <real folder directory> go ahead and create the symbolic link with:
sudo ln -s /home/user/Documents/www/folder-with-web-content /var/www/


How do I get HDMI audio working on a Zotac MAG HD-ND01-U?

The HDMI sound actually works out of the box after you install the nvidia drivers, you just need to unmute the S/PDIF microphone thing, which appears to be mislabeled.

Run alsamixer, then use the right arrow key to move over to it and press M to unmute it so the 00 shows up instead of an MM.


To behave even more like "a usual ubuntu system" instead of Docker I'd think you could consider LXD containers.

a) it is like a system on its own. But you can use snapshots to
have a base and derive from there in many ways
b) yes
c) yes
d) you can forward GPUs they are generally safe but you can expose things as you need (unsafe but sometimes helpful)
e) For that you'd need to go to full VMs like qemu/KVM


Looks like this info is available through procfs:

cat /proc/tty/driver/<driver_name>

Shows statistics for all ports managed by the specified driver, including parity/framing/overrun error counters.


How do I install Copy (file syncing software)?

Note: Copy was discontinued in 2016 and the PPA received no updates after April 2015, so the below answer should be considered obsolete.

Copy for Ubuntu is available in Paolo Rotolo's PPA:
sudo add-apt-repository ppa:paolorotolo/copy
sudo apt-get update
sudo apt-get install copy

For those who don't insist on working only through a console...


Run qtconfig-qt4 → Interface tab
Set Default Input Method to xim

If for some reasons didn't work, try using im-config:

Check for available & default input systems:

$ im-config -l
ibus xim

$ im-config -m
default
ibus
ibus

Set other one, xim is the standard for X server

im-config -n xim


Crontab command does not function properly

You don't state what the log file contains; I assume it's empty.

If that's the case, it looks like your problem is due to the path used in the crontab file:

30 22 * * * /Desktop/marsync.sh >AutoRsyncLogfile.txt

The /Desktop part is probably incorrect; the Desktop directory is usually in your home directory (ie, /home/<username>), and can be referenced by the $HOME environment variable.. If you change this to something like:

30 22 * * * $HOME/Desktop/marsync.sh >AutoRsyncLogfile.txt

- then this should work. You'll also need to ensure that the marsync.sh file is executable:

chmod a+x $HOME/Desktop/marsync.sh

Also, you might want to capture standard error (in addition to standard output) to your log file. Use &> to do this:

30 22 * * * $HOME/Desktop/marsync.sh &>AutoRsyncLogfile.txt


@popey I did that  and I was still getting the error. But I later found out that the issue was from the two conflicting paths for ubuntnews which are- /usr/local/bin/ubuntunews and /snap/bin/ubuntunews. To clear that I run source ~./bashrc  so that I could only get /snap/bin/ubuntunews which is the path I actually wanted. But now I'm getting a new error
/snap/ubuntunews/x1/usr/bin/python3: /lib/x86_64-linux-gnu/libc.so.6: version 'GLIBC_2.25' not found (required by /snap/ubuntunews/x1/usr/bin/python3)


How to control the mouse pointer via my keyboard?

If you go to "System Setting" -> "Universal Access" -> "Pointing and Clicking" and activate "Mouse Keys" you can use the numpad keys to move the mouse pointer.


Don't know how to arrange the second bit of behaviour. Doing the following should set you up for simply making Capslock act like the Ctrl key.

In the dash, search for and launch "Keyboard Layout".
Click on "Options" in the  lower right corner.
Open "Caps Lock Key Behaviour"
Select "Make Caps Lock an additional Control but keep the Caps_Lock keysym"

If  you would prefer to launch this from the terminal, you can do so by running the terminal command gnome-control-center. This should bring up a window titled "system settings". You should see several icons, one of which is "Keyboard Layout". Its under the "personal" heading. Once you select it, you can follow the above steps.


How to create desktop icon that runs jar command

You'll need to create a .desktop file. To do this, create a new file named something like ExampleLauncher.desktop (the name isn't too important, since window managers will likely read the name from inside the file and display that inside). Then, open that file in your favorite editor (double-clicking may not work in this case, so you'll need to drag the file in), and add the following:

[Desktop Entry]
Version=1.0
Name=JOSM Imports
GenericName=Java OpenStreetMap Editor
Comment=Editor for OpenStreetMap.org
Exec=JAVA_OPTS="-Djosm.home=/home/saikrishna/.josm-imports/" josm
Icon=josm.png
Terminal=false
Type=Application
Categories=Education;Geography;

This is what I have to run a custom instance of JOSM. Obviously, the content you'll have will be different.

Here is an explanation of each line:

Version=1.0: Specifies the specification version of the .desktop file. Keep this unchanged.
Name=: Name that will be displayed in the menu (if you put this in ~/.local/share/applications or /usr/share/applications)
GenericName=: Generic name of the program. This is like the category that a program falls under.
Comment=: This may be used in displaying the tooltip.
Exec=: This is what will be run when this file is activated. Unless what you are running is in your $PATH, I recommend you use an absolute path.
Icon=: This is an icon file name that will be displayed. If there's no specific icon, you can skip this.
Terminal=: Specify if a terminal window should open when this is activated. For GUI programs, this will typically be false.
Type=Application: This is the type of .desktop file. There are other types, but leave this as-is.
Categories=: This is the category that the program will fall under. This is mainly used in window managers that have hierarchical menus.

For a full list of valid keys and their descriptions, see here.


Alternative to Autokey (text expander program)

Maybe Actionaz (homepage)

It is in the repository.


This worked to reset my touchpad.

sudo rmmod psmouse
sudo modprobe psmouse

If there is no terminal window open, press Alt + F2, type gnome-terminal and press Enter.

Source:
http://xpapad.wordpress.com/2009/09/09/dealing-with-mouse-and-touchpad-freezes-in-linux/


Make blank hard drive bootable without bootqble USB or DVD

There aren't many options, and all the options I can think of require another computer.

Some BIOSes provide the option to boot from LAN. Even if there is no OS installed, you should be able to configure the BIOS, or the boot order by pressing a certain key (typically Del, sometimes F10 or F12.

I never tried booting from LAN, and I don't know your computer, so I can't help you. In the chance someone else replies here, posting more information about your computer, or pictures of your screen on boot would be very helpful. (logos, trademarks, boot screens, BIOS menu).

The other method is not likely to work, but you can try swapping the hard drive with another computer with better boot support, reinstalling Ubuntu in this new computer, and then swapping hard drives again. But both computers must at the very least use the same CPU architecture.

Good luck.


Will Ubuntu be faster than Windows for these given tasks on my machine?

Saying "Ubuntu is faster" makes sense only on machines on which Windows ALREADY proved to be heavy and slow. As all this is relative, the answer should be understood within such limits.

That being said, Ubuntu is lighter than Windows 10 and 7, especially with light desktops like Xfce and Mate, with heavier desktops like KDE/Plasma and Gnome also performing better overall. The difference is striking with lower specs computers and may tend to disappear with powerful CPUs. My experience with very similar specs is that boot time, application startup and general behavior of the desktop get faster in Ubuntu and especially with Xfce desktop (but also in Plasma, Mate, LXDE, LXQt, Budgie, Pantheon etc, also testing outside Ubuntu) while internet browsing is much better, with Firefox and Chrome much faster and with no lags.(SEE NOTE BELOW)

NOTE: By the way: the above is an understatement: with Xfce there is no trace that my "old" computer IS old, and that my "low" CPU is low! All works perfectly, and therefore these terms are relative to the way Windows operates on a such machine. I see Windows as uselessly heavy and bloated and not my specs as mediocre. In this sense it is not 'specs' that make a computer "powerful", just as it's not gas that makes a powerful car: it may be that the 'old car' that needs to be replaced is not the PC, but Windows.

I have not tested myself all programs you listed, but they doesn't seem heavy, given your specs.

Anyway, you could test Ubuntu along Windows if you want, either from a live USB or locally in a separate partition.

So, the answers are:

Yes.
Yes.
Never tested Viber, but there is an Ubuntu version that you could test: https://www.viber.com/download/
The same as above:https://slack.com/intl/en-fr/downloads/linux
There are many such tools for Ubuntu (Unity desktop had the option for the panel, for Gnome, here; also here; for Xfce, here (I could not add two digital clocks at the same time, but could add one digital and many of the other types);  gworldclock can be used in any desktop in a separate window). An online solution should be available. There is also the Calendar Clock app for Chrome. Etc.
It should work. Slim chances of problems there.
Somewhat higher risks there, but it is easy to test (from a live usb) before full commitment.

(Hopefully you don't seem to need MSOffice, for which there is no Linux version and which can hardly be installed in Wine, where it operates rather poorly.)

As I said, you should test first from the live USB (that you need anyway in case you want to install), and if all goes well you could then test an installation on a separate partition. In case you don't like it you have to be sure you know how to restore your bootloader. In order to create a live usb I would recommend LinuxLive in Windows or Etcher in Linux. For a full installation of Ubuntu look here.

Be sure you understand risks and procedures (including backup) before going forward.

As you want a dual boot anyway, you could simply take that option, once you are confident about the risks involved by any formatting procedure etc.

NOTA BENE: Probably for commercial reasons, driver support may be problematic for certain specific devices in Linux compared to Windows, especially printers, wifi cards and video cards (although I have not experienced the last problem myself). Driver support can be easily tested before installation  as indicated above though.


Cannot FInd a Driver for a Wireless PCI Card, Netis Systems WF-2117

rt2800pci is a project produced by the rt2x00 driver that supports the PCI chipset Ralink 802.11n. you can see the list of supported devices by typing:

modinfo rtl2800pci

this is the output (apart the kernel version):

filename:       /lib/modules/3.11.0-19-generic/kernel/drivers/net/wireless/rt2x00/rt2800pci.ko
license:        GPL
firmware:       rt2860.bin
description:    Ralink RT2800 PCI & PCMCIA Wireless LAN driver.
version:        2.3.0
author:         http://rt2x00.serialmonkey.com
srcversion:     259E8826760AAB9E718FD85
alias:          pci:v00001814d0000539Fsv*sd*bc*sc*i*
alias:          pci:v00001814d0000539Bsv*sd*bc*sc*i*
...
alias:          pci:v00001814d00005362sv*sd*bc*sc*i*<-- your chipset
alias:          pci:v00001814d00005360sv*sd*bc*sc*i*
...
depends:        rt2x00lib,rt2800lib,rt2x00mmio,rt2x00pci,eeprom_93cx6
intree:         Y
vermagic:       3.11.0-19-generic SMP mod_unload modversions
parm:           nohwcrypt:Disable hardware encryption. (bool)

Mount the drivers in the kernel

sudo modprobe rt2800pci

type dmesg for print kernel message on your screen.

Here you can find the project page

If it does not work you can try the manufacturer's drivers. Here is driver page.

Another possibility is to use ndiswrapper, but i'm not sure it is work. There are many guides on the internet that you can find easily. This one is here

I hope this helps


Regional Fonts (Malayalam) not readable in LO 5.3

Try to remove the files from /tmp folder. If it doesn't work the make a directory .fonts in your home folder and copy all the fonts in that folder.


The equivalent is possible on Ubuntu, it's just not enabled by default. Check out /etc/pam.d/su:

# Uncomment this to force users to be a member of group root
# before they can use `su'. You can also add "group=foo"
# to the end of this line if you want to use a group other
# than the default "root" (but this may have side effect of
# denying "root" user, unless she's a member of "foo" or explicitly
# permitted earlier by e.g. "sufficient pam_rootok.so").
# (Replaces the `SU_WHEEL_ONLY' option from login.defs)
# auth       required   pam_wheel.so

So, uncomment this auth line, then su will be restricted to members of group root. Or uncomment and add group=sulogin, if you want to restrict to the sulogin group.


How can I manually assemble my own package "the hard way"?

How difficult is this?

Not so difficult at all. I do all my packaging from scratch. Once you know a few tools, and understand what's going on, the process is fairly simple. Be prepared to spend some time, learning the processes, though.

  Do I need to create my own repository for this to work?

A repository (such as a PPA) is for publishing your package to the wider world. So, yes, if you want people to be able to install the package, either you need to get it included in Debian/Ubuntu, or you need to publish it in a repository.

PPAs also have access to the Launchpad build farm, so they can build binary packages from source packages. But you can do this locally, too. And while packaging something, you really want to be test-building locally, rather than waiting for LP to build your package (the LP build queues can be hours long).

  Do I need to sign it with my public key or something?

If you want to upload to a PPA, you need to sign your source package with your private key.

  Will one deb package work for all Debian-based distributions, or do I need to build a separate version for each flavour?

The safe answer is no. But sometimes it's fairly straightforward to produce once deb that will work on all current Debian and Ubuntu releases. It depends on the package and the toolchain you used.

I suggest:

The Ubuntu Packaging Guide
This introduction to Debian packaging
The Debian New Maintainer's Guide


Enabling Unity 3D support in Ubuntu 15.10 and VirtualBox

I had the same issue in Ubuntu 16.04 and solved by updating every thing and then running the command sudo bash -c 'echo vboxvideo >> /etc/modules'
 and then reboot.

In a case similar to yours, it should be made sure that the versions of virtual box and VBoxGuestAdditions are the same. Having an older version of Virtual box and installing the latest version of guest additions causes problems.

Another interesting thing, It didn't work after installing the guest additions when I was notified by the virtual box immediately after the update to install the newer available version of Guest addition. It worked only when I installed it from inside the Ubuntu via terminal.


First I tried with sudo os-prober and sudo update-grub and it didn't recognize my windows.

Finally I solved this problem following steps of Boot-Repair

Install boot-repair

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

Push "Recommended repair"
And put in a terminal some commands as it suggested.

I think my Grub doesn't recognize windows due to a bad shutdown, and it solved the problem.

I hope this help you.


How can I add a "force quit" button to my Unity top-bar?

You can install indicator-forceclose. There is an article on it here. The home-page is launchpad.net/indicator-forceclose.

To install, extract the archive, cd into the folder (use cd /path/to/folder), and run:

    sudo python setup.py install

You can also add a similar program to the unity launcher, which lets you freeze/unfreeze programs as well as kill them. See this page for details.


By default root should be the owner of the /usr/share/applications directory.

Are you able to use sudo to create and edit the file?

Either at a console :

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

Or maybe :

sudo gedit

then write the file and save it to the directory.

It is best practice to use sudo to make/edit files in directories with root permissions rather than change these permissions.

Alternatively, you could write the file in your home directory then use sudo to copy it to /usr/share/applications

sudo cp myApp.desktop /usr/share/applications/

Finally, if you want to use this myApp.desktop file as a shortcut on your desktop simply :

cp /usr/share/applications/myApp.desktop ~/Desktop/


Update 14.04 to 16.04 stuck and won't boot

First, your files are intact, and your system is not "stuck." X-Windows is just not starting. As I said in a comment, you could use CTRL-ALT-F1 or SSH to log into the Parallels instance.

You need to update manually the Parallels tool, which fixes the video driver. You can follow the directions in this KB article.  (It's for an older version of Ubuntu and Parallels, but the steps are the same.) http://kb.parallels.com/en/118776

In summary, you attach the "parallels tools linux iso" (it's in the Parallels.app bundle) to the virtual CD-ROM. Start the virtual machine. Use CTRL-ALT-F1 to get to a text terminal, login, mount the virtual cd, and run the install script. Once reboot, X-Windows will start correctly.


You need to add the new MySQL location to apparmor alias.

To add it, simply type

sudo nano /etc/apparmor.d/tunables/alias

And add this to the end of the file

/your/new/data/dir -> /var/lib/mysql

Note: you may see the ubuntu buit-in manual in the file

And type

sudo invoke-rc.d apparmor reload

Then it should work

Or a simpler solution

Remove AppAmor

sudo apt-get purge apparmor


Cannot switch to Nvidia graphic card on Ubuntu 18.04


How to execute "grep" only in the folder you're in

Remove the -r (recursive) flag, and instead use a shell glob for the files you want to search:

grep 'xxx' *.txt


From the https://help.ubuntu.com/community/Grub2

You can change which kernel grub boots to during the computers start-up.

As the computer starts up.

Hold down SHIFT to display the menu during boot. In certain cases, pressing the ESC key may also display the menu.

You should now see the the grub menu. Use the arrow keys to navigate to the advanced options and choose the kernal you want to boot.

Or try the ubuntu community documentation here. https://help.ubuntu.com/community/Grub2/Setup#Configuring_GRUB_2

This is from THIS post by nelaarThen follow the instructions in this post to fix the menu entry.


Set initial startup background brightness depending on daytime

Basic idea:

Save configuration file /opt/.time_brightness_values:

{
  "5,7": 0.25,
  "8,16": 0.50,
  "17,22": 0.75
}

Pay attention to quoted values and commas.  First column with quoted values represents hour range in 24 hour format, the second column is percentage. For example, if you booted from 5 to 7 o'clock your brightness would be set to 25 percent. If you booted from 8 to 16 o'clock, it would be 50 percent.
Save the script below as /opt/set_timed_brightness.py

#!/usr/bin/env python3
from __future__ import print_function
from collections import OrderedDict
import json
import time
import sys
import os

def read_config():
    dir = '/opt'
    filename = '.time_brightness_values'
    conf_file = os.path.join(dir,filename)
    brightness = None
    with open(conf_file) as f:
         try:
              data = json.load(f)
              data = OrderedDict(sorted(data.items()))
         except Exception as e:
              print(e)
              sys.exit(1)
         else:
              keys = [ key.split(',') for key,value in data.items()]
              keys.sort()

              hour =  time.localtime().tm_hour
              for key in keys:
                  if int(key[0]) <= hour and int(key[1]) >= hour:
                     brightness = data[','.join(key)]

    return brightness

def set_percentage(pcent):
    dir = os.listdir('/sys/class/backlight')
    dev = os.path.join('/sys/class/backlight',dir[0])

    max = None
    with open(os.path.join(dev,'max_brightness')) as f:
        max = f.readline().strip()

    new = int(float(max)*pcent)
    new = str(new)
    with open(os.path.join(dev,'brightness'),'w') as f:
         f.write(new)

def main():
    percentage = read_config()
    if percentage:
        set_percentage(percentage)

if __name__ == '__main__':
    main()

Set greeter-setup-script=/opt/set_timed_brightness.py in the /etc/lightdm/lightdm.conf file. The greeter setup script runs as root and once your system gets up to the login screen, the script will run and set the brightness you need.
As far as waking up from suspend goes, create /etc/pm/sleep.d/set_timed_brightness.sh:

#!/bin/bash

case "${1}" in
        resume|thaw) python3 /opt/set_timed_brightness.py
    ;;
esac

Remember: all the standard rules apply, the scripts must be made executable with chmod +x, naming and calls to each file have to be consistent.


How can I get application side-menu on base Unity install?

I believe you mean netbook-launcher-efl and not Unity. Furthermore you are probably missing alt-tab because of missing mutter.


I found this to be working:

gsettings set org.gnome.desktop.interface monospace-font-name 'Noto Mono 11'

(Probably not all apps, gedit changes instantly)


Web Apps install problem in 12.04 64bit installation

I am having the same problem, I tried installing the dependent packages but it gave me this

    The following packages have unmet dependencies:
    xul-ext-websites-integration : Breaks: firefox (>= 15.+) but
    16.0.2+build1-0ubuntu0.12.04.1 is to be installed

I read somewhere that removing firefox and then installing chromium solves the problem, havn't tried it yet as i like firefox

I am using Ubuntu 12.04 32bit


How do I keep my screen from going dim when idle?


Is there any application for editing the file type associations?

To change the default program to open images

Open System Settings by typing it in the dash.
Go to "Details" in the bottom row.
Click "Default Applications"
The last option is called 'Photos'. I suggest using Image Viewer (it should be this by default)

To remove wine program associations according to Wine FAQ

Open Terminal (CTRL+ALT+T)
Paste these commands in, one after the other:

rm -f ~/.local/share/mime/packages/x-wine*
rm -f ~/.local/share/applications/wine-extension*
rm -f ~/.local/share/icons/hicolor/*/*/application-x-wine-extension*
rm -f ~/.local/share/mime/application/x-wine-extension*


Figured out the problem. The /etc/fstab entry for this HDD had the x-gvfs-show option set, which according to the docs is meant to control whether or not this drive appears in the user interface. I'm copying the relevant section below:
If the directory for a device is known and outside /media, $HOME
(typically /home/foo) or /run/media/$USER then the device is not shown
in the user interface. Additionally, if any of component directories
in its directory starts with a dot ("."), the device is not shown
either. This policy may be overriden by use of the options x-gvfs-show
and x-gvfs-hide.

For some unknown reason, x-gvfs-show overrides noauto even in GNOME version 3.36. As a result, the HDD was being automatically mounted at login.


Create a new primary partition in Ubuntu for new OS

You can simply shrink your ubuntu partition, and the installer for CentOS should let you use that space. I don't know the CentOS installer well, so in reality the answer is that you should shrink your Ubuntu partition using GParted or similar, then follow the installation instructions for CentOS to install it onto the free space you've created. If you need assistance with CentOS, you should use their forums.
GRUB is probably the most suited boot manager, this question seems to be more opinionated though (going against the regulations of this site). With regards to selecting which OS on boot, you will be prompted with a command line UI and asked to select an OS. If you don't select one within 10 seconds or so, it will automatically select your "primary" OS, which in my experience is the last one you installed, but you can change this within Ubuntu or CentOS.


Change Ubuntu's purple login screen to GNOME 3.36's

Ok.. your video made it clear.

for this acheivment you need to run the below command and choose the corresponding number for this file. /usr/share/gnome-shell/gnome-shell-theme.gresource

sudo update-alternatives --config gdm3-theme.gresource

Example output:

    $ sudo update-alternatives --config gdm3-theme.gresource
    [sudo] password for admin:
    There are 4 choices for the alternative gdm3-theme.gresource (providing /usr/share/gnome-shell/gdm3-theme.gresource).

      Selection    Path                                                           Priority   Status
    ------------------------------------------------------------
      0            /usr/share/gnome-shell/theme/Yaru/gnome-shell-theme.gresource   15        auto mode
      1            /usr/local/share/gnome-shell/theme/blur.gresource               0         manual mode
      2            /usr/local/share/gnome-shell/theme/focalgdm3.gresource          0         manual mode
    * 3            /usr/share/gnome-shell/gnome-shell-theme.gresource              10        manual mode
      4            /usr/share/gnome-shell/theme/Yaru/gnome-shell-theme.gresource   15        manual mode

Press <enter> to keep the current choice[*], or type selection number:

To remove the "UbuntuLogo" image from the screen, open the file /etc/gdm3/greeter.dconf-defaults and navigate to this section..

# Login manager options
# =====================
[org/gnome/login-screen]
#logo='/usr/share/images/vendor-logos/logo-text-version-128.png'

and uncomment the last line.. which should look like this..

# Login manager options
# =====================
[org/gnome/login-screen]
logo=''

or if you wish to put your own image..

# Login manager options
# =====================
[org/gnome/login-screen]
logo='/home/admin/myubuntu.jpg'


Very slow PDF printing on Ubuntu 14.04 => Unusable

I also faced the slow printer problem in my dual booting (14.04 & 16.04) desktop. The problem is there with evince or lpr when printing a multiple page pdf. Luckily I found a workaround in okular, which prints at regular speed.


Try checking your boot option during startup, press f2. Then configure the boot media option, and make pendrive as 1st boot media. Make sure it is to boot from pendrive. Thanks


I think its your -K argument
-K      Load resident keys from a FIDO authenticator.


"df -h ~" thinks my drive is full, but it shouldn't even be half way. Can't install stuff (13.04)

Found the solution.

I ran gksudo baobab and found that root/share/trash had 50gb of data.


Can I install Ubuntu One server on my private cloud?

No, the server-side part of Ubuntu one is not available (and is even closed-source).

I recommend http://owncloud.org/

It is totally open-source, you can install it everywhere, android/iOs apps compatible, all the common protocols are supported.


Size of device file ( missing in ls -l output )

I can't find any documentation for why ls shows them instead of a plain 0 like du or stat, but, as Byte Commander says, they are the major and minor device numbers of that special file. From the source:

if (f->stat_ok
  && (S_ISCHR (f->stat.st_mode) || S_ISBLK (f->stat.st_mode)))
{
  char majorbuf[INT_BUFSIZE_BOUND (uintmax_t)];
  char minorbuf[INT_BUFSIZE_BOUND (uintmax_t)];
  int blanks_width = (file_size_width
                      - (major_device_number_width + 2
                         + minor_device_number_width));
  sprintf (p, "%*s, %*s ",
           major_device_number_width + MAX (0, blanks_width),
           umaxtostr (major (f->stat.st_rdev), majorbuf),
           minor_device_number_width,
           umaxtostr (minor (f->stat.st_rdev), minorbuf));
  p += file_size_width + 1;
}

This code, part of the print_long_format() function, used when the output format is long (which it is with -l), uses the device numbers in place of size for character and block device.

To get the actual size of the device, several methods are listed in this Unix & Linux post.


In Ubuntu 14.04, the properties window, under the audio/video shows the length.

Select your video. Right click on it and choose properties.
Select the Audio/Video tab.
The duration is displayed.

See screenshot below:


Screen locks automatically after certain amount of time

... when on you tube fullscreen ...

You need caffeine.

Add the repository:

sudo add-apt-repository ppa:caffeine-developers/ppa

Update and install:

sudo apt-get update
sudo apt-get install caffeine

Source and further information


As of early August 2018, I was able to get my cursor working (ELAN 061C)--without patching or compiling the kernel from source--by just upgrading to the 4.18-rc7 mainline build.

Instructions can be found here at TecMint.


This depends also on the type of iPhone, some details here (it's in French, but the images  can be helpful).

Tested with an iPhone 5s.

To transfer pictures and (camera) videos from iphone to Ubuntu:

install Shotwell;
open Shotwell, go to Edit-Preferences and set the Library location (when started it will import automatically from ~/Pictures); also, set the directory structure (or it will create its own sub-folders down to month and day by default, could be cumbersome; to only create folders for years, set Custom-Patern: %Y, for month-year select %m-%Y);

connect phone by USB, unlock the phone; go to File-Import from folder, select the phone; when asked to copy or just import, select 'copy' (otherwise the images from the phone will only be accessed and added to its library (as links) by the program without being copied to your computer);

after that importing will start, it takes some time;

at the end you will be asked if you want to delete from the iphone the imported pictures - be careful there!
the imported pictures will be remembered as part of the library once copied and will not be imported/copied next time even if you have deleted/moved them from your computer; to copy/import them again, go to Libray-Missing files, wait for search, then select the ones that you want to import again, right-click and remove, then restart the whole process to import.

(I will try to post on importing audio as soon as possible.)


Some BIOSes have a Wake on Power facility. Your hardware needs to support it. It is not a software setting as far as I know.


How can I allow ajaxterm to connect to foreign hosts?

There's a patched copy of AjaxTerm for this exact use-case.


How many desktop environments are available for Ubuntu?

Gnome, KDE, LXDE, Xfce and, I think rox. Those are desktop environments. Then you have many window managers and shells that can be used with these DEs. I guess about twenty shells and 5-10 window managers or something.


You can install Caffeine to do this:

sudo add-apt-repository ppa:caffeine-developers/ppa
sudo apt-get update
sudo apt-get install caffeine

Then search for Caffeine in your Dash to start it. It should start automatically after a reboot.

Now Caffeine will show an indicator in the top right of your screen. Click on it to enable Caffeine (your PC won't go to sleep now). Click again to disable it and Ubuntu will follow its usual sleep schema.

You can also disable the sleep permanently if you prefer.

Open System Settings
Click on Brightness & Lock
At Turn screen off when inactive for select Never


How do I recover a deleted or overwritten bash

If you don't have access to a live disk:
While booting the system hold the shift so grub menu appears, press e to edit the default menu entry, find the line started with "Linux" and add init=/bin/sh at the end of that line, then press Ctrl+X.
Now you will be dropped into a dashshell, run:
chsh username -s /bin/sh

reboot your system, now you can login successfully and you'll have a dash shell, reinstall your bash:
sudo apt-get install --reinstall bash

then change your default shell to bash:
sudo chsh username -s /bin/bash

When you still have a running terminal:
As a bones, if you ever removed a program which has a running instance you can easily recover it from "procfs", in case of bash if you had a terminal running bash you could fix the bash by running:
sudo cp /proc/$$/exe /bin/bash


Dell Inspiron 5521 i7-3317U Fan CPU too Noisy

I suggest you to use i8kutils, a collection of utilities for Dell laptops. In this collection there is i8kmon, which is the utility I'm actually using right now.

How To solve Dell laptops fan issues in Ubuntu

First of all, let's download and install i8kutils. Open your terminal and write:

sudo apt-get install i8kutils
Now you've got to add i8k to your modules. Open the modules file:

sudo gedit /etc/modules

and add the string "i8k" (without quotes) to the file. Save and exit.
Create an i8k.conf file

sudo vim /etc/modprobe.d/i8k.conf

and fill it with this code:

options i8k force=1

Note: Some older guides will tell you to create a /modprobe.d/options file. The "options" file isn't used anymore on Ubuntu. What does matter is that you create a file with a .conf extension (the filename isn't important, but I decided to name it i8k.conf for clarity). So beware of older i8kmon configuration guides.
Now restart your computer, or run this code to make i8k run:

sudo modprobe i8k force=1
We will now create a i8kmon.conf file which will tell the i8kmon utility how to behave.

sudo gedit /etc/i8kmon.conf

Paste the following code in it:

# Run as daemon, override with --daemon option
set config(daemon)      0

# Automatic fan control, override with --auto option
set config(auto)        1

# Report status on stdout, override with --verbose option
set config(verbose) 1

# Status check timeout (seconds), override with --timeout option
set config(timeout) 20

# Temperature thresholds: {fan_speeds low_ac high_ac low_batt high_batt}
set config(0)   {{-1 0}  -1  40  -1  40}
set config(1)   {{-1 1}  30  60  30  60}
set config(2)   {{-1 2}  53  128  53  128}

# For computer with 2 fans, use a variant of this instead:
# Temperature thresholds: {fan_speeds low_ac high_ac low_batt high_batt}
# set config(0) {{-1 0}  -1  52  -1  65}
# set config(1) {{-1 1}  41  66  55  75}
# set config(2) {{-1 1}  55  80  65  85}
# set config(3) {{-1 2}  70 128  75 128}

# end of file

This has been edited to match my Dell Inspiron 15r 5521 fan configuration (and I hope I did it well). If you want more informations take a look at the documentation on Ubuntu Manuals: http://manpages.ubuntu.com/manpages/gutsy/man1/i8kmon.1.html
Now you should be able to run i8kmon from your terminal and see if (and how) it's working. Simply run:

i8kmon

Finished!

Sources:

Keenformatics -  How to solve Dell laptops fan issues in Ubuntu (my blog)


How to Open PDF in terminal using Shell Script?

If you want to write a script which simply passes arguments on to another command, then use:

#! /bin/sh
gnome-open "$@"

"$@" expands to the arguments, exactly as passed.

It might be easier to just create a link to gnome-open with the name that your program expects:

ln -s /usr/bin/gnome-open /home/goodyzain/workspace/XYZ/TerminalTool/src/test/scripts/acrord32.sh


wine: Install Mono for Windows to run .NET 2.0 applications

type this in your terminal:

sudo apt-get install mono-vbnc
mono ~/Downloads/ClassRPG.exe

assuming you downloaded the file in your home download directory and it is named ClassRPG.exe


Making Wubi bigger, or Upgrading to Ubuntu without loosing Windows?

You can do a normal install of ubuntu, safely, on the disk that now holds wubi.

Steps:

Uninstall wubi (maybe move your personal files to a data disk first);
Download a normal ubuntu installer;
Boot it from usb or cd;
The installation program will ask you for a target disk. Select the one where wubi was previously installed.


If that is a problem you are having compiling a program I would say that fatal error: omapip/result.h: No such file or directory almost definitely has to do with a missing dependency (library). To shorten your search time, this means in the package will have a -dev prefix at the end of it, which means it is used for building packages. Try downloading libghc-threads-dev for example and see if that does the trick. In this case I simply looked up "result" in Synaptic package manager and skimmed it for -dev packages.


It will not damage your Windows installation. Make sure that you are actually installing it in your external hard-disk (/dev/sdb or whatever) and you are actually installing the bootloader in this external hard-disk during the installation process. Here is a guide if you want a bit more detail.


While installing ubuntu 14.04. I lost my F drive(245GB)

I'm assuming the F: Drive is now in Liunx 83 format which windows cannot read, you'll need a 3rd party program in order access the files in that partition. Personally I like to use Linux reader, after you install the program, just copy the files from F: Drive to your windows partition and re-format the drive.

Alternatively you could pop in a Linux live usb and Copy the files from the F: Drive to your windows partition.


How do I reconnect my WiFi without entering the superuser password?

I managed to solve the problem. First I tried the suggestions in the comments to no avail. After a bit of searching of "Die Systemrichtlinien verhindern das Bearbeiten von Netzwerkeinstellungen für alle Benutzer" I found a Launchpad entry connected to this problem: https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1045972

I created a file /var/lib/polkit-1/localauthority/50-local.d/wifi.pkla with the content:

[Changing system-wide NetworkManager connections]
Identity=unix-user:-the-user-
Action=org.freedesktop.NetworkManager.settings.modify.system
ResultActive=yes

This solution is very close to the one found at How can non-admin users connect to Wi-Fi networks?

Worked instantly without rebooting.


Cannot install macbook webcam driver on Ubuntu 20.04

This post has a solution that worked for me:  https://victorleungtw.com/2020/04/24/install-ubuntu-macbook-pro.html

You could get rid of that error by not using modules_install in your Makefile.

Change install from:

$(MAKE) -C $(KDIR) M=$(PWD) modules_install

to install:

cp facetimehd.ko /lib/modules/$(shell uname -r)/extra
depmod -a


How can I use Docker with socks5 in Ubuntu?

Another solution is to use the privoxy and forward it to your socks5 proxy so you can use privoxy as a https/http proxy.


How do I do right-click the icons on the  Unity launcher using keyboard keys?

To use the keyboard to access the quicklists for the icons present on the unity launcher is simple.

Press Alt+F1 to put keyboard focus onto the Launcher and select the application icon using up and down arrow keys. To access the application's quicklists press the Right Arrow key.


How to echo or paste commands into a SSH terminal with a shell script

Instead of starting an interactive ssh session, pass the echo command directly as an argument to ssh:

sshpass -p "password" ssh -o StrictHostKeyChecking=no username@192.168.1.3 '
   echo "mgmt.led_pattern_override=2" >> /var/etc/persistent/cfg/mgmt
'

Your other option would be to use expect to script the interactive session - but that's overcomplicated for this case.


If you can't get to the terminal at all. You can always use 1 of the 6 tty sessions. In all Linux distributions, ctrl+alt+F1 will open the first tty session. You can login from there an use it just like the gnome terminal. Then, take a look at the link below.

similar problem

Follow the steps in the answer. It looks like the same problem you are having.


How to upgrade Ubuntu Studio 20.04 LTS to Xfce 4.16?

You have to add special PPA from “Xubuntu Developers” team named
Xubuntu QA Staging and install packages from it by executing commands below:
sudo add-apt-repository ppa:xubuntu-dev/staging
sudo apt-get update
sudo apt-get dist-upgrade

Note: to revert the changes use ppa-purge by sudo apt-get install ppa-purge; sudo ppa-purge ppa:xubuntu-dev/staging .


Will Ubuntu 13.10 boot if I enable compression on / which is a btrfs volume

This was fixed in Ubuntu 12.04 "Precise Pangolin", see bug #727535 on Launchpad.


It's hard to give a concrete solution without knowing the background of the issue.

As a workaround you can create symbolic links :

ln -s /where/it/is /where/it/needs/to/be

So, for your case:

ln -s /usr/local/lib/jderobot/libcolorspacesmm.so /home/ivan/Desktop/jderobot/JdeRobot/src/stable/libs/visionlib/colorspaces/libcolorspacesmm.so

ln -s /usr/local/lib/jderobot/libJderobotInterfaces.so /home/ivan/Desktop/jderobot/JdeRobot/src/stable/interfaces/cpp/jderobot/libJderobotInterfaces.so


How do I list installed software with the installed size?

dpkg-query -W -f='${Installed-Size;8}  ${Package}\n' | sort -n

shows you a package list sorted by size


how to add http_proxy automatically to new users in ubuntu server

Just put that into /etc/profile.d/proxy.sh to make it system-wide available for all users that login. The file pretty sure does not exists, so just create it.

You also could put that into /etc/skel/.bashrc, but that would only affect users that are newly created after making your changes. And this only affects users that are created locally, so this is error-prone.