Automatically sync Calendar on Ubuntu Phone

To do automatically sync, you can use command lines in terminal app. I think automatically sync is not implemented yet in calendar app.

The method below should work with google calendar (I'm not sure because I use calendar from owncloud server)

To see the name of calendar server you have to sync, you can use this command :

syncevolution --print-configs

The name of the server could be google-calendar or google-calendar-2, ....

Then you should be able to sync your calendar by this command :

syncevolution google-calendar

or google-calendar-2, ...

To automatically run this sync command, a way is to use "crontab job"

You can see this post for some details about crontab in ubuntu touch.

I try to describe below the method 1 using a terminal connected with ssh to the phone :

Edit crontab file with this command :

crontab -e

Add this line at the end of the file :

@daily export DISPLAY=:0.0 && export DBUS_SESSION_BUS_ADDRESS=$(ps -u phablet e | grep -Eo 'dbus-daemon.*address=unix:abstract=/tmp/dbus-[A-Za-z0-9]{10}' | tail -c35) && /usr/bin/syncevolution google-calendar

Then use Ctrl+X to quit and save the file (may have to enter "Y" et "Enter")

After that to restart the cron service :

sudo service cron restart

The "google-calendar" should automatically daily sync. you can replace @daily by @reboot, @midnight, @weekly, ...

Edit 04/06/2015

If you do this in the phone terminal, the crontab file is not saving because of ubuntu touch is on "read file only system"
One solution that could work is to switch in read/write mode for the system file (at your own risk)
You can for example do  :

sudo mount /dev/loop0 / -o remount,rw

crontab -e

Then modify and save the file like you did.

After that, you can check the file by using :

crontab -l

It's not recommended to switch in read / write mode for normal user. With the previuous command the system return in read mode after reboot. I used this command a lot of time with no ubuntu breaking.


How do I resolve *.internalhost to a given IP address?

Try this: http://daniel.hahler.de/easy-dns-wildcard-setup-for-local-domains-using-dnsmasq

Failing that, set up BIND and create a zone for an "internalhost" TLD with wildcard A record resolution.  Which is probably more work than you're looking for.  (Wildcard resolution from /etc/hosts, which is probably what you really want, isn't actually possible.)


you can not install Project IGI 2 directly in the Ubuntu 12.04 but you can do it with wine.

First install wine with

sudo apt-get install wine

Then click .exe file of IGI 2 , then automatically it will launch the game.

I have already checked IGI 2 in wine database.

you must see this link:http://appdb.winehq.org/objectManager.php?sClass=version&iId=8121&iTestingId=55231

Important Point : Game works only if compiz is disabled. so you must disable compiz to play IGI.


To install or update proprietary drivers, just open up Additional Drivers under Software and Updates inSettings. This will let you download and install either flgrx or flgrx-updates.


This has already been asked: Switch user not working in 17.10

As the answer to that question says, this is a bug in GNOME. Meanwhile, you can hit Ctrl + Alt + F1 (with fn if needed) to go to the login screen and switch the user.


Ubuntu 12.04 wireless does not detect networks

Check if it is blocked by hardware of software:

sudo rfkill list all

Sample session:

sk@ubuntu:~$ sudo rfkill list all
0: wifi: Wireless LAN
Soft blocked: yes
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: yes
Hard blocked: no
sk@ubuntu:~$ sudo rfkill unblock all
sk@ubuntu:~$ sudo rfkill list all
0: wifi: Wireless LAN
Soft blocked: no
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no


Libre office is creating a new document every time I click on the launcher icon. How do I stop that and go to the documents I already open?

we can solve your crashing issue and might solve your other issue at the same time:

in your web browser, go to libreoffice.org and download version 3.6.6 or 4.0.3  (3.6.6 is further along and is supposed to be more stable, hence the x.x.6 version number as opposed to the x.x.3)

with nautilus (the file manager) go to the folder containing your completely downloaded file.

right click and select EXTRACT

you can read the readme file inside your downloaded file, which basically says:

uninstall the old version first, in you terminal (CTRL+ALT+T)

sudo apt-get purge libreoffice

enter the folder.

Open Terminal in that folder. (or navigate in your terminal into that folder)

inside the folder go to DEBS folder

cd DEBS
sudo dpkg -i *.deb

after that still inside DEBS folder

cd desktop-integration
sudo dpkg -i *.deb

and you should have the most current stable libreoffice with bug fixes


ATI proprietary drivers for "old" devices

This is a real bad situation, and there's little you can do to actually "fix" the problem but keep complaining to AMD.

There are ways to bypass it though:

1) Play with OpenGL settings in CompizConfig (available thru Software Center): uncheck VSync, use Fast texture filter, try to uncheck frame/vertex buffers.

2) You can try Unity 2D.

3) You can try Xubuntu/Lubuntu.


How to backup my Ubuntu, so that i can clone the same setup to another PC?

I have used Remastersys successfully to make mirror instalation DVD of ubuntu 10.04. I am not sure if it works on 11+ releases. I think it is worth checking it out. With a quick googling I found this post but I have not tested it.


Control Key & shift key closes Files Window in UBUNTU 14.04 gnome 3.12

I found that the reason of this error is your scrollbar settings.
Run Unity-Tweak-Tool and go to scrolling settings. Change Scrollbars to default Overlay.


Shell script exits without evaluating if condition

It's possible the building option fails but the python script do not return an error code.

So you need to use the  sys.exit() method in the python script. (The argument to that method is returned to the environment as the exit code).

Search the point in the script where you compile and from the code of the script you can find more easy to raise an exception or to use an exit status.

If you need to indicate an error in python you can raise an exception in the script or use the exit status.
Take an example from this wiki
)

You may find useful:

The try statement
The exception statement
Bash Exit Codes With Special Meanings


"kdeinit5 Closed Unexpectedly" twice after saving screenshot

I have the same problem, but it seems it was resolved on the latest KDE 5.81. Unfortunately, unless you add the backports repositoriy, you should wait for the 21.10 release.


Nautilus doesn't see free space but GParted does

ext[234] partitions are formatted by default with a number of reserved blocks set aside that can only be written to by root. As the mke2fs man page explains:

-m reserved-blocks-percentage
              Specify the percentage of the filesystem blocks reserved for the
              super-user.   This  avoids  fragmentation, and allows root-owned
              daemons, such as syslogd(8), to continue to  function  correctly
              after non-privileged processes are prevented from writing to the
              filesystem.  The default percentage is 5%.

You'll note that 5% is exactly the amount of unoccupied space as shown by gparted.

You can view the reserved block count by running (as root) tune2fs -l /dev/sda5, and adjust it with tune2fs -m <percentage> /dev/sda5. However, I would strongly recommend against it.

As the man page explains, the reserved count is not only used to give root processes some "wiggle room" (critical on system partitions), but to reduce fragmentation (especially critical on /home partitions). That 5% buffer provides the filesystem with spare blocks it can use to write files contiguously, rather than having to fragment them into available space scattered all across the disk.

(The reserved block count is a percentage, rather than a list or range of blocks, because the filesystem doesn't care specifically which blocks are reserved. It can juggle free blocks around as needed, as long as a certain percentage are kept reserved.)

Forcing the filesystem to burn up that last 5% of space will give you a paltry amount of extra storage space, in exchange for sending the fragmentation of your filesystem skyrocketing and degrading performance. If you must reduce the reserved block percentage to gain some space, consider setting it to 4% or 3% rather than 0.


Unplug while lid closed does not result in standby

I use kubuntu (KDE), so you'll have to "translate" this into your interface.

Since the ubuntu underneath is essentially the same, you'll be able to do the same things, but your menus may look different.

Under KDE, I open System Settings.  In the Hardware section there's a Power Management option.

In that, there's a Global Settings Tab with an item "When AC power is unplugged".
It shows which Power Profile the system will use when this event occurs. Mine says "Powersave".

There's another Tab for Power Profiles.
On that tab, I click on "Powersave" and it brings up a panel with all the actions that the system will take when this profile is activated including what to do if the notebook lid is closed.

While you're there, check out the rest of your Power management settings and set them to your preferences.

Personally, I don't like sleep and hibernation, so I set all of them to do nothing or shutdown.


How can I make Linux behave better when EDID is unavailable?

I don't have exactly same problem, but I found some problems with xorg when I switch user between opened sessions:

PROBLEM: I have session with 1600x1050 and switch to another user's session that was previously set with same 1600x1050 resolution. But when I switch to this session, the screen gets 1280x1024 and for some reason the size of the session is very very wrong (it is bigger than the screen resolution and I can't move or click most of the things so I have to restart all Xorg).

WORKAROUND: Fortunately I have found some way to resolve it in a tricky way:
Change resolution file name with your resolution file.

Install get-edid command:

sudo apt-get install read-edid

Create a bin file with edid information:

sudo get-edid  > 1600x1050.bin

Create a folder to store this file:

 sudo mkdir /lib/firmware/edid

Copy the file:

 sudo cp 1600x1050.bin /lib/firmware/edid

Edit grub to edit linux command to load this file in kms:

 sudoedit /etc/default/grub

Edit line:

 GRUB_CMDLINE_LINUX_DEFAULT="drm_kms_helper.edid_firmware=edid/1600x1050.bin quiet"

Change your name.bin file and run

 sudo update-grub

Reboot and test.

For some reason it worked for me very well.
I have this card and driver:
fglrxinfo
display: :0  screen: 0
OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: AMD Radeon HD 6450
OpenGL version string: 4.2.12002 Compatibility Profile Context 9.012

My edid information below, shown after running the command
# parse-edid < 1600x1050.bin:

parse-edid: parse-edid version 2.0.0
parse-edid: EDID checksum passed.

        # EDID version 1 revision 3
Section "Monitor"
        # Block type: 2:0 3:fc
        Identifier "22T41-H-AN"
        VendorName "KTC"
        ModelName "22T41-H-AN"
        # Block type: 2:0 3:fc
        # Block type: 2:0 3:fd
        HorizSync 15-68
        VertRefresh 49-61
        # Max dot clock (video bandwidth) 150 MHz
        # DPMS capabilities: Active off:no  Suspend:no  Standby:no

        Mode    "1280x720"      # vfreq 60.000Hz, hfreq 45.000kHz
                DotClock        74.250000
                HTimings        1280 1390 1430 1650
                VTimings        720 725 730 750
                Flags   "+HSync" "+VSync"
        EndMode
        Mode    "1680x1050"     # vfreq 59.883Hz, hfreq 64.674kHz
                DotClock        119.000000
                HTimings        1680 1728 1760 1840
                VTimings        1050 1053 1059 1080
                Flags   "-HSync" "+VSync"
        EndMode
        # Block type: 2:0 3:fc
        # Block type: 2:0 3:fd
EndSection

kernel.log:

2139 Oct  2 21:45:06 dans679-computer kernel: [    0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.8.0-30-generic root=UUID=939b3111-4906-46ae-9ad7-7faa783d490d ro drm_kms_helper.edid_firmware=edid/1600x1050.bin quiet

I was looking for other bug reports similar in launchpad, but still looking for the correct one. I think this problem affects many things in KMS (Kernel mode switch), not just switching between user sessions, also games in full screen with different resolution and others things.

It is very hard to find the correct way to report this issue, I would like to have some help with some Xorg/Kernel team.

I think this could be fixed at some low level, but could be also fixed with this kind of workaround in some easier way for users: For example adding some script to test whether edid is detected or not, and asking the user if they want to let the script get the edid info and pass it to the kernel command, then ask if it was working fine and if the user wants to keep these settings.

I have found most of this information in The Arch wiki kernel mode setting page

I'm posting it on:

https://askubuntu.com/posts/352978

https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-ati/+bug/579292


For Bengali you can use avro phonetic.

Method 1

Using ibus as input method, you can try with avro m17n package.It works like charm. You can download from here . While installing you might get packaging warning. Ignore that.

Download the latest dev file, install it.(Read the instruction in README and Install.txt)
Install ibus-m17n from software center.
Switch input method to ibus and configure ibus like this. You can also install hindi from here. (I never tried)
Log out and login. Use ctrl +  space to switch input methods. To change keyboard shortcut, use General tab of the shown picture.

Add ibus in start up

Courtesy - https://askubuntu.com/a/135566/35775

Open startup applications from the power cog

Add ibus-daemon

Method 2

Traditionally avro is instructed to setup with scim input method. But it doesn't work well in latest ubuntu version (>= 11.10). A ppa package is available (tutorial here) also or can compile for source.


From what I've been able to find on AMD's website, they don't support Ubuntu 19.10. As a result, I downgraded to Ubuntu 18.04 LTS as there doesn't seem to be any other way to resolve my issues without any major workarounds.


How to remap keyboard shortcuts in Unity Launcher?

Change the shortcut "Key to show the launcher" in Compiz Config Manager. You can read how to change: How can I configure Unity?

I change it for example to Ctrl+Meta (Ctrl+Windows). Now the shortcuts of Unity are Ctrl+Meta+1, Ctrl+Meta+2.... and the old shortcuts with Meta Key (Windows key) are located on Power Off key> System Settings> Keyboard Shortcuts.


How do I type β with combining circumflex accent?

In the Character Map, you can type (or paste) the letter β into the input field at the bottom and then double click the combining character.

  β̂

However, you can pretty much assume that this won't get rendered correctly. It looks good in Inkscape.


I had the same symptom plus I was getting crashes in Saucy.  See https://bugs.launchpad.net/ubuntu/+source/indicator-sound/+bug/1208204.

There is a patch in message #5 that might help you.  Reboot after applying the patch.  It solved both of my issues.

Good luck.


How to get rid of X server in ubuntu 14.04 in order to install nvidia drivers?

You don't need to "get rid of" the X server - you just need to stop it temporarily.

First, switch to a virtual terminal using one of the key combinations Ctrl+Alt+F1 thru Ctrl+Alt+F6 and log in using your regular account username and password. Then execute the command

sudo service lightdm stop

Once you have finished running the .run files for the drivers, you can restart the GUI using

sudo service lightdm start


Brother device in LAN not detected as a scanner but as a printer only since 16.04

I have the same problem upon upgrading to Ubuntu 16.04, it was working fine before.

Brother's tools are correctly detecting the scanner, but not SANE, so you can always scan using brscan-skey, the go to your scanner and press the scan button.

I solved the issue by reinstalling the scanner driver with a newer version:

sudo apt-get remove brscan4
sudo dpkg -i brscan4-0.4.4-1.amd64.deb

then add your scanner

brsaneconfig4 -a name="Brother scanner" model="MFC-L2720DW" ip="192.168.1.228"


Quoting http://blog.dustinkirkland.com/2016/10/canonical-livepatch.html:

  The Canonical Livepatch Service is intended to address high and
  critical severity Linux kernel security vulnerabilities

Normal updates (those you get using apt) still require system reboot to apply new kernels.


A wild guess, but I had the same behavior when the dhcp of my router wasn't working. Do you have another computer you can try it on?


Environment Variables not working in WSL

I think WSLENV will work well for you.
Here is perfectly documented:
https://devblogs.microsoft.com/commandline/share-environment-vars-between-wsl-and-windows/


Can't boot Ubuntu 16.04 without dvd / usb

You got an Acer UEFI laptop. You should start by creating a new partition table - GPT style for your Acer hardisk. You can do that by booting any live Ubuntu, open GParted and use the command for creating partition table - GPT.

Secondly, in order for GRUB (Ubuntu's bootloader) to install correctly, you have to make sure that your USB drive has a GPT partition table style, too. You can easily do that with Rufus, by choosing GPT partititoning for UEFI PC option. Create a new FAT32 partition and write the Ubuntu iso file again to USB.

Third, i'd use a very simple partitioning scheme: sda1 -EFI partition, sda2 - Ubuntu (boot) partition, sda3 - swap, sda4 - home (or backup partition). Why so? EFI partition ALWAYS needs to be first, because that's were the partition table data will be written. Ubuntu partition would be your main partition - where you install and boot Ubuntu from.

Swap can theoretically be placed anywhere on disk, just make sure it's not in the first cylinder (cylinder 1024) of the disk. Swap acts as virtual RAM and it will be overwritten intensively. Wearing down the first cylinder will render you harddisk unusable. Swap size should be = 1,5...2 x RAM size. Using oversized swap is not advisable!! Swap is just a little helper, not a main workhorse.

Home or backup partition is entirely your choice. It will be your personal stuff partition.

Important thing: You should never install GRUB to any (particular) partition. You should install it in the root of your harddisk (e.g. /sda). If you have multiple internal disks, then GRUB should be installed in the root of your first harddisk (as listed in GParted).


I had this same problem with my phpmyadminon Ubuntu Studio. For some reason perhaps its a bug it refused to work.

My solution was to install it manually:

remove phpmyadmin
get it from the official site here
unpack it into the apache root directory in /var/www/html and rename it phpmyadmin (or any other name you like)
access it from the browser at localhost/phpmyadmin

Hope it helps


What exactly do you mean? If you mean that nothing shows up on your desktop,  no icons or anything, just the background,  then you should try my fix: install gnome-tweak-tool and click around until you find a toggle for icons on the desktop. It fixed my problem immediately (even though it took me hours to figure out this solution).


You likely moved the partition slightly when you were resizing it.  If I am correct, you need to fix your grub and you should be able to boot normally.

The easiest way to fix your grub is to use Boot-Repair

The detailed instructions and more info is HERE but the quick instructions are:

Boot into your LiveCD/USB and type the following into a terminal:

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

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

This will install and then run boot-repair in your live environment(nothing will be installed to your hard drive)

When the window pops up click Recommended Repair  this will scan your system for any OS's and then install grub with the correct information on the location of your Ubuntu partition and when you exit the live environment and reboot you should be able to load Ubuntu.

When boot-repair runs it will create a file that will be uploaded to paste.ubuntu.com note the url that it gives you and you will be able to link to it to get more help.  More information on this can be found on the link I gave above and well as more detailed instructions and information on advanced options(advanced options are usually not needed in a normal install)


Ubuntu / Linux Search - How to list all files on all Drives?

The case is that your Windows drive is not indexed by default. Probably because you mount it under /media directory which is not indexed on purpose. Answer to this question will tell you how to enable it. Though I'd rather mount the drive under different directory instead.


How to use American English spelling dictionary in Firefox?

In a text field, open a context menu by pressing the right mousebutton.
Select Check Spelling if needed
In the Languages menu, select English / United States

If this did not work, (re-)install the hunspell-en-us package.


No, ubuntukylin-desktop is the whole desktop, and if you just want to try UKUI, you can install it by:

$ sudo apt install ukui-desktop-environment


Impossible to install/run Ubuntu 18.04/18.10

Boot and repeatedly hit the Shift key which will take you to the grub2 menu

The top line will say something about Ubuntu

The second line will mention Recovery

Use your up/down arrow keys to navigate

Navigate to the top line (which is highlighted by default) and hit e to edit

Use arrow keys to get to line which mentions linux ...
it may show a value of quiet splash
replace the words quiet splash with nomodeset

Save and continue to login screen. Once logged on do this edit to make this change permanent by doing this in a terminal:

sudo nano /etc/default/grub

Now make the same change in the file as you did to boot. Save & exit, then run

sudo update-grub

Let us know if this fixes your machine.


How to remove bottom information panel in terminal window on Ubuntu Server AMI images?

Unfortunately, the 11.10 AMIs automatically run the screen command on ssh from a terminal using a package named byobu which uses up the bottom two lines with colorful line noise.

You can disable this on a given instance by typing the command:

byobu-disable

which will log you out.  The next ssh will work fine.

Note: This post includes statements that express my personal opinions.  Other people have different opinions.


How to copy/backup all ubuntu files in a way I can read them without restoring?

I can't seem to find anything online about this, but I imagine you can make the files viewable from a simple copy+paste?  I don't think there is any way to view the files in an actual backup unless you plan to copy and paste your files around.

If all goes wrong you could just make a list of what you need and re-download it all.

I'm pretty sure I'm wrong but at least I opened this topic to a bit of discussion


Black screen after 13.04. How do I get the display back through the command line

Have you considered looking into your BIOS settings? There is usually an "Intel VT" or "Virtualization" option that isn't enabled by default. This is being modified.
If you are unable to modify it in the Bios Try the following

First of all, you might want to see if KVM is loaded in the kernel. To do this, run something like this:

lsmod | grep kvm

If you do get any answer from that, you may want to stop kvm from running. To do that, this will help:

modprobe -r kvm

Remember to follow for any other kvm module. In my case, there is also a kvm_intel module, so I also have to run modprobe -r kvm_inteland modprobe -r kvm_amd.

To stop kvm from being enabled at boot time you have to find the file located at /etc/modules and modify it so that KVM doesn't launch at boot time. After you modify your /etc/modules file restart your computer and see if the problem persists.

I would recommend checking out the following:

Kernal modules Blocking using /etc/modprob.d
Keranal module blockin using kernal command Line(Try this if you have difficulty in booting)

If you do not use VMware you can run the following(It breaks VMWare)

sudo apt-get purge kvm

If you want to still continue using quemu with KVM
look for a more recent BIOS on the vendor's web site.

Note:

On some hardware (e-g HP nx6320), you need to power-off/power-on the
machine after enabling virtualization in the BIOS.
Enabling some BIOS features may break VT support on some hardware
(e-g Enabling Intel AMT on a Thinkpad T500 will prevent kvm-intel
from loading with "disabled by bios")
On some Dell hardware, you also need to disable "Trusted Execution",
otherwise VT will not be enabled.


try using the netboot installer http://archive.ubuntu.com/ubuntu/dists/trusty/main/installer-i386/current/images/netboot/mini.iso

hope this helps!
cheers
whitaar


automatic start fish shell in terminal window

Create a new text file on your desktop with these contents:

[Desktop Entry]
Name=Fish Shell
Exec=fish
Terminal=true
Type=Application
Version=1.0

Save the file as fish.desktop (in your Desktop).
Mark it as executable.
Double click on the "Fish Shell" file on your Desktop to run the fish shell.


This might be nothing, but I've never seen *nat below *filter.  What documentation or guides are you following?

Here is an example, using Minecraft, its port and additional port:

*nat
...
-A PREROUTING -i eth0 -p tcp -m multiport --dports 25565,8888 -j DNAT --to-destination 192.168.1.20
...
*filter
...
-A INPUT -i eth0 -p tcp -m multiport --dports 25565,8888 -m state --state NEW,ESTABLISHED -j ACCEPT
...
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
...
-A FORWARD -i eth0 -p tcp -m multiport --dports 25565,8888 -d 192.168.1.20 -j ACCEPT
...

First, we allow for the PREROUTING from this port, to the same port at the destination.  You can use --to-destination 192.168.1.20:NNNN if you wish to adjust the port.  Then, we have to create a filter to ensure we don't DROP or REJECT these packets.  We limit this to NEW,ESTABLISHED, and have a rule to allow for all RELATED,ESTABLISHED traffic.  This results in new and existing connections being allowed.

I do not see a local, or lo rule.  Typically local traffic is -j ACCEPT early in the chain.  You will likely run into issues if you do not handle lo properly.  Be sure you're properly loading these new rules, and confirming the rules match your intent:

sudo iptables -L

Remember, you may want to iptables --flush before loading new tables to test.  This will prevent issues with stale information messing up your changes, as well as ensure you understand how the tables will look fresh, such as when rebooting the system.


The broadcast tool (called Gwibber) needs to support this. Here's the bug report if you want to follow along in its progress.


go to http://www.realtek.com/downloads/ and download the driver for UNIX/Linux

Then go to the downloaded location and extract the file.

Inside that folder, there's a file named INSTALL, double click it and when prompted click run in terminal.

Finally Reboot.


How can I add a script launcher to the top bar?

Shouldn't the generic Command to run a script/executable be language-interpreter path_to_application instead of path_to_application?

I'm not familiar with ruby, but I suppose it would give ruby path_to_application in your case.


Can I copy Firefox cookies and Flash cookies from Windows to use in Ubuntu ?

Firefox cookies are stored in a sqlite format, in cookies.sqlite, at your profile folder).
Flash cookies are stored in the LSO format, at these locations.

Both formats are OS-independent, so you should be able to migrate them without problems.


Empathy does not allow to add Facebook profile account

Open System Settings, and click on Online Accounts. Then click on Add account... and choose Facebook. Login to it, and it should now work.

If facebook is already in that list, click Remove Account (Bottom right) and follow the instructions above to recreate it.


How can I control fan speed on Acer Nitro 5?

It's possible that fancontrol will work with your system. It's available in the Universe repository for all currently supported versions of Ubuntu. To install it, you must first enable the Universe repository.

Then install it with the command sudo apt install fancontrol

Warning

Please be careful when using the fan control features of your mainboard, in addition to the risk of burning your CPU, at higher temperatures there will be a higher wear on your other hardware components, too. So if you plan to use these components in 50 years, maybe you shouldn't use fancontrol at all. Also please keep in mind many fans aren't designed to be powered by a PWMed voltage.

In practice it doesn't seem to be a major issue, the fans will get slightly warmer, just be sure to have a temperature alarm and/or shutdown call, in case some fan fails, because you probably won't hear it anymore ;)

Configuration

For easy configuration, there's a script named pwmconfig(8) which lets you interactively write your configuration file for fancontrol. Alternatively you can write this file yourself using the information from this manpage.

Note Many motherboards don't have pwm circuitry installed even if your sensor chip supports it. Without this circuitry this software will not function for you.

Another possibility would be to use fancon which is a Linux fan control daemon and fan testing tool, allowing custom speed-temperature curves for fans, controllable by either PWM or RPM, or percentage. Installation instructions are on the project page and there is a snap available in Ubuntu Software.

Note2 I do not have your hardware so I cannot test to determine if either of these solutions will work for you.


What is the difference between systemctl start [service] and systemctl start [service].service?

First link with Google systemctl start why .service has the answer. Here the copypasta :)

In systemd, the target of most actions are “units”, which are resources that systemd knows how to manage. Units are categorized by the type of resource they represent and they are defined with files known as unit files. The type of each unit can be inferred from the suffix on the end of the file.

For service management tasks, the target unit will be service units, which have unit files with a suffix of .service. However, for most service management commands, you can actually leave off the .service suffix, as systemd is smart enough to know that you probably want to operate on a service when using service management commands.


Here is a video tutorial: http://www.youtube.com/watch?v=EncqYP1ijFg using Testdisk.

Results may vary based on expertise so it might be a good idea to let someone do this that knows what to do (any slight error will ruin your chances of getting it back).
I suggest to not touch the partitions and do this from another machine or a live CD.

Helpful but technical resource:

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


Search all my Thunderbird address books?

try Contact Tabs. It adds a search box to Thunderbird where you can search all adressbooks at once.

https://addons.mozilla.org/de/thunderbird/addon/contact-tabs/


Type this command in terminal:

 sudo rm -rf /var/lib/dpkg/updates/0011

After it tupe:

 sudo dpkg --configure -a

It might solve your problem.


To install Steam, open a terminal (press Ctrl+Alt+T) and run:

sudo apt-get install steam

When it's installed, open the dash, search for Steam, and click on its icon.


Installing Canon LBP2900b printer in 12.10

https://help.ubuntu.com/community/CanonCaptDrv190?action=show&redirect=CanonCaptPrinterDriver open this link and install from 12.04

and please confirm the true answer some newbies forget this


openssh uses a different key format from putty.  You would need to use puttygen to convert/export your putty key into a format that openssh can use.

  Open PuttyGen
  Click Load
  Load your private key
  Go to Conversions->Export OpenSSH and export your private key
  Copy your private key to ~/.ssh/id_dsa (or id_rsa).
  Create the RFC 4716 version of the public key using ssh-keygen

  ssh-keygen -e -f ~/.ssh/id_dsa > ~/.ssh/id_dsa_com.pub
  Convert the RFC 4716 version of the public key to the OpenSSH format:

  ssh-keygen -i -f ~/.ssh/id_dsa_com.pub > ~/.ssh/id_dsa.pub
  Fix the permissions of the private keyfile:

  chmod 600 ~/.ssh/id_dsa

Taken from:
https://stackoverflow.com/questions/2224066/how-to-convert-ssh-keypairs-generated-using-puttygenwindows-into-key-pairs-use


Wifi connection frequently dropping in hotspots and university campus, home Wifi works fine

First try:

iwconfig wlan0 rate 54M

This often works if you have an N standard compatible WiFi card.

There are three others solutions that might help:

Update the kernel.
Change networkmanager to WICD. https://help.ubuntu.com/community/WICD
Use ndiswrapper instead of the linux driver. https://help.ubuntu.com/community/WifiDocs/Driver/Ndiswrapper


How to install bios updates in Zesty (on a Dell laptop)?

Am I doing the wrong thing?

Yes, I think so. There is a page dedicated to BIOS updates and it says about Dell this:

If you are using UEFI and your F12 boot options include "Flash BIOS upgrade", one may download the BIOS upgrade .exe from Dell's website, and put it to your /boot/EFI/ folder. Reboot and select "Flash BIOS upgrade" option. In the dialog select the .exe file you have just downloaded and continue with the process.
For more on Dell specific procedures, please see here.


Ubuntu taken total unallocated disk space in dual mode

Its totally Normal that Ubuntu takes all the unallocated space. Usually when clicking Install Alongside Windows, It configures it all for you.

The Answer To Your Second Question: Yes, Its Totally Normal and should not cause Any Issues.

For More Information About Dual Boot: https://help.ubuntu.com/community/WindowsDualBoot


How do I redirect an output of a command e.g. 'echo Hi' to an output of another command that returns a path e.g. 'tty' (that returns, /dev/pts/1)?

The keyword is command substitution. You essentially want a redirection like

$ echo Hi > PROGRAM

But where PROGRAM is replaced (substituted) by its own output. This is what the $() syntax does, in your case

$ echo Hi > $(tty)

First executes tty, then captures the output (/dev/pts/1 in this case), and replaces $(tty) with it before executing the rest of the line, i.e. redirecting the echo there.

You can find more information, including some technical details that may become relevant in other contexts, here and in the Linux documentation project. The former covers the gist, the latter is richer in details and has examples, but IMHO a bit harder to read. Note that the Linux documentation project uses the old-fashioned backtick syntax. You should stick with $(PROGRAM), since it’s easier to nest.


Unable to install ubuntu alongside windows 10 on separate disk

From your partition table, it looks like Windows is almost certainly installed in BIOS/CSM/legacy mode, but it appears you've installed Ubuntu in EFI/UEFI mode. This combination complicates booting, but can be made to work. There are four basic approaches you can take:

Install a BIOS-mode Linux boot loader -- You can install the BIOS version of GRUB, LILO, or some other Linux-native boot loader. I don't have a pointer to tell you precisely how to do this, but it is possible, and once you configure the computer to boot exclusively in BIOS mode, it should work fine. Note that one way to do this is to re-install Ubuntu, but get the installer to start up in BIOS/CSM/legacy mode. This particular variant is overkill, but should get the job done, and is worth considering if you haven't yet invested much time in customizing your Ubuntu installation.
Convert Windows to boot in EFI mode -- This task is likely to be very difficult and carries some risk of catastrophic data loss, so I don't recommend it for most people. If you're interested, see here for more information. Note that once you've converted Windows in this way, you may need to use EasyUEFI or bcdedit to re-enable GRUB as the default boot manager.
Use the computer's built-in boot manager -- Most modern computers have a built-in boot manager that can switch between BIOS-mode and EFI-mode booting. You'll have to hit a particular key (usually a function key, Esc, or Enter) early in the boot process to get access to the boot manager. Once it's active, you should be able to select a BIOS/CSM/legacy option that will boot Windows or an EFI option (probably called "ubuntu") that will boot Ubuntu. This approach should work now, with no new software or reconfiguration required, but getting to the boot manager menu is awkward enough on many computers that this approach may be unappealing in the long run.
Install rEFInd and tweak its configuration -- My rEFInd boot manager can switch between BIOS-mode and EFI-mode booting; however, the BIOS-mode boot options are disabled by default on PCs. To enable them, you must install rEFInd and then edit the /boot/efi/EFI/refind/refind.conf file: Uncomment the scanfor line and ensure that hdbios is among the options. With that done, the next time you reboot, you should see one or more options to boot Ubuntu and one to three BIOS-mode boot options, one of which should boot Windows. You may then want to use the dont_scan_* options to clean up the rEFInd boot menu to remove those that don't work or that are redundant. (If nothing else, chances are you'll need only one BIOS-mode option, but rEFInd may show one for each disk, so trimming the extras may be worthwhile.)

Overall, it's best to install all your OSes in the same boot mode to begin with. Unfortunately, controlling the boot mode for your installation medium is tricky even for experts, so problems like yours are common. See my page on the CSM for more on this issue. (That page is written with an assumption of Windows being in EFI mode and the perils of installing Ubuntu in BIOS mode rather than the other way around, but the principles are the same either way.)


This  reference suggests that it is now available to upgrade from v20.10 to 21.04 from May 11th 2021.
It includes the methods to employ in order to perform the upgrade.
reference
In terminal update-manager -cwill inform you how you can take the appropriate action.


Attempting to GREP details of a Java error

You have to redirect the output of stderror stream to stdout stream since exceptions are logged in stderr stream. The below snippet can filter the exception strace and prints upto 10 following lines.

$ java -jar /bin/MyApp.jar 2>&1 | grep "^Exception" -A10

Note:
You can use jps command to find the java process for sun JVM. You can also try pidof or pgrep commands or grep '[j]ava'(this one will not list its(grep) process) too.


Window doesn't stay in a position (Precise, Classic)

You can work around this by disabling "place windows" feature in "ccsm".
first: sudo apt-get install compizconfig-settings-manager
then launch: ccsm

This comes with a cost - windows are getting spawned under the top bar, but it's  a good workaround.


BIOS boot screen on restart with Thinkpad E485 18.04

you have to add these parameters to the kernel line in grub

ivrs_ioapic[32]=00:14.0 ivrs_ioapic[33]=00:00.1 spec_store_bypass_disable=seccomp

on my system it's in /etc/default/grub and the whole line looks like this

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash ivrs_ioapic[32]=00:14.0 ivrs_ioapic[33]=00:00.1 spec_store_bypass_disable=seccomp idle=nomwait"

I found this information here - the author eventually sold his E485, which I am on the verge of doing as well.


How does postfix send mail without smtp settings?

The primary duty of any mail server is to route mails to their destination. When you send an email to someone@example.org, using sendmail someone@example.org the following happens.

Your mail is handed over to SMTP server on your local machine.
If you had configured your mail server to route mails (for eg. Send mails of example.org to example.net server) then your email server will honour it.
If you had never configured your email server, it will do an MX lookup for the domain example.org and deliver the mail to the MX server of the domain. If MX record doesn't exist for that domain, it will try to deliver the mail to A record, if available.

You will need an SMTP server (postfix,sendmail,qmail or exim) to send emails without configuring any SMTP settings. Hope that helps.


I'm going to answer your questions out of order because they're all slightly different, but also because the answers to one will help you understand the answers to another, etc.
Answer to #2: How DNS Servers Work In Your System, and partial answer to #3 on what resolv.conf does
When you have multiple DNS servers used in your system, they're queried in order.  So if my resolv.conf has:
nameserver 1.2.3.4
nameserver 5.6.7.8
nameserver 10.10.1.0
nameserver 127.0.0.53

...then anything requesting a DNS record on your system will first try 1.2.3.4.  If 1.2.3.4 responds, then that's the end of it (includes SERVFAIL error responses and NXDOMAIN responses, both of which are 'valid replies').  If it times out in a response however, and doesn't return a response, then it tries the next server - 5.6.7.8.  If 5.6.7.8 responds then it stops there.  If it fails to respond, then it continues to try 10.10.1.0.  This continues until one of the servers listed in order gives a response or they all time out.  This is by the design of DNS as "First one to actually reply is the one that we handle"
This is because it goes Primary, Secondary, Tertiary, Quaternary, etc. for the order of lookups.  The first to respond stops the lookup chain.
The last one in your list and in the example list here, 127.0.0.53, goes to your SystemD ResolveD stub which is where the answer to #3 comes in.
Answer to #3: How is this different than your GUI settings?
In short, resolv.conf is used under the hood to determine your DNS server priority settings.  NORMALLY in 18.04 it will just point to 127.0.0.53 which is your systemd-resolved handler.
Your systemd-resolved handler will in turn be fed by your Network Manager GUI settings your DNS servers to use for its recursive queries.  This is an example of the settings fed by my GUI settings into systemd-resolved on my wifi connection:
$ systemd-resolve --status
  ....
    Link 2 (wlp59s0)
      Current Scopes: DNS
       LLMNR setting: yes
MulticastDNS setting: no
      DNSSEC setting: no
    DNSSEC supported: no
         DNS Servers: 10.10.1.0
          DNS Domain: ~.

What happens is when your system gets a DNS query and hands it to 127.0.0.53, that will check its local DNS cache to see if there's a record already known.  Then if it fails, it queries the DNS Servers specified in the system.  In this case, assuming that my resolve.conf is a basic system and looks like this:
$ cat /etc/resolv.conf
# This file is managed by man:systemd-resolved(8). Do not edit.
#
# This is a dynamic resolv.conf file for connecting local clients to the
# internal DNS stub resolver of systemd-resolved. This file lists all
# configured search domains.
#
# Run "systemd-resolve --status" to see details about the uplink DNS servers
# currently in use.
#
# Third party programs must not access this file directly, but only through the
# symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a different way,
# replace this symlink by a static file or a different symlink.
#
# See man:systemd-resolved.service(8) for details about the supported modes of
# operation for /etc/resolv.conf.

nameserver 127.0.0.53

... will result in a lookup for google.com to go to the local systemd-resolved instance and if it doesn't have a cached DNS entry it will then go to 10.10.1.0 with the DNS request from within resolved.
However, in your system, the behavior will differ, per answer #2, because your resolv.conf has multiple other revisions in it that will break this process.
Answer to #1: What're those addresses?
Someone or Something has altered your resolv.conf system to add those additional addresses.
That was either you or Docker doing it.  10.0.0.10 could be another Docker instance or another Docker listener via dnsmasq or such or some other network on your environment added that.
Unfortunately, we can't give any insight into 10.0.0.10 as that could be anything.  We can ID 172.17.0.1 because you said it's Docker, and 127.0.0.53 because that's SystemD ResolveD.
127.0.0.53 as I stated in the answer to #2 and #3 above is your systemd-resolved that is fed your GUI DNS settings.
Answer to #4: How to make the change permanent?
Unless you remove the symlink, the file is going to be fed by resolvconf.  Unless your resolvconf is configured otherwise, it's going to be a symlink.  The only way to make a permanent change is to break the symlink and then simply have a static file.  So, to use your Docker DNS and then your system DNS, you'd have a static file for /etc/resolv.conf that would have the following:
# THIS IS NOT FED BY resolvconf, any changes here are PERMANENT.
nameserver 172.17.0.1
nameserver 127.0.0.53

This would then be a permanent configuration setup until you change it or something sets resolv.conf back to the symlink.
Unfortunately, however, short of removing the symlink and replacing with the static file, there is "no way" to tell resolvconf to keep a permanent set of commands here.
There's other much more complex ways, such as having a separately configured DNS server system, but that's way outside the scope of 'normal' and is definitely "a hacky workaround" that you probably don't want to start delving into.


Thinkpad w540 w/ Ultra Dock only one external monitor works

The Thinkpad w540 and T440 docking station uses an internal MST Hub to split the DisplayPort signal for multiple outputs. This is not supported in Linux yet. There are some working patches but the patches are not expected to see mainline release until Linux 3.16. The relevant freedesktop.org bug is #72795.


HP 6930p does not remember Brightness control

I have Ubuntu 12.04 on an ASUS A53z laptop with Radeon HD6520G Video. My brightness keys work, but the brightness is always maxed on boot and I've been looking for a solution for a while. Setting the brightness at boot manually can get tiresome.

I found a small program called xbacklight that works on my system. It might not work on yours, but its worth a try. It uses percentage values, i.e. 20 = 20% brightness, and it does have a man page. If its not already installed on the system you can get it through apt get or synaptic.

Run the program in a terminal with no command line and it will report the current brightness setting as a percentage. xbacklight -set 50, will set 50% brightness.

If the program works for you, put it in the Startup Applications and it will run at each boot.


You need to connect to internet by wire and run

sudo apt-get install firmware-b43-installer


Ubuntu 20.04 DNS not work after connect to VPN

Ok, I resolved it added permanently nameserver 8.8.8.8 to /etc/resolv.conf.
Instruction: Set permanent DNS nameservers on Ubuntu/Debian with resolv.conf


How do I add GRUB_COMMAND_LINE argument to non-default boot entry?

I had a similar issue with my laptop, I added ivrs_ioapic[4]=00:14. to my default boot entry, I added the same setting right into the file /boot/grub/grub.cfg after running update-grub for other entries


This is possible in 13.10, don't know about earlier versions


Impossible to resolve unmet dependences while installing cocos2d-x

Finally I solved it with:

sudo apt-get remove libgnutls-openssl27
sudo apt-get install libcurl4-openssl-dev


Dependencies while installing wine-stable-i386:i386, but they are already installed

it requires the 2.28 version of libc6-i368 while downloading it with sudo apt-get install libc6-i386 provides the 2.27 version for Ubuntu 18.04

I noticed that 2.28 version is available on Ubuntu 18.10


Kazam Screencaster: Region selection doesn't appear

I found this bug on launchpad - it is a configuration problem.

To fix, go to Settings > Configuration Editor

In configuration editor, browse to Apps > Metacity > General

If compositing_manager value is unchecked, check it.

Reopen Kazam Screencaster and Region Selection works.


how to run 2 commands after failure in a loop?

Use curly braces instead of parentheses, that one doesn't spawn a new subshell:

... || { echo error; exit 1; }

Notice that – unlike with parentheses – you'll need to put a semicolon even after the last statement.

Also note that I've changed && into a ;, I think you should even exit if echo fails for whatever unlikely reason; feel free to change that back if you really wish to continue the loop if echo fails.


Checking sample rate of Alsamixer used with USB DAC

alsamixer is an application that allows you to access mixer controls of the hardware.
If there is any resampling, it happens elsewhere.

To see the current settings of a hardware device, look into /proc/asound/cardX/pcm0p/sub0/hw_params, with X depending on which of your cards you're using.


Can't update Android Studio to 2.3 version

You have to update Java in your OS first by using below command

  sudo apt-get update

and

  sudo apt-get upgrade

Then your Android Studio will be fine.


Slow Resume After suspend having chrome running with many tabs

I think this could be expected.  Hibernation / resume time depends on the amount of RAM the system has, regardless of how much of the RAM is actually used. It makes no difference whether you have 1 or 100 programs open, it will still take the same time.

After getting a new high-end notebook that seemed slower on resuming than my older notebook I learned that the more RAM a system has, the more time it will take to hibernate and resume. There is also data compression / decompression involved in hibernating so this is also a factor if you have more stuff in memory.  A few minutes wait time is to be expected,   and on high end - ram packed machines it does take longer.

Hope this helps, cheers!


Can't compile rtl8821ce wifi driver on Lubuntu 18.10

Problems and solutions when following the steps of this answer:

Coming from a Windows PC, all script files where in a wrong format, resulting in a 'no such file or directory' error when trying to sudo ./dkms-install.sh. I had to dos2unix all of them.
I had to manually sudo-run some of the dkms commands in dkms-install.sh because sudo ./dkms-install.sh was reporting errors that I finally interpreted as a lack of privileges. Don't know why.

sudo dkms build -m rtl8821ce -v v5.2.5_1.26055.20180108
sudo dkms install -m rtl8821ce -v v5.2.5_1.26055.20180108

Then I rebooted and  ip a showed the new wlp1s0 network interface. But I was not out of the woods yet.
The wifi module was still hard-blocked, as shown by the outputs of nmcli radio and rfkill list. I had to add an entry to /etc/modprobe.d/blacklist.conf as explained in this: append blacklist ideapad_laptop at the end of the file, then reboot.

And the wifi module is now working properly.


What is the difference between starting a program from an unity icon and the command line?

You could try modifying the CLion .desktop entry to open clion with bash by changing the Exec line

Exec=bash -i -c "/INSTALL_LOCATION/clion-2018.2.3/bin/clion.sh" %f

Replace the install location with wherever clion is installed to


installing the PDO MySQL extension Driver on lampp server

On a Linux server you can compile php with the following option --with-pdo-mysql In your php.ini, add the following lines

extension=pdo.so
extension=pdo_mysql.so


How to move Unity Launcher to a different monitor?

This is a bug:

Launcher is shown on the wrong screen in some multi-monitor setups

(taken from the bug report)

Permanent workaround (requires logging back in again):

Edit ~/.config/monitors.xml, find the monitor you want the launcher to display on and change:

<primary>no</primary>

to:

<primary>yes</primary>

Now log out and log in again.

Temporary workaround (no logout required):

Open a Terminal window and...

Run xrandr to find the NAME of the output you would like to make primary.
Run xrandr --output NAME --primary && nohup unity --replace &


What is the easiest way to launch Dash with a single-touch screen and auto-hidden launcher?

Just set your launcher to be always-visible:

'CompizConfig Settings Manager' (CCSM) >> Category: Desktop >>
  'Ubuntu Unity Plugin' >> Behavior >> Hide Launcher: Never

I have already set this, as I did not like the disappearing / windowing re-sizing of the default behavior.


Ubuntu 18.04
Go to Settings -> Dock
and select All screens inside Display on option (3rd lines)
you can see this option selected in my screenshot below (text are in French, sorry) :


How to map NAS drives so Plex can read them

As you have probably figured out, this has very little to do with Plex.  All Plex does is look at the folders presented to the local linux machine as the active Plex user, which by default is the user 'plex'.

Given you are being prompted for a password, this is likely the sticking point, or at least the first sticking point to begin addressing fault finding - (the second one will be just making sure that the files and directories have appropriate access).

Before I say anything further though, I've personally found NFS to be much more reliable and simpler to set up.  Basically NFS is less CPU intensive and works better between *NIX systems anyway.  If you want to go down that route, here's an example of one of my NFS lines in my fstab in case it helps:

192.168.43.15:Video   /mnt/Video  nfs   rw,hard,intr    0   0

Another option for you is to use the chmod command and make sure that read only is set to everyone.  That way, you could omit the password altogether.  So, on your NAS (and in a console) type in 'sudo chmod -Rv 764 yoursharedirectory'.  I'd say that would do the trick.

I've now written a whole guide on plex permissions, which can get into quite a complex topic but I've tried to keep it as simple as possible.

Have a look at the link below and let me know if that helps or you need anything further.

https://www.tech-knowhow.com/2016/03/how-to-plex-permissions-linux/

Let me know how it goes.

@marshalleq


List top/bottom ten lines of a word matching in a file

Displaying lines before/after/around the match using grep -A, -B and -C

-A is the option which prints the specified N lines after the match as shown below.

-B is the option which prints the specified N lines before the match.

-C is the option which prints the specified N lines before the match. In some occasion you might want the match to be appeared with the lines from both the side. This options shows N lines in both the side(before & after) of match.

Source: http://www.thegeekstuff.com/2009/03/15-practical-unix-grep-command-examples/ (Also I would recommend you to read the full blog post)

so, the command should be like grep -C 10 'error'


Executing script with terminal via command option

The -x option to
gnome-terminal or,
similarly, the -e option to other xterm-compatible terminal
applications, tell the terminal emulator to start the command
following the -x/-e option and then exit.  This is the reason why
you're seeing the terminal outline flash and disappear: the terminal
starts, maximizes, then exits.

You could instead include the maximize command into your .bashrc
or .profile, so that it is executed every time a shell is started.

However, since it executed each time a shell is started, you need to
find a way to execute it only when the shell is started from the
terminal application.  On my Ubuntu 11.04 system the following does
the trick:

if [ -n "$DISPLAY" ] && [ "$SHLVL" = 1 ]; then
  # the following commands are only executed when
  # the shell runs inside a terminal
  maximize
fi

The -n "$DISPLAY" part tests if there is a graphical X11 display
active, and the $SHLVL part checks if this shell is 1st level shell,
i.e., a direct child of the terminal application (a shell may start
another shell for running commands or script, but in this case the
$SHLVL value will be larger than 1).


How to mount a sambashare with autofs and cifs

Try inserting a direct map line in "/etc/auto.master" - something like:

/-  /etc/auto.data

Where "/etc/auto.data" contains the "direct" mount point and your cifs mount info that you previously had in "myserver.autofs" - i.e.:

/media/server/files -fstype=cifs,rw ://server/files

I am new to autofs and was not able to get an "indirect" mapping working for a cifs mount but the above "direct" mapping method works for me.


Logitech keyboard failing after Installing 14.04

As there are no specific settings in your power management directory for Logitech keyboard and mouse, there is only one thing you can do:  turn off all power management settings instead of just the power management settings for Logitech!

Go to your BIOS and turn off all power management settings
Press Ctrl+Alt+T to go to a terminal and type:

gsettings set org.gnome.settings-daemon.plugins.power active false

Now it should work from much further away...


How to make fresh new hard drive partitions during ubuntu installation

During the installation, it will ask how to partition the disk.  Just chose "Something Else".  You can then do whatever you want.  Okay, granted, that tool isn't the greatest, but for simple partitioning it will do.

Alternatively, boot the LiveUSB/CD to desktop and launch gparted to make the partitioning scheme you want (or use the command line, or whatever you are familiar with).  Then during the installation, again select "Something Else" and use the partitions: right-click on the partition to change their mountpoints, etc...


Ubuntu doesn't work - wubildr issue (and can I make my pc bootable without smartbootmanager which doesn't work)

I also had a problem with installing Ubuntu. Using a CD - I let the Ubuntu environment run from the CD. Once it was running I used the desktop GUI Install icon. When it got to the partitioning part I asked to partition manually. Make sure that there is an .../sda partition for grub. Also insure that you have an .../sd1 partition of at least 10GB and a .../swap partition of 1GB or more. After completing the partitioning I let the install run to completion. It ejected the CD and I allowed it to restart. At this point Ubuntu became useable.

If the system is already a multiboot system this may not work because the loader is a Windows boot.ini based loader.


As of the more recent versions of openssh server, there is no way to configure an inactivity/idle timeout via /etc/ssh/sshd_config.
While one can find a great many references saying to set ClientAliveCountMax 0 in conjunction with ClientAliveInterval N to create an inactivity/idle timeout, evidently that was not an intended ability and has now been intentionally closed.
The relevant change to the sshd_config man pages for ClientAliveCountMax is this additional sentence: "Setting a zero ClientAliveCountMax disables connection termination."
Some have submitted bug reports against openssh, in particular this one and this one. Some particularly relevant excerpts:

ClientAliveCountMax=0 has never been specified to work as an idle
timeout. If it did that then it was by accident and would be
unreliable. E.g. if the client specified it's own ServerAliveTimeout
or kept a forwarded TCP connection open then it would never fire.

and

If you need a idle timeout, then I suggest looking at shell features
(e.g. bash's TMOUT) or something like a PAM module.


Take a look at this question and see if the solution works - Why is Ubuntu's clipboard so hit and miss? . It suggests you install parcellite as suggested in the Ubuntu Wiki.


If you're trying to install Ubuntu from a USB (bootable USB), I suggest that you create bootable USB using dd command in a Linux machine. An example below.

sudo dd if=/home/username/Downloads/ubuntu.iso of=/dev/sdb bs=16M

In the above command, if accepts the location of the .iso file (input) and of accepts the USB you've connected (output). You can check the information about the USB connected to the computer by providing the following code.

sudo fdisk -l


Can Ubuntu One bookmarks sync work in Firefox 5?

Ubuntu One does not support Bookmark-Sync any more: Putting bookmark sync to bed


How to re-mount a different partition as /home?

First you want the UUID of the drive so it can be reliably mounted.

sudo blkid

That will return a list of all your partitions and their UUIDs. Just note the UUID of the partition you want mounted as home.

Then you just need to edit /etc/fstab to auto-mount that partition as /home.

sudoedit /etc/fstab

And add a line like this:

UUID=0c89eb5d-ac58-46c0-b309-597b35a542e8 /home ext3 defaults,errors=remount-ro 0 1

Although obviously with your UUID, not mine. Save and reboot.


Ubuntu 16.04 won't run from USB because of internal error

Try switching the USB stick to a different USB port -- especially if you have both USB 2.0 and 3.0 ports on your computer. Sometimes one will work long enough to start a boot, but stop being able to read the stick partway through.

You can also try going into your bios and enabling Legacy USB.


apt-get, unmet dependencies, ... "but it is not going to be installed"

This worked for me.

$ sudo apt-get install <missing-package-1> <missing-package-2> ...

I don't know why this is necessary, but manually installing the problematic packages worked.

After installing the first round of unmet dependencies, another one popped up, but I repeated the process and it sorted itself out after two cycles.


This happens with the calculator and other default apps as well. Default apps are installed in 18.04 through "snap", a new cross-OS package manager. Snap will be much better than APT one day, but right now it's in the beginning stages and experiencing growing pains.

One of these growing pains is that it "themes" each application differently than it has in the past, and some of the new "theming" hasn't had the kinks worked out yet.

Luckily, the workaround is very very easy. Just uninstall with snap and reinstall with APT.

sudo snap remove gnome-system-monitor
sudo apt install gnome-system-monitor

You might want to do this with gnome-calculator, too. I'm still looking for other applications that have this issue.


Maybe one of the following

a cron job that cat /dev/null > /home/xtr3amcod3s/lptv_xtr3am_cod3s/logs/Error.log
turn off logging in your application
if you need the log, then use logrotate


Before purging and reinstalling (which can make things worse) it is recommended to go through the steps outlined in

Ubuntu Wiki Debugging Sound Problems

Is our sound hardware working at all? - Test with another OS if possible
Is it a configuration issue? - Sound should be fine on booting a live system
Are speakers muted?
Is it an ALSA or a pulseaudio issue?

To find out you can see most relevant information on running

ubuntu-bug audio

Sometimes the putput from this gives you hints on where to look first. If there is something you don't understand - ask here.

Also, it is always worth a try to remove broken user settings by

mv ~/.pulse ~/.pulse.OLD

Another easy to perform action that may sometimes help is to temporarily remove all attached external audio devices and restart the system.


Was my login account hacked on login.ubuntu.com due to the forums security breach?

No. Your Ubuntu SSO account should be fine, as well as any accounts other than Ubuntu Forums on which you used it.

Ubuntu Single Sign On was not compromised in the attack on Ubuntu Forums. Fortunately, no Ubuntu services other than Ubuntu Forums were affected. This is according to the information page up at the Ubuntu Forums maintenance announcement page, which should be reliable since that domain is no longer controlled by the crackers who perpetrated the attack, nor by the system they compromised. Provided that you never created a separate account on Ubuntu Forums, you should be fine.

However, if you did ever have an account on Ubuntu Forums, and you use the same password on Ubuntu SSO (or any other site, Ubuntu-related or not), then you should make sure to change your password and stop using that password.


i have problem in installing aircrack on ubuntu 14.01

You don't have the correct repositories added to your sources probably.

Manually download from here.

Or

Official Ubuntu Archives


From the Live CD you can erase the disk partitions entirely. Then install it and the Installer can arrange all partition for you. I prefer using "Something else" because in the past the Swap wasn't set equally to my ram size in some cases.

To erase the partition search the Gparted program and select the disks and choose the disk from the top right corner drop-down menu :

Then right-click the partition you want to erase from the list and in this case all partition you would want :

In the end it should look like this :

From there it is  a normal installation via the Live session. In the Unity launcher click the first launcher that is the Live installer and you can install Ubuntu in the wiped disk. In the case you want/need to make the partitions before the Live installer you can use either Gparted or Gnome Disks to do so. Have fun!


I find GNOME desktop slower and less suited to my needs than Unity. What can I do about it?

You can still use Unity in 18.04
This detailed article has a screen shot-filled tutorial for installing Unity in Ubuntu 18.04. To summarize:
sudo apt install ubuntu-unity-desktop

When installation starts you are asked if you want to switch to the Unity lightdm greeter. You will likely want this as you get the familiar login screen with the ability of easily changing login screen wallpaper.
Reboot and next to your User password field you will have either:

a Ubuntu logo if you picked Lightdm greeter
a Gear logo if you picked Gnome login

Click the Ubuntu Logo or Gear and now you can pick between the Gnome Desktop or Unity Desktop at login time. The next time you login the last choice is defaulted and you don't have to change it again.

Speed decreases
As for speed decrease, this is common in software generations adding more features as hardware becomes more powerful. The extra features slows response time on older hardware but new hardware usually provides acceptable response time.
Programmers will fine-tune their code after release to improve performance. Sometimes shortcuts are made to rush the project out the door to meet marketing's deadlines. After release extra time can be spent researching slow response times.
No one has a crystal ball but I'd say around the time 14.04 hits end of life (EOL) that's the time to seriously consider moving from 16.04 to 18.04.
Those making brand new hardware purchases today though would be better off installing 18.04 first as it has better support for new hardware with default kernel chain 4.15.0-XX-generic. Additionally it will save the pain of upgrading from 16.04 to 18.04 down the road.


Where do I report bugs/problems with Valve's Steam?

According to Valve:

  If you encounter an issue while using Steam for Linux or with any of
  the available Linux games, first search the issue list to see if it
  has already been reported. Include closed issues in your search.

  If it has not been reported, create a new issue with at least the
  following information:

  a short, descriptive title;
  a detailed description of the issue, including any output from the command line;
  steps for reproducing the issue; and
  your system information.

List of existing issues
Link to file a new issue, you will need a github account.


Ubuntu 12.04 LTS installer does not recognize Windows 7

you might just have to save your data to a backup disc and reformat the drive windows was on. The Ubuntu installer cant read some windows and mac filesystems.


I'm writting this using an E470 running 16.04.3 LTS, so

No hibernation option. Suspend works like a charm.
No idea. This is by default on KDE (I'm using Neon 5.8.7)
wifi (and graphics) worked OOTB, but anyway if you have any problem you can use this tool to upgrade the drivers https://01.org/linuxgraphics/downloads/intel-graphics-update-tool-linux-os-v2.0.2 2.0.2 is the last version that works with Ubuntu 16.04. Cabled network is too from 1990 for me :P

Edit: just realized that, at least with linux-image-generic-hwe-16.04-edge              4.13.0.16.23, this is no longer needed:

  The thing that annoyed me the most is that trackpoint middle button is
  not detected OOTB, so no scroll either. This package fixes it
  https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-evdev-hwe-16.04/+bug/1670492/comments/12


Re-enable horizontal scrolling in Ubuntu 17.10

I had the same problem and couldn't find the option in dconf-editor (/org/gnome/desktop/peripherals/touchpad/ doesn't help). I found this command here and now horizontal scrolling seems to be working just fine. Give it a try.

synclient HorizTwoFingerScroll=1

And make your fix persistent using this tip by monkbroc:

How do I make my synclient settings stick?


There is a malformed line in /etc/apt/sources.list.d/mono-xamarin.list at line 3.

The best solution is to open that file with an editor an look for that line 3. Then you can comment the line out. Just add a #-character as first character of that line.

Then run software-center again.


Joomla 3.0.3 installation gets stuck in the configuration section in Xubuntu 16.04 localhost

The problem was at the beginning, My php version is 7 and php7 compatible joomla versions are 3.5 and laters, that's why I was having these problems. So I just loaded the joomla 3.5.1 version and bingo. I discovered this in here https://docs.joomla.org/J3.x:Installing_Joomla in the references section.


Maybe, you should try a tiling window manager, like Xmonad, dwm, or Awesome. I am using Xmonad and very happy with it, although I seldom use more than 3–4 windows on a workspace. But if you have a monitor big enough, I think, it can be configured.


'column: line too long' when it doesn't seem to

It's likely because you are passing it a non newline-terminated string:
$ printf 'foo,bar,baz\n' | column -t -s,
foo  bar  baz

but
$ printf 'foo,bar,baz' | column -t -s,
column: line too long

Perhaps consider replacing sed -z "s/\n/,/" in your pipeline with paste -sd,


gi.RepositoryError: Requiring namespace 'Gtk' version '2.0', but '3.0' is already loaded

Based on that, I would try to switch the gtk version to the one that fits.

Try:

....
from gi.repository import Gtk, WebKit # pylint: disable=E0611
Gtk.switch
....


Probably the both commands mkdir and chown are executed (almost) in the same time and something is getting wrong.
You could tray to set offset like this:
@reboot sleep 5  && mkdir -p /tmp/vimbackups
@reboot sleep 10 && chmod 777 /tmp/vimbackups

Or you could use the logical and operator && in order to run chmod if mkdir is successful:
@reboot mkdir -p /tmp/vimbackups && chmod 777 /tmp/vimbackups

But, probably, the best way is to set file mode via the mkdir command:
@reboot mkdir -p -m 777 /tmp/vimbackups

Note, this command will not touch the permissions of the tree (parent directories).


Bridging: Losing WLAN network connection with 4addr on option - Why?

Found an answer here: http://nullroute.eu.org/~grawity/journal.html#post:20110826

iw dev wlan0 set 4addr on

  However, with 4addr enabled, you're likely to get completely ignored by the AP: association succeeds but all data frames disappear into the ether. This could be for security reasons (because it's damn hard to spoof the source MAC address. Yeah.) In my router (running OpenRG), it's necessary to enable "WDS" mode for the wireless AP interface, add a WDS device restricted to my laptop's MAC address, and add it to the LAN bridge. 4addr packets now work.

  There's another problem with this, though – the router now rejects three-address packets from the laptop, which can be rather inconvenient (having to toggle 4addr every time the WLAN network is changed). The workaround is to add, on the laptop, a second wireless interface linked to the same device, but with a different MAC address:

# undo the earlier configuration
iw dev wlan0 set 4addr off

# add a second interface
iw dev wlan0 interface add wds.wlan0 type managed 4addr on
ip link set dev wds.wlan0 addr $ADDR
ip link set dev wds.wlan0 up

  Here $ADDR must match the WDS device address configured in the router; other than that, it can be any valid MAC address. The original MAC of wlan0 then remains for "normal" usage.

  It's possible to use both wlan0 and wds.wlan0 at the same time – although I've only tested associating to the same AP twice, not to different APs.


apt : Differences between packages “held back” et “automatically held in their current state” and how should I manage this?

"Packages being held back" generally means that you've not specifically requested that those packages be upgraded or that you have specifically pinned the versions so that those packages cannot be upgraded automatically. When packages are being held "in their current state", it is because the updates have dependencies on the "held" packages being updated beforehand.
If you would like to to upgrade all of the packages already on your system, then:
aptitude update
aptitude upgrade

If you want to upgrade everything to the current version of the default installation, then:
aptitude update
aptitude dist-upgrade

Hope this helps


Is UNIX password the root password . i changed UNIX password ? I did not find the right answer before posting this

You changed the root passwd. Using the sudo command elevated your privileges to root and then executed the passwd command on itself.

To change the password of a user, run:

sudo passwd userid

Where userid is the login of the account you want to update.

You probably want to re-lock the root password as well. By default the root password is locked for security reasons. Lock the root command with:

sudo passwd --lock root

More information on the passwd command can be viewed in its manpage:

man passwd


Sound is too fast in chrome using Flash player

The only workaround I found with Google Chrome is to disable PepperFlash in chrome://plugins and enable Shockwave Flash. That took care of the sound issue. So if you can do without PepperFlash, that might fix it for you.

For what it's worth, I'm using the adobe-flashplugin from the partner repository, not the flashplugin-installer. I understand (from a page on askubuntu) that adobe-flashplugin is better for 64-bit systems.


Possibly related to http://github.com/pbatard/rufus/issues/459

Is the .iso file you're trying to install already located on the USB drive?

If so, don't do that. The first thing Rufus does is to format your USB device, erasing all data, so the .iso file needs to be on your hard drive (or anywhere but the USB device).

Then you should be able to use Rufus to properly create the USB stick, using the .iso file on your hard drive.


Ubuntu 13.04 won't reboot with additional hard drive attached

i do not have a solution. but in fact i'm having sort off the same issue.

i just bought a new WD 2TB drive. same make and model as a drive i already have.
i boot from an 64Gb SSD.
but when i boot, after the bios the screen goes blank with just a blinking underscore.
(the moment GRUB shout load so to speak).

when i (on power off) unplug the drive from the power and boot the pc it works fine.
then i plug in the power to the drive at the moment i see the ubuntu splash screen (hotplug).
and everything works like a charm.

with a lack of comment points:
Thanks for the suggestion.
but in my case the new 2Tb drive replaced 2 separate fysical drives (both 500Gb).
and the new drive was split into 3 virtual drives.
also in FSTAb i'm using the drives UUID in stead of the /dev allocation.
also i should mention that it worked great for several weeks. and than started to fail.


Came here after inputing "debian .list file comment" in my favorite search engine, might happen to someone else.
It is, indeed, a comment.

From Debian manpages:

  Empty lines are ignored, and a # character anywhere on a line marks the remainder of that line as a comment.


gvm can install, upgrade, and switch versions of common Groovy tools, including Grails, so you don't need to edit your environment by hand.
http://gvmtool.net/


Wireless driver stops working after update on Dell Procision 5510

You must have upgraded to Ubuntu 16.04. 16.04 enforces that all drivers are signed with a key. Your driver is not signed, so you came up with the proper/easiest solution. There are other solutions, but they're much more complicated.


How to get data from semi broken micro SDXC card?

The drm_kms_helper message at the bottom indicates a problem with drm, most probably your video card driver.

To recover lost images on media, you could use photorec and testdisk.


sed search and replace with variable containing slash

Use something other than / as the delimiter for the regex (for example, the colon :):

sed -i "s:search text /TAG/:replace text ${variable}:" "${textfile}"

Or escape the / in the variable.


Anbox on 19.10 - claims kernel modules are missing

Same error here today, my system:

$ uname -a
Linux ntg-pc 5.3.0-26-generic #28-Ubuntu SMP Wed Dec 18 05:37:46 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

One thing I've noticed is that although modprobe works ok,
only /dev/ashmem is created...

sudo modprobe ashmem_linux
$ sudo modprobe binder_linux
$ lsmod | grep -e ashmem_linux -e binder_linux
2:ashmem_linux           20480  0
3:binder_linux          163840  0
$ ls -alh /dev/binder /dev/ashmem
ls: cannot access '/dev/binder': No such file or directory
crw------- 1 root root 10, 53 Jan 21 19:10 /dev/ashmem


As I remember, airodump-ng is a part of aircrack-ng  so it should be installed already.


First, try running it as root. "sudo ./flash-all.sh". If you're going back to 4.2.1 from a 4.2.2 version, you may need to connect to your phone using adb and add your computer as one that is allowed to connect to it. 4.2.2 has a new feature that allows you to restrict which machines can connect for debug, etc. (try sudo first though)


Is there any way to run locally site which is available on ssh?

You can set up SOCKS5 proxy using:

ssh -D 9999 -p 2223 vk@127.0.0.1

and then set up your browser to use SOCKS5 proxy on 127.0.0.1:9999. You should be able to access localhost:50030 from the browser from this time.

But rather easier way is to set up local-port-forwarding:

ssh -L 50030:localhost:50030 -p 2223 vk@127.0.0.1

which makes your remote port accessible as a local and you will be able to connect directly to your service using localhost:50030 url.


How to install UC Browser in Ubuntu 16.04?

UC Browser is not available for Ubuntu or Linux in general.

What you can do is install android x86 http://www.android-x86.org/ in a VM and install UC Browser in it.


Windows 7 Loads Automatically After Ubuntu 15.04 Install

According your Boot Info Summary

  => Windows 7/8/2012 is installed in the MBR of /dev/sda.

you have Windows bootloader installed into MBR, and grub installed into partition /dev/sda6.
So your computer boots directly to Windows bootloader which knows nothing about your grub, linux and so on.

You need to install grub directly to sda, not to partition (sda6).

To do so, boot in your Linux using any way (you can use Plop Boot Manager from CD or any), and do in console sudo grub-install /dev/sda (this installs it in the mbr), and then sudo update-grub (this updates the grub menu).

Judging by your grub.conf found on sda6, update-grub adds Windows boot entries to menu automatically.

Then you can boot into any installed OS and linux too (seems it will be default option).


What if I delete ~/.bashrc file of a user?

If you delete a user's  ~/.bashrc  nothing special happens. Bash will still  start and use the system-wide /etc/bash.bashrc.

Just like any user root may or may not have a ~/.bashrc, and if it exists you can delete if you have write permission on /root/.


External ssh not working (port already forwarded)

Does your router support DMZ network. I recently set up my webserver on my home router. And instead of port forwarding, I used my servers static ip in the DMZ zone. This way my server is connected to my public ip. And i can ssh from outside using the public IP too. Just make sure that using DMZ exposes the server to outside world so dont forget to install a firewall (i use shorewall) and just open ports you want. For ssh open 22.
Thats it. Regarding port forwarding i guess you'll get good suggestions from other community members.
If you have any questions regarding ssh to server iin DMZ of your router. Shoot here..


My answer is similar to RaidPinata's:

sudo sed -i s'/--class os \$menu/--class os --unrestricted \$menu/' /etc/default/grub

the "\$" escapes the "$" symbol so that it is not mis-inprepreted and I'm specifying a longer string so that if the command is executed twice, you don't get the insertion twice.


Ubuntu 11.10 and Mobility radeon HD 4570, 512MB can't find working drivers

your graphics card seems to be listed user the legacy drivers list in the Radeon HD 4X series. Please download the driver from this link: http://support.amd.com/us/kbarticles/Pages/catalyst126legacyproducts.aspx

Before installing, remove the fglrx drivers you installed from the ubuntu software centre. See if that helps.


sudo apt-get install build-essential autoconf2.13 xorg-dev xserver-xorg-dev xutils-dev libtool debhelper
   sudo dpkg --add-architecture i386
   sudo apt-get update
   sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 libc6-i386 lib32tinfo5 libc6-i386
   sudo dpkg -i xf86-input-nextwindow_0.3.4~precise1_amd64.deb
   sudo dpkg -i nwfermi-0.6.5.0_amd64.deb

thats what i used to get mine (touchsmart 600-1050) working everytime you install a diffrent kernel you have to reinstall the last two..hope it helps


how to delete completely a programm app from Ubuntu 20.04, in this case Lollypop

You will probably need to manually remove the cached files located in ~/.cache/lollypop. When in doubt about persistent settings, check your home directory.
Ideal complete removal process:

Remove the application:apt remove --purge lollypop
Open Terminal, make sure you're in the home directory:cd ~
Look for lollypop directories
Remove the cache:cd ~/.cacherm -Rf lollypop
Look for other lollypop directories in ~/.cache
Re-install

If you still have files from Lollypop (or any other application), then you'll need to be a bit more creative and use the find command to suss them out.
First look for directories:
find . -type d -name 'lolly*'

This will search the current directory and all subdirectories for any directory name starting with "lolly". If you see anything in the output, you will need to empty the directories and delete them. If you would like to check the entire file system, use find / instead of find .. Be advised that this can take a while depending on how many files and folders you have.
Once the directories are done, look for any additional files that may exist in common locations:
find . -type f -name 'lolly*.*'

This, too, will search the current directory and all subdirectories for any file name starting with "lolly". If you see anything in the output, you will need to delete them. If they can all be deleted, you can save time by doing this:
find . -type f -name 'lolly*.*' -exec rm -f {} \;

Be 100% sure before you use this command that all files starting with "lolly" can be deleted, as there is no undo.
If there are still files after this, get in touch with the Lollypop developers.
Hope this helps.


How do U handle "paste subprocess was killed by signal (Broken pipe)"

This is an issue with two packages trying to maintain the same files:

dpkg: error processing archive /var/cache/apt/archives/nvidia-cuda-dev_9.1.85-3ubuntu1_amd64.deb (--unpack):
 trying to overwrite '/usr/include/cublas.h', which is also in package libcublas-dev 10.2.2.89-1

Something about the CUDA package is in conflict with libcublas - this is a problem with packages so you should file bugs in the given packages for cublas - unless you need cublas you might just want to use CUDA here.


Yes, you can use dpkg-repack to accomplish this.

Install dpkg-repack  and fakeroot  (to avoid being root to repackage). Or from the terminal:

sudo apt-get install dpkg-repack fakeroot

Repackge installed package

fakeroot -u dpkg-repack <package name>

And you'll find the package in the current directory.

Note that any changes on the system on the package after it has been installed will be reflected in the repackaged version!


I believe GCX is what you are looking for:

GCX: Astronomical image processing and photometry
Gcx is an astronomical image processing and data reduction tool, with an easy to use graphical user interface. It provides a complete set of data reduction functions for CCD photometry, with frame WCS fitting, automatic star identification, aperture photometry of target and standard stars, single-frame ensemble photometry solution finding, multi-frame color coefficient fitting, extinction coefficient fitting, and all-sky photometry; as well as general-purpose astronomical image processing functions (bias, dark, flat, frame alignment and stacking); It can function as a FITS viewer.
The program can control CCD cameras and telescopes, and implement automatic observation scripting. Cameras are controlled through a hardware-specific server, to which gcx connects through a TCP socket. It generates FITS files with comprehensive header information.

A list of possible candidates are on Ubuntu's website, oddly enough. Apparently this sort of thing is in demand!


How to access Vmware Esxi Server from Ubuntu 12.04.1

The vSphere Client is only available for Windows systems and it is not available for Linux systems.

The solution is to use vSphere Web Client.

More info in the VMware Knowledge Database.


How to shrink mp4 video file size by 92%?

There are Linux alternatives to Handbrake, such as FFmpeg, as shown here, and mencoder (illustrated here), and  libav-tools, illustrated here.
Handbrake does have a command line interface ('CLI') options, as shown here and here, and here is a primer for GUI use.  I suggest converting the larger file to MKV format (it enables use of the very efficient H265 compression for video) and AAC audio to better shrink the file, i.e., with the command line option switches shown below to compress the video to 5 fps and 8 kbps AAC audio, which as low as you can go with HandbrakeCLI:

HandBrakeCLI -f --av  -e --x265  -r --5  -R --8  -E --av_aac  -i --PATHNAME_TO_SOURCE_FILE -o --PATHNAME_FOR_RESULT_FILE

You may also find useful help at the Handbrake forum and elsewhere which notes you can get an 1/8 compression just by changing from 1080 to 360. Add that to reducing the audio quality (which represents around 1/3 of multimedia files) and you might get the 1/12 size you seek.


You can use rsync for that. There is a Windows version of rsync called cwRsync. It is based on cygwin.

You can install cwRsync on your Windows boxes and then rsync the data to your Ubuntu machine. I've used rsync for that when I migrated a server from Linux to Windows and had to copy a few GB of data from one machine to the other.

Here is an example how to do it.

If you create a batch file for the backup, you can then run it automatically using Event Scheduler in Windows.


network-manager-openvpn-gnome not able to import ovpn

Even after installing all the plugins for network-manager I still have this error on an occasional 16.04 box.  But it is possible to configure it manually.  Here are the settings I had to set manually.

On the General page tick the box

On the VPN page enter gateway and your certificate and key files

Then click Advanced button and tick the LZO box.

I did not examine your config file in detail, so change as required to match your server settings.


Error: The system is running in low-graphics mode in Ubuntu 14.04 Samsung np270e4e-k05mx

OP's own answer:

I found the solution doing this: ctrl+alt+f1

sudo apt-get install gdm

choose gdm

sudo reboot

and I got login without the error


How to ungroup windows on Unity task switcher?

You can also press alt + ` (the key above Tab) to switch between instances of the current application.


My USB port not working after booting ubuntu

Simply click at the package manager in unity on the left side (the suitcase icon), then type into search field only "usb" and look for the output or directly type in search field "udev" and install the package related to "udev" - after this and after reboot USB is supported fully.


In case you didn't already, you might want to have a look at the instructions by nodesource.

It looks like you're running Ubuntu 14.04.  An upgrade to 16.04 would solve the problem, if this is an option for you.


KOffice Calligra Suite

The KOffice project was replaced by Calligra Suite, after some disputes. Calligra Suite is a fork of the 2010 codebase.

IBM Lotus Symphony

uses code from OpenOffice.org and includes enhancements such as new sidebars in its user interface.

Not in the repositories, but I think it is worth mentioning, you may give it a try and see what it brings new to OpenOffice.org besides the interface

Read more: http://www-03.ibm.com/software/lotus/symphony/home.nsf/home

Other Useful Options

For calculations one could use gnumeric, octave and Python with numpy. A fairly good lightweight word processor, Abiword is available.

For document creation, Latex and Context are excellent systems, the learning curve is a little steep when it comes to Tex based document creation systems, but when one starts reaping the rewards of the power of these systems one will see it is a small price to pay.

For people just starting with Latex, an Interface like lyx  may be used. There is no substitute for a good Latex editor though, texmaker  is a fine one.

Scribus may also be considered, while it is a page layout program and not a word processor there is a story editor that have similar behaviour to a word processor and there are many instance where something like this is better for document creation than a word processor.

For drawing Xfig and Inkscape are quite good.

For database, sqliteman interface to the sqlite database system


Missing parameter in configuration file. Keyword: path

After the error message, try hitting Tab, type in live and hit Enter. This should get you to the Ubuntu desktop from where you can use the Install icon to go forward with the installation.


Try Using VLC. It plays 3gp videos great. Install it with this command in a terminal.

sudo apt-get install vlc


Twinview dialog boxes all open in secondary screen

Same problem here.  The fix:

Install ccsm as explained in earlier post.
Go to General->General Options->Display Settings.
From drop down menu of 'Overlapping Output Handling' select 'Prefer smaller output'.
(My monitor is smaller than my TV.)
Apparently the 'Smart Mode' isn't very smart (at least on my setup).


Mount raw dd images using GUI/Nautilus the same way as an ISO file (double-click, no sudo, eject button, etc)

Main Answer

There should be the Archive Mounter option. Just right click the image and click "Archive Mounter", this should mount most disk based file systems like ISO 9660 (to left pane of Nautilus and on the Desktop) - however, it mounts images to:

  ~/.gvfs

Alternative Answer

There's an extremely useful script that has been created, called nautilus-mount-image which should mount most filesystems.

This can be downloaded from here.

This is from Raúl González Duque's PPA; looking at the code, it essentially figures out what type of filesystem the Image has, and attempts to mount it. It supports:

ISO 9660 (CD's, DVD's, etc), NTFS, EXT2/3/4, HFS, ReiserFS
And many more...

For general use, you can use this script by right clicking the file that you want to mount, and clicking "Mount image..." like so:

To answer your requests:

You won't be able to double click to mount
It should show up on the desktop and the left panel of nautilus
Auto-detects Filesystem
Does need user priviledges
Automatically mounts to folder under /media/ (so don't need to make mount point folder)
Eject button located in Nautilus or by right clicking original file and selecting Unmount.

Unfortunately, I don't know how this script will react to Images with multiple filesystems. Kittens may burn. You've been warned ;)

Reference:

Nautilus Scripts


Mozzplugger not working in Lubuntu 11.10

Here is a fix that might not apply to your problem. It did solve my similar issue.

Checking you have the same problem :

Type about:plugins in a firefox adress bar.
Search for a MozPlugger category.

If you have the same problem I had they should be no such category.

Solving the problem :

open firefox's help -> Troubleshooting Information
Click on Open Containing Folder
Edit pluginreg.dat
At the end of the file, in a category called [INVALID], you should find 2 lines ressembling this :

can'tRememberWhat/mozplugger.so:$
lot'sOfNumbers:$

Cut those lines and paste them just under the [PLUGINS] category.

Restart firefox and everything should be fixed.


How to create a rotation animation then replace it with some text then repeat it using Bash

Try,
#!/bin/bash

chars="/-\|"
while :; do
    for (( i=0; i<${#chars}; i++ )); do
        printf '%s %s\r' "${chars:$i:1}" "Song Name"
        sleep 0.5
    done
    # Clear line and print window name
    printf '\033[2K%s\r' "$(xdotool getactivewindow getwindowname)"
    sleep 2
    # Go up one line and clear line
    printf "\033[2K"

done
# Add newline in the very end if you like
echo

This is a combination of:

Is it possible to retrieve the active window process/title in Gnome?
How to delete line with echo?
Overwrite previous output in Bash instead of appending it

You may need to install xdotool:
sudo apt install xdotool


grub rescue, unaware of ubuntu on my machine

I assume you want to be able to boot both Windows 7 and Ubuntu, right?

In GRUB rescue mode, execute the following command:

ls

It will list all your drives and partitions, like:

(hd0) (hd0,msdos2) (hd0,msdos1)

If you don't know your Ubuntu boot partition, check them one by one:

ls (hd0,msdos2)/
ls (hd0,msdos1)/

When you hit the right one, you'll get a line mentioning "lost+found" an so on.

Assuming (hd0,msdos2) is the right partition, execute these commands one-by-one:

set prefix=(hd0,2)/boot/grub
set root=(hd0,2)
insmod normal
normal

Now you'll be able to boot into Ubuntu. Once you do, look for "Terminal" application & execute the following commands from the command line:

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

None of the above can damage data on your Windows partition.


How to play normal and bluetooth speakers simultaneously?

It appears that some people have had success with simultaneous audio output using PulseAudioPreferences.

It essentially creates a virtual audio output device encompassing more than one actual audio output device.

According to this thread, this paprefs solution was still working under 14.04 LTS.


Ubuntu software center won't accept Ubuntu One login

I just had this problem when trying to install the "snap" version of vlc.

I have several machines running 16.04 "Xenial" and on the ones I have tried, when I try to install the snap version of vlc (labeled "nonfree") in the Ubuntu Software utility, the utility puts up a dialog asking for my Ubuntu One email address and password. I have tried numerous times, but the dialog will not accept any of the registered combinations. I used the button on the dialog to reset my password, and the software still does not accept the new password. I confirmed that I am still able to log into the Ubuntu One SSO sites using the new password.

Here's a workaround -- open up a terminal and you can install a snap package using the command line utilities -- no Ubuntu One password requested.

$ snap find vlc
Name  Version  Developer  Notes  Summary
vlc   daily    videolan   -      The ultimate media player

$ snap list
No snaps are installed yet. Try "snap install hello-world".

$ sudo snap install vlc
[sudo] password for you:
110.10 MB / 110.10 MB [==================================] 100.00 % 708.43 KB/s

vlc (stable) daily from 'videolan' installed

You may find that the application doesn't appear in the Ubuntu dock, but if you search for it, open it, and pin it to the dock, it will stay.

You may also find that the Ubuntu Software utility is confused about whether the application is installed -- I found even when I used Synaptic to make sure I got all the pieces of the "regular" vlc removed, Ubuntu Software now shows BOTH installed.


Dual boot with Windows 7 issue: Windows occasionally restarts at startup

Try to schedule a disk check when you are able to boot or press F8 for the Windows boot menu and boot in safe mode.

You can schedule a disk check by pressing the Win + r keys and typing chkdsk /F.


When attempting to run a script, I recieve the message "ls: cannot access '*.bash_history': No such file or directory"

I never heard of darktable before, but it looks like an open source version of Lightroom.  I definitely want to check it out, it seems like a great option for LR as I don't think Adobe makes a linux version.

That being said, I'm not familiar with the program, and I just know a little bit about scripting, but the most of errors you're receiving are because the script is trying to delete some files which aren't there.  This leads me to question if you have darktable installed already.  These files are part of darktable and get put in your ~/.config/darktable directory once it's been installed and it needs to be installed before running these scripts.

Also, your .bash_history file is usually found in your home (~) directory, and so maybe you're running the script from the incorrect directory.  Did you try looking at the video https://www.youtube.com/watch?v=LufwQZx01gk. It was at the top of the second link you provided and it looks like he does a better job of walking you through the steps.  I looked at it quickly so I'm not sure if you need your bracketed photos before or after the script.  I would sit down, watch the video once through, then watch it a second time following his steps.  Best of luck.


Suddenly my software & update app does not stop refreshing the cache


The download on the Debian unstable still holds them. Grab a copy and assume it will be deleted tomorrow so keep it safe somewhere.


Log files are taking too much space and I can't delete\clear them

Your current logs are fine, still, those without .1. That is good, and you can remove it with:

sudo rm /var/log/*.1

Now you command doesn't work because of this:

sudo 'Everything here runs as root' > Everything here run as user

So if you wanted to do what you tried the correct would be:

sudo sh -c "echo '' > kern.log.1"

This is because the pipe opens a shell with the current user.