How to install SiS 771/671 video drivers on 13.10?

NOTE: This answer does not work anymore for versions of Ubuntu after 14.10.

The display driver for sis would be already installed in Ubuntu

xserver-xorg-video-sis is the display driver for all Sis and XGI video driver.

To check if this is installed or not you can execute this command:

sudo dpkg -l | grep xserver-xorg-video-sis

If it doesn't list any value then you can install it by:

sudo apt-get install xserver-xorg-video-sis

You can find more about the SIS display driver at X.org site.

Source: X.org Foundation

In addition to this this link would help you:

https://sites.google.com/site/easylinuxtipsproject/sis


If you go to settings --> startup and shutdown --> Desktop session you can decide for yourself if you want KDE to restore the previous session or start with an empty session on login


Everytime I use a sudo command it says ">>> /etc/sudoers.d/90-cloudimg-ubuntu: syntax error near line 1 <<<"

First of all, never edit /etc/sudoers manually, always use visudo. Your problem was a syntax error in the file /etc/sudoers.d/90-cloudimg-ubuntu but it is now a malformed /etc/sudoers.

So, to fix it (now that you have removed any changes you may have made), run pkexec visudo and make the file look like this:

#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults        env_reset
Defaults        mail_badpass
Defaults        secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

    # Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root    ALL=(ALL:ALL) ALL

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

# Allow members of group sudo to execute any command
%sudo   ALL=(ALL:ALL) ALL

# See sudoers(5) for more information on "#include" directives:

#includedir /etc/sudoers.d

Save the file (Ctrl+O) and exit (Ctrl+X). Next, I suggest you just move the /etc/sudoers.d/90-cloudimg-ubuntu somewhere else so it doesn't cause issues:

pkexec mv /etc/sudoers.d/90-cloudimg-ubuntu ~/

At this point, you should have a working sudo. If the 90-cloudimg-ubuntu file was necessary, ask a new question with the contents of that file an we can help you put it back and fix the error.


Can't Boot Ubuntu on Lenovo Ideapad 100s

I, you can access the BOOT menu by F12, or with the NOVO button right the battery indicator.
Note that this PC is 32bit UEFI only, so you had to include bootia32.efi file in the BOOT folder in your USB drive. Here the precompiled file: https://github.com/hirotakaster/baytail-bootia32.efi.
The state of the art is that you can achieve WIFI working patching the kernel, see https://plus.google.com/+IanMORRISON works to get a custom ubuntu ISO (Wifi, in the latest, work out of the box). For the audio, check the merge in Linux-next and Linux 4.9, changes are working in the shadows ;)


How do I move a whole album to a directory using middle characters?

Are the parenthesis in the question literally in your command? If so, they are the cause of your problems. If you must have them, then escape them as *\(disc3\)* and it should work.
This happens because the shell is interpreting the parentheses and not using them as part of your text.


Try the following commands. Hope it works.

sudo apt-get purge libreoffice-gtk
sudo apt-get install libreoffice-gtk

Also visit:
http://sourcedigit.com/8157-customize-ubuntu-14-04-trusty-tahr-11-must-tweaks/
http://sourcedigit.com/8266-15-powerful-unity-tweak-tool-customizations-ubuntu-14-04/


Misbehaving of stylus based notetaking programs (Xournal, Jarnal) after installing Ubuntu 12.10 in Surface Pro

This happens as Ubuntu does not have palm block. So to use the stylus for taking notes, disable touch first. Also increase the threshold limit of the stylus to 60 (default 20). In terminal run:

xinput disable 'Atmel Atmel maXTouch Digitizer'

xinput set-prop "MICROSOFT SAM" "Evdev Third Button Emulation Threshold" 60

After you are done taking notes, enable the touch again by running:

xinput enable 'Atmel Atmel maXTouch Digitizer'


I ran into the problem with it outputting UUID because amazon's aws ec2 cloudwatch script mon-put-instance-data.pl uses it as its Filesystem dimension and my alarms all of a sudden had insufficient data after apt-get upgrade:

This is really an initramfs-tools bug.  Rebooting after initramfs-tools - 0.103ubuntu4.3 fixed the issue everywhere for me even on coreutils_8.21-1ubuntu5.4

https://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/1432871/comments/33


How install the latest FileZilla from its official site?

If Filezilla is only for your own use, then create a bin directory in your /home folder, drop the extracted Filezilla folder into ~/bin, and ~/bin is already in your path, so you should be able to run Filezilla from the command line.

Structure like so:

/home
  /your_username (your home directory)
    /bin (folder)
    symlink to Filezilla/bin/filezilla (symlink)
       /Filezilla (folder)
         /bin (folder)
           filezilla (executable file)

You don't have to deinstall the older version, but it's a good idea.

To run from the command line, if you've created the structure, and the symlink correctly, you should just be able to type Filezilla.


Cannot install network-manager-l2tp on Ubuntu18.04

As we discovered during conversation with @Jos in comments:

the mentioned PPA (ppa:ubuntu/network-manager-l2tp) is not needed for Ubuntu 18.04 LTS.

If you have added it - remove it with:

sudo ppa-purge ppa:ubuntu/network-manager-l2tp

All packages are available in the universe repository (see link for network-manager-l2tp and link for libreswan).

So all you need is to enable universe repository and install packages from it:

sudo add-apt-repository universe
sudo apt-get update
sudo apt-get install network-manager-l2tp-gnome


TwinView keeps the desktop stretched when external monitor removed

If this is a hybrid graphics laptop, try to install bumblebee to have both the Intel and Nvidia cards working simultaneously, and use gnome-display-properties for multi-screen configurations, which is better than nvidia twinview these days:
https://launchpad.net/~hybrid-graphics-linux

sudo apt-get install git
# type password
git clone http://github.com/MrMEEE/bumblebee.git
cd bumblebee/
sudo ./install.sh
optirun glxgears
# check the speed and compare to running:
glxgears
# If you have google-chrome installed, you can try it with/without optirun and report the FPS values on the mailing list:
optirun google-chrome http://webglsamples.googlecode.com/hg/aquarium/aquarium.html


Firefox option to restore session on startup is greyed out

Is your history option disabled, or you have any kind of setting that deletes all information every time you close firefox? Because the program won't be able to restore the tabs if it's  not keeping info about them. These options are on the privacy section, check it out. Good luck!


Can I "upgrade" to the same version of Ubuntu?

Please correct me if I'm wrong - I haven't used Ubuntu in a while since I moved to Arch Linux.

I believe Ubiquity (the installer used in the Ubuntu LiveUSB) has the ability to reinstall Ubuntu over a previous install of Ubuntu while retaining all personal documents, pictures, music, etc. - in a nutshell, your home folder.

On the "Installation Type" screen during the install process from an Ubuntu LiveUSB, it should show an option along the lines of Replace Ubuntu <version> with Ubuntu <version>. These can be the same versions, and should preserve the contents of your home folder.

Note: This will not save your installed programs. If you're looking to do that, check out this question.


Blank screen after a minute in newer Linux OSes

Make your nomodeset a default to allow proper booting while you work with configuring video adapter with the proper drivers.  Edit your /etc/default/grub file and added nomodeset to the grub commandline:

Change from:

# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

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

Change to:

# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

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

After editing the /etc/default/grub file you have to update grub to make it in effect:

$ sudo apt update-grub

For the graphic problem use the provided drivers for your graphics adapter.

There are links to the Drivers recommended by the Ubuntu Community:
RadeonDriver - Community Help Wiki
AMDGPU-PRO Driver for Linux Release Notes

After installing new drivers use additional drivers from System Settings to pick the best.


How to change mouse speed - isn't shown in settings for 16.04

Use xset

to see the current speed:

$ xset q | grep -A 1 Pointer

  Pointer Control:
    acceleration:  5/1    threshold:  5

To speed the mouse up a bit I used:

xset m 5/1 3


The file /etc/init/karl-startup.conf should read:

description "karls sexy startup script"

As you say in your related question you want to start the script on login, further use

start on desktop-session-start

if you want to run it on startup, use

start on startup

exec sudo -u $user /home/karl/.scripts/startup/sensei-raw-startup.sh
exec echo sensei-raw-startup.sh script `date` >> /var/log/karl-startup.log start

Further details on upstart here:
http://upstart.ubuntu.com/cookbook/#id300


What does this info mean when I fire `dpkg -l lxpanel`?

ii  lxpanel        0.5.10+git20 i386         LXDE panel

Desired status: install (i)
Actual status: installed (i)
Error: (nothing)
Package name: lxpanel
Version: 0.5.10+git20
Architecture: i386
Description (short version): LXDE panel

  Are there some errors that have to be solved?

No. Not about this package as far as the package management is concerned.


Ubuntu 11.04 + Radeon 4850 = performance problems and graphic problems

They slowness is caused by the default Compiz settings.

You need to disable the Sync to VBlank option in the OpenGL plugin and you might also need to disable the Detect Refresh Rate option in the Composite plugin.


failing to install oracle-java7-installer,displaying 'E: Sub-process /usr/bin/dpkg returned an error code (1)'

Oracle's Java 7 reached End of Life in 2015 and is no longer available. Java 8 is the best-supported version, though Java 9 is stable now as well (though things like IntelliJ IDEA don't yet support Java 9).


How do I move the Unity2D launcher to the right?

Currently moving launcher to the right is impossible in both Unity 2D and 3D.
Keep your eye on the Unity 2D Settings Tool (PPA) as they plan to add this feature in the future.


Required Programming Languages to write a own application in ubuntu?

If you are just starting - you should go with Python - http://python.org

You should check this: http://developer.ubuntu.com/resources/programming-languages/python/

You have also nice introduction to the tools here: https://help.ubuntu.com/community/Programming

You have information how to start here:

http://developer.ubuntu.com/get-started/


I had similar problem, but It was ALWAYS something I have done in BIOS setting when Installing Ubuntu in the first place.You have probably changed the order of booting (To USB or something) and now it is trying to boot from USB, or something similar.

Go in your BIOS and see under BOOT options. Do not feel afraid to change something, as you will always be able to get there again to try another option.

Try to change a few setting and see where it will get you. (I have done this 100 times) Never caused any problems, only solved them.


kernel panic- not syncing: attempted to kill init!

I have noticed for some reason (and whether this is true or not, I'm not sure) that Linux is very sensitive to failing hardware. I have seen this on my home office computer a couple of times. Your best bet is to start running hardware diagnostics.

For that I would recommend Ultimate Boot CD. In your case, I would start with running a Memtest (at least for an hour, overnight if possible), followed by a hard drive test (which test will depend on the brand of your hard drive). Out of those two, I would bet a lot of money that something would show up defective - and my money would be on memory.


Cronjob is not running, but works from scheduler

Two mistakes

there should be "="

--text="here"

and adding --display=:0.0 to display the output

/usr/bin/zenity --warning --text="here"  --display=:0.0

and now it works like a charm!


How can I make a command run once the next time I log in?

This is really "ugly" solution, but you can add classic logon/startup script and after first run remove this script automatically.

#!/bin/bash

your command &
rm /path/to/script/yourscript.sh

The script will be removed, so it can't be started again.

(I'm sure there's a bettter solution, but I don't know it.)


How do I get executable indexed by dash/launcher?

You have to create a *.desktop entry and place it in /usr/share/applications or ~/.local/share/applications.

Example:

# eclipse.desktop
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Exec=/home/me/Development/tools/eclipse
Name=Eclipse
Comment=Develop software with the Eclipse IDE
Icon=icon path here

gnome-desktop-item-edit from package gnome-panel should be able to do this for you if you don't want to create the entry yourself.


Get latest version of package when not available for current distro

Simple way:

apt-get install dynare-matlab=4.4.3-1~trusty1

Best way: Using priority like:

Assign higher priority to PPA


Splash screen immediately disappear on boot

The way I see it the output you shared are the reasons for the delay in boot.

You can switch off / uninstall (Bluetooth for example) or install the correct drivers.
Try looking up for each error on Google.

You can also disable the respective services like
Bluetoothd.

There is a lot of information regarding that on Google.

But I too get a black screen after the splash. So the only difference is the delay.

I suspect the maximum delay is with regards to the Wi-Fi chip. Find out the make and model of your Wi-Fi.

If that does not solve it, you could temporarily disable wireless on boot.
Moreover, since many of the errors are related to Kernel bugs, I would recommend you switch to a different flavor of Linux or Ubuntu ..and repeat the steps wrt Grub and see if you get the same errors.

You can try with a Live Cd first.

If you have a Preference wrt Linux then you are here to solve it.. Is spice-vdagent required for Wayland?
2. How do I disable ACPI when booting?
3. How can I deactivate Bluetooth on system startup?


Can I lock screen after move mouse in lock screen?

Can we assume you are using 12.04 or 12.10...

Just press Esc to remove 'Unlock' dialog.

Yes, there is a shortcut to lock screen (if unlocked).  Just press Ctrl+Alt+L, to immediately lock the screen.


Is there a way to blacklist an individual application from using overlay-scrollbars?

I am going to answer my own question. Thanks to the user "SevenMachines" in ubuntuforums, I've found a way to disable overlay scrollbars for a specific application.
I did a shell script with the following (for eclipse, for example):

#!/bin/sh
LIBOVERLAY_SCROLLBAR=0 eclipse

Then, make it executable, and using the "Menu editor", changed eclipse to point to the script.


What seemed to solve the problem for me was:

unity --reset

After this Unity configuration was set to its default values and everything works fine again.


Do I really need the "Source Code" in my repository list?

Unless you are planning to modify the software yourself then you can safely disable it. Most users will never need the source code.

You can shut it off by launching the Software Center, then going to Edit -> Software Sources in the menu, and then disabling the "Source Code" check box:

It will then prompt you for your password and then rerun an update.


installing the boot loader in a separate pendrive

The answer is yes, you can. You need to have your pen drive plugged in during the installation of Ubuntu and you need to tell Ubuntu that you want to place the boot loader on this pen drive. Assuming that you have two hard drives /dev/sda and /dev/sdb the device for keeping new bootloader is /dev/sdc, which should be your pen drive.

To load Windows in your case you will need to select USB boot option in your BIOS. It is also needed to set Windows as default in GRUB menu configuration.

Be aware, that without this pen drive you will not be able to run Ubuntu although you will have it installed on one of the drive. This is because you are going to keep new bootloader on a pendrive. So in the scenario you asked in the question the MBR existing on one of the drives is not going to be changed.

So you will be able to load Windows only without pen drive or both Windows and Ubuntu with pen drive plugged in. Is there any sense to have such a setup or you need anything else?


To test whether a printer will deal with a PostScript file, such a file may be sent directly to the printer. An IP address for the printer is needed; we will call this IP_ADDRESS. Get a small PostScript file and do
netcat IP_ADDRESS 9100 < YOUR_POSTSCRIPT_FILE

substituting, of course.
Does YOUR_POSTSCRIPT_FILE print successfully? If so, we can progress from there.
Suppose there isn't any printing. This implies the printer does not understand PostScript. However, the printer appears to support PCL. About the best I can give you here is to set up a print queue with
lpadmin -p testq -v socket://IP_ADDRESS:9100 -E -m drv:///sample.drv/generpcl.ppd

and try printing with
lp -d testq /etc/nsswitch.conf


Is possible to record MIDI via USB from a roll up piano?

The type of program that allows you to record MIDI data is called a sequencer; try Rosegarden, Seq24, or Qtractor.

Your piano can be connected with either the USB cable or a MIDI cable.


How can I fix this tearing in fullscreen video with Radeon card?

This is an example of video tearing. If you have installed the catalyst drivers, search an option related to it. I think it was called AMD "tear-free" but I don't remember exactly  the name (long time using NVIDIA cards), and activate it.


Ubuntu 11.10, replacing unity with gnome

Ubuntu already comes with Gnome 3, don't get all confused. Unity is compiz plug in, the underlaying environment is Gnome 3. The Gnome Shell is the new implementation of the Gnome 3 GUI, it's made of the regular Gnome  session and the Fallback session.

Put simply Gnome Classic or Gnome Fallback Session, is the Gnome Shell without the "3D" greatness.

It is as effective as you get to work with it. Now, yes you can Uninstall Unity and just keep Gnome Shell or the use the Fallback session.

Now, I get lost when you ask if you get "more things available" more of what?.


How do I install Nvidia drivers in ubuntu 11.10

Best way I have installed NVIDIA drivers is by downloading them directly from the NVIDIA website. Then from there, I use Terminal and run the following commands to install them (note filename name may differ from what you download:

$sudo chmod a+x NVIDIA-Linux-x86_64-295.20.run

$sudo ./NVIDIA-Linux-x86_64-295.20.run


Boot into Ubuntu and try running this command in terminal Ctrl+Alt+T

  sudo update-grub

that updates the grub boot menu that may solve your problem

if not then, you want to remove the efi folder you mentioned then open terminal and cd to boot and use

  sudo rm -r direcotry

you should be careful, if you remove some other files then your ubuntu will be gone


Find all files in the current directory and its subdirectories with the extension .png

TL;DR

To find files matching a regular expression, use find with the -regex option:

find [startingPath] -type [fileType] -regex "[regularExpression]"

In your case, if you want to search for files (file type f) ending in .png, starting from the current directory:

find . -type f -regex ".*\.pdf"

If you want to have an ls-like output, use the -ls action:

find . -type f -regex ".*\.pdf" -ls

(the output has the same format as ls -dils).

If you want to execute a command for each file, use the -exec action, e.g.:

find . -type f -regex ".*\.pdf" -exec file {} \;

... will print file type information for each matching file.

There are a lot more things you can do with find, just read the manual.

As @steeldriver said in the comment, there is no regular expression in your command. *.png is a shell glob and is expanded before ls is run. Imagine there are two files in the current directory:

picture1.png
picture2.png

...then ls -R *.png will be expanded to:

ls -R picture1.png picture2.png

In this case, the -R option is not particularly useful because there are no directories specified that ls could recurse into.

If the shell doesn't find any matching name, it passes the argument literally (depends on the shell, but bash does):

ls -R *.png

... and ls complains because there is no file called *.png.


Split screen and other issues on Ubuntu 11.10 with ATI graphics card

I have a similar setup and had system lockups after upgrading to 11.10.  I just completed a clean install and I'm having the same problems you are.

Since the clean install I have not installed any drivers.  For that matter, I never was able to get decent graphics on boot.  My screen was split like yours, but I never saw anything show up on the desktop.  After logging in, all I saw was the wallpaper and mouse cursor.  Moving the mouse cursor all the way to the left would cause the mouse to exit the left side of the screen and re-enter on the right and keep moving until it hit the middle of the screen.  Even the text screens were like that... very flickery with the left edge of the "screen" in the middle of the monitor.

So, I installed fglrx via "sudo apt-get install fglrx" and let it install all the extra stuff that comes with it and rebooted.  System booted normally and I was able to see everything.

I assume you've tried to install fglrx.  If not, try it.  If so, try a complete removal and reinstall.  If all else fails, reinstall Ubuntu from the CD.  Format the drive if possible.  If not (as it was NOT for me), I told it to simply install to my drive and mount the drive as / , but to NOT format.  This gives me a clean install and has worked since... Dastardly Dingo or some version of Ubuntu from long ago.

Hope that helps.  Let's see what I can break now!


Can't recompile xmonad because of newer GHC version

I installed GHC 7.8.4 some time ago by installing from source - I needed a more recent version than what I could manage to get with apt-get. I also had GHC version 7.4.3 or something like that installed, which seemed to shadow my newer GHC. So I uninstalled that version using using apt-get. So perhaps the problem is that the command xmonad --recompile tries to use the ghc command, which now is the newer GHC? I have used GHC to recompile my configuration file before, and at that time I probably used the apt-get installed GHC.

Let's try to see what happens if I install xmonad.

my-machine:~$ sudo apt-get remove xmonad
[...]
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 2,654 kB disk space will be freed.
Do you want to continue [Y/n]? y

Only ~2.5 MB to remove.

Now let's try and reinstall.

my-machine:~$ sudo apt-get install xmonad
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
ghc ghc-doc ghc-haddock libghc-mtl-dev libghc-mtl-doc libghc-random-dev libghc-syb-dev libghc-transformers-dev libghc-transformers-doc libghc-utf8-string-dev libghc-x11-dev
libghc-x11-doc libghc-x11-xft-dev libghc-x11-xft-doc libghc-xmonad-contrib-dev libghc-xmonad-contrib-doc libghc-xmonad-dev libghc-xmonad-doc
Suggested packages:
ghc-prof haskell-doc llvm-3.0 libghc-mtl-prof libghc-random-doc libghc-random-prof libghc-syb-doc libghc-syb-prof libghc-transformers-prof libghc-utf8-string-doc
libghc-utf8-string-prof libghc-x11-prof libghc-x11-xft-prof libghc-xmonad-contrib-prof libghc-xmonad-prof
The following NEW packages will be installed:
ghc ghc-doc ghc-haddock libghc-mtl-dev libghc-mtl-doc libghc-random-dev libghc-syb-dev libghc-transformers-dev libghc-transformers-doc libghc-utf8-string-dev libghc-x11-dev
libghc-x11-doc libghc-x11-xft-dev libghc-x11-xft-doc libghc-xmonad-contrib-dev libghc-xmonad-contrib-doc libghc-xmonad-dev libghc-xmonad-doc xmonad
0 upgraded, 19 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/66.2 MB of archives.
After this operation, 428 MB of additional disk space will be used.
Do you want to continue [Y/n]? y

A lot of *ghc* dependencies, and a requirement for 428 MB compared to only freeing ~2.5 MB when uninstalling xmonad.

Now ghc points to the ghc installed by apt-get, as indicated by runnnig ghc --version

The Glorious Glasgow Haskell Compilation System, version 7.4.1

And now xmonad --recompile works.


Notes and emblems are stored in ~/.local/share/gvfs-metadata/ or (for older versions (2008-ish) of Ubuntu) ~/.nautilus/metafiles/ in binary format.

Regarding emblems. Have a look at this answer: How to change the icons of multiple files from terminal?

Regarding notes. From CRC OK weblog:

Notes are not embedded into the file. You cannot back the files up in an archive without losing the notes, neither can you copy them to an external storage, nor you can even freely move the files around in the same logical disk. You lose notes added to documents if you move them from one user account to another.

That website also has a script to backup notes to 1 file per note with a .ntext extension:

#!/bin/bash

process_dir() {
 local -a subdirs=()
 echo "Scanning directory: $1"

 # Scan the directory, processing files and collecting subdirs
 for file in "$1"/*; do
 if [[ -f "$file" ]]; then
 echo "Processing file: $file"
 # actually deal with the file here...

 #gvfs-info $file | grep annotation | sed s/' metadata::annotation: '/''/g > $file.note
 note=$(gvfs-info "$file" | grep annotation | sed s/' metadata::annotation: '/''/g)
 #len=`echo ${#note}`
 #echo $len
 if [ -z "$note" ]
 then
 echo "No note for file $file"
 else
 echo "Found a note for file \"$file\", saying: \"$note\""
 echo "$note" > $file.ntext

 fi     # $String is null.

 elif [[ -d "$file" ]]; then
 subdirs+=("$file")
 # If you don't care about processing all files before subfolders, just do:
 # process_dir "$file"
 fi
 done

 # Now go through the subdirs
 for d in "${subdirs[@]}"; do
 process_dir "$d"
 done
}

clear
if [[ -z "$1" ]]; then
 read -p "Please enter a directory for me to scan " dir
else
 dir="$1"
fi
process_dir "$dir"

usage of script at your own risc

You start the script like:

./extract_notes /home/rinzwind/

and it will scan /home/rinzwind/ for files containing notes and will result in a filename ending on .ntext in that directory.

Getting them back into files you copy...

gvfs-set-attribute -t string rinzwind.txt metadata::annotation "hello Achu"
gvfs-info -a metadata::annotation rinzwind.txt
    attributes:
    metadata::annotation: hello Achu

gvfs-info and gvfs-set-attribute are part of gvfs-bin


How to add additional IP to new interface on ubuntu 18.04?

Not sure i understand the question... I'd say:

ethernets:
ens3:
  dhcp4: no
  addresses: [a.a.a.a/23,c.c.c.c/23]
  gateway4: d.d.d.d
  nameservers:
    addresses: [108.61.10.10]
  routes:
  - to: 169.254.0.0/16
    via: d.d.d.d
    metric: 100
ens4:
     dhcp4: no
     addresses: [b.b.b.b/23]

?

ps. I think your:

  routes:
  - to: 169.254.0.0/16
    via: d.d.d.d

is not needed?, since it is set by default gateway already? ( unless more is going on ...)


AFAIK you need to have two network interfaces in order to share an internet connection. You connect one interface (probably the wired connection) to the internet and on the other (probably the wireless connection) you create a shared network. (I don't know how / if that works over bluetooth.)

Step by step:

Plug in the wired internet connection.
Click on the network-manager icon and select "edit connections"
Create a new connection in the wireless tab

choose name and security as you like
make sure to select "mode: ad-hoc"
in the "IP4 Properties" tab, select "shared connection" from the drop down menu

Now click on the network-manager icon again, "create new network" and select the network you just configured
Now your Android device should find the new wireless network, connect and you're ready to go.


Recent Documents Click Launches Nautilus Rather Than File

I found my answer at https://answers.launchpad.net/synapse-project/+question/193455.  Deleting the mimeapps.list file at ~/.local/share/applications fixed my problem.  I don't know how it had gotten corrupted, but at least it's working fine now.


How can I remove a file that looks like a flag?

The "--" argument to mv surely works (it means: "stop to interpreting strings starting with - as options from now on"), but it is worth to know also

rm ./-v

which will work also with commands that do not have the "--" flag.

EDIT: well-behaved commands should respect the -- flag. But you never know.


Ubuntu doesn't copy video files to Sandisk USB Flash drive

Firstly, your files are not named with a suffix. (.avi, .mpg, .mp4, etc)

This produces files that work just fine on Linux because it uses magic (not kidding, the pattern match data is literally called magic) to determine file type (use man magic at a terminal for a longer explanation).

Windows on the other hand trusts the name of the file to decide what to do with it. The default configuration of Windows hides these file extensions ; most advanced users regard this as an unsafe behaviour (because it's too easy to ship a virus program with an icon that makes it look like a video or image).

I can't say I have experience with a PS3, but it will play these encodings, apparently. I don't know if it needs files named a particular way.

http://manuals.playstation.net/document/en/ps3/current/video/filetypes.html


First off, make sure you're using the right themes (for Gnome 3.8 I would presume).

Second, you need to put the theme folder (not the zip, but the contents of the zip), into /usr/share/themes.

Hope this helps!


Supposing that this graphic card is a 4XXX series card (because the ATI Mobility Radeon HD 450 doesn't exist), I think that this old answer will help you:

https://askubuntu.com/a/305686/153260

Then, this question is duplicated.


What does "<" mean in iptables-restore < [file]?

< tells the shell to redirect the contents of the file to the iptables-restore command's standard input. The file itself is not modified.

For a more complete discussion see, for example

What are the shell's control and redirection operators?


Three finger dragging on ubuntu-touch tablet

I have only come across this a few times and each time, I have not had much success with it. The first time I came across this was by mistake and I had no idea how to get it back to normal, as the three fingers didn't seem to work. Now I seem to be able to tap on the screen three times and the side panel appears. Once apps/screens are on there, it seems almost impossible to get them off again, without closing them down. I do agree that having more than one app there, would be good, however I think more development in this is needed and possibly that will come in later releases. Possibly log this in Launchpad.


Just install the Linux images again

sudo apt-get install linux-image-3.2.0-23-generic-pae linux-headers-3.2.0-23 linux-headers-3.2.0-23-generic-pae

You should now have option for booting the previous Linux image. Boot to that image and remove the updated one.

If you really want to get a list of all Linux images, You can check the repository pool by going here

A screenshot is added below:


WiDi/Miracast for Linux projects seem to be abandoned (https://01.org/wds , for example). The only workaround is to set up a DLNA server on your Linux box. It is well explained at https://www.lg.com/ca_en/support/product-help/CT20098023-1348676620463-file-sharing-dlna .

EDIT: You will need to install minidlna and make sure it is running. The laptop and TV must be connected to the same LAN/WiFi network. New source, media-sharing, should appear in the list of available sources on the TV.


UPDATE: Before trying this workaround, you may want to try the latest version provided by this community fork: https://github.com/prikhi/pencil/releases

This is a bug filed several times, and a workaround is available at: http://code.google.com/p/evoluspencil/issues/detail?id=170

The workaround is to use plain xulrunner to run Pencil instead of Firefox, then the problem disappears. You can download xulrunner from here, extract it somewhere and use it to run Pencil like this:

xulrunner --app /usr/share/pencil/application.ini --no-remote

The --no-remote is for xulrunner not to try to reuse an existing Firefox instance running. You may need to change the path to pencil's application.ini, depending how you have it installed.

If you have installed Pencil with the official .deb provided by Evolus here, you can follow these quick steps:

Open a terminal and turn into root:

sudo -i
Then, download xulrunner (17Mb) and extract into /opt:

wget -O - http://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/16.0.2/runtimes/xulrunner-16.0.2.en-US.linux-x86_64.tar.bz2 | tar xjf - -C /opt
Change the Pencil executable script to run with xulrunner instead of Firefox:

sed -i '/application.ini/ { s|^/usr/bin/firefox|/opt/xulrunner/xulrunner|; s/$/ --no-remote/; }' /usr/bin/pencil


Seems this is a known Wine bug, with only a luck based workaround.

The dropdown menu does exist, and you can navigate it, you just can't see it.

If you're having this problem yourself, use the tab key to make sure the focus is on the region button, then use Up/Down arrows to navigate inside the invisible region menu, then press enter to select which ever region you got. Then it's just trial and error until you find your region.


Unable to install Ableton 9 via POL in Ubuntu 16.04

Looks like you are missing a few required support libraries, a quick google search suggests they are from VCRuntime2013. You could try:

Open the configurator for your Ableton installation in PlayOnLinux, go to the "installed components", and install the vcrun2013 component.

Disclaimer: This might actually completely wreck the virtual drive you created for your Ableton installation and require you to start from scratch, but since it isn't working anyway, I guess it's worth a shot.


Installation and Use of LAPACK 3.5.0 on Ubuntu 14.04


I get `failsafe-x main process terminated with status 1` while login, how to fix it?

Try to hook up your computer with an ethernet cord (larger version of a phone line cord) and attempt to log in again. If you maintain your error, It would appear as if your lan and wlan adapter drivers have been corrupted. You can always repair ubuntu from the live disc or usb you used to install it. Good luck, hope my answers helped.


You need to mark it as an executable, you can do so by right-clicking on the file then click Properties > Permissions > Then check the box next to allow executing file as program. Then it should ask you to run it or view it if you double-click on it. If not you you should look at what @bharadwaj-raju said. If all else fails you can open a terminal by hitting Ctril + Alt + T and cd-ing into the directory. If you don't know how have a look at this: https://help.ubuntu.com/community/UsingTheTerminal then run sudo chmod +x NameOfFile.sh then run ./NameOfFile.sh (Replace NameOfFile.sh with the name of your file.)


What's the meaning of "audit: backlog limit exeeded"

I believe this occurs when kernel kauditd thread is not being able to service the audit records fast enough and a backlog occurs. The default audit backlog is 64 audit buffers, so it may help if these are increased.  This can be set to be larger using the  kernel parameter "audit_backlog_limit".

For example, edit /etc/default/grub and add audit_backlog_limit=256 to the GRUB_CMDLINE_LINUX setting and run sudo update-grub to set this to 256 buffers.


For Ubuntu 20.04+ (Python 3 being the default Python) try:
pip3 install --upgrade youtube-dl

If you are using an older version of Ubuntu, or specifically want to use Python2, try:
pip install --upgrade youtube-dl

Note: this assumes you have pip or pip3 installed. Avoid using sudo pip3 (use virtualenv instead).
Using pip is a way to install youtube-dl, as reported on the official youtube-dl website, and the --upgrade option makes sure you end up with the latest available version installed.
To find out where youtube-dl has been installed, you can use the pip3 show youtube-dl command (see here and here).


This message appears just because you enabled secure boot but use an unrolled boot manager.

Disable secure boot in your uefi setting.
Log into windows. And press win+s.
Enter cmd then select run as admin.
In the commandline, input the following things:

mountvol S: /S
bcdedit /set {bootmgr} path \EFI\Boot\bootx64.efi

Warning: If you've made any changes to \EFI\Boot\bootx64.efi, this will not work as expected. You may need to register

\EFI\Microsoft\Boot\bootmgr.efi

instead of

\EFI\Boot\bootx64.efi

But I haven't tested it, do it at your own risk.

Finally, Reboot, enable secure boot.

Alternatively, you can also install the boot manager reFind to manage all your efi. Take a look at here:

http://www.rodsbooks.com/refind/

If you would like to install more os in future, this boot manager will help greatly.

Update:

In the screnn shot, I found that you may delete the EFI partition. This is a really bad suitation but still can be fixed with some effort.
You have to recover it manually. Follow these steps:

Warning: all the disks like /dev/sdax in command is just an example, you should replace them according to your system environment.

Make a bootable usb system, such as ubuntu live image. Make sure you have disabled secure boot.
Boot into this live system. and run lsblk, you will get something like the following output, but without efi mounted:

$ lsblk
NAME    MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda       8:0    0 931.5G  0 disk
├─sda1    8:1    0   260M  0 part
├─sda2    8:2    0   1.5G  0 part
├─sda3    8:3    0   260M  0 part /boot/efi
├─sda4    8:4    0   128M  0 part
├─sda5    8:5    0 845.1G  0 part /home/win
├─sda6    8:6    0   392M  0 part
├─sda7    8:7    0  33.9G  0 part
├─sda8    8:8    0   500M  0 part /boot
├─sda9    8:9    0  19.5G  0 part /
├─sda11   8:11   0    27G  0 part /home
└─sda12   8:12   0     3G  0 part [SWAP]

Find your Recovery Disk. For sony vaio, it is usually Windows Recovery disk /dev/sda2 with size of 1.5GB (or EFI recovery disk /dev/sda1 with size 260MB).
Mount this disk with

mkdir recovery && mount /dev/sda2 recovery

Make sure you get bootmgr.efi in this disk. Usually you can find it under ./recovery/EFI/Boot or ./recovery/EFI/Microsoft/Boot/.
Find out your original efi partition. Usually it is /dev/sda3 on sony vaio and the size of disk is 260MB. If nothing appears to be efi partition, just make a new efi partition by yourself. Don't worry, it should be safe even you create multiply efi partitions.
Use

cgdisk /dev/sda

and make /dev/sda3 a EFI partition(set code as ef00). Do Not Change Any Other Thing.
Mount it.

mkdir /boot/efi && mount /dev/sda3 /boot/efi

Copy everything under ./recover/EFI to your new efi partition.

 cp -r ./recover/EFI /boot/efi/

Make sure the output of

$ ls /boot/efi/EFI/

is

Boot/       Microsoft/

Make your new efi bootmanager loadable.

efibootmgr -c -l \\EFI\\Boot\\bootx64.efi -L Microsoft

Similar to my old answer, if the above command do not work, you may need to set windows bootloader under Microsoft\Boot:

efibootmgr -c -l \\EFI\\Microsoft\\Boot\\bootmgr.efi -L Microsoft

Remove all the mounted disk and usb stick. Reboot and enable secure boot. Now you can enter your windows.


The init script you've found depends on non-existing file. Try replacing:

# Source function library
. /etc/rc.d/init.d/functions

with this:

# Source function library
. /lib/lsb/init-functions

It's possible that there will be more changes needed.


Why do I get multiple global IPv6 addresses listed in ifconfig?

The address containing ea9a:8fff:fe6d:6aaa is an automatically configured address based on your Ethernet MAC address. You can recognize them because they contain ...ff:fe... in the middle of the last 64 bits. The rest of the bits is derived from your MAC address. Compare

ea9a:8fff:fe6d:6aaa

with

e8:9a:8f:6d:6a:aa

Because some people are worried that making your MAC address visible on the internet would cause content / website providers to track your behavior by your mac address (and such behavior wouldn't surprise me, although they can more easily track you with cookies, browser-local storage etc etc etc) the privacy extensions were introduced.

The address containing 48c8:f262:ebe8:297b is such an address. That is the address that will be used to connect to websites and other outgoing connections. It will change over time to maintain your privacy and make you harder to track.

Both addresses are available for you to use. Outgoing connections will use the privacy address, unless configured otherwise. You can also still receive incoming connections on the MAC address based IPv6 address. This is all done to give you lots of flexibility. If you want you could add even more addresses.

PS: another tool to see IPv6 addresses is

ip -6 addr

It will show you a bit more detail. You will see the word temporary after the privacy address, which indicates what it is.


log in Ubuntu(it's in vm box) using copssh in Window7 machine

I don't exactly understand your problem, but i can suggest this video.
http://www.youtube.com/watch?v=DHAEsUL6rsw
I followed this steps and i success to login my windows 7 ssh server.


After Ubuntu upgrade, I installed Openshot 2.5.1 and was able to export video to DVD, but when playing the DVD, there is no sound or audio

So, I looked at the DeVeDeNG debugger and it looked like it was expecting an mp2 codec. I went into Openshot export DVD settings and changed the Audio Codec from aac to mp2. Then I exported the project and ran DeVeDeNG on the .dvd file. After an error message (not the same - I don't think it was related) first time round, I tried again and the job completed successfully. Brasero burned a DVD and the audio came through loud and clear. I don't know why this works now, but hopefully this change might help someone with the same problem.


How to change the order of windows in grub

The best I can think of is to use Grub Customizer. Youu will have to add the repo first before installation:

This PPA contains the latest release of Grub Customizer.

Simply run these in terminal:

sudo add-apt-repository ppa:danielrichter2007/grub-customizer

sudo apt-get update

sudo apt-get install grub-customizer

You can then launch it by pressing super key and type grub customizer or I assume in terminal sudo grub-customizer

Mine looks like image below atm. You will be able to change many things in your grub loader. I find that clicking save after making the changes does not write them to the grub loader, but rather clicking on File and then "Install to MBR" does what I needed. Hope this helps.

My current Grub loader


How to solve the problem booting FGLRX 8.780 + Kernel 2.6.35-25?

Try to reinstal fglrx with

sudo apt-get purge xorg-driver-fglrx
sudo apt-get install xorg-driver-fglrx


How to deploy Django app from bazaar branch with juju?

You must be using juju-core (the Go version of Juju). The config file
must be formatted differently as I explain in the documentation:

  Note:

  If your using juju-core you must remove the first line
     of the file and the indentation for the rest of the file.

Otherwise, it won't give you an error but the configuration file
will be ignored.

So mydjangosite.yaml should really be in the form:

 vcs: bzr
 repos_url: lp:mydjangosite


Adding a question to keyboard authentication method in SSH server

When using ssh security is a big concern

You can use a password, a pubkey, and/or PAM authentication.

I used public / private keys for a while (pubkey). They are cool because it actually require no password, but its very secure. The downside if you are new to the whole thing is that they are a bit unwieldy.

PAM is a module that lets you use a second factor auth. Like a usb token.
Or a google authticattor app on your phone. This is my favorite.
http://www.howtogeek.com/121650/how-to-secure-ssh-with-google-authenticators-two-factor-authentication/ for a guide

It lets you enter your password which you know, then open the app to enter the 2nd factor which changes regularly.


I lost Unity desktop when I uninstalled nautilus. How to get it back?

Reinstall unity.

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


Multiple interface devices for KVM bridging

You configure your bridge in /etc/network/interfaces

auto lo
iface lo inet loopback

auto br0
iface br0 inet static
address 192.168.0.10
netmask 255.255.255.0
broadcast 192.168.0.255
gateway 192.168.0.1
bridge_ports eth0
bridge_stp off
bridge_maxwait 5

Change your ip address / netmask / gateway / etc as needed.

See http://blog.bodhizazen.com/linux/virt-manager-bridged-networking/ for details.

If you are having a problem, post your configuration files.


How can I switch my current session between Unity, Unity 2D, and Gnome?

Honestly, I would just log out and log back in. Even if you got a script to switch you mid-session, there could potentially be some Unity code still in RAM that might conflict with whatever session you are in. Also, whenever I switch from logging out / in, the Adwaita theme becomes default for Unity.

It would honestly be screwy. May I ask why you would want to switch environments mid-session?


im trying to install firestorm on my laptop and i keep getting this can anyone help

The package name is ia32-libs-multiarch and you should be able to install it with sudo apt-get install ia32-libs-multiarch.


Steam does not start, various errors and warnings involved

Solution given by OP:

  I went to Valve's Github issues tracker and someone advised to delete
  the ~/.steam/steam/appcache folder. I did and Steam now works fine.


BTRFS cannot delete snapshot - operation not permited

First check which subvol is default by:

$ sudo btrfs subvol list /mnt/
ID 319 gen 508029 top level 5 path @plasma
ID 326 gen 508633 top level 5 path @
$ sudo btrfs subvol get-default /mnt/
ID 319 gen 508029 top level 5 path @plasma

I want to delete @plasma subvol. I had same error while I want to delete (Operation not permitted). You need to change default subvol:

$ sudo btrfs subvol set-default 326 /mnt/

Choose new default subvol by ID. After this you will be able to delete subvol:

$ sudo btrfs subvol delete -v /mnt/@plasma/
Transaction commit: none (default)
Delete subvolume (no-commit): '/mnt/@plasma'


Here is the fix for the LAN problem that first occurred mildly in 16.04, got a bit worse in 16.10 and became unbearable in 17.04 rendering it unusable:

sudo touch /etc/NetworkManager/conf.d/10-globally-managed-devices.conf
sudo service network-manager restart

This creates a blank file needed in the /etc/NetworkManager/conf.d directory which the installer fails at creating automatically. The real question that should be asked is why are such critical things left unresolved for so long to cause needless worry and lost time for many people?

UPDATE: In addition to the above, the culprit seems to be the file with the same name in /usr/lib/NetworkManager/conf.d/. Either comment out (by inserting a hash at the beginning of each line) or delete all its contents to make it a blank file using a text editor such as gedit:

sudo tee /usr/lib/NetworkManager/conf.d/10-globally-managed-devices.conf < /dev/null

Alternatively, backup the existing file, and add e.g. _backup to its name to be safe, and create a new blank file. I actually went back to 16.04LTS for a while due to this problem, but now the networking is functional under 17.04.


I had exactly the same problem ; in my case, the updater complained of errors, but every other package updated fine. If the update has completed and you're now on 11.10, it seems the same is true for you too.

All you need to do is reinstall the flash plugin once you have an internet connection. Try searching for "flash" in the Ubuntu Software Centre, remove the plugin and then install it again. Once the installation is complete, you'll probably need to restart your browser for flash to start working.


There is more than one way to accomplish getting your old system onto a new drive, but you didn't really ask it that way, you asked for how to clone the system.

I would just use gparted, myself, from the live CD so neither partition is mounted.  You can shrink the original partition to the size you want it to be on the SSD, then copy and paste the partition to the new drive.  If I remember correctly, this will reuse the same UUID, but you can change that on one or the other partition afterwards. The command for this is sudo tune2fs -U random  /dev/sdb5 assigns UUID for sdb5.

If you don't want to change the old system, and if you want to keep it mounted for a while, you could change the UUID for the SSD partition, and edit your fstab.  It's actually not hard at all, and is something you should learn about.  It's pretty self-explanatory for someone with the knowledge you already seem to have.  Once you assign a new UUID, you can see all of them with this command: sudo blkid -c /dev/null - the parameter -c specifies the cache file, and /dev/null means don't use a cache, so you always get any changes right away.  I always use that form, and can see no downside unless you have a lot of partitions.

Once you get the UUID, you can copy and paste it over the old one in /etc/fstab using gedit or whatever text editor you prefer.

Personally, though, rather than taking time to resize the partition first, I'd simply copy the old install to the new disk.  If you don't know how to install GRUB to the mbr, you might want to first install a base Ubuntu, then back up /etc/fstab, copy the old install over it, and then copy the fstab from the new install so it has only the correct entries.


You have many possibilities.
1) Prepare a whole set of updated libraries. Put them in, say, /catbed. Then just run

/catbed/ld-linux.so.3 --library-path=/catbed:/whatever-else /usr/bin/app

2) Even better, use chroot. And debootstrap. And schroot

3) Even better, override LD_LIBRARY_PATH when running your app.


Just had the same problem; The issue seems to be happening with the package unrar-free. Installing unrar-nonfree (sudo apt install unrar) fixed the problem for me.
Note that this issue will (probably) be fixed in the next versions of unrar-free.


You needn't include the IDENTIFIED BY bit when granting privileges. If you need to create a user and grant permissions, that's two operations:
mysql> CREATE USER 'wordpress'@'localhost' IDENTIFIED WITH mysql_native_password BY '{superSecretPassword!123}';
mysql> GRANT ALL ON `wordpress`.* TO 'wordpress'@'localhost';

Be sure to change the superSecretPassword!123 bit to something better.


How to scroll through Ubuntu server (keyboard)?

I have actual machine I connect to it through the Terminal.app in Catalina via the ssh program. This allows you to view all the output by scrolling back in the terminal view displayed with your mouse. You may want to give it a try, doing it inside VMWare no clue.


Is it possible to prevent a file from being deleted unless in safe mode?

No. The problem you have is that if an admin would not be able to remove a file it would introduce a security risk: someone with malicious intent and access to the system would then be able to install a file on your system even the admin of that system could not remove. A disgruntled admin could have some real fun with that...

Besides attr (that can be easily changed by an admin) you can also start the file with a dot making it invisible for normal commands (ls would need the -a option) making it harder for uneducated people to find and delete it (It will not fool someone who knows that there is a secret file present on the system). Nothing that can prevent deleting the file.

But ...

One method that will work though is to mount the file on a read only encrypted partition. The encryption is needed so "root" can not remount it without knowing the password. Someone could still remove the file when that person is able to remount it writeable and it has no relation to the "only in safe mode" part of your question though. But this seems to be the most practical approach.

Ubuntu also supports encrypted private directories (package ecrypt-utils but there are similar tools like cryptkeeper). But it depends if you need the contents of the file to enforce something or if it is actually the deleting of it that is a concern. To use the file you will need to open the directory with your login and password; it is then also possible to remove the file (so when you are not behind the system you will need to unmount the private directory to prevent deleting; when you are behind the machine and need it you can mount it and unmount it when not needed; limiting the time frame someone can delete it).

I do have one problem with your question: in general you really should trust an administrator to not mess with files. If you can not trust that person remove his access and restrict his account to a normal account with some extra privileges. Making sure you are the only admin is a better and a lot easier method in preventing deletion of that file.


GNOME Shell lags heavily when using the notification area in the activities overview

Apparently AMD confirmed that the bug is gone with the release of 12.1.

Please refer to this question to remove this and install the newest version.

Is my ATI graphics card supported in Ubuntu?

If the problem maintains this should be reported to AMD as a new bug for the new driver version, I do not believe there us much you can further do.


Run ifconfig.

There should be two different txqueuelen values, 1 paragraph then another paragraph

sudo ifconfig eth0 txqueuelen 10000&&sudo ifconfig eth1 txqueuelen 10000

your eth0 and eth1 may be different than those listed

Increasing The txqueuelen

Increase the txqueuelength parameter to a value between 1000 and 20000 per interface:

ifconfig ${interface} txqueuelen ${size}
ifconfig eth1 txqueuelen 10000
ifconfig eth0 txqueuelen 5000


Unfortunately, from the Ubuntu One APIs page, it looks like the Account Information API is read-only and does not currently allow you to upgrade/subscribe a user to a paid account. However, it will let you access the user's account info and whether he/she has a paid plan.
From this page:

GET https://one.ubuntu.com/api/account/
Return information about the user account.
Requests to this API must be signed with a valid Ubuntu One OAuth token.
Returns a JSON object of information about the user account.

    {
.....
        "subscription": {
            "description": (string) user-displayable description of account
            "currency": (string) three-character currency code for account payments
            "started": (string) ISO 8601 date for subscription start
            "is_paid": (boolean) subscription paid status
            "expires": (string) ISO 8601 date for subscription expiry
            "id": (int) Internal U1 subscription ID
            "price": (float) subscription cost
            "trial": (boolean) is subscription a trial?
            "qty": (int) subscription quantity
            "upgrade_available": (boolean) is upgrade available?
            "name": (string) user-displayable name of subscription
        },
......


Try using "gksu nautilus" command in terminal and it will give you root access to whichever folder or file you need to move, delete, change. To change permissions right click the folder after you use gksu nautilus,

use "sudo -i" and enter in your root password, then use gksu nautilus.


I hope your problem is solved by now. I have just bought a Vodafone USB Stick K3773 and after a bit of fiddling managed to install it under Kubunbtu 12.04:

mount the USB stick (e.g., this can be done by clicking on the USB device notifier and opening the Vodafone by Doplhin)

copy the contents of the linux_mbb directory into a temporary directory of yours (anywhere is fine), for instance

xian$ mkdir QuickStart;cp /media/QuickStart\ 3.7/linux_mbb_install/* QuickStart/.

get to this directory and change the right for the install file:

xian$ cd QuickStart; chmod +x install
run install as root:

xian$ ./install
accept to remove the install file from the USB stick when asked if so.

The connection is then recognized as wired connection 2 on my network at each new connection (and the USB stick is not mounted any longer).


How to keep window always on active workspace?

Yes it is, just press Alt + Spacebar, that will bring the window menu. You have an option there that says Always on Top.

You can get that menu by right clicking on the top of the window when it's not maximized.

If would like the window to always remain on the current active workspace hit Alt + Spacebar again and select Always on Visible Workspace.


How to upgrade Apache HTTP Server from version 2.4.16 to the latest stable version i.e. 2.4.18 on 64-bit Ubuntu 14.04 LTS?

The latest Apache2 release for Trusty is 2.4.7 (see here), so to get any higher at this moment, you'll need to add a PPA source.

You can add Ondrej's PPA, to get to the most stable version.

add-apt-repository ppa:ondrej/apache2
apt-get update
apt-get upgrade


How to customize lxpanel/menu on lubuntu?

If I understand you question correctly you want to add quick launchers to the panel

If you right click the panel and click panel settings, a window called 'Panel Preferences' should appear, click the 'Panel Applets' tab, there should be 'Application Launch Bar' in the list ( if not click 'Add' to add it ), highlight it by clicking on it and then click the 'Edit' button on the left, this should bring up another window where you can add panel items from the right hand side to the left where they will be now on you panel.


So i have a 2in1 Laptop, is there anyway i can get it to have tablet mode as well as desktop mode?

I think I know what you want but it is still in development, there is a project called Ubuntu Desktop Next and is the next gen touch interface based on Unity (version 8).

Please note that this is only for Ubuntu 15.10 and it is not yet complete (there was a 15.04 build but it is gone ?), so no support here (until it is released fully next week) and potential bugs.

You can download an .iso to try here

See a video of next here.

Strangely I could not find any docs for next, but here are the display server docs (Mir)

I guess this would be like a tablet mode, a bit like Windows.


cat's primary purpose is to concatenate files. cat file1 file2 ... will show the contents of file, file2 and the others one after the other, as if the contents were in a single file. See the manpage:

NAME
       cat - concatenate and print files

It is meant for usage where either:

a target command cannot read from files and you need to pass multiple files to it. An example is the tr utility. Ordinarily, with one file, you'd do:

tr < file

But with multiple files, redirection can't be used, so you have to do:

cat file1 file2 ... | tr

a target command can read from multiple files, but its behaviour may change when it's given multiple files. An example is wc, which prints the counts for each file, along with the filenames, where you might have wanted just the total, without a filename.

Remember that most commands you encounter (grep, sed, awk, sort, ...) can read files perfectly fine.

If you want to view the contents of a file, use a pager - less and more are both eminently capable of presenting files for viewing, and are far more convenient to use.


You should install Ubuntu in the same mode as the existing Windows install (UEFI or legacy) -- regardless of what capability your machine has.  If the machine came with Windows 8-10 pre-installed from HP, it's in UEFI mode.  From an OEM, who knows.  An upgrade from Windows 7, probably legacy (Even if it's a UEFI maachine).  You can select which mode it boots from the BIOS/?UEFI Settings.  If you just let the machine decide (compatibility mode, or an ordering like "legacy first, then UEFI) it may decide wrong, since the Ubuntu install media will boot both ways.  Sometimes the mode selection can be made from the name of the USB device (might have UEFI in it).

Creating the USB for 16.04 seems to be harder than for earlier versons.  Basically, using a block for block copy like dd seems to be the only successful way --  versions of "startup-disk-creator" before 16.04 will likely have problems, 14.04 will certainly fail.

After install, You may have problems with the boot order always putting Windows first, even after you change it to Ubuntu (grub or shim) first with efibootmgr.  Many possible solutions, but one seems to be to rename the Windows bootloader 9/EFI/Micerosoft/Boot/bootmgfw.efi to something so it's not found, and have the Ubuntu bootloader (shim) replacing the default bootloader /EFI/Boot/bootx64.efi.  A copy of grubx64.efi needs to be present in that /EFI/Boot directory too for shim to work.
 --- Edit------
The UEFI bootloaders are just files, so you may easily copy, move, and rename them. The Ubuntu installation location is /EFI/ubuntu, and the bootloader file(s) are grubx64.efi and optionally shimx64.efi (if installed with secure boot enabled).

If shimx64.efi is not present, just copy /EFI/ubuntu/grubx64.efi to /EFI/Boot/bootx64.efi.
If shimx64 is present, copy /EFI/ubuntu/shimx64.efi to /EFI/Boot/bootx64.efi, and also copy /EFI/ubuntu/grubx64.efi to /EFI/Boot/grubx64.efi (no rename on this copy).
Leave the grub.cfg file in the /EFI/ubuntu directory, that is where grubx64.efi expects to find it.

Some machines really remove the USB from the bootorder when the machine is booted without it present.  This is inconvenient, but easily worked around by using the one-time boot selection from some function key at power-up.

Supplying the model how you made the USB  are all relevant to your problem, so I'm just guessing here from other people's problems.


An Ubuntu/Linux alternative of Bulk Rename Utility for Windows?

But... But... You've already found the answer... rename really is the best thing since sliced bread. If you need some examples of it doing really cool things, I've written a few in my time here:

Simple replacement (another example: Changing extensions)
Zero-padding existing numbers
Shunting existing parts of a filename around
Rewriting entire directory structures
Inserting the creation/modified date from each file

If you need specific help, ask and somebody here can deliver.

Failing that simple Bash scripting is an option in most cases.

Sidebar: I defy anybody to call rename or regular expressions complicated after you've seen the screenshot of Bulk Rename Utility. Holy balls, I almost forgot how ugly it was.


Can I use Git to backup all my server changes?

A tangential answer to your question is around managing server configuration rather than the entire server's state itself.

Have a look at using Puppet; Puppet lets you define the state of your machine in terms of configuration, setup, applications, etc.  For example, you can specify things like

Create a folder at /etc/xyz
Ensure that the file /opt/java has these permissions
Ensure that user 'jill' exists with this SSH key
Ensure that these PPAs are always enabled

The files in which you declare the above configuration are called "Puppet manifests" and what you can do is use git to put those manifests into a repository on a remote git server.  This means you can rerun the Puppet manifests on a fresh install of Ubuntu or undo changes by going back a commit in git.


Juju and MAAS: ERROR No matching node is available - with Ready nodes

You may have hit bug 1064291. This occurs if you have machines that aren't amd64 or have less than 512M of memory. The workaround is to bootstrap with constraints turned off:

juju bootstrap --constraints "arch=any mem=0"

If this works for you, please mark the bug as "affects me too".


How to change the default volume name in the /media path?

Open the "Disks" utility, look for your Disk > Volume.

Once you have select the partition "unmount" it ,click the "Cog" icon, then select "Edit File partition". Change the label and mount it again. Done.


Make Ubuntu as a server and Windows their client

For this, you need to install and configure Samba PDC or configure LDAP.


To apply the udev rule, you have to use udevadm trigger. Additionally you can tell udevadm trigger which action event to trigger.

If you just run udevadm trigger all devices are triggered and there will be some add actions which will trigger your script because it is valid for all devices.
If you would like to run the udev rule for a specific device that is already available, you might have to add the -c, --action=ACTION option.

udevadm trigger --action=add /sys/<path-to-your-device>

I woudl strongly recommend to limit the matches of your udev rule because at the moment it does match for any device and you script will run multiple times.


Copy the file to a suitable directory like you Home Folder and try the command again. Check this site out for further information!


Loud fans despite cool system under Linux (but not Windows)

The Asus Z87-A has a Nuvoton NCT6791D SuperIO chip to read temperatures and fan speeds and control the fans. Instructions on how to read and control the fan speeds are given here fan configuration of Z97-E under OpenSUSE. They are for OpenSUSE and the Z97-E motherboard but the process will be pretty much identical for the Z97-A under Ubuntu.


Using FTP to edit a file removes Apache permissions

So I figured out that all i needed to do was edit /etc/vsftpd.conf and uncomment the following line:

local_umask=022

Then restart the service...

sudo /etc/init.d/vsftpd/ restart

This will fix it now.


Will lubuntu remind me to upgrade after 3 years?

In 'software and updates' there is a section named 'updates', at the bottom there is a section where you choose if you want to be reminded or not.  At least in Ubuntu, I think Lubuntu has something similar.  Think the default setting is to be reminded though.


Can't set assigned Ubuntu hard drive in boot sequence

Step 1: Backup

Backup your data in your Windows and second hard drive to an external source, such as an external hard drive, USB drive, or DVD. This is very important. We will do things that cannot be changed back. If you make a mistake, your data will be gone forever.

Step 2: Test and verify

Test that your computer can run Ubuntu without any problems, and all the parts are recognized. To do this, boot from the Ubuntu DVD and choose the option Try without installing... This will boot Ubuntu directly from the DVD. It will run slowly, so give it some time to come up. Test that sound, wifi or wired Internet, etc. are all working correctly.

Verify the drive names. Ubuntu uses a different naming convention. There is not C:\ and D:\ drives etc in Ubuntu. The two physical drives will probably be called /dev/hda and /dev/hdb (or /dev/sda and /dev/sdb). Verify that C:\ is in /dev/hda or in /dev/hdb. To do this open gparted from Dash, the gray icon on top left bar.

Gparted will show /dev/hda initially. See if you can identify all the partitions, such as 'C:\'. The partitions are numbered. For example, the first partition in /dev/hda is /dev/hda1. Write down the name of the partition you plan to use for Ubuntu. For example if /dev/hda is your drive A, then identify the new name of the partition you want to use for swap and write it down. Make sure you don't write down the name of the wrong partition. Choosing the wrong partition will result in data loss. If you have already formatted this partition in one of the Windows formats, this is a good time to delete the partition and make the space unallocated. Ubuntu will use a special format for Swap.

Within gparted, look at /dev/hdb next, by selecting it at the top right corner. Verify that this is your Drive B. Identify the partition you have created to install Ubuntu in and write its name down. It may be /dev/hdb1 or /dev/hdb2 etc. Make sure you don't write down the name of the wrong partition. Choosing the wrong partition will result in data loss. If you have already formatted this partition in one of the Windows formats, this is a good time to delete the partition and make the space unallocated. Ubuntu will use format ext4.

Step 3: Install

When you are ready to install Ubuntu, proceed with the Install Ubuntu icon.

Follow the prompts will you come to the Installation Type page.

Select Something Else

The next page will be very similar to the Gparted  and show /dev/hda by default. If this is your Drive A, select the Unallocated Space you have identified for Swap and mark it to be used as Swap. Also make sure that Device for boot loader (GRUB) installation is /dev/hda (assuming that this is your Drive A). Do not install GRUB in any specific partition such as /dev/hda1.

Now switch to /dev/hdb (your Drive B). Assign the Unallocated Space you had created before to be formatted ext4. Assign it a mount point of / from the drop down menu. Select format partition option.

Proceed through the installation and follow the instructions from Step 6 onward in the official Ubuntu page.

Special Note on GRUB

Normally I would put GRUB on the same drive as Ubuntu, /dev/hdb. Since in this case, you can't boot from the second drive, we put it in /dev/hda.

Keeping GRUB in the same drive as Ubuntu keeps things simple, particularly for those who don't want to "mess with" the drive with Windows. Reinstalling Windows will overwrite GRUB in the MBR (Master Boot Record) of /dev/hda. Then you will have to put GRUB back there to boot Ubuntu again. See How can I repair grub? (How to get Ubuntu back after installing Windows?)

Hope this helps


Why aren't sidebar bookmarks overlayed with their folder icons?

This was reported - believe or not back in 2009 as a bug-report.

I've test this on lucid, natty and oneiric and confirm the fixed bug-report was incorporated into oneiric.  It hasn't been backported to earlier versions of Ubuntu.

There is a proposed code patch.

Thus - if you definitely want this in Lucid, you will need to compile a custom version of nautilus :(

I can confirm that the patch in question does work in lucid...

If you are interested in trying this custom version of nautilus I've created a PPA with the patch applied to the source code.

To install:

sudo add-apt-repository ppa:fossfreedom/nautilus
sudo apt-get update
sudo apt-get install nautilus

Logout and login

Use the linked question to assign a custom icon to the folder.  When you create a bookmark for an item within the folder, the bookmark folder icon will inherit the icon of the associated folder containing the file.

Linked Question:

How can I assign custom icons to folders?


Responding very slow while loading icons

More information will help, run these from a terminal and give us that

lspci

Try turning off compositing - go to system settings then window manager tweaks

See if that helps.

You can also start start top from a terminal and monitor processes - those at top will be taking most cpu


How to change resolution to 1920 x 1080?

you can use jupiter install it like so

sudo add-apt-repository ppa:webupd8team/jupiter
sudo apt-get update
sudo apt-get install jupiter

logout and back in again
and then on the top right corner you will have a new icon select
it and go to screen resolution and select your preferred resolution

this is the only app i use to change the resolution when needed.(I never used anything else) hope this works for you


Some apps shown twice in dock when using Gnome Shell?

i found the answer in another thread

Launch the application
Fire up a terminal and run xprop WM_CLASS. Click the application window.
You'll get some output like WM_CLASS(STRING) = "Navigator", "Firefox". Choose one of the classes, eg Firefox in this example
Add the class as the value of StartupWMClass in the .desktop file. For example, StartupWMClass=Firefox
Save the .desktop file, close the application and re-open it. There should now only be 1 icon in the launcher


The audio on the back panel seems not to be working. [Ubuntu 18.10]

EDIT: I fixed the problem with Qasmixer. Seems like it wanted to keep muting the device with no reason at all. It fixed itself when i disabled both front line out and auto mute. :P


Steam/Ubuntu help - broken packages/unmet dependencies - can't upgrade

I suggest you should update your repository and fix unmet dependencies. Open terminal and run:
nano /etc/apt/sources.list

Replace the old repository with the new one and save the file. Then run:
sudo apt-get update
sudo apt-get install -f
sudo apt autoremove
sudo apt clean

Lay more emphasis on your repository. Good luck!


Cursor doesn't move after upgrade 14.04 to 14.10

Found a fix here: Synaptic touchpad on laptop not working

In short:

sudo modprobe -r psmouse
sudo modprobe psmouse proto=imps


Photoshop CS6 on Wine Performance Improvement

Having more memory (RAM) always helps because you typically need 3x as much ram as the largest image when it is uncompressed.  Add in the requirements for WINE and Ubuntu and that is a lot of ram.

Check if it is swapping to disk a lot, if so, you have little choice but to buy more ram or somehow allocate more to the process.  It is possible to reduce the ram used by Photoshop (at least in older versions) - check out he caching settings.

Sorry I don't have anything more specific.


How can I gain access permissions as a user to a USB stick formatted with the "Format Volume" dialog?

Yes this is completely normal as you are not the owner root is (root ran the application that you used to format the drive.) You can gain permissions again by opening a terminal and running sudo chmod 666 /dev/sdx  (where sdx = the location of the drive.)


Start it with -p0. You need to add this option to /etc/default/dnsmasq:

DNSMASQ_OPTS="-p0"

Info about port is from dnsmasq(8) man page

-p, --port=<port>
Listen on <port> instead of the standard DNS port (53). Setting this to zero
completely disables DNS function, leaving only DHCP and/or TFTP.


I am using VLC player and had the same problem. I solved it by pressing the Tools tab, then open Preferences, then go to Subtitles & OSD -> change the default encoding to Hebrew (ISO 8859-8) (or whatever your language is).

Then restart VLC player. Hope it helps whoever see this post.


AUFS driver not loaded / found on kernel 4.* branch

After installing linux kernel 4.2.1 for ubuntu (from ppa) docker stopped to function properly.

To get it back working I did:

After stopping docker service,

sudo apt-get remove --purge docker-engine

then I got rid of any former container and images that were still in aufs in /var/lib/docker

mv /var/lib/docker /var/lib/docker.old

then I reinstalled docker from the script docker is hosting online:

wget -qO- https://get.docker.com/ | sh

docker instantly worked after reinstallation

I could probably copy and paste data from the /var/lib/docker.old so as to get containers and images, but that was not worth it in my case, so I didn't even try, but you migth consider to do this if you want to retrieve former images and containers.


Why do I get a "Restart to complete updates " warning?

I agree with sagarchalise. Certain upgrades like kernel updates, driver updates and critical system and security updates need your system to restart after install. You just have to restart your computer.


The default download of the game from PlayDeb has an error.  I have contacted the PlayDeb team - they have turned around a new compilation (fantastic - well done the PlayDeb team).

If you do an update via Update Manager, it should find the new version for you to install.  Have fun!


Getting "Server unexpectedly closed network connection"

Try these GUIs on your server:

KDE Plasma Desktop: sudo apt-get install kde-plasma-desktop

XFCE4: sudo apt-get install xfce4

LXDE: sudo apt-get install lxde

GNOME 3: sudo apt-get install gdm

       sudo add-apt-repository ppa:gnome3-team/gnome3-next

       sudo add-apt-repository ppa:gnome3-team/gnome3-staging

and then sudo apt-get update

sudo apt-get dist-update

sudo apt-get install gnome-shell

These will install a vanilla GUI for you ie. the GUI, without any accompanying apps like Amarok and Muon in the case of KDE Plasma Desktop.


How do I install the 'python-uno' package?

If you read the message it says:

Package python-uno is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  libreoffice-script-provider-python

Hence, what to do, instead of python-uno install libreoffice-script-provider-python instead:

sudo apt-get install libreoffice-script-provider-python

This will install python3-uno package, and the interface for LO to use UNO.

python-uno package was removed:

libreoffice (1:4.1.0-2ubuntu1) saucy; urgency=low

  * unfuzz Ubuntu palette patch
  * remove sessioninstaller for wizards patch -- they are all python now
  * remove python-uno (Python 2 bridge)
  * trying to remove the workdir before installing on ppa builds to squeeze in
    size requirements
  * smaller src-tarballs
  * do not run subsequentchecks in build anymore, as we can run them as an
    autopkgtest, which is better, and eases distress caused by PPA buildds
    being storage contrained
  * use system orcus for real
  * remove double echo
  * merge with upstream
  * use system lpsolve and graphite
  * kill of csh stuff for good
  * clean up dupes in -core breaks against -evolution
  * remove dbghelp.dll binary from tarball creation
  * silence lintian on the copyright file
  * make -dbg use python3-uno proper
  * fix build against poppler 0.23/0.24

 -- Bjoern Michaelsen   Thu, 01 Aug 2013 20:17:26 +0200


reinstall windows 8 on clean ubuntu hard drive

WinUSB application will helps you to create Bootable windows USB from ubuntu.

press ctrl+alt+t,run the below command to install winusb,

sudo apt-get install winusb

open winusb application,select the corresponding windows iso file.
Then select the target usb option and click on install.

You had created a bootable windows usb from ubuntu.Then change the boot-order in bios to USB and install windows.


Ubuntu no longer prompts for root privilege (but doesn't give it either)

I had the same problem after changing to ubuntu-desktop from lubuntu on my imac. It seems, that 'policykit-1-gnome' was missing. After reinstalling sudo apt-get install policykit-1-gnome
and logout-login it works flawlessly.


For anyone who may need it later:

Found the drivers. Synaptics TouchPad driver for X.Org server

Just go to the ubuntu software centre and type in synaptics. It should come up with many entries with the same title. Choose the one that has been evaluated by other members (the one with stars)


How do I set the resolution on a Dell Mini 1010 to it's native resolution?

Typically when you do not have the desired resolution as a choice, it means you're not running the correct video driver and the installation has fallen back to some sort of default.

A little googling shows me that you're not alone in this problem, and offers a link that might help:

https://wiki.ubuntu.com/HardwareSupportComponentsVideoCardsPoulsbo


How can I get capabilities to work with su?

Install libpam-cap

In /etc/pam.d/su, make sure that pam_cap.so appears before pam_rootok.so

auth       optional  pam_cap.so
auth       sufficient pam_rootok.so

You've already got capability.conf set up, so then you'll be good to go!


Try this:

Press Ctrl + Alt + F1/F2 and write your username and password. After this write:

sudo stop lightdm
sudo apt-get remove --purge ubuntu-desktop unity* compiz compiz-* -y
sudo rm -vfr compiz* compiz-*
sudo apt-get install ubuntu-desktop* unity* compiz* compiz-* -y
sudo start lightdm

Try those command and see if this help you or not.


How to exclude all hidden files and folders from duplicity backup

The decision by the developer is to keep the options very simple. This has been requested several times, here and here are some bug reports/feature requests on the issue.

An easier way to achieve what you want is to add just the directories (/Documents, /Music, /Pictures, etc...) individually, instead of selecting the entire /Home directory. You likely have 10 or less folders in your /Home directory, so this is easier then manually excluding all the hidden folders and files.

It's a good question, but the answer is to use a workaround.


How to resolve screen flickering in Xubuntu 14.04?

Please go to your display setting and make sure you have the correct refresh rate set (normaly 60hz or more). The most common cause of screen flicker is low refresh rate


Can't change account in Ubuntu One Control Center

Go to your ubuntu  one account

Remove your computer from the account you no longer wish to use.

Create new account, connect the account for your phone.

For more detailed instructions see : https://one.ubuntu.com/help/tutorial/install-and-setup-ubuntu-one/


1) remove any reference to the state module in iptables. So, no rules like

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

the state module requires the nf_conntrack (ip_conntrack) module

2) remove the following line (if it exists) in /etc/sysconfig/iptables-config

IPTABLES_MODULES="ip_conntrack_netbios_ns"

That module requires ip_conntrack which we are trying to ditch.

3) reload iptables without your state rules.

sudo iptables -F

# add your real rules

4) drop the modules. I had to use:

sudo modprobe -r xt_NOTRACK nf_conntrack_netbios_ns nf_conntrack_ipv4 xt_state

sudo modprobe -r nf_conntrack

confirm you don't have a reference to /proc/net/nf_conntrack


zsync has terrible output for parsing. You'd be crazy to attempt that.

That said, I'm apparently crazy.

#!/bin/bash

url=$1
seedfile=$2

tempdir=$(mktemp -d)
msgfile=$tempdir/message
trap 'rm -rf "$tempdir"' EXIT

down_filter() {
    local message line percent speed
    echo "Downloading zsync file" > "$msgfile"
    read -r -n1 _
    while read -r line; do
        if [[ $line = [-#]* ]]; then
            read -r _ percent speed <<< "$line"
            echo "#$(<"$msgfile")\n$speed"
            if (( ${percent%%.*} < 100 )); then
                echo "$percent"
            else
                echo "99.9%"
            fi
        fi
    done < <(awk 'BEGIN{RS="[\r\n]"} {print;fflush()}')
}

seed_filter() {
    local message file count size point
    while read -r -d '*' line; do
        file=${line%:*}
        message+="\n$file"
        echo "$message" > "$msgfile"
        file=${file#reading seed file }
        count=1
        size=$(( $(wc -c < "$file") / 1000000 + 1 ))
        echo "#$message"
        while read -r -n1 point; do
            [[ $point = '*' ]] || break
            ((count++))
            echo "$(( 100 * count / size ))%"
        done
        read -r message;
        echo "$message" > "$msgfile"
    done
}

if [[ -z $url ]]; then
    url=$(zenity --entry \
                 --title=zsync \
                 --text="Enter URL to zsync file" \
                 --width=500 \
                 --height=100 \
    ) || exit
fi

if [[ -z $seedfile || ! -e $seedfile ]]; then
    seedfile=$(zenity --file-selection \
                      --title="zsync $url" \
                      --text="Choose a seed-file" \
    )
fi

{
    zsync ${seedfile:+-i "$seedfile"} "$url" \
          > >(down_filter >&3) 2> >(seed_filter >&3)
} 3> >(zenity --progress \
              --title="zsync $url" \
              --width=500 \
              --height=100 \
)

The script will have a lot of weaknesses. Any slight change in the output of zsync in a newer version would likely break it. (Only tested against Ubuntu 10.04's zsync v0.6.1). For some odd reason it outputs some of the progress to stdout, and some to stderr, which makes it extra hard to parse.

Also, it won't handle certain odd characters in filenames, like \, * or newlines.

Expect bugs; I haven't really tested it that much.

Anyway, I had never heard of zsync before. It's a neat tool, so thanks for letting me know about it at least. :)

Screenshots :


Lubuntu 19.04: How to add a shutdown button to taskbar? (Instead of having to go through the application menu)

Open pcmanfm-qt to /usr/share/applications.

Scroll down till you see the item "Shutdown".

Drag the Shutdown icon to the quicklaunch area of your panel. Ensure you see a little green circle with a + sign before you release the icon onto the quicklaunch area.

Now, if you left-click on the Shutdown icon in the quicklaunch tray, you'll see the shutdown option.


Resolution issue with Ubuntu 14.04.1 [Dual Boot with Windows 7]

The proprietary Nvidia drivers included in 14.04 do not support the newer GeForce 750/750Ti.

Solution 1 (the easier one): PPA

Open a terminal
Add the repository with the driver version that supports the 750Ti: https://launchpad.net/~xorg-edgers/+archive/ubuntu/ppa

sudo apt-add-repository ppa:xorg-edgers/ppa
Update your software lists and software:

sudo apt-get update && sudo apt-get upgrade -y
Install one of the Nvidia drivers (e.g. -343)

sudo apt-get install nvidia-343
Restart

This will survive a kernel update.

Solution 2: Manual installation

Switch to console (I assume you simply opened gnome-terminal):

ctrl+alt+F1 (back to desktop with F7)
Login with your user account.
Stop lightdm:

sudo service lightdm stop
Install the Nvidia driver:

sudo sh /path/to/installer.sh
Restart lightdm:

sudo service lightdm start

You may have to repeat these steps after a kernel update!

To change your screen resolution to FHD, check display settings, or otherwise the Nvidia X server settings tool.


The proper command is apt-get instead of apt get.

You need to be careful when typing commands, as you can do lots of damage. For example, typing mkfs.ext3 /dev/sda instead of mkfs.ext3 /dev/sdb will destroy all data on that drive.

THe command's proper form is:

sudo apt-get install mysql-workbench

The above command fetches mysql workbench from the official Ubuntu repository. A repository is a web server containing many programs or files.

It seems like you already downloaded the .deb file associated with the mysql-workbench package, so you can just install it by cd /path/where/you/downloaded/file/ and then running command:

sudo dpkg -i mysql-workbench-community-6.0.9-1ubu1204-i386.deb

EDIT: If you have dependency problems, you should try sudo apt-get -f install


Storing MySQL database in USB .. Permission problem (errno: 13)?

Use EXT on the USB. You are not going to be using the MySQL database outside of Linux anyways so use a native filesystem. That will fix all problems you have with permissions. The errno 13 is a permissions error and more than likely related to your filesystem.

"ln -s" will also work when using EXT. It is a Linux command so it does not work with Microsoft filesystems.

Using an USB for a database is a very bad idea though. Wear leveling is going to be a serious issue. You would be far better off putting the database on a separate partition on your system and copying that partition to a USB and restore the data on another machine where you can use the new database.


Tearing when watching Netflix on AMD, Firefox and Wayland

I solved the problem by forcing acceleration to true in about:config:

layers.acceleration.force-enabled


DSL modem drops connection intermittently

What does /etc/resolv.conf show?  If you can ping 8.8.8.8 but not your ISP's server, then they have a problem.  You should be able to change it to 8.8.8.8 and work around it.


Go to network connections. In that select mobile broadband tab.Follow the instructions and create one wireless network connection by selecting you connection as reliance in the drop down list. Once finished enter your reliance netconnect username and password which is usually the device number and try to connect. If not connected try to change some authentication settings like CHAP,PAP etc. It will work.No need to install the reliance netconnect+ setup in linux. It will work directly.


Pipelight will not work on Chrome, Chromium or similar browsers. It works with Firefox. That may be the case.


I changed my DNS to use Google DNS, and now it works. Wonder if it has something to do with Starbucks Wifi being offered by Google in general ... ?


Unity won't to start after installing proprietary AMD graphics driver

I found that the guide here: http://www.jamestravers.me/ubuntu-13-04-first-impressions/90/ worked for me.

Effectively running the Compiz settings manager and manually setting the required items was the solution.

So terminal (CTRL ALT and T), then CCSM.

Enable the OpenGL Plugin and Ubuntu Unity plugin.

This should sort out your issue.


Bitlocker & Win7 on one partition, Ubuntu & encryption on another, same drive

Can this be safely done?

Yes.

A little background. Both operating systems require one unencrypted partition for booting.
Windows bitlocker has already created these partitions on your SSD:

System reserved partition (unencrypted)
Main partition (C:\) (encrypted)

An MBR partition table can contain either four primary partitions or three primary partitions and an extended partition. Accessing one partition does not affect the others (for your purposes).

So for your HDD, you should have:

your current NTFS partition
unencrypted Ubuntu boot partition
LUKS encrypted Ubuntu root partition

These can all be primary partitions. If you create a swap, I recommend putting it on an extended partition, in case you need more partitions in the future. Do be aware though, that an unencrypted swap partition may be a security risk.

gparted is a good tool for both viewing and editing partitions. The installer can also create the most common partition schemes for you during installation.


My brightness control buttons are not working on my Packard Bell netbook

Like already mentioned, try adding to that GRUB_CMDLINE_LINUX_DEFAULT line acpi_osi=Linux or acpi_backlight=vendor or both (one of them should work).
To edit the file you can use nano. It works in the terminal and should already be installed by default, and is easy to use:

sudo nano /etc/default/grub

In nano editor you can save the file with a combination of Ctrl + X and then hit Y(es)

Alternatively you can use gedit editor. Gedit is the default (pre-installed) editor in Ubuntu (vanilla).

gksudo gedit /etc/default/grub

After editing the file (proofread twice !) run this command to update grub:

sudo update-grub

Then reboot the computer and test if it worked.


For me startxfce4 didn't work, but pkill did.

You could try the following command:

xfwm4 --replace

It restarts the windows manager.


Are there instructions for removing or rebuilding the graphical interface?

To install without GUI, just install Ubuntu Server.

To add the GUI,

sudo apt-get install unity


how to install rpmrebuild-2.11-3.el7.noarch.rpm on ubuntu system

besides the question whether it is a good idea to install rpms on a debian-based os (like ubuntu); rpm does not manage dependencies; in the same way dpkg won't do that for you either. So you have two options:

search online and make sure you download the rpms that are needed (in this case bash*.rpm, rpm-build*.rpm, coreutils*.rpm and maybe others; then when installing you need to specify them all at once on the command line: rpm -ivh rpmrebuild-2.11-3.el7.noarch.rpm bash*.rpm rpm-build*.rpm
coreutils*.rpm
use a package manager; like zypper or yum which uses repositories where it looks for the required packages for you and installs them. Again; no idea how that's going to work out on ubuntu.


Error trying to get a non-existent value (appearance, password_hash) in LDAP

Open template file /usr/share/phpldapadmin/lib/TemplateRender.php in your favorite editor like:

 sudo vi  /usr/share/phpldapadmin/lib/TemplateRender.php

Search line

$default = $this->getServer()->getValue('appearance','password_hash');

and change it to

$default = $this->getServer()->getValue('appearance','password_hash_custom');

and save that file and reload browser it will not show this error.


Ok, I came up with my own script. At least I learned some Ubuntu bash scripting ;)

#!/bin/bash
num=`wmctrl -d | grep '\*' | cut -d' ' -f 1`
name=`wmctrl -lx | grep $1 | grep " $num " | tail -1`
host=`hostname`
out=`echo ${name##*$host}`

if [[ -n "${out}" ]]
    then
        `wmctrl -a "$out"`
    else
        $2
fi

What it does:

gets the current desktop number
searches current desktop for the given name (parameter one)
then, depending on the result:

either switches to found app
or launches given app (parameter two)

Usage (expecting the script name to be switch_to_app:

switch_to_app LookForThisString LaunchThisIfNotFound

eg

switch_to_app Chromium chromium-browser

EDIT: more awesome version - when you launch the command again (eg press the keystroke again), it cycles to another instance of the window

#!/bin/bash
app_name=$1
workspace_number=`wmctrl -d | grep '\*' | cut -d' ' -f 1`
win_list=`wmctrl -lx | grep $app_name | grep " $workspace_number " | awk '{print $1}'`

active_win_id=`xprop -root | grep '^_NET_ACTIVE_W' | awk -F'# 0x' '{print $2}' | awk -F', ' '{print $1}'`
if [ "$active_win_id" == "0" ]; then
    active_win_id=""
fi

# get next window to focus on, removing id active
switch_to=`echo $win_list | sed s/.*$active_win_id// | awk '{print $1}'`
# if the current window is the last in the list ... take the first one
if [ "$switch_to" == "" ];then
    switch_to=`echo $win_list | awk '{print $1}'`
fi

if [[ -n "${switch_to}" ]]
    then
        (wmctrl -ia "$switch_to") &
    else
        if [[ -n "$2" ]]
            then
                ($2) &
        fi
fi

exit 0


Software Updater poping up every day - is this common in Linux?

You can change how often the system looks for updates in System Settings >> Software & Updates >> Updates tab.

In general, you can set it to check for updates no more than every two weeks if you want. You can also set the interval for security updates separately to make it more frequent.


USB not bootable after installing an entire OS (Xubuntu) on it

First, does system boot from ANY USB stick? Did you install the system from another stick or from a real DVD? If it was a stick, does it still work? Maybe booting from an USB drive has been switched off somehow.

Second, did you select your USB drive for installing the bootloader, or for those partitions only?

You can probably boot from the installation media again, plug your Xubuntu stick and install Grub manually. The full answer is here: How can I repair grub? (How to get Ubuntu back after installing Windows?) but I prefer a short way (it works for default installation parameters). You need to know the device name of your Xubuntu USB drive (/dev/sdb, /dev/sdc etc) and it's auto-mounted path (something like /media/username/USBStickname). File manager usually auto-open the connected USB drive, showing you this path. Run sudo grub-install --root-directory=/media/what-is-the-path-to-your-USB-drive /dev/sd? (with no digits. Only sdb, sdc etc, the exact name of the USB device itself). That'll fix the missing Grub.

Also, next time care about the flash memory wear: New Lubuntu install - 2GB RAM, 32GB SSD


Monitor settings always showup on secondary monitor. How to fix?

Looks like switching to Unity 2D helped - now display settings show up on primary monitor.

Wow, this also made my desktop fast again, I did not realize how much slower Unity 3D was until this switch back! Thank you, James!


Secure Boot & MOK problem, after motherboard change, Ubuntu 19.10

As per @Pilot6, I just turned off Secure Boot.


How do I get multitouch working on the touchpad on a Sony Vaio VPC-F11?

wrong answer (:
that would work (: (yea, i know it's late, i saw this while writting my question):
Vertical Scroll doesn't work on a Sony Vaio VPCEB1S1E

you will find there this link, translate to englist and watch the original at the same time:http://blog.pavelb.ru/2011/10/ubuntu-1110-in-sony-vaio-vpceh-touchpad.html

in short (and english (: ):
open nautilus (in terminal-sudo nautlius)
go to "etc" >> "X11" >> "xorg.conf".

from like that:

Section "Device"
   Identifier "Default Device"
   Option "NoLogo" "True"
EndSection

make it look like that:

Section "Device"
   Identifier "Default Device"
   Option "NoLogo" "True"
   Option "RegistryDwords" "EnableBrightnessControl=1"
EndSection

Option "RegistryDwords" "EnableBrightnessControl=1"

the answer to your question:

download: http://people.canonical.com/~sforshee/alps-touchpad/psmouse-alps-0.10/psmouse-alps-dkms_0.10_all.deb

and in terminal:

wget http://people.canonical.com/%7Esfors...s_0.10_all.deb

sudo dpkg -i psmouse-alps-dkms_0.10_all.deb


I have the same problem.  For me it's breaking down in libX11-6 with Python-3 in ibus japanese input.  I've filed a bug report against it.  Not an answer but at least you know you're not alone.  Works fine on my 12.10 system...


Horrible sound quality/dropouts over Bluetooth with USB receiver?

A €9.00 adapter that I use all the time with my Belkin Bluetooth receiver. So I'm able to send a sound stream to my speakers. Works great really, I never had a disconnect or any sound-loss.


how to manually upgrade from 15.04 to 15.10 so I can upgrade fully

Set

software & updates -> Updates -> Notify me of a new Ubuntu version

to

For any new version

and run

sudo do-release-upgrade -d

I thought -d was for servers only, but evidently not.


Ubuntu 12.04/12.10 OpenGL games fullscreen slow

If you change your native screen resolution to whatever your window size was, fullscreen will/should be as performant as windowed.

to clarify, game running at 1680x1050 windowed and fullscreen means your native resolution >= 1680x1050 ... probably

If some random openGL app has to render a viewport, then scale it...performance is going to suffer.