'STR' object is not callable while execute sql command

On that line you're basicly doing this: ""()

You'll have to separate the SQL query string and the arguments, best in the cursor.execute() call. Something like this:

sql = """INSERT INTO `TAB_TEMP` (`Date`,`Time`,`JX`,`JY`,`JZ`,`IX`,`IY`,`IZ`) VALUES (%s,%s,%s,%s,%s,%s,%s,%s)"""
args = (Date,Time,accel_data['x'],accel_data['y'],accel_data['z'],gyro_data['x'],gyro_data['y'],gyro_data['z'])
cursor.execute(sql, args)

Also depending on your database connector you'd need question marks instead of the string formatter.


Create your own Command Runner with the gnome-terminal:

First create a file $HOME/.cmdrunrc

The content should be:

# include .bashrc to load aliases from the .bashrc in the command runner
source .bashrc

# create a separated history file for the command runner
HISTFILE=~/.cmdrun_history

# shorten the command prompt
PS1='\w\$ '

# function to check an array if it contains an element
containsElement () {
  local e
  for e in "${@:2}"; do [[ "$e" == "$1" ]] && return 0; done
  return 1
}

# your guis which will not open a additional terminal window on execution
guis=(firefox mousepad gedit geany leafpad nautilus thunar pcmanfm xterm)

# after this commands finished the terminal will be closed automatically
close_after=(vi nano top)

# the function that will be executed with every command
custom_run() {
    if [ -n "$*" ]; then
        # write the real command to the history without "custom_run"
        history -s "$*"
        history -a

        # check if the command is an alias
        pure_cmd=$(echo "$*" | xargs | cut -d' ' -f1)
        if [ $(type -t "$pure_cmd") == "alias" ]; then
            # get the real command from the alias
            pure_cmd=$(type "$pure_cmd" | grep -oP "(?<=»)[^']+(?=«)")
            pure_cmd=$(echo "$pure_cmd" | cut -d' ' -f1)
        fi

        # check if command opens a gui or should be closed after it finished
        if containsElement "$pure_cmd" "${guis[@]}"; then
            bash -ic "($* &) &>/dev/null"
        elif containsElement "$pure_cmd" "${close_after[@]}"; then
            gnome-terminal -x bash -ic "$*"
        else
            gnome-terminal -x bash -ic "$*; bash"
        fi
    else
        # remove last command ("custom run") from history, if nothing is entered
        history -d $((HISTCMD-1))
    fi
    exit 0
}

# write the function "custom_run" before every command if the user presses return
bind 'RETURN: "\e[1~ custom_run "\e[4~"\n"'

Then create a .desktop file or a shell script with this command:

gnome-terminal --title="Command Runner" --hide-menubar --geometry="50x1" -x bash -ic "cd ~; bash --rcfile .cmdrunrc"


Is there a command-line program to read tags from .m4a files?

You can do this with the TagEditor project:

tageditor -gf 'kind of sometimes maybe 128k aac.m4a'

Result:

Tag information for "kind of sometimes maybe 128k aac.m4a":
MP4/iTunes tag
 Title             Kind Of... Sometimes... Maybe
 Album             Tough Love
 Artist            Jessie Ware
 Year              2014-10-06
 Record label      PMR Records


How to remove a duplicate Ubuntu Installation without ruining OS boot menu

Know the partition on which the " / " directory of your primary Ubuntu is mounted:

Run this from your primary Ubuntu: df

OR

System > Administration > System Monitor > File Systems
Associate the GRUB (boot-menu) with your primary Ubuntu installation:

sudo grub-install --root-directory=/dev/sdan /dev/sda

Replace sdan with the partition on which the " / " directory of your primary Ubuntu is mounted (sda1 or sda2 or sdan)
Remove the duplicate Ubuntu installation using a partitioning tool.
Boot your primary Ubuntu, and run this command:

sudo update-grub


From command line

cd ~/Desktop
mkdir yes

will make a directory named "yes" inside your current user's "Desktop". It will almost instantly show up on your desktop.

You can also do

mkdir ~/Desktop/yes

In case of language other than English where the directories are named into another language this is a more generic way:

source $HOME/.config/user-dirs.dirs
cd $XDG_DESKTOP_DIR
mkdir yes

or

source $HOME/.config/user-dirs.dirs
mdir $XDG_DESKTOP_DIR/yes


x-nautilus-desktop error message when opening Nautilus from desktop

I had the same problem with fresh install of 17.10 when opening a new window of Nautilus using CTRL+N shortcut. I avoid that message creating an additional shortcut for Nautilus:

Go to keyboard settings, you should see the list of keyboard shortcuts.
Click on the "+" button at the bottom of that list to create a new shortcut.
Create a new shortcut filling the params asked:

Name = Open nautilus (or any other name you want)

Command = nautilus (like when you open nautilus from terminal)

Shortcut = Press the "Set Shortcut..." button and press **CTRL+M** (or any other combination you want).

After setting the new shortcut for CTRL+M, close keyboard settings and the new shortcut will open nautilus without the "x-nautilus-desktop:///" error pointing to your home folder.

Hope this helps.

EDIT (WARNING): The solution described helps to avoid the error mentioned, but not to solve the error itself. If you try to overwrite the CTRL+N shortcut that will overwrite the shortcut for any other app. That is, for example, after CTRL+N overwriting in Google Chrome will open a new Nautilus window and not a new Chrome window. In my case, I set new Nautilus window to CTRL+M. This does not solve the "x-nautilus-desktop:///" error itself, but it's an alternative solution. If you set a new shortcut for Nautilus new window as CTRL+M, if you use CTRL+N you still get the error mentioned.

ADDITIONAL INFORMATION:

You can set the command param for opening nautilus in any directory you want, for example: Command = nautilus ~/Downloads will open nautilus in Downloads directory when CTRL+M is shortcut is used.

BUG REPORTED:
https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/1710931


Is it possible to mount APFS (Apple's newest file system) in Ubuntu 17.10?

No, and it probably won't be possible for a long while. From Apple's APFS FAQ:

  Is APFS open source?

  An open source implementation is not available at this time. Apple plans to document and publish the APFS volume format specification.

So after Apple releases the APFS specs (at some unspecified date), someone will have to do the implementation work, and it would probably take many years before it attains a decent level of functionality (especially if you want write access).


While installing libx11-dev E: Unable to correct problems, you have held broken packages

Try using aptitude:
sudo aptitude install <package-name>
If you don't have aptitude installed on your machine sudo apt-get install aptitude.


It is my understanding that it is already enabled. I have checked the aquarium out with Firefox 5 right now. Works perfect. It was in Firefox 4 that you needed a command to activate WebGL (Although the programs ran horribly). On Firefox 5 WebGL is much better. Not as good as Chrome of course but it is catching it up very fast.

If you are still having problems seeing that webpage it is because of a direct problem with your video card. Does your video card support opengl 2.0.

Here is a mini guid that points from what version the browsers support WebGL and what to do to make it work if it is in Alpha/Beta with the browser: http://www.khronos.org/webgl/wiki/Getting_a_WebGL_Implementation

In the Wikipedia: http://en.wikipedia.org/wiki/Firefox_4 you can see that in Firefox 4 it got some support for WebGL (But trust me, most WebGL examples from Chrome Labs tested horrible)

In the Wikipedia:http://en.wikipedia.org/wiki/History_of_Firefox#Version_5.0 you can see that Firefox 5 got more support for WebGL that now actually lets you play most WebGL apps. There are some even that are very tough to support and it supports them like http://www.ro.me/ "3 Dreams of Black" which is literally you flying inside a video thats playing cool music.


changed something to a system file, please help

I am using Ubuntu 13.10,

gtk-color-scheme = "base_color:#ffffff\nfg_color:#4c4c4c\ntooltip_fg_color:#ffffff\nselected_bg_color:#f07746\nselected_fg_color:#FFFFFF\ntext_color:#3C3C3C\nbg_color:#f6f4f2\ntooltip_bg_color:#000000\nlink_color:#DD4814"

gtk-icon-sizes = "panel-menu=22,22:gtk-button=16,16"


Unable configure brightness or colors (12.04)

Press Ctrl+T and type

sudo aptitude install screentest -y

Type screentest and adjust your screen - with your monitor OSD

Check if when playing video you see people´s skin blue.
If you see the normal colors you are not using NVidia drivers.
You need to use them so you can use all the features.

Remember that your screen has probably light and color adjustments.
Always let the graphic card at default and set your screen first.

If you still need some adjustments you can do it.
Your screen might be overriding the results.
If you still have problems please post a screen shot of your graphic card settings panel so i can see it. I will be glad to help you.


I belive this is what you are looking for.
sudo nano /etc/default/grub
And then change the line
GRUB_TIMEOUT to GRUB_TIMEOUT=20 to make the menu appear for 20 seconds.
Remeber to sudo update-grub after you saved the file. Then reboot, and the menu should display for 20 seconds.


Connect switch on router ISP and lose internet connection one of the pc's

Use DHCP on both PC and try again.
Does your ISP allows to connect multiple clients to the router provided by them? Some ISP only allows a single IP through their router/modem. If that is the case you will have to plug the cable from ISP router to a new router and connect the devices to the new router(not an ordinary switch).

So first try by using DHCP on both systems.

If that doesn't work try different static IP on both systems.

If that too doesn't work check if NAT(Network Address Translation) is enabled on router or does it support such feature.

If that doesn't work, then please replace the switch with a new router. This will definitely solve your problem.


HP Truevision HD built-in webcam not working in ubuntu 18.04

The cheese error messages are similar to those in this report:

Webcam not working with cheese (unless sudo-ed)

The solution was to use sudo when calling cheese.

Other users in the link suggest other packages that work when cheese doesn't work.

That said use the following commands to make sure webcam is connected:

$ sudo apt install hwinfo

$ hwinfo --usb

11: USB 00.0: 0000 Unclassified device
  [Created at usb.122]
  Unique ID: X7GA.tCH1FaBg9PD
  Parent ID: k4bc.2DFUsyrieMD
  SysFS ID: /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0
  SysFS BusID: 1-7:1.0
  Hardware Class: unknown
  Model: "Sunplus Innovation Integrated_Webcam_HD"
  Hotplug: USB
  Vendor: usb 0x1bcf "Sunplus Innovation Technology Inc."
  Device: usb 0x2b8c "Integrated_Webcam_HD"
  Revision: "47.14"
  Driver: "uvcvideo"
  Driver Modules: "uvcvideo"
  Device File: /dev/input/event8
  Device Files: /dev/input/event8, /dev/input/by-id/usb-SunplusIT_Inc_Integrated_Webcam_HD-event-if00, /dev/input/by-path/pci-0000:00:14.0-usb-0:7:1.0-event
  Device Number: char 13:72
  Speed: 480 Mbps
  Module Alias: "usb:v1BCFp2B8Cd4714dcEFdsc02dp01ic0Eisc01ip00in00"
  Driver Info #0:
    Driver Status: uvcvideo is active
    Driver Activation Cmd: "modprobe uvcvideo"
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #14 (Hub)

You can get the much of the same information with lsbusb -v but it doesn't concisely provide it the same way.


CPU temperature indicator alternative to jupiter

Check out Hardware Sensors Indicator. Launchpad Page It should work fine in gnome-panel.


If the key is not named id_rsa it does not work

Arronical's answer is good for a one-time connection, but would be painful in the long term. In order to make ssh always use this key when connecting to this server, you can add this to your ~/.ssh/config (or create it if it does not exist):

Host vps718449.ovh.net
    IdentityFile ~/.ssh/id_rsa_admin

Then you can connect with just ssh admin@vps718449.ovh.net -p 9215. As an added bonus you can also configure the port:

Host vps718449.ovh.net
    IdentityFile ~/.ssh/id_rsa_admin
    Port 9215

Then you can connect with just ssh admin@vps718449.ovh.net. Even further:

Host vps718449.ovh.net vps
     Hostname vps718449.ovh.net
     User admin
     IdentityFile ~/.ssh/id_rsa_admin
     Port 9215

Then just ssh vps will work! Of course vps is just an example, you can use any other alias you want (for example if you have more than one VPS). See man ssh_config for a list of the options you can set there.


This is what I have learned:

ICH6R is considered a FakeRaid in the Linux/Ubuntu World.

There is this very complete guide to installing Ubuntu on a FakeRaid and also why it is considered a FakeRaid
https://help.ubuntu.com/community/FakeRaidHowto

Here is quoted the relevant part for Ubuntu 10.04:

  Ubuntu 10.04 (Lucid Lynx) and 10.10 (Maverick Meerkat)

  The installer will recognize the dmraid devices and allow you to use them normally. Their names will be /dev/mapper/something instead of /dev/sdX. You need to install grub to the dmraid device instead of /dev/sda. In 10.04 the final stage of the installation you check the advanced button and can select where to install grub to. In 10.10, you choose the destination from the drop down list on the manual partitioning screen.


Took me a few minutes to see what you were doing wrong. You are using tar syntax for unzip and they aren't compatible. You want to run this:

sudo unzip -d /opt/ jstock-1.0.7.17-bin.zip

For tar the syntax is tar xf file.tar -C dir whereas for unzip it's unzip -d dir file.zip


Problem in installing Ubuntu 12.04 in ASUS laptop

That is a partition problem that you need to fix in windows first. Open free space in your hard disk from windows to be reserved for ubuntu.
Once you have created the free space, start the installation process and choose "other option" when you get to the screen on how you want to install ubuntu.
You will be taken to the partition manager screen.
There create a partition from the free space for ubuntu installation and choose the mount point "/".
Create another partition from the free space for swap space (1 to 2 times your RAM size) and choose "swap" as partition type.
Minimum you need two partitions for ubuntu, for ubuntu installation itself and for swap. You can also create extra to have your "/home" data on a different partition then your ubuntu main installation.

Next time, use online #ubuntu channel on irc for this minor issue since it is not an error because ubuntu tries to auto resize your windows partition but you have complicated partition then a average user will have.
http://www.ubuntu.com/support/community/chat


How do I install Monodevelop 2.10 or later on 12.04?

You can install MonoDevelop 3.0.x (stable) via this PPA.

sudo apt-add-repository ppa:directhex/ppa
sudo apt-get update
sudo apt-get install monodevelop

Please note that Monodevelop 3.0 will be included in Quantal 12.10.

  Note: If you are unfamiliar with installing third-party software from PPAs, you may want to refer to these questions:

  What are PPAs and how do I use them?
  Are PPA's safe to add to my system and what are some "red flags" to watch out for?


How to install Ubuntu using the efi shell

Ubuntu uses grub-efi for UEFI systems. So what you really want to load from EFI shell is GRUB.

This should be EFI/grub/grubx64.efi

Type mount for detected storage devices:

mount

This will only tell you basic information about PCI bus location bus type (SATA), device type (HD, usb etc) and partition type (GPT). Try to guess your disk. If you get it wrong thats okay you'll confirm in the next step.

mount blk1
fs0:
ls

That mounts the file system of the first devices first partition and prints the files. The file list should contain "EFI" if it does proceed otherwise try other blks.

Try

ls EFI\grub

and confirm grub is present. Sometimes its incorrectly in BOOT.

ls EFI\Boot

and check for grubx64.efi

Once you've found the file simply start it.

EFI\grub\grubx64.efi

Press enter. If you have secure boot then you should be looking for the file shim.efi and do the same thing. Otherwise you'll need to add grubx64.efi to the allowed executables in SecureBoot.


Why writing speed is not high as reading speed in usb 3?

There are two speeds to take into account: one is the bus' speed and the other one is the drive's speed; the lowest of the two is a bottleneck and sets the maximum overall speed you're going to get.

USB 3.0 on his own caps at 4.8 Gbps (600 MB/s), but reasonably only SSDs might reach that cap; commercial (even not cheap) USB flash drives are usually way slower; USB hard drives, IME, can reach around 80 MB/s when writing sequentially.

So the fact that a drive is USB 3.0 compatible doesn't mean that its speed will match USB 3.0's specifications, because that depends on the drive itself; the only thing you can safely assume from the fact that a drive is USB 3.0 compatible is just that, when plugged into a USB 3.0 port, in case the drive itself can reach a speed higher than 480 Mbps (which is something USB 3.0 hard drives, IME, usually do), it will not be bottlenecked by the bus; for a USB flash drive, speed-wise, IME, USB 2.0 is plenty already, because they are usually terribly slow compared to USB hard drives.


You can install Oracle's Java Development Kit (Oracle JDK) from the webupd8 PPA by running the commands below from a terminal:

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

This will add their PPA to your software sources, update your software index and then install their currently latest build of the Oracle JDK 8. At the date of writing, this should be version 8u74.

The advantages of this approach over your attempt to convert an rpm package are that the binaries were specifically built for your Ubuntu version and that the package manager will automatically handle updates.

If there's no special reason to use Oracle JDK, you can also just use the open source implementation, the OpenJDK 8 JDK:

sudo apt-get install openjdk-8-jdk

Differences between Oracle JDK and OpenJDK include that OpenJDK might miss some rarely used proprietary multimedia libraries and that it does not come with a web applet launcher by default. This functionality is outsourced and available under the name icedtea. Unfortunately there's no icedtea-8-plugin in the official repositories yet, so if you need to run Java web applets, you must install another PPA to get icedtea-8-plugin if you go for OpenJDK. If you never use Java web applets, there's absolutely no need for that plugin though.


Getting Started with Developing Desktop Themes

Themes are based on CSS, which is the same language that's used to style web pages. So grab a CSS tutorial. You can do lots of stuff just using your favorite text editor. And as you mention, you'll probably want some tools to do some graphics.

You can read more about theming Gnome on their developer portal: http://developer.gnome.org/gtk3/3.0/theming.html


how to remove an item from my context menu?

My solutions to removing the Aptana Studio menu item out of my Firefox 4 context menu was to

1) go to about:config

2) search for Aptana

3) on each of the records(should be 3) right click and select reset

4) done.


Install VMWare tools disabled on Guest VM

NVM I Fixed it, I removed the floppy drive and added a second CD drive.


Updating Ubuntu Virtual Machine using putty

You might not be able to because of how many releases are in between, however, you need to install

 sudo apt-get update
 sudo apt-get install ubuntu-release-upgrader-core

Once that's installed, I suggest you install tmux as well, since it's easyer to work with than screen

 sudo apt-get install tmux

Now, you can start a tmux session by just typing in tmux .

Note to self, if you have custom network setup ( bonds and bridges) be advised that the way those are written changes in between distros. I advise you rever that to a dumb and simple 1 interface layout temporary out of fear of locking you out after upgrades. If networking is misswritten it will not start network on reboot.

Now in tmux run sudo do-release-upgrade and follow the prompts. If for some reason the connection drops, relog on putty and type tmux attach to resume the session.


Installing Ubuntu 12.04 freezes when Running “grub-install dummy”

No idea what's causing the freeze (your syslog doesn't contain anything I can identify as useful for diagnosis), but a possible workaround would be to use the text-mode installer from the alternate CD (go here and choose one of the options with "alternate" in the filename).

It's less pretty, but more flexible and you're more likely to be able to see what's going wrong.


How to completely reset Ubuntu and all installed applications to its original setting?

Try below command that would reconfigure everything you have this will not do any harm to your system.

sudo dpkg-reconfigure -a


Nvidia drivers on Ubuntu 16.04, GeForce GT 730M

Your driver exists in the graphics-drivers ppa.  You can add the ppa to your system and install the driver.

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

Then look for the package with the correct version (367.35) and install it.  It should be something like nvidia-367.35or nvidia-367.


Determine the next name for a particular file

My solution is to look into that directory for the files and then pick the last one:

filename=`find . | sort -t_ -k2 -n | tail -1`

then show the new file's name:

echo ${filename%_*}_$(( ${filename##*_} + 1 ))

let's test it:

$ mkdir test
$ cd test
$ touch file_{1..999}
$ filename=`find . | sort | tail -1`
$ echo $filename
./file_999

Get the file name:

$ echo ${filename%_*}
./file

Get the number +1:

$ echo $(( ${filename##*_} + 1 ))
1000

Merge them:

$ echo ${filename%_*}_$(( ${filename##*_} + 1 ))
./file_1000


Although I have never done this in Virtual Box, my normal solution is to use the boot-repair tool.  According to a few blog posts I found on google, other people were able to use it to repair a linux installation in Virtual Box.

First, boot Virtual Box from an Ubuntu .iso file (you can download it from the Ubuntu website).

Then install and run boot-repair as in this guide.

Restart Virtual Box, and hopefully this fixes your problem!


Can I pass a keystroke from command line into the gui

Jonas, this is exactly what i needed since my laptop screen is broken and i'm converting it into a server. I tried the code in your last post but it didn't do the job completely. It opened the splashtop window but the click didn't happen, the cursor remained in its default position. Did you have any luck?


You probably want to see if /opt/armitage/armitage/ has any content. If the directory is empty, you may wish to delete the directory and rerun the command.

sudo sh -c "echo java -jar /opt/armitage/armitage.jar \$\* > /opt/armitage/armitage"

That command wants to create the directory /opt/armitage/armitage .  Which already exists.

If the directory has content, you may place a tailing slash,

sudo sh -c "echo java -jar /opt/armitage/armitage.jar \$\* > /opt/armitage/armitage/"

Then it will create the structure: /opt/armitage/armitage/armitage


Ubuntu fails to install on HP zbook 15 G2

It appears that packages.ros.org covers all currently supported Ubuntu Operating systems. You should be able to install the appropriate version of these packages on virtually any flavor of currently supported Ubuntu you desire. You don't mention any details, but I would not be surprised to discover that your installations that failed were due to a corrupt ISO. I base this theory on the fact that you were able to successfully install Mate (which would indicate hardware is unlikely to be the issue)


Cannot boot from Ubuntu Live CD on preinstalled Windows 8 laptop

Same problem with samsung notebooks (np55 serie) and pre-installed w8.
The solution was for myself:

Bios > Advanced > Fast Boot = Disable
Bios > Boot > Secure Boot > Disable
Bios > Boot > Bios mode (under the Secure Boot) > CSM mode

After this modification the laptop will see all my usb device (usb bdrom, usb drive) and able to boot from it.


Looks like something broke grub... Try booting from a live CD and doing a boot repair: https://help.ubuntu.com/community/Boot-Repair


How do i properly install ubuntu on a pc with ubuntu already on it?

Well, I can tell you from my personal experience, Lubuntu is WAY easier to handle, a lot smoother and a lot faster in comparison to Ubuntu. It's also more similar to Windows, so you won't have much problems maneuvering. Also, how about you try making a Live CD/DVD and booting from that? It's usually a faster option.


It was the nvidia driver. Thanks Jamo. I followed this guide to remove it and now I can access the tty consoles.


This answer is exactly this one: Server stuck at black screen after reboot placed here for  your convenience.

  Maybe something wrong with the GPU feeding data. See this answer:
  Black screen after updating Ubuntu 11.04 and Mobility HD 4250
  which leads to the X/Troubleshooting/Blank screen Wiki,
  containing useful information to solve these issues.

  What I did to solve of GPU feeding data failure was editing the
  grub.cfg file by dropping the next in a terminal:

sudo gedit /boot/grub/grub.cfg

  As mentioned on "Workaround B" in the Wiki page. Then remove the
  "splash" word on each grub's entry. And the problem was solved.

  You can either edit grub.cfg file via Live Session with a CD/DVD or
  USB bootable. And there are some other workarounds that may help you.

There are some other workarounds on the Wiki Page.

I hope this give you a clue and you find a solution soon.

Good luck!


Help with migrating WUBI to it's own partition

Check this out: https://help.ubuntu.com/community/MigrateWubi

However, if you haven't done a lot of customizations in your wubi installation, I would just make a fresh install on a new partition, and then copy data from your home directory.

Also, don't skimp on disk space - 50Gb for building a huge codebase? What is it, year 2001? :)


System Settings won't start, Ubuntu 18.04.2

this is happen when run gnome-control-center --verbose

mohamedramadan@mohamed-ramadan:~$ gnome-control-center --verbose
** (gnome-control-center:2740): DEBUG: 07:23:36.423: Enabling debugging (gnome-control-center:2740): AccountsService-DEBUG: 07:23:36.567: ActUserManager: calling 'ListCachedUsers' (gnome-control-center:2740): AccountsService-DEBUG: 07:23:36.567: Failed to identify the current session: No data available (gnome-control-center:2740): AccountsService-DEBUG: 07:23:36.567: ActUserManager: seat unloaded, so trying to set loaded property (gnome-control-center:2740): AccountsService-DEBUG: 07:23:36.567: ActUserManager: Listing cached users, so not setting loaded property (gnome-control-center:2740): AccountsService-DEBUG: 07:23:36.567: ActUserManager: Listing cached users, so not setting loaded property (gnome-control-center:2740): AccountsService-DEBUG: 07:23:36.568: ActUserManager: ListCachedUsers finished, will set loaded property after list is fully loaded (gnome-control-center:2740): AccountsService-DEBUG: 07:23:36.568: ActUserManager: tracking new user with object path /org/freedesktop/Accounts/User1000 (gnome-control-center:2740): AccountsService-DEBUG: 07:23:36.573: ActUserManager: unrefing manager owned by finished ListCachedUsers call (gnome-control-center:2740): AccountsService-DEBUG: 07:23:36.574: ActUserManager: user mohamedramadan is now loaded (gnome-control-center:2740): AccountsService-DEBUG: 07:23:36.574: ActUserManager: user mohamedramadan was not yet known, adding it (gnome-control-center:2740): AccountsService-DEBUG: 07:23:36.574: ActUserManager: tracking user 'mohamedramadan' (gnome-control-center:2740): AccountsService-DEBUG: 07:23:36.574: ActUserManager: not yet loaded, so not emitting user-added signal (gnome-control-center:2740): AccountsService-DEBUG: 07:23:36.574: ActUserManager: no pending users, trying to set loaded property (gnome-control-center:2740): AccountsService-DEBUG: 07:23:36.574: ActUserManager: Seat wouldn't load, so giving up on it and setting loaded property (gnome-control-center:2740): user-accounts-cc-panel-DEBUG: 07:23:36.574: Got 1 users

(gnome-control-center:2740): user-accounts-cc-panel-DEBUG: 07:23:36.574: adding user MohamedRamadan

(gnome-control-center:2740): user-accounts-cc-panel-DEBUG: 07:23:36.574: user added: 1000 MohamedRamadan

(gnome-control-center:2740): user-accounts-cc-panel-DEBUG: 07:23:36.574: File does not exist (gnome-control-center:2740): user-accounts-cc-panel-DEBUG: 07:23:36.585: File does not exist (gnome-control-center:2740): user-accounts-cc-panel-DEBUG: 07:23:36.586: File does not exist (gnome-control-center:2740): GnomeDesktop-DEBUG: 07:23:36.619: Ignoring 'C.UTF-8' as a locale, since it lacks translations (gnome-control-center:2740): GnomeDesktop-DEBUG: 07:23:36.619: Ignoring 'C.UTF-8' as a locale, since it lacks translations (gnome-control-center:2740): GnomeDesktop-DEBUG: 07:23:36.620: Ignoring 'C.UTF-8' as a locale, since it lacks translations (gnome-control-center:2740): AccountsService-DEBUG: 07:23:36.623: ActUserManager: sending user-changed signal for user mohamedramadan (gnome-control-center:2740): user-accounts-cc-panel-DEBUG: 07:23:36.624: Got 1 users

(gnome-control-center:2740): user-accounts-cc-panel-DEBUG: 07:23:36.624: adding user MohamedRamadan

(gnome-control-center:2740): user-accounts-cc-panel-DEBUG: 07:23:36.624: user added: 1000 MohamedRamadan

(gnome-control-center:2740): user-accounts-cc-panel-DEBUG: 07:23:36.624: File does not exist (gnome-control-center:2740): user-accounts-cc-panel-DEBUG: 07:23:36.624: File does not exist (gnome-control-center:2740): user-accounts-cc-panel-DEBUG: 07:23:36.624: File does not exist (gnome-control-center:2740): AccountsService-DEBUG: 07:23:36.634: ActUserManager: sent user-changed signal for user mohamedramadan (gnome-control-center:2740): AccountsService-DEBUG: 07:23:36.634: ActUserManager: updating user mohamedramadan


unable to set negative numbers in red as default in libreoffice calc

To set the default for a single spreadsheet, go to Styles and Formatting, then modify the Default cell style.

To use this setting for any new spreadsheets, go to File → Templates → Save As Template.  Mark the check box Set as default template.

This was adapted from https://ask.libreoffice.org/en/question/9550/in-calc-where-is-the-custom-default-formatting-setup/.


Why do disabled input devices still work?

For some reason it is necessary to disable the pointer part of the keyboard device too:

$ xinput list
⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ Razer Razer DeathAdder Chroma             id=9    [slave  pointer  (2)]
⎜   ↳ Razer Razer DeathAdder Chroma             id=10   [slave  pointer  (2)]
⎜   ↳ Corsair Corsair K70 RGB Gaming Keyboard   id=13   [slave  pointer  (2)]
⎣ Virtual core keyboard                     id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ Video Bus                                 id=7    [slave  keyboard (3)]
    ↳ Power Button                              id=8    [slave  keyboard (3)]
    ↳ Razer Razer DeathAdder Chroma             id=11   [slave  keyboard (3)]
    ↳ Microsoft® LifeCam Studio(TM)             id=14   [slave  keyboard (3)]
    ↳ Dell WMI hotkeys                          id=15   [slave  keyboard (3)]
    ↳ Corsair Corsair K70 RGB Gaming Keyboard   id=12   [slave  keyboard (3)]

Disabling both 12 and 13 is effective.


Reinstall Ubuntu 14.04 without cd or usb. (Windows installed aside it)

If your old Ubuntu's GRUB still loads correctly, then you might be able to just copy the whole iso to your hard drive, and edit the grub.cfg file to add some lines like

menuentry '[loopback]ubuntu-14.04.1-desktop-amd64' {
    set isofile='/boot/iso/ubuntu-14.04.1-desktop-amd64.iso'
    loopback loop $isofile
    linux (loop)/casper/vmlinuz.efi boot=casper iso-scan/filename=$isofile locale=en_US.UTF-8
    initrd (loop)/casper/initrd.lz
}

[linux (loop)/casper/vmlinuz.efi may need to be linux (loop)/casper/vmlinuz, and I've used it successfully without "locale=en_US.UTF-8"]

and then boot Ubuntu from the ISO on your hard drive.

If you wanted to overwrite the partition that holds the ISO, you would probably need more than 2GB of ram, and the extra boot/kernel option toram (added to the linux (loop)... line), then the whole ISO would be copied & run from ram, letting you overwrite your hard drive all you want.

For more info:

ArchWiki on Multiboot USB drive - Oriented towards making a USB, but if GRUB works on your hard drive the same principles should apply

But it would probably be easier to pick up a cheap DVD-R or DVD-RW, or an ultra-cheap 2GB USB drive, and make a new bootable Ubuntu DVD/USB.


Ubuntu LAMP server do I need the DNS Service?

If you don't need a mail server, by all means disable it. From a security standpoint, the less number of services you run the less exposed you are to external attacks (fewer "attack vectors" in the industry parlance.)

Keep in mind that some times the service you are planning to provide depends on other services (for example it makes little sense to run an e-shop and not offer the means to communicate by e-mail with your users.)

It really all depends on what your use case is. Research the requirements of the s/w you plan to run and then make any necessary changes to the running services by means of Webmin (check out www.webmin.com for instructions) or if you prefer command line check out this thread How to enable or disable services?


Find MAC address of a device connected to my computer

By the help of a friend, I now resolved this! =) This is what I did:

Install Wireshark, which is available in the software repositories: sudo apt-get install wireshark
Start the program with root permissions: sudo wireshark
Start capturing on the eth0 device (piece of cake - click the button on the top left of the interface, select the device in the dialog and click OK).
Connect the "black-box device" and turn it on. The devices will send a large amount of packages back and forth trying to establish a connection. Wireshark will capture them all.
Find a packet originating from the "black-box device". Wireshark displays the originating MAC address. Voila!


According to the source, it's:

~/.local/share/nautilus-python/extensions/


Upgraded to 18.04 and it is incredibly slow

https://unix.stackexchange.com/questions/304050/how-to-avoid-conflicts-between-dnsmasq-and-systemd-resolved

Asked too soon. Apparently....setting DNSStubListener to "no" pushed my proc issues down a lot. Apparently, it was an issue between dnsmasq and systemd-resolve


I needed to use Emacs23 instead of Emacs. For this to take effect I needed to restart X. (Or you can just run 'xrdb -merge .Xresource' so the changes will take effect immediately)


I will recommend you to do the most and eficient secure recommended method since you just finished installing Ubuntu from the Live CD.

First update your new system

sudo apt-get update
sudo apt-get dist-upgrade

Read carefully the packages you will install and update the linux-headers if prompt, now
For making sure what graphics driver your system needs.

ubuntu-drivers devices

That command will tell you what packages you will need for using graphics drivers.
Then just make sure to install first the intel driver and then the NVIDIA one.

sudo apt-get install intel-microcode
sudo apt-get install nvidia-xxx

And that's all, note that I told you nvidia-xxx because you must enter the recommended driver version displayed in ubuntu-drivers devices and I must warn you. Updating the kernel may cause you problems, so once you installed that NVIDIA driver, please don't upgrade with this commands (sudo apt dist-upgrade or sudo apt upgrade and sudo apt-get dist-upgrade), please use sudo apt-get upgrade that command will hold new kernel releases.


How to access open terminal with running process using SSH?

I believe the tool you are looking for is screen.  Be aware that it breaks scrollback due to how it works.

Set up as follows:

screen -mS myscreen

Attach as follows:

screen -x myscreen

Once attached, you or your partner can interact with the screen.

Detach from the screen as follows:

Ctrl-A D

Don't get that backwards, or you log out of your screen and take your partner's with you! If you close the window without detaching, it will close your partner's screen as well.

To list active screens:

screen -ls

To attach to one of two similarly named screens:

screen -x 12345.myscreen

where 12345 is the PID of the screen (which you get from screen -ls)

Found a source for this!
http://wiki.networksecuritytoolkit.org/nstwiki/index.php/HowTo_Share_A_Terminal_Session_Using_Screen


No decision has been made on this yet.

Keep in mind that we will need something to handle having a high and low contrast theme for accessibility reasons; and that is very much a high priority, so we'll have to revisit this after conclusions have been made at the Ubuntu Developer Summit.


For 64-bit version you need to install 32-bit architecture files first.
Launch the terminal (Ctrl+Alt+T) and paste this code.

sudo dpkg --add-architecture i386

Then run this command.

sudo apt-get update

Next download Skype on your Desktop folder.

cd /Desktop && sudo wget download.skype.com/linux/skype-ubuntu-precise_4.3.0.37-1_i386.deb

Finally double click the Skype installer on your Desktop.Your Ubuntu Software Center will be launched and on the top right corner press the Install button.

If I helped you don't forget to select my answer please.


The "patched" Upstart configuration you link to is the same as the Upstart configuration that was shipped with Upstart 1.3 (from cannot get upstart to run user job), so I'd say that is the simplest way to enable user jobs.


How to apply the adapta theme on ubuntu mate

You post link to its GitHub. Have you read whole README.md? :)

It is clearly points to the PPA with packages. So you can:

sudo add-apt-repository ppa:tista/adapta
sudo apt-get update
sudo apt-get install adapta-gtk-theme  adapta-backgrounds

Then go to the System|Appearance and select Adapta theme variant you like.

I tested this on my Ubuntu 16.04.3 LTS MATE. And it works.


You have two options. However, since you need to change the IP address to static,  the only way is to set-up a manual/static IP editing the /etc/network/interfaces file. for that you need to edit the interfaces file with;

sudo nano /etc/network/intarfaces

You'll ideally see something like;

auto eth0
iface eth0 inet dhcp

Replace it with;

auto eth0
iface eth0 inet static
address x.x.x.x
netmask x.x.x.x
gateway x.x.x.x

Moving further, if you have or require domain to be resolved along with DNS servers, you may add few more lines to the file, similar to;

auto eth0
iface eth0 inet static
address x.x.x.x
netmask x.x.x.x
gateway x.x.x.x
dns-search example.com
dns-nameservers x.x.x.x x.x.x.x

Please note, there are two sets of x.x.x.x within the DNS name servers (Primary and Secondary) with a space. You may use one pair or both depending on your requirement.

To save the file select ctrl+o, -> enter and exit with ctrl+x.

And then just to be sure, simple restart the interface with;

sudo ifdown eth0           # wait for sometime
sudo ifup eth0             # and then issue this to restart

Also, as a final step, simply type below to confirm the interface change;

ifconfig -a

Alternative way;

Refer to your server or the device which responds to DHCP requests and add a reservation, in case if you do not like to play with the server, files.. etc.

In order to get the MAC address for reservation, simply check the interface information with a;

ifconfig eth0                 # or type ifconfig -a

which should ideally display something similar to below;

ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:15:c5:4a:16:5a
          inet addr:10.0.0.100  Bcast:10.0.0.255  Mask:255.255.255.0
          inet6 addr: fe80::215:c5ff:fe4a:165a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:466475604 errors:0 dropped:0 overruns:0 frame:0
          TX packets:403172654 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2574778386 (2.5 GB)  TX bytes:1618367329 (1.6 GB)
          Interrupt:16

Where you see the HWaddr 00:15:c5:4a:16:5a and assign it to the DHCP reservation.

Hope this helps!

More: Networking Configuration Guide


Windows 7 won't boot after Ubuntu 12.04 dual boot installation failed

It sounds like your MBR got wiped out. Why did your partitioning fail? If there is a larger problem at hand you may want to focus on data recovery.

gparted should be able to repair partition tables, but I would just try to install ubuntu again. If you can complete the installation you should be able to boot into windows right away from the grub boot menu.


Disable automatic brightness according to content in Ubuntu 14.04

Install wildguppy.

You can enable or disable dynamic brighness according to your needs.

sudo add-apt-repository ppa:fantasyleague0629/wildguppy
sudo apt-get update; sudo apt-get install wildguppy

to make it start on start-up

gedit ~/.config/autostart/wildguppy-gtk.desktop

copy paste the following into the file

[Desktop Entry]
Type=Application
Exec=wildguppy-gtk
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name[en_US]=WildGuppy
Name=WildGuppy
Comment[en_US]=
Comment=


Error while installing Addtional drivers?

Try to purge ur nvidia driver card, go to terminal. and type: sudo apt-get purge nvidia* [enter] and sudo apt-get purge nouveau* [enter]

If u sure ur card is intel please check this out. How do I install drivers for an Intel HD Graphics? , i hope this link will help you.


I faced the exact same problem, but I've found a better alternative that did work for me, since changing the user to root in the my.cnf file didn't work for me.

First head to the MySQL data directory and move all ibdata files and all ib_logfile files to a temp folder (should look similar to mv /path_to_mysql_data_directory/ib* /path_to_temp_folder/).
Run sudo service mysqld start and it should start.
Run sudo service mysqld stop and it should stop.
Take the file you moved to the temp folder and put them back in the MySQL data directory (should look similar to mv /path_to_temp_folder/ib* /path_to_mysql_data_directory/).
Run sudo service mysqld start again and everything should start.

This solution did work for me, but I haven't tested it elsewhere.


Displaying two subtitle tracks simultaneously

Another tool to merge subtitles is DualSub (http://dualsub.sourceforge.net/). It works with SRT subtitles for input and output. It has many options for customization. In addition you can use it to translate subtitles to any language.


Upgrade Ubuntu to 13.04 from 12.10 on dual-boot laptop

Search update manager, click the Check button to check for new updates. If there are any updates to install, use the Install Updates button to install them, press Check again after that first update is complete — then press the Upgrade button and then click Upgrade and follow the on-screen instructions.


I just Installed ubuntu 20.04 in my Dell Inspiron 3567 but i cannot change brightness or resolution

Check if you have additional drivers available for your video card on Software & Updates and switch to the alternate if available.


Installing Windows to flash UEFI/ BIOS, then reinstalling Ubuntu

The most efficient way is to find a Live Windows image and boot from it.

You  will be able to flash BIOS from it.

But beware that in some cases it is not a good idea to flash a new BIOS. About a week ago I flashed a new BIOS to an Asus laptop using a BIOS utility (built in into BIOS called EasyFlash).

After that I lost touchpad in Ubuntu and had other problems. I couldn't downgrade BIOS using the same utility because it didn't allow to flash older BIOS.

So I had to use a Live Windows image where I successfuly downgraded BIOS using /nodate switch.

So if you don't have a very strong reason, and everything works fine, don't upgrade BIOS. Ubuntu will take care of CPU microcode.


Why is mediatomb not compiled with javascript support?

Mediatomb is not compiled with javascript because the repository libraries (libmozjs185) does not support the compilation of SpiderMonkey into MediaTomb.

Looking back - this particular build-receipe has been used since v10.04 (lucid) thus you'll need to repack the Debian MediaTomb packages with Javascript support yourself.

Prereqs for repacking with javascript support

You'll need to "borrow" some older libraries from Debian Sid - and remove the offending libraries if you have them installed i.e.

get libmozjs2d and libmozjs-dev from the debian sid distibution: libmozjs2d_1.9.1.16-6_i386.deb and libmozjs-dev_1.9.1.16-6_i386.deb
& install a missing library

sudo apt-get remove libmozjs185*
sudo apt-get install build-essential libnspr4-0d
sudo dpkg -i libmoz*.deb

Obtain the source

Get the mediatomb source:

sudo apt-get build-dep mediatomb
sudo apt-get source mediatomb

now edit debian/rules to enable javascript

sudo nano <mediatombfolder>/debian/rules

In the debian/rules file, search for MEDIATOMB_CONFIG_OPTIONS and change --disable-libjs to --enable-libjs.

You should also update the changelog file (in the same debian directory) and perhaps the "mediatomb.dsc" file to change the version.

check and repack

First:

cd <mediatombfolder>
sudo ./configure

This should confirm all necessary prerequisites are installed for compilation.

Finally:

sudo dpkg-buildpackage -rfakeroot -us -uc

If all goes well, you should see 3 new deb files in folder above .

Install them all:

sudo apt-get install libjs-prototype
sudo dpkg -i mediatomb*.deb

based upon source


Change Gnome popup notification text colour

You need to change or in my case add the following selectors:

.notification-banner .message-title, .notification-banner:focus
.message-title, .notification-banner:active .message-title {
color: #eeeeec; } .notification-banner .message-content, .notification-banner:focus .message-content,
.notification-banner:active .message-content {
color: #eeeeec; }


It would be under /run/user/s/gvfs on the filesystem.

Another thing you can do is simply drag the file from Nautilus into the file open dialog of the application you want to open it in, or to a terminal. This should give you the full path to open with the classic POSIX methods for apps not using gvfs.

Although, if it is an Audio CD, it is likely not actually mounted. The underlying VFS support in GNOME/Nautilus just scans the disc and presents the tracks as raw wav files in the UI.


How do I undo and install the proprietary GPU driver?

--no-install-recommends prevent certain packages from being installed, mainly the nvidia driver. If you have bumblebee already installed, it is sufficient to run:

sudo apt-get install bumblebee-nvidia linux-headers-generic


You've installed the banshee 2.3.1 ppa for ubuntu maverick meerkat? Info you probably should have included in your question, rather than let the detectives figure it out :)

  = 2.3.1+git20111114.r1.aea7412-0ubuntu1+maverick

The simplest way of dealing it would be to remove the offending repository from your '/etc/apt/sources.list.d'. Then, add the following ppa

sudo add-apt-repository ppa:banshee-team/ppa

After you've done that,

sudo apt-get update && sudo apt-get install libdbus-glib1.0-cil libdbus1.0-cil

(they're available on the aforementioned ppa). Then, you can re-add the daily ppa,

sudo add-apt-repository ppa:banshee-team/banshee-daily;sudo apt-get update && sudo apt-get upgrade

and you can install the soundmenu extension from there.

ps. I don't know if removing the unstable ppa is strictly necessary -- you'll probably get away with just adding the stable ppa and installing the libdbus* dependencies from that.


Ok, I found solution, but seems to be software error. My drive have only 318GB - i take it from eeePC netbook and buy usb sata box for it, so I can plug as external drive later. Actually I buy two boxes - one fron eBuy, other - in local market. First one let me see my drive once, after several plug/unplug - box died, and not responced anymore (power light blinks once). I notice, that wire which was in complect, was with two USB A and one USB B on other side, but box has only USB A port. Then I buyed second one and story repeats simulary, but now I have box with USB B port :) In store seller says to me, that one USB port needed to connect drive to PC, that power supply is enought for such drive. And he was right! At least for ~24h of time when externel drive was connected to the computer. :)

The boxes, whitch I buy from eBuy and local stock are same. They looks indentical, except USB port - one has USB B ( GEMBIRD (R) ) other - USB A ( unnamed 2.5" SATA EXTERNAL CASE with sereal ATA and USB 2.0 logos ).

So, my solution is simple - plug in with additional USB power supply (use both USB A cables to connect your drive)

P.S. Why first time I was able to connect my drive with only one cable, but after while - only with two cables, kernel bug?


How to put Preinstalled UBUNTU Touch Image in usb

I'm not sure about installing the tar.gz file, but you can download an ISO image from here: http://cdimage.ubuntu.com/ubuntu-desktop-next/daily-live/current/. Note: these are unstable (as is the file you already downloaded) and could break easily.

The file you probably want is this. If your tablet isn't 64-bit, then download this one. Burn it to a memory stick and boot to it from your tablet. You should then be able to run the installer from the live USB.

I recommend you don't do this at all if you're not sure, because these are development releases and could break; additionally, if something goes wrong, you might not know how to restore the tablet to how it previously was.


Seeing as the device is properly detected by the script, it seems more likely that your problem is on the gene sequencer side of things, rather than being an Ubuntu issue.  Are there any other utilities which will allow you to communicate with your sequencer for any other features, perhaps a calibration routine?  If Ubuntu can communicate with the machine and get it to do other things, I would expect the problem is with the gene sequencer rather than with the computer.  Another possible test is to try using another operating system, if there is software available.  Finally, make sure you sequencer has the latest firmware, and that the software you are using to connect is up to date.


missing libraries in ubuntu 11.10 - used to work perfect in ubuntu 11.04

Looks like your program is a 32-bit binary. Install the 32-bit SSL library and you'll be ready to continue:

sudo apt-get install libssl0.9.8:i386


Thanks to enzotib, who pointed me in the right direction, I was able to solve my question myself.

Enter in terminal: gksu gedit /usr/bin/indicator-displex

(You can use any text editor instead of gedit. If you choose to use a command-line editor, like vi or nano, use sudo instead of gksu.)
On the third line you wil see cd /usr/share/indicator-displex, change this to:

# cd /usr/share/indicator-displex

Save the file, and you're done.


Can't restore gnome-panel after replacing it with Avant-Window-Navigator

Open a terminal, and run gksudo
nautilus /usr/bin/
Find the file named gnome-panel,
right-click on it, and select
Properties.
Click on the Permissions tab, and
tick the option that says: Allow
executing file as program.

Close the Properties window, and execute the file.


Question marks appears when I input UNIX user account

This is sometimes an issue related to the font being used in the terminal, particularly if that font does not support UTF-8 characters. Try changing the font to something else to see if the question marks disappear.


Prevent external devices being locked to launcher

If you unlock a device from the Unity Launcher, it as actually blacklisted from the launcher. You can see which devices are currently blacklisted by the command:

gsettings get com.canonical.Unity.Devices blacklist

The script below is an alternative way to set your own blacklisted devices. The difference is that the script does it in a permanent way, untill you remove the file ~/.blacklist_data. (see explanation: How it works)

background script

Even for a background script, this one is extremely light weight, as a result of the fact that, if nothing changes to the blacklist, only the current blacklist is read by the gsettings command. It reads the dconf database, which is in binary format, and thus very light weight.

The script

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

blacklist_data = os.environ["HOME"]+"/.blacklist_data"

def get_setlist():
    cmd = "gsettings get com.canonical.Unity.Devices blacklist"
    blacklist = subprocess.check_output(["/bin/bash", "-c", cmd]).decode("utf-8").strip()
    return "[]" if blacklist == "@as []" else blacklist

try:
    blacklist1 = str(open(blacklist_data).read()).strip()
    cmd = 'gsettings set com.canonical.Unity.Devices blacklist "'+blacklist1+'"'
    subprocess.call(["/bin/bash", "-c", cmd])
except FileNotFoundError:
    blacklist1 = "[]"
    open(blacklist_data, "wt").write(blacklist1)

while True:
    time.sleep(1)
    blacklist2 = get_setlist()
    if blacklist2 != blacklist1:
        oldlist = open(blacklist_data).read().strip()
        n_old = len(eval(oldlist))
        try:
            n_new = len(eval(blacklist2))
        except SyntaxError:
            n_new = 0
        if n_old < n_new:
            open(blacklist_data, "wt").write(blacklist2)
        else:
            cmd = 'gsettings set com.canonical.Unity.Devices blacklist "'+oldlist+'"'
            subprocess.call(["/bin/bash", "-c", cmd])
    blacklist1 = blacklist2

How to use

Copy the script into an empty file, save it as myown_blacklist.py
Test- run it by the command:

python3 /pat/to/myown_blacklist.py`

Now unlock your (any, it works not only usb devices) unwanted devices. Unlocking is only needed once.
If all works fine, add it to Startup Applications:  choose Dash > Startup Applications > Add. Add the command:

python3 /pat/to/myown_blacklist.py`

How it works

The issue is that Unity "forgets" devices once they are unmounted. The script then keeps track of what happens to the output of:

gsettings get com.canonical.Unity.Devices blacklist

If an item is added to the list, the script writes the list into a hidden file in your home directory. If an item is removed, it reads the hidden file and restores the blacklist (this is only needed once on unmounting of the device)


why my blog can't be visited with ip address?

Your WordPress application is one among probably many websites hosted at host22.com.

There is a webserver listening on IP 31.170.160.189 and serving yours and all the other pages.

If the server is directly queried by its IP, how is it supposed to know which website to serve? The IP does not belong to your subdomain exclusively. As a result, you're being redirected to a 404 NOT FOUND page.

When it's queried by a proper hostname like wisdom.host22.com, it knows what to do, because the hostname is part of the HTTP request the browser makes. To serve content depending on the request header is a common technique usually referred to as "Virtual Host". This way the webserver can provide many different websites from the same IP address.

You can try out the difference in behaviour from the command line

First, let's request the resource /wp from the webserver and send its IP address as Host:

$ echo -e "GET /wp/ HTTP/1.1\nHost: 31.170.160.189\n" | netcat 31.170.160.189 80
HTTP/1.1 302 Found
Date: Sun, 11 Oct 2015 09:05:30 GMT
Server: Apache
Location: http://error404.000webhost.com/?
Content-Length: 216
Connection: close
Content-Type: text/html; charset=iso-8859-1

As expected the server responds by serving a 404 page.

Now do the same, but with Host set properly to your subdomain

$ echo -e "GET /wp/ HTTP/1.1\nHost: wisdom.host22.com\n" | netcat 31.170.160.189 80
HTTP/1.1 200 OK
Date: Sun, 11 Oct 2015 09:08:50 GMT
Server: Apache
X-Powered-By: PHP/5.2.17
X-Pingback: http://wisdom.host22.com/wp/xmlrpc.php
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8

This time, the server can comply (status code 200 OK) and serves your WordPress homepage.

The netcat command opens a connection to the server on port 80. Then the request (the echo part) is send to the server. HTTP is a plaintext protocol. You can just "talk" to the server.


How to upgrade java compiler - different problem

RESOLVED

There was, among the various class files, one that had not been compiled since the software upgrade. I knew all the others were being recompiled, but I just didn't notice this one. Thus it had a non-matching compiler tag.

Sorry.


Brightness keys don't work on a Toshiba Satellite L655

This worked for me : Re: Controlling brightness on 12.04 Toshiba L650 and I am on a L455D-S5976


After boot, need to restart smbd to get printer sharing to work. Is it starting before cups?

In /etc/init/cups.conf you can add a line where you tell upstart it needs to wait for samba to be loaded. This is the relevant part:

start on (filesystem
      and (started dbus or runlevel [2345])
      and stopped udevtrigger)
stop on runlevel [016]

Adding a

and started smbd

will have cups wait for the samba daemon.


Cinnamon broke Unity and KDE on Ubuntu 13.10

Try removing Cinnamon from start up:

sudo rm -f /usr/share/upstart/sessions/cinnamon-se*

More info: http://itsfoss.com/quickly-fix-broken-unity-installing-cinnamon-20-ubuntu-1310/


Managing multiple servers with shared accounts and filesystem

You primary requirement need to set up an environment with a shared authentication database

But If you only need a nice management tool, install and try Webmin and give it a try.

wget http://prdownloads.sourceforge.net/webadmin/webmin_1.680_all.deb
dpkg -i webmin_1.680_all.deb
apt-get -f install

Open interface by https://yourserverIP:10000 and login


Firewall to block all internet activity except specific packages/programs

A firewall called UFW ( Uncomplicated Firewall ) is already installed on Ubuntu by default. However, if what you need is a GUI to manage it graphically instead of via command-line in the terminal you can install gufw package.

To install it, run the following command in the terminal:

sudo apt install gufw

To run it, search applications for gufw and click on it or type and run in the terminal:

gufw

Then you will be presented with an easy to use graphical interface to manage your firewall.

Please note:

If you are running Ubuntu on Wayland, the GUI will not work. To solve this, please log out and before entering your password in the login screen click on the small gear icon next to the password field and chose Ubuntu NOT Ubuntu on Wayland. Type your password, login and it will work.


what is a good text editor for ubuntu touch?

Tedit seems to have large menu options etc that could be useful for a touch device: https://open-store.io/app/tedit.fulvio


Removing boot packages while ignoring dependencies

Hey I had the same problem today.

Fixed it by moving one of the old kernel images from the boot folder to a temp location to free up a little bit of space.

Then try the other solution again.

Regards,
Dori


how to download a link in links using axel/curl?

How about elinks instead of links?

If you have in .elinks/elinks.conf:

set document.uri_passing.Save-URL = "echo %c >> ~/urls"
bind "main" "S" = "link-external-command"

Then when you have a URL highlighted in elinks, you can press S to write its URL to ~/urls ...


I was trying to make a switch from Unity to KDE, and now my laptop hangs on boot

When you are in the grub menu when you turn the computer on, type 'e' and you will enter the boot loader commands screen, and you will see an area which says 'quiet splash'. I want you to type nomodeset after this so it will look like this 'quiet splash nomodeset'. This should work. If it does, follow the instructions here:
http://ubuntuforums.org/showthread.php?t=1613132

If it doesn't work, read these:

https://wiki.ubuntu.com/X/Troubleshooting/BlankScreen

My computer boots to a black screen, what options do I have to fix it?


Installing a nat network interface on ubuntu virtual machine

From here, running

dhclient eth1 -v

works to connect to the internet, but prevents connections on the other
adapter. Restarting reverts to the previous scenario


How to set 'numlock on' as default at login screen?

@bonhomag solution worked for me in 18.04 (original post):

You need to set it as gdm user via gsettings command

The solution that should work:

Open terminal via Ctrl+Alt+T, then run command to get root privilege:

  sudo -i

Switch to user gdm in the terminal:

  su gdm -s /bin/bash

Finally set ‘Numlock on’ via gdm user:

  gsettings set org.gnome.settings-daemon.peripherals.keyboard numlock-state 'on'

Restart the computer and done


Logrotate is specifically designed to handle such tasks and it does it job pretty well. I suggest you use it.

Now, lets look (and if necessary - fix) your logrotate file, by using the fine manual pages provided by the good guys from Ubuntu (link).

Your version:

# File: /etc/logrotate.d/.test
/var/log/*log{
   size 0
   hourly
   nocreate
   copytruncate
   rotate 0
}

I suggest you use the below:

# File: /etc/logrotate.d/.test
/var/log/*.log{
# the rotate option sets how many times the log files are rotated before being removed. Setting it to 0 means - delete right away (you'll only have the original)
   rotate 0
# the size option sets what size should a file reach before being rotated - I'm setting it to 10MB, but you can change it as it pleases you
   size 10M
# The size option will prevail this option. The daemon will run hourly, but won't rotate the log file until it reaches 10 MB
   hourly
# this option fits your requirement not to create new log files
   nocreate
# delete rotated log files older than 0 days
   maxage 0
# truncate the original file rather creating new one
   nocopytruncate
}


you put a "/" before picture. this makes it an absolute path

Your picture is now /Pictures in the root of the drive.

The command you wanted was:

 mv Firefox_wallpaper.png Pictures/

Note: sudo is normally not needed, unless writing to root owned folders or files. For most everyday tasks, it should not be used since root privileges poses a security risk.


Since I am not completely experienced with Linux as of right now and I wasn't that far into installing all the stuff I wanted I just reinstalled a clean version of Ubuntu.


Broadcom problems. No driver in additional drivers

You should review the information on the official Ubuntu community help site.  Click Here.
The connection speed might not be related to the driver at all, but without more information, it's hard to tell.


Is it possible to set ELB using juju charms?

It looks like you're looking for this:

https://jujucharms.com/u/james-sapara/aws-ec2-elb/

Juju will only deploy things without a namespace, like juju deploy foo if the charm has been through rigorous testing and maintenance.

For this specific charm you'd have to add the person's username to deploy:

juju deploy cs:~james-sapara/precise/aws-ec2-elb-1

The charm's page on jujucharms.com will always have a command line snippet for you to copy and paste on the top right of each page.

Keep in mind that when you're deploying from a personal namespace that there's no guarantee that the charm is working or maintained, similar to how code is hosted on github or containers on the Docker Hub or other code hosting sites.


Gnome 3.14: How to disable window effects

Open dconf-editor (Alt + F2 and type dconf-editor) and uncheck enable-animations in :

org > gnome > desktop > interface

You can also use the following command :

gsettings set org.gnome.desktop.interface enable-animations false


The announcement is rather old (April 4, 2006) and to my knowledge, such a programme does not exist nowadays.

There are however the certifications of the Linux Professional Institute.


Limited Desktop environments seen at logon

This is a workaround and not final solution:

Log into an available desktop environment
Open a file manager
Go to /usr/share/xsessions
Look for the desktop environment you want to always have visible
Use right-click and open that entry with a GUI text editor just to see what the real name of that entry is and not for editing. The name should be <something>.desktop and should be visible in the title bar of the editor window.
Then, open a terminal and run sudo nano <something>.desktop which you got from previous step.
Look at the line beginning with Name=; this is mostly second line. For example, you may see Name=Xubuntu Session
Modify that to Name=AAA-Xubuntu Session.
Save your changes and log out.
Now, the very first entry in your choice of desktop environments will be AAA-Xubuntu Session.

Of course, this is not a final solution but just one way to let you rearrange the list :)


Rhythmbox missing japanese/chinese/korean characters in the song titles

If I understand the question correctly, you have correct representation of Japanese, Chinese, and Korean characters in your song database, but these are not being rendered appropriately in the display.  In this case, the most likely cause is missing font support.  To install the preferred fonts for these environments, install the following packages:

language-support-fonts-ko (Korean)
language-support-fonts-ja (Japanese)
language-support-fonts-zh-hans (Simplified Chinese)
language-support-fonts-zh-hant (Traditional Chinese)

If you happen to be running Ubuntu 8.04, the name of the packages for the Chinese fonts is different (I can't seem to find it just now).  These packages do not appear to be available for oneiric: I believe this functionality is being integrated with the language-support tool, and do not know precisely how it will be represented when 11.10 is released.


Is formatting a portable drive necessary for installing Kubuntu?

Update for Ubuntu 18.04 and above
New installations of recent versions of Ubuntu does not use a separate swap partition any more. They use a swap file by default.
Original Answer
Ubuntu cannot be installed on NTFS, FAT32, or any other Windows formatted hard drive. It uses at least two partitions, the main one is called / and is formatted ext4. The second one is called swap and has its own format as well called swap.
If you don't want to use the portable drive to share data with Windows, you can let Kubuntu install take over the whole disk and do it's formatting and partitioning during installation. This way, the drive will not be readable when plugged into a Windows machine (without installing additional software in Windows).
If you want to use the drive with Windows, you will have to make a NTFS partition along with the / and swap needed by Kubuntu. In this case only you have to make the partitions and format them in their respective format by yourself. This can be done during the installation process itself.
Hope this helps


Dropbox 3.2.9 ignoring local themes / missing notification icon

So, no complete answer in over two months?

Allllllll-righty then!

Now presenting... my ever-so-embarrassing, not-really-to-be-recommended, disgustingly cringeworthy hack:

Find your notification icons in the .dropbox-dist directory, which might be in ~/.dropbox-dist or /var/lib/dropbox/.dropbox-dist. Inside this, the icons are in the folder dropbox-lnx.x86_64-3.2.9/images/hicolor/16x16/status (or similar, your path may differ depending on the version and build used).
Determine the colour of your xfce4-panel. This is easy using a tool like Gimp with the colour picker tool (). Mine happens to be #242424.
For each of the notification icons which are PNG images with transparency, open them with Gimp. Yes, that's right folks, I'm going to change that background from transparent to a solid color (in my case, #242424).

The result:

Looking good. This is perfectly fine for me, as I don't change the xfce4-panel color. However, some things to note:

You'll need to restart dropbox for the change to take effect:

~$ dropbox stop
~$ dropbox start

If you edit the stock 16x16px icons, you might find them centred with a 2px #EFEBE7 border if your icons are 22x22px. I addressed this by simply enlarging the icons to my required size (22x22px).
If Dropbox is ever updated, your icons might be blown away. If you're going to try this yourself, keep a backup copy of your icons outside the Dropbox directory. Or, you can just download them from here (if you also use #242424 for your panel color):
 (dropboxstatus-logo.png)
 (dropboxstatus-idle.png)
 (dropboxstatus-busy.png)
 (dropboxstatus-busy2.png)
 (dropboxstatus-x.png)


Unable to reinstall python after accidetally deleting the python interpreter

remove the libraries that came along with python using,

sudo apt autoremove

then update,

 sudo apt update

then install python by,

sudo apt-get install python2.7


Probably the Gnome services such as gnome-keyring-daemon and gnome-settings-daemon are not running when you are logged in.

AFAIR you can change this: choose settings > settings manager > session and startup > advanced and enable Gnome services

Another way to avoid typing in your password every time, is to use the following commands once after system startup in a terminal

ssh-agent

ssh-add <add path if not standard key>

you will be prompted for your password to your key and the agent will store it until next reboot.

HTH,

s1mmel


How to restrict some websites in Ubuntu 14.04

The easiest way, which works system-wide, is to set up entries in /etc/hosts

For example, add the following lines to the end of /etc/hosts, one for each site you want to block:

127.0.0.1 example.com
127.0.0.1 www.example.com
127.0.0.1 example.net
127.0.0.1 www.example.net

This tells the system's DNS resolver "please override the name to IP resolution for these host names" and since it overrides it to 127.0.0.1, those sites won't work.

Note that it is possible for users to circumvent this by using an HTTP proxy in the browser or if they were somehow to use an alternative DNS resolver, or if the site accept connections based on IP address only, and so on.


'apt-get upgrade' vs 'apt-get install --only-upgrade'

You want to use apt-get dist-upgrade for this.

upgrade
upgrade is used to install the newest versions of all packages
currently installed on the system from the sources enumerated in
/etc/apt/sources.list. Packages currently installed with new
versions available are retrieved and upgraded; under no
circumstances are currently installed packages removed, or packages
not already installed retrieved and installed. New versions of
currently installed packages that cannot be upgraded without
changing the install status of another package will be left at
their current version. An update must be performed first so that
apt-get knows that new versions of packages are available.

dist-upgrade
dist-upgrade in addition to performing the function of upgrade,
also intelligently handles changing dependencies with new versions
of packages; apt-get has a "smart" conflict resolution system, and
it will attempt to upgrade the most important packages at the
expense of less important ones if necessary. So, dist-upgrade
command may remove some packages. The /etc/apt/sources.list file
contains a list of locations from which to retrieve desired package
files. See also apt_preferences(5) for a mechanism for overriding
the general settings for individual packages


How to restart only missing/invisible mouse pointer/cursor?

this may fix the problem.

If you are stuck with no mouse movement on your laptop (touchpad) then press the key combinations Alt+F2 and type in

gksudo modprobe -r psmouse

Type in the password, press enter, and then press Alt+F2 again for entering the following

gksudo modprobe psmouse

Thats it. Your mouse pointer will start working again.

If you like to do it through the terminal, then type in gnome-terminal after pressing Alt+F2
When the terminal open up type the following

sudo modprobe -r psmouse

or

sudo modprobe psmouse

If your usb mouse is getting stuck, then use the following command after pressing Alt+F2

gksudo /etc/init.d/hotplug restart


Can't launch jd-gui on ubuntu 14.04 64 bits

I figured this out

I have to install the correct version of the libgtk2.0-0 package for my release and architecture.  for my  which was missing in my machine.

commands I used are :

sudo apt-get update
sudo apt-get install libgtk2.0-0


No local console (just Ubuntu start screen) after today's kernel update to 3.0.0.14

Answering myself (as recommended ;-) ):

The nvidia drivers must be rebuilt after kernel upgrade (and BTW, dahdi drivers also).

I got local console access sending some CTRL+ALT+F1 BEFORE the nvidia driver was actually loaded into the kernel. That way I learnt it was some misbehaviour of the driver preventing me from falling back to consoles later.

Just sudo apt-get remove nvidia-current and sudo apt-get install nvidia-current did it for me.
Also: sudo /var/lib/dpkg/info/dkms.postinst reconfigure did it for dahdi.

Cheers!


At the terminal, type:

/usr/lib/nux/unity_support_test -p

You will get output that will identify capabilities of your graphics card; one of the items (the last in the list, I think) will tell you if you have "Unity 3D Support:" it'll either give you a "Yes" or a "No."


There's a couple of ways to reset gnome-terminal. One has been suggested in the comments already : remove or move the $HOME/.gconf/apps/gnome-terminal/ folder. Second approach would be to open Unity dash , search for xterm (which is a standard terminal emulator on almost any Linux) and run form there gnome-terminal -e bash which will open the shell instead of whatever command you specified. From there you should be able to reset the preferences.


How do I substitute "ls -l" with the same in "dir"?

You can add an alias to .bashrc to tell the shell on the server to run ls -l whenever you type dir, basically, just the following line:

alias dir='ls -l'

Save and exit, then run source .bashrc to reload.


Remove kdewallet password without being prompted for wifi password

According to Elder Geek in answer to a similar question from last year, "If that version of KDE has Network manager try opening network connections, go to the wireless tab and edit (or add) your wireless network info, making sure to check the box "available to all users." It won't ask for the wireless password again."


How to place custom icons (not emblems) on folders in Thunar

This feature request has come up on the mailing-lists several times, and was quite recently proposed in this discussion. However, the answer from Simon Steinbeiß, an active xfce and xubuntu developer, was that:

  You can use either emblems (right-click > properties > emblems) or the user-dirs (the fixed list of user
  directories can be found and modified in ~/.config/user-dirs.dirs). No support for custom
  folder-icons at the moment.

There is a discussion at the xfce forum on how thunar custom icons could be accomplished, and a patch has even been submitted for thunar. It is explained that the patch

  scans the
  thumbnaill dir and loads a custom icon if there's a file that matches
  the file name on the desktop. So a file on the desktop named foo
  will have a custom icon loaded if the image in the .thumbnails dir
  is foo.gif

However, one of the leading xfce developers, Nick Schermer, has commented that

  Non md5hash files in the .thumbnails directory is a bad idea.
    The prefix-only check if a bit flawed as well, it can be improved with a dot-check (so foo2.png is not matched).

So the method as described in the patch has not really been validated by the developers, and because it would involve a lot of time compiling thunar and its dependencies (as noted here), and then a lot of risk in installing them to your system, I would advise against trying it. You could experiment of course in a virtualised environment (virtualbox) or on a computer set aside for development, but not on a stable system.

It is usually fine to compile programs and apply patches, as I have discussed in many examples on this site, but on this occasion it is better to wait until a solution is available that has been validated by the developers.

For now the question is 'solved', but I will continue to update it and indeed research the issue to see how it could be accomplished in the manner that it is done in Nautilus.


Can't configure Canon LBP2900b printer in 20.04

The printer unfortunately does not work out of the box, you need to manually install some dependencies and then add it as "Canon Capt" source.

There is a fully automated installation script:
--> https://github.com/hieplpvip/ubuntu_canon_printer

If you prefer a manual installation, here are the ...
Basic steps for manual installation:

Install the Debian/64bit drivers from the canon webpage

Enable multiarch
dpkg --add-architecture i386

Install 32-bit dependencies
apt-get update
apt-get install libstdc++6:i386 libxml2:i386 zlib1g:i386 libpopt0:i386

Add the printer:
lpadmin -p LBP2900b -m /usr/share/cups/model/CNCUPSLBP2900BCAPTK.ppd -v ccp://localhost:59687
ccpdadmin -p LBP200b -o /dev/usb/lp0

Adjust the path to the ppd-file if necessary.

See also:

Similar question on askubuntu for 14.04.
This page on help.ubuntu.com for more, but outdated information.


Try the amazing Chrome extension Vysor.
Makes you control your phone's screen in a similar way as Dell Connect.


The error may or may not have anything to do with the issue you are seeing. What is happening is that your laptop is incorrectly sending acpid events, which results in Ubuntu thinking it is being plugged/unplugged constantly. One solution seems to be to install Keng-Yu Lin's ideapad-laptop, which seems to contain fixes for several laptops. It has not been updated since Natty, but it should still work:

sudo apt-get install dkms
sudo add-apt-repository ppa:lexical/ideapad
sudo nano /etc/apt/sources.list.d/lexical-ideapad-precise.list

Change the lines so they say natty, instead of precise, i.e.:

deb http://ppa.launchpad.net/lexical/ideapad/ubuntu natty main
deb-src http://ppa.launchpad.net/lexical/ideapad/ubuntu natty main

Now install the ideapad-laptop software:

sudo apt-get update
sudo apt-get install ideapad-laptop

After installing, reboot your computer and see if it makes a difference in either the error or the charging.


indicator-cpufreq is what you need for the panel

The daemon is the core part and plugins (I only know the panel one though ;)) let you have control over what, when, how. The indicator is one of those plugins (and the easiest one).

cpufreqd is started automatically after installing. For it to work you need either APM, a recent ACPI or PMU. And the modules cpufreq_powersave, cpufreq_userspace, and cpufreq_ondemand (you need to load these for cpufreq to work). It has a configuration file that explains all the different settings in /etc/ and has samples. What is best for you is up to you to decide ;)

An alternative would be TLP.

Just a warning: the tools for management should already be in the kernel (and working). It is called "laptop-mode-tools".


Upstart reports "Job is already running" but process doesn't exist, and no PID file

I think the answer to your problem is at http://efiop-notes.blogspot.com/2014/06/how-to-set-pid-using-nslastpid.html, which is a much starter way of taking care of upstart issues than by cycling through all pids until you create the one that upstart is looking for.

Simply compile the program with the C compiler and run it as sudo with the PID that upstart knows about, and Voila!

HTH,
Shailen


Having trouble installing Lubuntu. Lenovo C100

The most obvious difference between Lubuntu and Ubuntu that could make them behave differently so early in the boot process when booting from external media is that they have separate .iso images. Maybe your Lubuntu .iso image is corrupted.

You should MD5 test it to see. If that shows an error, download it again, MD5 test the new one, and assuming it passes, re-write it to the USB flash drive or burn it to a new CD/DVD.

If you can get to the point where you select between options like "Install Ubuntu" and "Try Ubuntu without installing" using the arrow keys on the keyboard, then select "Check disc for defects."

Note that if you were checking a regular Ubuntu CD/DVD/USB, you'd have to press a key when the keyboard and person icons appear at the bottom of the screen, to see this menu. But with a Lubuntu CD/DVD/USB, the menu always appears...unless the installation media fail to work properly somewhere before that point.

While this is not precisely the problem you're describing, this may be useful as well:

My computer boots to a black screen, what options do I have to fix it?

If none of this helps, pleased update your question (by editing it) with detailed information about what you tried and what happened. Please also specify exactly what you're referring to as the "load screen." If this says Ubuntu or Lubuntu and with dots under it, that's the splash screen--press Esc or F2 to see the messages behind it (and you can include information about what they say in your question).


Ubuntu 16.04 LTS doesn't wake up from suspend, furthermore, no "Hibernate" button

If yours is using the Cherry Trail Atom SOC, then according to this, Intel has not created (or will not support) Linux drivers. This means that currently you will have issues with:

Hibernation
Suspension (link has a suggestion to disable accidental suspensions)
WiFi (possibly fixable - see link)
Keyboard's Hotkeys
Integrated Audio


tar -tvf /path/to/tape should do the trick. If its a big archive, then pipe through more
e.g. tar -tvf /path/to/tape | more


For the error with signature:

sudo gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 5A9A06AEF9CB8DB0
sudo gpg --armor --export 5A9A06AEF9CB8DB0 | sudo apt-key add -

Then,
    sudo apt-get update
    sudo apt-get upgrade

The reason you need to do this is that you added a PPA to your sources.list without trusting the key it uses to sign packages.


Can't connect to the Internet because of "no network interface"

You must first reconfigure network interfaces:

sudo ifconfig eth0 up

sudo ifconfig

You must see:

eth0Link encap:Ethernet HWaddr 00:11:5b:91:25:3e
inet addr:xxx.xxx.xx.xx Bcast:xxx.xxx.xxx.xxx Mask:255.255.0.0
inet6 addr: fe80::211:5bff:fe91:253e/64 Диапазон:Ссылка
ВВЕРХ BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:648009 errors:0 dropped:0 overruns:0 frame:0
TX packets:1075413 errors:0 dropped:0 overruns:0 carrier:0

Then install pppoeconf utility (sudo apt-get install pppoeconf) to connect to the internet.
After installing pppoeconf, run sudo ppoeconf
and use this utility to check your network drivers. You must choose the interface (eth0 or eth1) to connect to your dsl-modem, login and then enter password.


Xerox Workcentre 3025 scanner is not working (Ubuntu 18.04)

If you edit the file xerox_mfp.conf that sits inside /etc/sane.d with the command

gedit admin:///etc.sane.d/xerox_mfp.conf

with

#Xerox WorkCentre 3025
usb 0x0924 0x42da

I wonder if that would help; do a reboot after you edit the file;


There is no problem in changing the partition layout of the SD card before you plug it into the RPI.   However because the root filesystem is ext4 then its easiest to use a Unix/Linux computer to adjust the partitioning.
parted or gparted on another Raspberry Pi, Mac or Linux node are easily capable of this.


How do I disable these GNOME shell extension prompts on Ubuntu 18.04?

It seems your GNOME shell extensions list got synced and thus the browser is always trying to install the "missing" extensions once you launch it. After opening Firefox, do the following:

Open the 'Add-ons' tab (press Ctrl+Shift+A).
Look for the 'GNOME Shell Integration' extension in the Extensions section and open its preferences.
Select No for the 'Synchronize GNOME Shell extensions list' option.


WiFi adapter is not found and no internet even on lan

I manage to connect to the internet using only the terminal. I created a hot-spot using my phone without password. It is important to be without a password, because connecting to the terminal allows only WEP secured passwords, but my phone supported only WPA2 protected passwords.

sudo ip addr flush dev wlp3s0 It is not a necessary step, but it will clean if there is any other connection already
sudo ifconfig wlp3s0 down Switched off the adaptor
sudo ifconfig wlp3s0 up Switches on the adaptor
sudo ifconfig wlp3s0 essid [name of wifi network]
sudo dhclient wlp3s0 Connects you to the wifi network from step 4

Where wlp3s0 is the name of your adaptor. You can find out what is the name of your adaptor using ifconfig -a

You can check if you have internet using ping google.com

And finally i want to say that i do not had internet because my hard disk /dev/mapper/ubuntu--vg-root was full with data and the whole system was not working currently. So you can check that was well. My problem was that /var/log/ was full with data and I just deleted the whole log folder using 'rm -rf /var/log/` IT IS STRONGLY RECOMMENDED NOT TO DO THIS UNLESS YOU KNOW WHAT YOU ARE DOING!!! IT IS ALWAYS A LAST CHOICE TO JUST DELETE THE WHOLE 'LOG' FOLDER JUST LIKE THAT! If you do this you will end up with a lot of problems and recreating the log folders of debs that need them for example: apache2, nginx, mysql... and so on. You have to create them after that manually and also deal with all the right rights for the folders and the files. So, be careful. It is recommended only to delete the deb of the log folder and then delete the log folder. I did that, because it was filling with data all the time and i had no other choice. Hope i helped.

BTW, you can check if your driver is installed running sudo lshw -C network and there should be this info

*-network
   description: Wireless interface
   product: QCA9565 / AR9565 Wireless Network Adapter
   vendor: Qualcomm Atheros
   physical id: 0
   bus info: pci@0000:03:00.0
   logical name: wlp3s0
   version: 01
   serial: 74:c6:3b:d5:45:6f
   width: 64 bits
   clock: 33MHz
   capabilities: pm msi pciexpress bus_master cap_list rom ethernet physical wireless
   configuration: broadcast=yes driver=ath9k driverversion=4.13.0-38-generic firmware=N/A ip=192.168.100.7 latency=0 link=yes multicast=yes wireless=IEEE 802.11
   resources: irq:19 memory:9b100000-9b17ffff memory:9b180000-9b18ffff

  driver=ath9k driverversion=4.13.0-38-generic


How do I keep my nvidia card's refresh rate at 75 hz?

Use gksu nvidia-settings as suggested in the comments

Once you have  adjusted your settings, click the "Save to X Configuration File" button. When asked if you wish to merge your changes, say no.

Make sure the "Merge with existing file" box is unselected.

See https://help.ubuntu.com/community/NvidiaMultiMonitors#Saving for details.


Whenever I boot I get Visual Artifacts, why? Is there a way to fix it?

Two possible causes of your problem:

Your Nvidia GeForce 6150 SE nForce 430 graphics card is going bad. This would explain why everything related to graphics is causing your system to freeze. A bad graphics card is a common cause of this problem.
You don't have the minimum system requirements necessary for installing Ubuntu 12.04. This is less likely in my opinion, because Ubuntu 12.04 only requires 384MB RAM. However the Nvidia GeForce 6150 SE nForce 430 graphics card shares up to 256MB of your system RAM, so that would increase your minimum system requirement for RAM up to 640MB. If that is your problem, then you would need to install a more lightweight *buntu version such as Lubuntu 13.10, which somewhat resembles Windows XP in look and feel.


The volume boot has only 40mb disk space remaining

Sorry, the following was intended to be a comment, but was too long.

@psusi The issue seems more likely to be that the Ubuntu installer provides such little space to the /boot partition ( at least on versions 12.X and older ) during a clean install. I operate a server that had 10TB of space, and while / is mounted on a partition that has a bulk of the space, /boot is mounted on a smaller partition the installer automatically created that is just 229M for my environment.

@Anees You can reduce the size of / and then increase the size of /boot , but given the risks and potential need to turn off the machine ( might not be that easy to do if it's a server ) , in all likelyhood, you'll probably find cleaning up some of the older versions of the kernel you have installed to do the trick with significantly less risk. IE in my environment, in which we do regular updates, I had files from July 27, 2012 for 3.2.0-29 and in upwards of a dozen for everything in between up to 3.2.0-61. For the space we have, we can easily keep 3 or 4 without a problem ( 2-3 newest, 1-2 oldest ). See How do I remove old kernel versions to clean up the boot menu? for a better breakdown/how-to.


How do I copy packages within a PPA from one release to another? (nonsensical "same version already has published binaries" error)

You get the error because the version wasn't bumped and the version is exactly the same. You're not supposed to have the same package with the same version in the same ppa. For releasing with multiple releases I normally either bump the minor version:

mypackage_1.2-0ubuntu1 < for lucid
mypackage_1.2-0ubuntu2 < for maverick

Or I actually name them per release.

mypackage_1.2-0lucid2

There is supposed to be a more formal, debian way of doing this, but I haven't found it.


Uri Herrera is correct - Plymouth is not loading correctly most likely due to changes in your config by the graphics driver if you have recently updated it.

A good explanation of what Plymouth is and what it does can be found here

If you would like to try to fix it you can install Super Boot Manager, this link to an OMGUbuntu article should give you all the info you need, you can install via PPA - remember when making system changes with any software you do so at your own risk so back up first!!


How do I format my computer to be unrecoverable?

You can securely delete all the files with a program like shred
It overwrites the files before deleting them, so that a recovery wont get success

You can also overwrite all the HDD and, then, format it

See shred program : http://manpages.ubuntu.com/manpages/trusty/man1/shred.1.html

Or overwrite with dd if=/dev/urandom of=/dev/sdX bs=4096 status=progress then format the drive


"isolinux.bin is missing or corrupt", when attempting to boot using disk in USB CD DRIVE

You should First check the MD5sum Before write to CD or USB. In your case The .iso you downloaded and burned on disc is faulty. You have to download .iso file again.


Try Jupiter. It gives you a bunch a quick access controls for your hardware including a CPU performance mode.

I have an HP laptop as well and it also gets hot. Jupiter reports that it's normally 85°C, which is pretty hot. However after setting the Performance mode to "Power Saving" the CPU temp dropped a full 10-20°C. Now it's a whole lot cooler and the fan isn't running as hard.

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

For more info and how to change Celsius Temp to Fahrenheit go here:
http://www.ubuntugeek.com/jupiter-light-weight-power-and-hardware-control-applet.html

I'm assuming Jupiter is essentially under-clocking the CPU which means that things will be a bit slower. However, that saves power(longer battery), keeps it cool(healthier for the CPU), and if you ever need more speed the tray icon gives you two-click access for cranking it back up.


How do I either find and delete a particular font installed by me or reset my fonts to the default ones?

Font Manager is a simple tool to install/remove individual fonts or collections.


Redshift/F.lux not working on Ubuntu 16.04 with Intel HD Graphics

This is more a comment/further question than an answer:

I have the same trouble. However I use a script to do screen rotation, and so I discovered redshift works when I rotate the screen.

More precisely the behavior is as follows:

1) I run

redshift -v

and it tells me the color temp is 5500K, but there is no visible changes.

2) I then flip my screen and the color temp actually changes. I flip it back
and the change remains.

Similarly when when the color temp changes back to normal I can see the change only after flipping the screen.

Thus a very crude work around is to execute:

xrandr -o left;   xrandr -o normal

just after you run redshift. This flips the screen left and then back to normal and works on my set-up.

Of course it would be much better if someone actually figured out the exact problem in redshift etc..


Go to System Settings > Click on Mouse and TouchPad & Check Double Click to low


HP mini 5102 Ethernet does not work after suspend on Lubuntu 12.10

reloading the driver by using below desn't work.

sudo rmmod sky2

sudo modprobe sky2

I have been playing with it around and noticed that when i plug the network cable in and suspend the system without taking the cable out, after switching the system back on ethernet adapter remains fine and connection is fine. But if I then plug the cable out and suspend the system again it freezes and only reboot is left. There is an information on the screen "panic occured - switching back to text console" but i cannot do anything.

It really looks like there is a bug in the kernel but I don't know what to do with it? How can i reported and to who?


Evolution is a desktop email client. It is useful if you want to manage your email from a program (similar to using outlook on a windows PC) rather than using a web interface. It can also manage calendars, and with the evolution-ews extension it has exchange support which is useful for many people in businesses who use exchange for their business email.

If you do all of your email and contacts via a web interface it may be of no use to you, but it is a good fully featured mail client.


Need of drivers during installing ubuntu

Generally Ubuntu comes with all (open source) drivers already installed.
The drivers are getting installed during the Ubuntu system installation.
When you want to install proprietary drivers alternatively, you can do it.
It is recommended mainly for NVIDIA graphics and some wireless cards.
You can select them from Additional Drivers tab in Software & Updates.


How to identify rarely played music files in Rhythmbox?

Rhythmbox has a play count column which can be enabled from the preferences dialog. Try Edit > Preferences and select the play count option. Then in the main Rhythmbox window click on the play count column heading to sort (or click again to reverse-sort) by play count.


Scripting question (youtube-dl and xclip)

You almost had the code:

youtube-dl -l --extract-audio "$(xclip -o)"

$(command) executes command and $(...) is then substituted for the standard output of command. The quoting is necessary to prevent output containing whitespace from breaking the command.


How to remove Intel's Open Source Technology Center Driver?

All right. I have a history of answering my own questions, and here goes again:

Thanks to Saurav Kumar, I had another look at the second link I put in my question. Here's what you gotta do in Ubuntu 13.04:

Open the terminal and create a new file:

gksudo gedit /etc/apt/preferences.d/intel-removal

Copy+paste the following contents (MAKE SURE THAT THERE ARE NO TABS, SPACES OR INDENTS BEFORE ANY LINES, and replace raring with your own release):

Package: *
Pin: release a=raring*
Pin-Priority: 1001

Package: *
Pin: origin download.01.org
Pin-Priority: -100

Save the file and close gedit.

Run:

sudo apt-get dist-upgrade

In my case, this simply downgraded and removed some packages. I cannot guarantee what it will do on your system, because I'm a noob like that. So run at your own leisure, but don't blame me if things go wrong.

Now the cleaning up bit:

sudo rm /etc/apt/preferences.d/intel-removal
sudo rm /etc/apt/sources.list.d/intellinuxgraphics.list*
sudo apt-get update

Followed by removing the actual drivers (i915-3.9-3.8-dkms WILL be different depending on your version of Ubuntu):

sudo apt-get purge i915-3.9-3.8-dkms intel-linux-graphics-installer
sudo apt-get autoremove

Reboot, et voilà, we're done. Thanks to the author of the below blog post and Saurav Kumar.

Reference: http://theclonker.de/?p=89


How to remove 'system settings' from title bar of Ubuntu 12.04 LTS

These cannot be removed from the power-cog.


You may have a hardware issue as it won't boot the DVD either.  follow the directions for clearing NVRAM on your motherboard, try again. If that doesn't work, you'll likely have to troubleshoot the hardware.


How do I get the linksys WUSB6300 wireless adapter to work on linux

You need to install a driver for this dongle. Connect to internet another way and run in a terminal

sudo apt-get install git dkms
git clone https://github.com/abperiasamy/rtl8812AU_8821AU_linux
cd rtl8812AU_8821AU_linux
make
sudo make install

Then reboot, insert the dongle and test. If there are any errors while running comands, then post them to your question.

To set it up permanently run these commands

cd ~/rtl8812AU_8821AU_linux
sudo make uninstall
make clean
sudo cp -R ~/rtl8812AU_8821AU_linux /usr/src/rtl8812AU_8821AU_linux-1.0
sudo dkms install -m rtl8812AU_8821AU_linux -v 1.0

The driver will be installed using DKMS.

If the driver is installed first time the commands are

sudo apt-get install git dkms
git clone https://github.com/abperiasamy/rtl8812AU_8821AU_linux
sudo cp -R rtl8812AU_8821AU_linux /usr/src/rtl8812AU_8821AU_linux-1.0
sudo dkms install -m rtl8812AU_8821AU_linux -v 1.0


if you're having an issue with a package disappearing, it may have been merged or renamed to another package.   To find out http://packages.ubuntu.com/natty/  search for the old package name.  At the bottom there's a list files option.  In this case I used libcli_uno.so

sudo apt-get install apt-file
sudo apt-file update
apt-file libcli_uno.so

Yes, there is no package that provides it at the moment

If you're using those two debs, I would move them into a separate folder.  Then go there and dpkg -i *


There seems to have been a similar question at here. The two solutions they suggest:

Change the owner of the file
Run graphical applications as root using gksu / gksudo, or using kdesu in Kubuntu (as opposed to sudo)

Extra: why you should not run GUI applications with sudo