A few things to check or remember
1. Check if another wireless device will connect and surf.  Ethernet is wired and a router can work fine using the Ethernet while the wireless section is kaput.
2. Check your Firewall as that may blocking access to wireless connections.
It appears that your computer is working correctly, you are just blocked.  You can also try   'dhclient wlan0' which should reset your IP and may fix the issue.


If you just need to use the serial port, there's no need to change the filesystem permissions.

You can add yourself to the dailout group:

sudo adduser $USER dialout

(See this answer)


How do I query Ubuntu One account information?

Yes. Ubuntu One provides an OAuth-secured Web API for account details; the OAth credentials of the local user are accessible via the freedesktop.org secrets keyring service. Of course, you can't read these credentials willy-nilly, as the user needs to password-unlock them.

Fortunately, you do not need to navigate the maze of technologies on your own (as I did), but can instead can use a handy tool Ubuntu One provides:

u1oauthrequest https://one.ubuntu.com/api/account/

If the current user doesn't have a U1 account, this will raise a CredentialsNotFound error. Otherwise it will return a server response in the form of a JSON string. Check the 'status' value to make sure the authentication went through ('200' indicates success). On success, the JSON will have the values:

  username, openid, last_name, features, couchdb_root, nickname, id, subscription, first_name, couchdb, total_storage, current_plan, email, detailed_plans

Wield your API powers responsibly.


Can I use external HDD with NTFS partitioning to regularly read/write on it with UBUNTU?

Short answer: yes you can.
Longer answer: Ubuntu for a long time now supports reading and writing of ntfs formatted partitions out of the box (in contrast to for example Apple OS X). It also comes with file system repairing tools (ntfsfix).
Small caveats

Because ntfs is a proprietary format, the only tools that can fully and comprehensively repair ntfs volumes are the Windows tools. Therefore, do use the ntfs file format only when you wish ex-changeability with Windows, and when you can connect the volume now and then to a Windows machine for checking the file system and keeping it healthy.
Linux will only mount the drive read and write if the file system is clean. Therefore, always fully disconnect the drive while in Windows. For a removable drive, remove it using the tray icon. For an internal fixed drive, make sure Windows is shut down completely (i.e., no hibernation, no fast start) before accessing the drive in Linux.

Some explanation on fast start: Windows has a fast start feature that speeds up subsequent reboots. One of the tricks there is that the drives are not fully closed when Windows is closed. Thus, to seamlessly switch between Windows and Linux, make sure to disable the fast start feature.


See man screen, it says, in part:

DESCRIPTION
       Screen  is  a  full-screen  window  manager that multiplexes a physical
       terminal between  several  processes  (typically  interactive  shells).
       Each  virtual  terminal  provides the functions of a DEC VT100 terminal
       and, in addition, several control functions from the ISO 6429 (ECMA 48,
       ANSI X3.64) and ISO 2022 standards (e.g. insert/delete line and support
       for multiple character sets).  There is a scrollback history buffer for
       each virtual terminal and a copy-and-paste mechanism that allows moving
       text regions between windows.

I use it on CTRLAltFn screens all the time


Can I reuse partitions for new instalations (without loosing data)?

The simplest way is to make 2 backups:

1 system backup (use http://CloneZilla.org disk-to-image)
1 data backup (use whatever software you're using now).

Read here for more info.

Then, boot from the LiveCD, format both sda3 (system) and 4 (swap) (without repartitioning) and continue the install.

If anything goes wrong during the installation or if you accidentally format one of your data partitions (sda1 and 2 presumably) with compatibility, just restore the system backup...

After really bad stuff happening, restore both the system and data backup.


If you want GNOME to start automatically, try installing gdm. GDM is the default X display manager (which provides the login screen, and launches GNOME on login), and it should automatically start on boot.


Macintosh keyboard layouts are available on Ubuntu. Go to System Settings > Keyboard Layouts.

In this window, you can manage your keyboard layouts, i.e. you can add Macintosh layouts and set them by default. ;-)


I have idle3 installed but get a "Command 'idle3' not found" error when I try to invoke it

The default Python in Ubuntu 18.04 is Python 3.6.7. Typing the command idle in the terminal starts IDLE (using Python 3.6.7). You can also start idle and idle3 by clicking on their icons in the Dash.


Share Internet to Ethernet network from wireless connections with netplan

The current answer is that this isn't possible in just the config file. You need to enable traffic routing and proxy ARP and DHCP requests.
A full guide can be found here.


Ubuntu 18.04 server partition becomes full randomly

One thing that fits your description is:

Your /tmp directory getting used up by the applications running on your server and becoming full. The /tmp directory gets emptied upon reboot... hence the reduced partition size.

To check the usage of the /tmp directory please, run the following command in the terminal:

sudo du -hsc /tmp

To watch the usage of the /tmp directory in real time, please run the following command in the terminal:

sudo watch du -hsc /tmp

To exit real time, please press Ctrl + C.

To empty the /tmp directory without rebooting, please run the following command in the terminal:

sudo rm -rf /tmp/{*,.??*}

If you get an error like bash: /usr/bin/sudo: Argument list too long, this means your /tmp directory contains more files then rm can handle at once. To overcome this please run the following command instead in the terminal:

sudo find /tmp/{*,.??*} -exec rm -rf {} \;

If you get errors during this operation like No such file or directory., please ignore them as files are being added and deleted by system all the time in the /tmp directory.

If this solves your issue:

You can add a cronjob to run the empty command daily.

If this is not the case:

I recommend you investigate what is eating up your space by running the following command in the terminal:

sudo du -hca --time / | grep -E "^[0-9\.]*[G]"

This will list all the directories and files on your system with sizes more than 1G along with their modification dates.

  To check for certain sizes:

  For example to list only directories with 3G size, please use
  the following command:

sudo du -hca --time / | grep -E "^[3][0-9\.]*[G]"

  You can change the number [3] to check for directories with say 5G
  size like so:

sudo du -hca --time / | grep -E "^[5][0-9\.]*[G]"

  and so on.

Please, inspect the output with focus on recently modified ones and check if you see anything out of the norm.

You may need to continue monitoring and noting the size changes until you reach the moment where your partition is nearly full. You will then have a better understanding on what is causing this issue and will be able to make a decision.


How to use anacron with cron to perform missed tasks by cron?

From man anacrontab:

  The period is specified in days, the delay in minutes.

Unfortunately, this means that anacron is inappropriate for determining a skipped hourly job.

Consider adding a bit more time-logic to your script and making it a single script:

// NOT REAL CODE. Just an example of the logic.
currently_banned = am_I_banned?()
if 14 <= current_time().hour <= 21
    if currently_banned is True:
        unban()
    else:
        do_nothing()
else:
    if currently_banned is False:
        ban()
    else:
        do_nothing()

You can put the single script in cron.hourly, and can run the script at boot. Remember to add the script to your regular backup schema.

Alternately, you can trigger the job with a systemd timer/service combination, like all the other periodic services on your system. Systemd can also trigger the script at reboot, Systemd has a learning curve but I have found the learning to be very worthwhile.


Is there any software like Carnac in Ubuntu

Screenkey is what you are looking for. An old version can be found on repo:
sudo apt install screenkey

This is a good website about it - it focuses on when you are sharing your screen, and need others to see what you press.
Kudos @Marslso


Ubuntu 12.04 LTS - unable to write bytes broken pipe - Precaution

From the above error we hope so the drive which you have installed is not mounted. This might be causing the issue. So please try the below command,

mount -o remount,rw,errors=remount-ro /

After doing so please check the below,

dkpkg-reconfigure lightdm

Once you are done. Please restart the machine and check.


Best way to Install LXDE (Not LXQT) on Ubuntu 20.04

Install LXDE on Ubuntu 20.04
Using the terminal, type the commands below:
sudo apt update

sudo apt install lxde

When installing the display manager options will appear:
gdm
lightdm
select = lightdm
sudo apt purge gdm3 gnome-shell

sudo apt autoremove

sudo apt install xorg file-roller

sudo reboot

You will get the LXDE Desktop Environment,
not Lubuntu or LXQT


How do I ban a wifi network in Network Manager?

Hm... not sure why NeworkManager behave this way. This should only happen if you have already added the wireless network in the list and Connect automatically is checked.... maybe is from a connection configured by another users and made available to all users.

You can try to manually add the wireless network and the uncheck Connect automatically.


How to shorten a long path that points to the root of a hard drive?

The usual ways of dealing with this are:

Make a symlink in your local directory
 ln -s /very/long/path/to/some/folder/hidden/deep/in/the/file/system ~/foo

You can now do cd foo from your local directory and that will take you to /very/long/path/to/some/folder/hidden/deep/in/the/file/system. Depending on how your system is set up, you may have to use cd -P foo for your setup to recognize that you are in /very/long/path/to/some/folder/hidden/deep.in/the/file/system and not in ~/foo. To illustrate:
 $ ls -l foo
 lrwxrwxrwx 1 terdon terdon 61 Jan  7 14:46 foo -> /very/long/path/to/some/folder/hidden/deep/in/the/file/system
 $ cd foo
 $ pwd
 /home/terdon/foo

Now, do the same thing but with cd -P:
$ cd -P foo
$ pwd
/very/long/path/to/some/folder/hidden/deep/in/the/file/system

Make an alias for the command. Open your shell's config file (use ~/.bashrc if you are using bash) and add this line:
 alias cdfoo='cd /very/long/path/to/some/folder/hidden/deep.in/the/file/system'

Then, save the file, open a new terminal, and run cdfoo. That will take you straight to /very/long/path/to/some/folder/hidden/deep.in/the/file/system.

Store the name in a variable. Open your ~/.profile file (or ~/.bash_profile if that file already exists and you are using bash) and add this line:
foo="/very/long/path/to/some/folder/hidden/deep/in/the/file/system"

Now, either log out and log back in or run . ~/.profile to read the new variable definition. From now on, you will be able to do cd $foo and move to the target directory. Note that, if your path contains spaces or any other whitespace or globbing characters, you should quote the variable: cd "$foo".

Of the three choices above, the first (symlink) and the third (variable) let you do everything you want. With a symlink, you can cd foo and cp bar/file foo/ and everything else. What will be displayed in your prompt when you cd into it will depend on how your prompt is set up.


Ubuntu stopped detecting my second monitor, and my lap top screen

In the absence of the linux version 3 approaches, without using the command line, are suggested:
1st:
Installation of a prior nvidia driver on Software and Updates > Additional drivers > choose other nvidia driver version > reboot the laptop > if you don't see the second monitor go to the screen settings and check if the second monitor is selected as active.
If not working select another nvidia driver using the above procedure.
2nd:
Reboot the laptop and press Esc in order to enter the GRUB menu > select a prior version of the ubuntu kernel; example: Ubuntu, with 5.X.X-XX-generic > if you don't see the second monitor go to the screen settings and check if the second monitor is selected as active.
3rd:
Reboot the laptop > on the users login screen select Configurations/ Options > select Wayland


Syntax error when signing onto the bash subsystem (WSL)

First, you need to quote the directory paths that include white spaces and special characters, or escape each of these characters by back slash - reference.

Second, the canonical way to change the PATH is:

export PATH=/some/new/path:$PATH

Thus you are adding some new path in front to the existing value of PATH, otherwise you wont be able to execute fluently couple of commands that are located in the default path.

Third within WSL, by default, the Windows drives C:, D: and so on, are mounted under /mnt - i.e. /mnt/c, /mnt/d, etc. Here is example:

export PATH='/mnt/c/Program Files (x86)/Common Files/Oracle/Java/javapath_':$PATH

Forth, there shouldn't be available file /.profile, it must be located in the users home directory ~/.profile ($HOME/.profile). Also your .profile file looks incomplete here is how the default one looks like: WSL .profile. In the profile file that is posted within the question the .bashrc file is not sourced.


Is it possible to do a remote wipe of a system?

Prey has some limited wiping ability. It can delete some files (including passwords an thunderbird mails) and can lock the computer.

It's way easier to setup and use than a ssh server, but it's much less flexible and powerful.


Nice question!

The script below creates a logfile: ~/viewport_log.txt in your home directory, where it reports the current session's viewport (workspace) usage time per viewport.

The report is updated once per two seconds, looking like (in a quick run):

workspace1 0:00:24
workspace2 0:00:05
workspace6 0:00:04
workspace8 0:00:05

in the format

hours:minutse:seconds

As you can see, I only used workspace 1,  2, 6 and 8.

How to use

The script uses the wmctrl -d command to get the current viewport data, so you need to install it first:

sudo apt-get install wmctrl

Then:

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

python3 /path/to/workspace_log.py

Navigate through the different workspaces and open the file ~/viewport_log.txt to see the result (alternatively, run in a terminal cat ~/viewport_log.txt for convenient reading, since the log is updated once per second).
if all works as expected, add the command to your startup applications. Since it will most likely crash if the script is started too early (before the desktop is fully loaded), you probably need to add a small break in the startup command to make it work as a startup application, so the command then is:

/bin/bash -c "sleep 15&&python3 /path/to/workspace_log.py"

To add it to Startup Applications: Dash > Startup Applications > Add, and add the command.

The script

import subprocess
import os
import time

# define / clear log file
home = os.environ["HOME"]
logfile = home+"/"+"viewport_log.txt"
open(logfile, "wt").write("")
vplist = []

def get_res():
    # get resolution
    xr = subprocess.check_output(["xrandr"]).decode("utf-8").split()
    pos = xr.index("current")
    return [int(xr[pos+1]), int(xr[pos+3].replace(",", "") )]

def get_dt():
    # get the current viewport
    res = get_res()
    vp_data = subprocess.check_output(["wmctrl", "-d"]).decode("utf-8").split()
    dt = [int(n) for n in vp_data[3].split("x")]
    cols = int(dt[0]/res[0])
    curr_vpdata = [int(n) for n in vp_data[5].split(",")]
    curr_col = int(curr_vpdata[0]/res[0])+1; curr_row = int(curr_vpdata[1]/res[1])
    return str(curr_col+curr_row*cols)

def time_format(s):
    # convert time format from seconds to h:m:s
    m, s = divmod(s, 60)
    h, m = divmod(m, 60)
    return "%d:%02d:%02d" % (h, m, s)

current_time1 = float(time.time())
curr_dt1 = get_dt()

while True:
    time.sleep(2)
    curr_dt2 = get_dt()
    if curr_dt2 == curr_dt1:
        current_time2 = float(time.time())
        span = current_time2-current_time1
        vp = "workspace "+curr_dt1+" . "*10
        vplist.sort(key=lambda x: x[0])
        if not vp in [v[0] for v in vplist]:
            vplist.append([vp, span])
        else:
            index = vplist.index([vplist[i] for i in range(len(vplist)) if vplist[i][0] == vp][0])
            vplist[index][1] = float(vplist[index][1])+span
        with open(logfile, "wt") as out:
            for item in vplist:
                out.write(item[0]+" "+time_format(item[1])+"\n")
    current_time1 = current_time2
    curr_dt1 = curr_dt2

Properties of the script

The script calculates the exact time span between two moments i.c.w. the used workspaces of those moments (2 seconds as it is, the interval in the line time.sleep(2)) if the workspaces on both moments are the same, the time is added to the corresponding workspace' total usage time.

If the workspaces on both moments is different, it is clear that there was a workspace switch and the time is added to no workspace's productive time; the time in the overview in ~/viewport_log.txt is therefore rounded to two seconds per period per workspace.

Edit

Running the script above in the background, you can view the current usage time(s) per workspace by putting the script below under a key combination:

#!/bin/bash
lines="$( cat ~/viewport_log.txt )"
zenity --info --title='Usage per Viewport' --text="$lines"

Copy the script into an empty file, save it as view_vplog.sh
Run it, while the first script is running in the background, by the command:

sh /path/to/view_vplog.sh

Make it available (after testing) with a shortcut key combination: choose: System Settings > "Keyboard" > "Shortcuts" > "Custom Shortcuts". Click the "+" and add the command to a key combination of your choice.


How can I change the appearance of KDE applications?

you can install qt4-qtconfig :

  sudo apt-get install qt4-qtconfig

this tool to change any Qt 4 apps' theme, it's can mimic GTK theme too for Qt, but if there is any qt3 apps, use qt3-qtconfig

  sudo apt-get install qt3-qtconfig


Menu->System Tools->Time and Date.  The Unlock the settings page.  Change your Time zone to where you are located and select Keep synchronized with internet servers and close.  That should allow the automatic change to daylight savings time.


What happens if a HDD of my RAID1 setup fails?

According to your configuration, RAID 1 allows you to loose 1 physical drive.

If your RAID is available at dev/md0 you'll be able to access your data if one drive is faulty

If you want to have detail informations about your RAID, you can use the following command :

sudo mdadm --detail /dev/md0

And the result :

/dev/md0:
        Version : 00.90.01
  Creation Time : Wed Aug 31 09:38:34 2005
     Raid Level : raid1
     Array Size : 76670144 (73.12 GiB 78.51 GB)
    Device Size : 76670144 (73.12 GiB 78.51 GB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 0
    Persistence : Superblock is persistent

    Update Time : Fri Sep  9 10:50:48 2005
          State : active
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

           UUID : 48b74990:15f454d9:93947193:76d9ea46
         Events : 0.60924

    Number   Major   Minor   RaidDevice State
       0       8       19        0      active sync   /dev/sdb3
       1       8        3        1      active sync   /dev/sda3

How do you build your RAID 1 ? OK

If you want to know the state of your RAID & Drive :

cat /proc/mdstat

Could be usefull

If you want to receive mail from the mdam daemon, you should check in the manual, I think (because I don't use it, but I 've search informations for you :p)

mdadm --monitor --mail=myemail@example.com /dev/md0 &

If a failure occure you'll receive a mail. I think I'll build a VM for working with HD HA.


How do I set up multiple printing defaults for one printer?

I have three CUPS print queues configured with the same printer URI. Queue "deskjet" is configured with my local standard paper, queue "Legal" is configured with "Legal" size paper, and queue "Envelopes" is configured for #10 Envelopes. "Legal" and "Envelopes" queues are stopped (via cupsdisable).

First, add the queue in CUPS  (http://localhost:631), then use Administration->Modify Printer to change the paper type and other characteristics.

I use my setup like this:

# print to the Envelope queue ( select Envelope queue in your app)
envelope .envelope/addresses/Friend4 | lpr -PEnvelope
cupsdisable deskjet
# remove regular paper, load envelopes
cupsenable Envelope
# wait until envelope is printed, then
cupsdisable Envelope
cupsenable deskjet


In Linux you actually don't need to run "defrag" or anything like that due to the way that the ext2, ext3, ext4, and so on filesystems work.

Basically, what you'll find is that fragmentation is avoided by leaving larger amounts of space between files, and having various other built in safeguards and such.

For more information, you can read the article Why doesn't Linux need defragmenting?, this discusses the "smartness" of Linux filesystems and fragmentation.


dircolors doesn't execute the commands itself, it just outputs the commands to be executed. Passing them to eval will work.

Try this:

eval $(dircolors ~/.dir_colors)


How do i disable Logitech G430 sidetone/mic monitoring/listening?

Turn off audio loopback from microphone

Assuming you want to mute playback but not the mic itself, this thread has the solution.

Press f6 to navigate to the g430 soundcard once you're in the menu, then arrow keys to select playback and arrow down.


I won't flag your issue as duplicate of another issue on SE but it is somewhat similar to that. Please refer to this thread.

In case the Eclispe installer is not working you have an alternative way. Assuming you are on 64 bit Ubuntu you can try this.
It's the same version of Eclipse IDE and works fine in case the installer is not working properly for you.


Ubuntu 15.10 freezes on viewing YouTube video on full screen using Google Chrome

I've found a lot of similar situations, but not the same. The fix, like using BETA version of Google Chrome does not help here. The fix with disabling "Override software rendering list" in chrome://flags also does not help.

In my case, the disabling the flag "Use hardware acceleration when available" in Settings -> Advanced Settings -> System fixes the problem. The full answer, which has helped me is here. But, I think, this is a temporarily solution.

UPDATED. On Ubuntu 16.04 this bug has been fixed.


Why does my Ubuntu 18.04 randomly shut down?

In my case, it turned out to be an Nvidia driver that caused random shutdowns.  I had the driver 396.54, but removing it and installing the 390.87 fixed the problem.
You can do something like

sudo apt purge 'nvidia*'
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt install nvidia-390


Slow wacom on virtualbox. Is it possible to solve it?

Try to use the options in Virtual Box like:

Settings -> System -> Enable... (tablet)

Also ensure you have installed VB Guest Additions and the VB extension pack. And be sure to enable USB 2.0 support in USB options

Please note that Windows 7 will recognize your tablet as a touch interface and you will not see the mouse moving (although you will still be able to click). To solve this, you must disable mouse integration.


Dual video card, dual monitor setup crashes X on Ubuntu 13.10

I think nvidia geforce 210 does not have the bandwidth to support 3840 x 2160. You need a DisplayPort 1.2 capable video card./  see http://www.phoronix.com/scan.php?page=article&item=linux_uhd4k_gpus&num=2 for more help


You will find old releases by following this link.


It's a bug with your hardware and graphics drivers rather than Ubuntu and Unity. The dash is faster than it was with Ubuntu 13.04 or prior releases. If you're using open source drivers, you'll want to immediately add the oibaf PPA to get better open source drivers for your graphics card. However, since oibaf currently does not support Saucy, you'll need to edit oibaf to use raring repos instead.

sudo add-apt-repository -y ppa:oibaf/graphics-drivers; sudo sed -i 's/saucy/raring/g' /etc/apt/sources.list.d/oibaf*; sudo apt-get update; sudo apt-get upgrade -y; sudo apt-get dist-upgrade -y

Then reboot.

If you are using proprietary drivers you will need to uninstall them first. If you are using NVDIA you need to use the closed source drivers from NVIDIA instead with sudo apt-get install nvidia-current -y


error: environment has no access-key or secret-key

the error message about access-key/secret-key aren't about your ssh-key they are about your cloud provider credentials (in this case ec2). You must provide the your ec2 credentials either via the environment variablse AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY or via the configuration in environments.yaml.


gnome-terminal title appears and disappears via bash

/etc/profile sources /etc/profile.d/vte-2.91.sh which in turn sets up your $PROMPT_COMMAND to print two things: set the title (inlined in __vte_prompt_command) and set the concept of the current working directory, in order to be able to open a new terminal there (from __vte_prompt_command it's the last %s in the format string, and the corresponding call to __vte_osc7).

What I do in order to get rid of the former, yet keep the latter, is that in my ~/.bashrc I have this snippet:

. /etc/profile.d/vte-2.91.sh
if [ -n "$PROMPT_COMMAND" ]; then
    PROMPT_COMMAND='__vte_osc7'
fi

(It would probably be nicer to place it in ~/.profile instead, and probably you could omit the first line as well as the if guard then. Up to you to experiment with this.)

Note: This overall design sucks and we have a bug to clean this up: https://bugzilla.gnome.org/show_bug.cgi?id=704960


Issue with sha1 sum of windows iso with brasero

The most common reason for such a checksum mismatch
is that optical media often return garbage after the
end of the payload data.
In this case, you will have to truncate the data
stream to the size of the original image.

For example (assumung that the drive has address /dev/sr0):

ls -l the_image.iso

Divide size by 2048

dd if=/dev/sr0 bs=2048 count=$divided_size | sha1sum


How do I modify /etc/syslog.conf to send messages to specific files?

man rsyslog.conf will go a long way.

But to get you started:

*.=warn;mail.none;lpr.none    /var/log/mywarnings

This basically says all messages equal to level warn (*.warn would be warning or higher), but then exclude mail and lpr by asking for .none, to go to /var/log/mywarnings.

To exclude a priority and higher, use !. To exclude just one, it's !=. So:

mail.*;mail.!=err    /var/log/mymail


How to run docker-compose up without root privilages?

One of the reasons is that the current user has not been added to the docker group.
To check if the current user is in the docker group, we can use:

cat /etc/group | grep docker

If we do not see the current user in the output of the previous command, we will add it by using this command:

sudo gpasswd -a $USER docker

And lastly, we need to restart the docker service by using the command:

sudo service docker restart


Not exactly an answer so please treat this as a comment. I had an almost similar problem yesterday which is solved this afternoon.

My system has 3 primary partitions (Recovery, System Reserved, W7) and logical partitions for, among of which, W10 and Xubuntu 17.04. The W10 partition got erroneous and I deleted it, I thought it will be okay since I believed I can still boot to W7 or Xubuntu. I didn't ran update-grub nor grub-install. But, when I restarted, it is showing GRUB2> prompt.

Fortunately I have a couple of USB sticks with live/persistent USBs (Ubuntu 16.10 and Tahrpup), so I plugged each one of them, but the screen kept showing GRUB2> prompt. I did noticed, however, a couple of days ago when it's a cold boot (turned off laptop, plugin the USB, and press the power on), the laptop skips the USB drives (it's an old laptop so the ports are probably rusty).

So when the screen shows the infamous GRUB2> prompt, I plugged in one bootable USB, restart the laptop (instead of turned it off), and voila! The laptop reads from USB again. Next step involved update-grub nor grub-install and boot is good again.

Another workaround would probably booting a GNU/Linux ISO from Windows. I haven't tested it, so I can't comment much, but from a quick research it seems doable using third-party bootloader, or even better: using Windows own Disk Management GUI to create/attach VHD containing GNU/Linux ISO.


Wifi connetion does not start at boot at ubuntu 13.04 server

You should be able to get it added to the boot-up routine with the following:

sudo update-rc.d networking defaults

If that doesn't work or if it tells you it's already there, make sure it isn't crashing at bootup.  This will show you error messages in the log:

dmesg | tail 40

You can find more helpful information about starting services at boot-up time here.


What do "Hit:" and "Get:" mean in the output of apt-get update?

If you really want to know, you could download a copy of the source:

git clone git://anonscm.debian.org/apt/apt.git

But my sense of the status words are:

Hit:  Comparing metadata with remote site.

Get:  Fetching new, improved version from remote site.

Ign:  A non-critical error occurred.

Err:  A critical error occurred.


On some computers you have to press a key or key combination on startup to boot from CD or USB. On my Dell I have to press F12 to get a boot menu


Ubuntu 16.04 can't reconnect to VPN without restarting the network manager service

I have posted the problem on launchpad and Raymond Berger has confirmed the issue that affects the version 1.2.6-0ubuntu0.16.04.1 of the network-manager package .

Here is a solution to downgrade to the previous version of network-manager (1.2.2-0ubuntu0.16.04.4). This has solved the problem for me.

sudo apt policy network-manager
 (you should see the available versions of network-manager)
sudo apt install network-manager=1.2.2-0ubuntu0.16.04.4
 (replace by the suited version, this one works for me)
sudo apt-mark hold network-manager
 (this will prevent the update of your network-manage package)

If you want to unhold :

sudo apt-mark showhold
 (you should see network-manager)
sudo apt-mark unhold network-manager


Problem while installing pip for python 3.5 in ubuntu 16.04

With Python3 you need to apt install python3-pip


Installing a previous version of a package when you don't have the .deb available?

wget http://launchpadlibrarian.net/85655688/wget_1.13.4-1ubuntu2_i386.deb

result

--08:29:45--  http://launchpadlibrarian.net/85655688/wget_1.13.4-1ubuntu2_i386.deb
           => `wget_1.13.4-1ubuntu2_i386.deb'
Resolving launchpadlibrarian.net... 91.189.89.229, 91.189.89.228
Connecting to launchpadlibrarian.net|91.189.89.229|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 282,988 (276K) [application/x-debian-package]

100%[====================================================>] 282,988      445.03K/s

08:29:46 (443.76 KB/s) - `wget_1.13.4-1ubuntu2_i386.deb' saved [282988/282988]

As long as you have an internet connection you can wget all the debs you want. After this you can try to install it with USC (might not work due to dependencies) or with dpkg but you might need to wget the dependencies 1st too.

In this case wget ...

  Package relationships. Depends on

dpkg (>= 1.15.4)
libc6 (>= 2.11)
libidn11 (>= 1.13)
libssl1.0.0 (>= 1.0.0)

  Package relationships. Conflicts

wget-ssl

By the way: I searched https://launchpad.net for wget 1.13.4-1ubuntu2 and use the link on this page https://launchpad.net/ubuntu/precise/i386/wget/1.13.4-1ubuntu2 to locally download the file named wget_1.13.4-1ubuntu2_i386.deb (276.4 KiB).

In theory you can create the download from memory for other files.


Any chance to upgrade 12.04 to 12.04 studio including the kernel

You can easily install everything, including the ubuntustudio real time kernel. You will find detailed instructions here. In essence, you would do the following:

sudo apt-get install ubuntustudio-desktop ubuntustudio-audio ubuntustudio-video ubuntustudio-graphics linux-lowlatency

Deinstalling it later on is likewise not hard.


How do I Install Lubuntu 12.04 on a USB drive (the full installation)?

If you want to install to a USB drive you should be able to do it like any other install. Boot a LiveCD, install to the USB drive instead of the internal HDD.

You should also be able to do it with most Live USB Creators. It creates a HDD "file" with the remainder of the space. You can generally select the size of the disk with a slider or enter in MB.
You can see here it talks about Persistance. The only difference here is that, I believe, you can't do distro upgrades.


Try to re-install it

cd ~/Downloads
wget http://media.steampowered.com/client/installer/steam.deb
sudo dpkg -i steam.deb

and then do a

sudo apt-get install -f

to fix some installation issues that may happen.


There is a bug at the moment with php5-mcrypt module placing 'mcrypt.ini' in the wrong folder. Workaround is making symbolic links.

So, one of my first attempts to do that - was incorrect. And I didn't notice, that others didn't pass.

As far as I've figured that - I've removed symlinks with commands:

sudo unlink /etc/php5/apache2/conf.d/20-mcrypt.ini
sudo unlink  /etc/php5/cli/conf.d/20-mcrypt.ini

And than, added correct variant:

sudo ln -s /etc/php5/mods-available/mcrypt.ini /etc/php5/cli/conf.d/20-mcrypt.ini
sudo ln -s /etc/php5/mods-available/mcrypt.ini /etc/php5/apache2/conf.d/20-mcrypt.ini

Restarted apache and openCart install passing now.


Install Brasero using Ubuntu Software Center, restart into Ubuntu then  insert the disc once your desktop is loaded.


How to open a file on Nautilus File Dialog through HTTP URL?

Edit:
You can have a look at the bug and discussion on this page.
A workaround is also listed on this page,which suggests use of xdg-open for url

Opening a file on your Computer:
Press Ctrl+L.You can enter into address bar now.
This option is also available in the menu.Select Go>Location.
You can do that using command-line too.Like to open Downloads folder in nautilus,type nautilus ~/Downloads


We notice that the signal strength is quite low, 30/70, and that you are only able to scan and see one network, yours.

wlo1      Scan completed :
          Cell 01 - Address: <MAC 'Redmi' [AC1]>
                    Channel:6
                    Frequency:2.437 GHz (Channel 6)
                    Quality=30/70  Signal level=-80 dBm
                    Encryption key:on
                    ESSID:"Redmi"
                    <snip>

Let's force the driver to use antenna #2 to see if it helps:

sudo modprobe -r rtl8723be
sudo modprobe rtl8723be ant_sel=2

Is there any improvement? Check:

sudo iwlist wlo1 scan

If not, please retry the above sequence but with ant_sel=1 and scan again. One of the two will produce an increase in signal strength and stability. Whichever it is, make it permanent with:

sudo -i
echo "options rtl8723be ant_sel=2"  >  /etc/modprobe.d/rtl8723be.conf
exit

Of course, use =1 or =2, whichever gives the best result.


Delete button does not work inside Trash

The Delete button as you said deletes a file and moves it into the trash, but one inside it has no use since you must then click Empty Trash or right-click and select Empty Trash to remove files from inside the Trash folder...  You can also right-click a file and Restore it back to it's original location...


How do I apply tab completion on a script from any directory?

It seems you want to create a completion for particular instance of a command, regardless of how it is called (via absolute or relative path), but not others which may share the same name, but be located elsewhere. For instance, you might want completion for a script located at ~/bin/example.sh, but not /usr/bin/example.sh.

Based on the Bash Reference Manual: 8.6 Programmable Completion, bash complete does not have the functionality you desire built in. However, within your _customcomplete function, you can find the location of the script being called, using readlink, then customize COMPREPLY accordingly:

_customcomplete() {
    local CMD_NAME=`readlink -f "$1"`
    local word="${COMP_WORDS[COMP_CWORD]}"

    if [[ $CMD_NAME == '/home/user/bin/example.sh' ]] ; then
        COMPREPLY=( $(compgen -W "one two three" -- "$word") )
    fi
} &&

complete -F _customcomplete example.sh


Using

sudo mksquashfs /path/to/original/install /path/to/baskup.sqfs

should work fine. You'll need to mount the original install and point /path/to/original/install to the mountpoint.

Edit: to use it without compression:

sudo mksquashfs /path/to/original/install /path/to/baskup.sqfs -noI -noD -noF -noX

All the -no ... options specify to remove compression for as much as possible.

Reference: http://manpages.ubuntu.com/mksquashfs


Does Ubuntu One offer Windows Live Sync type services?

I believe we do not have this feature. The best way to recommend such a thing would be to file a bug in https://launchpad.net/ubuntuone-client and mark is as a wishlist.


is there an HTML5 responsive generator on ubuntu?

there are several HTML5 generator I've used generators online but I think UIkindle HTML UI Builder windows tool will help you to build your web application, to execute this software under ubuntu you have two possibilities with either via wine or install them in the virtual machine.
 to get an idea about this tool see this video


How can I store what video I am watching using Python in Ubuntu?

If I understand you correctly, you would like to extract the local videos you're watching, not things like Youtube?

In that case, you might want to have a look at the Gnome Activity Journal. It tells you what you've watched and when you did it, by time and date. This is accomplished using Zeitgeist, for which there is a library for Python if you want to do specific things with that data. This is also the same system that's used to display what files you've used in Unity Dash. If you're not aware of it, there is a special tab in the dash that shows you the last files you've used and you can search. I did that only a few hours ago, when I wanted to see which episode of the Family Guy I watched last. So I just did Super+F and entered "family". If you want to remove entries from the log, you need Gnome Activity Journal, or you make something yourself, of course.

Zeitgeist also stores which apps you've used to open these files, so you could for instance choose to display which files you've ever opened with VLC on Thursday afternoons during the last three months.

Zeitgeist is a really nice tool, that's severely under utilized. More apps, scripts and high-level tools, are very welcome. If you make something cool, do share! :)

EDIT: I found a link that I think you might be interested in. It's a little old, but Zeitgeist shouldn't have changed much since then. http://bloc.eurion.net/archives/2012/zeitgeist-python-api-tutorial/


I solved problem just like I did in the "stuck on boot" thread...I removed packages that were dependencies for xserver-xorg-video-nouveau, installed them, installed xserver-xorg-video-nouveau and instaled gdm3.


mouse and keyboard are not working ubuntu 17.10

Try adding acpi_osi=Linux acpi_lightback=vendor in the grub configuration file, at the end of the line starting with Linux, beside quiet splash. You can find the explanation here.


How do I display an html file on a web browser in Ubuntu?

If you have already written the HTML file, you simple must move it to /var/www/. There is already an index.html file there, you can overwrite it (it's pretty boring). Then, you can see your web page by going to http://localhost/ in your browser. If your page is written in PHP (which it seems you may have hinted at), move it to /var/www/ and delete /var/www/index.html. The rest is the same - Apache will render the PHP for you and you can still find it at localhost.


In linux communication ports are files.

If you use USB to serial adapters, the first one will be /dev/ttyUSB0 the second one /dev/ttyUSB1 etc.

You can see them by looking in /dev

Jean-Marie VE2AEY


Your question is unclear but I am assuming that  this happens either when you plug in the external drive, or possibly when trying to mount the 500Gb internal drive.

It should still be possible to mount these drives from the command line.

If you open up a terminal you can use the following command to identify the disks:

sudo fdisk -l

this will list the hard drives installed.

The internal hard drive should be /dev/sda. Divided into partitions such as /dev/sda1 etc. The external disk will probably show up as /dev/sdb1. You can often confirm which is which by the disk size given.

Next you will need to create mount points for them.

 sudo mkdir /media/disk1
 sudo mkdir /media/disk2

now you can mount them manually

sudo mount -t ntfs /dev/sda1 /mnt/disk1
sudo mount -t ntfs /dev/sdb1 /mnt/disk2

-t refers to the file system type. I am assuming these are ntfs if you have come from Windows. You will need to make sure you have the right partitions.

Once this is done you can copy files through the GUI assuming there are no other issues with the disk(s).


Why does Update Manager give me an "unable to mark upgrades" error?

This message is not unusual, because the packages shown in the screenshot (Linux kernel, headers, image) are "meta-packages", which will pull in the latest version of the Linux kernel/headers/image when they are installed. Those are the "new packages" that the message is warning you need to be installed.

It should be safe to just click on "Mark Upgrades" and proceed. If you get any further errors, please edit your question with the new information.


Yes, it is possible to convert FAT to nfts. As a graphical solution, you can install gparted, a partitioner on ubuntu. You just have to choose your empty disk and do a right-click on the empty space. Then choose Format to and click on NFTS. If you are finish, click on Apply changes.

I think you can also use fdisk program in the linux terminal. Type sudo fdisk-l to see the name of your device (empty disk). Then you have to type mkfs.ntfs /dev/sdb. Change sdb with the device name of your empty disk.


It's not your fonts, it's your system locale. run locale to get your current locale configuration.

You can use something like LC_TIME=fr_FR ls -l to get France's format in date column as an example if it's available to use on your system.

You can also use locale -a to get a list of available locales. edit /etc/locale.gen file to enable your desired locales by removing # from any line you want, then run sudo locale-gen to generate them.

After all run:

sudo localectl set-locale LANG=en_US.utf8

to set English locale as your default or change en_US.utf8 with your desired locale.


Keyboard Cursor Invisible during Rename in Ubuntu 12.04

Solved. I had to add a line to this css file ~/.themes/theme_name/gtk-3.0/gtk-widgets.css

-GtkWidget-cursor-aspect-ratio: 0.3

But thereafter, the cursor stays visible even if I remove the above line !!


Can not use add-apt-repository due to SSL connection timeout

As Call me V commented, the solution (devised by actionparsnip) to a very similar problem was to run:

sudo apt-get --reinstall install software-properties-common

Source: Launchpad Question 204415

I recommend that, before running that, you run:

sudo apt-get update

(But go ahead and run the --reinstall install command even if you get errors in the update command.)

There were other solutions discussed earlier in that Launchpad question, so if the above way doesn't work, I recommend checking that, especially if you have  (or have ever had) a proxy server configured for web access.

Ultimately, this is a crash--add-apt-repository should not behave like this, even if something goes wrong when it tries to add the repository. Therefore, if you can still produce this problem, I recommend reporting it as a bug. You can configure Apport to send the important technical information to Launchpad; see How do I submit a full bug report with crash dump and steps to reproduce?


Something wrong with apt-get in Ubuntu 15.10

To disable IPv6 support under Ubuntu, edit the following file: /etc/sysctl.conf.

net.ipv6.conf.all.disable_ipv6=1
net.ipv6.conf.default.disable_ipv6=1
net.ipv6.conf.lo.disable_ipv6=1

Adding these lines will disable IPv6 support (in loopback), a default for all etginterfaces available. You will need to reboot the network interfaces:

/etc/init.d/networking restart


How can I remap ALT+LEFT and ALT+RIGHT in Ubuntu?

See discussion here: Why does alt+left arrow go into tty now? That's a chrome shortcut for 'back' and it keeps taking me to tty or login screen, and the bug it links to.

For me,
sudo kbd_mode -s
worked, but I've yet to see if it survives restarts (Edit: it does)


What application to select to open and download programs on Ubuntu?

You needn't run a program to install these. Please open a terminal Ctrl+Alt+t and run:

sudo apt-get install wine
sudo apt-get install vlc

You could also open Ubuntu Software Center and look for and install both painlessly from there.


Instead of:

sudo ufw app info “Apache Full”
(typographical slanted queotes), use:

sudo ufw app info "Apache Full"
(straight double quotes), as per Jos.


How can I change 10_lupin file from read only mode to write mode?

Edit the file with sudo privileges:

sudo nano /etc/grub.d/10_lupin

or via

sudo -H gedit /etc/grub.d/10_lupin

If this does not work, correct the permissions - these are the default ones:

sudo chown root:root /etc/grub.d/10_lupin
sudo chmod 755 /etc/grub.d/10_lupin

And taken from your comments, the file is on a read only filesystem. Therefore you can't change the file.


Ubuntu 14.04 hangs on "Restoring resolver state..."

I kind of got this working with help from a friend - by that I mean we managed to get past the "Restoring resolver state..." and successfully log in.

The solution was two-part. I removed all packages related to latest Linux kernel (3.19.0-51) since that got updated with the automatic update that messed things up.

Use tail -n50 /var/log/apt/history.log to see what got updated (adjust -n as needed).

This got me to the login screen, but then I was unable to login. I checked for issues with "Login loop" here on askubuntu.com, but it turned out permissions were okay and the issue was not with lightdm. One of the answers pointed to an issue with graphics, so I looked around for a way to update the graphic drivers without using nvidia-current package.

I followed instructions in this OP http://ubuntuforums.org/showthread.php?t=2263316 with a couple of differences; I didn't pull the latest linux kernel packages and didn't just remove nvidia drivers, I purged them (copied from the link):

sudo gedit /etc/default/grub change line "GRUB_CMDLINE_LINUX_DEFAULT..." to
GRUB_CMDLINE_LINUX_DEFAULT="nouveau.blacklist=1 quiet splash nomodeset" #(forces low-level graphics to ensure putty does not give black screen)
sudo update-grub2
sudo apt-get purge nvidia* && sudo apt-get autoremove
sudo reboot

After the reboot I was able to login. I proceeded to install latest nvidia drivers from a .run file as per instructions, but that just threw me back to the login loop issue.

I purged nvidia drivers again, and was able to log in successfully. The downside now is that I can't seem to use the "Cycle multiple monitors" feature of VMWare Player (could be vmware tools issue, but don't want to mess with it now), but at least I can get back to work.

I'll update this answer if I get a solution that works with latest updates.


Prevent new users from being added to a group with the same name as user name and instead add to generic group?

In /etc/adduser.conf set USERGROUPS to no and USERS_GID to the GID of appdev.


thunar: is there a keyboard shortcut to toggle tree view and shortcut-pane?

Press Ctrl + B to enable shortcut pane.

Press Ctrl + E to enable tree view.

Source: https://forum.xfce.org/viewtopic.php?id=12424


Change Folder Ownership From Root To User

If you open a terminal and enter man chown you wil; be presented with nifty documentation about how to change ownership of files and folders.

Basically, you want to issue the command

sudo chown <new_owner> <path_to_file>


Easiest way to change mac address on nic is:

sudo ifconfig eth0 down
sudo ifconfig eth0 hw ether  xx:xx:xx:xx:xx:xx
sudo ifconfig eth0 up

Where xx:xx:xx:xx:xx:xx represent mac address


As said so done. I tried to set up two graphic cards but I failed. However I think my little research might be helpful for some other users.

FIRST OF ALL: BE SURE THAT YOUR MAINBOARD SUPPORTS USING TWO (OR MORE) VGA CARDS.
For example on my mainboard there's no such possibility to use both: integrated and PCI card at the same time. Only one at a time. You can check it in bios.
the HowTo is very helpful, but many things are different in Lucid (10.04) at which I worked, so I will give a little update to it. As I said: I DIDN'T SUCCEED BECAUSE OF MY MAINBOARD LIMITATIONS so feel free to edit my answer and add Your remarks to it.

1) First of all there might be no xorg.conf file in Lucid. We have to create one:

a) disable Your graphic enviroment, for Gnome it is:

sudo stop gdm

b) After it is stopped, it may look like it was suspended or sth, then press

Alt+Ctrl+F1

c) login in text mode using Your user

d) create xorg.conf file:

sudo Xorg -configure

e) the contents of the file should be written on the screen and the path to the created file should be written also (path depends on how You are logged, as super user or as Your user and just using sudo command)

f) copy created xorg.conf.new (it is created instead of xorg.conf, but it is the same)

sudo cp xorg.conf.new xorg.conf.new.CARD0

2) Turn off Your PC DISCONNECT IT FROM ELECTRICITY and remove Your first card (CARD0) from Your mainboard (physically). Place Your second VGA card. Turn on the PC and repeat the steps from point 1.

3) Turn off the PC and insert first card into PC so both cards are installed. If necessary enable required BIOS features to use both cards.

3) Open both created xorg files (xorg.conf.new.CARD and xorg.conf.new).  xorg.conf.new.CARD can be opened with gedit without permission to make changes, xorg.conf.new has to be opended with permission to make changes:

sudo gedit xorg.conf.new

4) From xorg.conf.new.CARD copy the sections titled "Screen", "Monitor" and "Device" (my content was):

Section "Monitor"
    #DisplaySize      380   300
    Identifier   "Monitor0"
    VendorName   "AOC"
    ModelName    "919"
    HorizSync    30.0 - 80.0
    VertRefresh  55.0 - 75.0
    Option      "DPMS"
EndSection

Section "Device"
    Identifier  "Card0"
    Driver      "radeon"
    VendorName  "ATI Technologies Inc"
    BoardName   "Radeon 2100"
    BusID       "PCI:1:5:0"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device     "Card0"
    Monitor    "Monitor0"
    SubSection "Display"
        Viewport   0 0
        Depth     1
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     4
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     8
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     15
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     16
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     24
    EndSubSection
EndSection

and paste it to xorg.conf.new file.

5) Edit the xorg.conf.new file (I will give the sections in which I made changes):
Numerations have to be changed (of screens, monitors and devices):

So in the text that WAS NOT pasted change Card0 to Card1, Screen0 to Screen1 and Monitor0 to Monitor1  (other names are possible if You wish):

Section "ServerLayout"
    Identifier     "X.org Configured"
    Screen      0  "Screen0" 0 0
        Screen      1  "Screen1" RightOf "Screen0"   #ADDED THIS LINE
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
    ModulePath   "/usr/lib/xorg/modules"
    FontPath     "/usr/share/fonts/X11/misc"
    FontPath     "/usr/share/fonts/X11/cyrillic"
    FontPath     "/usr/share/fonts/X11/100dpi/:unscaled"
    FontPath     "/usr/share/fonts/X11/75dpi/:unscaled"
    FontPath     "/usr/share/fonts/X11/Type1"
    FontPath     "/usr/share/fonts/X11/100dpi"
    FontPath     "/usr/share/fonts/X11/75dpi"
    FontPath     "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
    FontPath     "built-ins"
EndSection

Section "Module"
    Load  "record"
    Load  "glx"
    Load  "dri"
    Load  "dbe"
    Load  "extmod"
    Load  "dri2"
EndSection

Section "InputDevice"
    Identifier  "Keyboard0"
    Driver      "kbd"
EndSection

Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
    Option      "Protocol" "auto"
    Option      "Device" "/dev/input/mice"
    Option      "ZAxisMapping" "4 5 6 7"
EndSection

Section "Device"
    Identifier  "Card0"
    Driver      "radeon"
    VendorName  "ATI Technologies Inc"
    BoardName   "Radeon 2100"
    BusID       "PCI:1:5:0"
EndSection

Section "Monitor"
    #DisplaySize      380   300 # mm
    Identifier   "Monitor0"
    VendorName   "AOC"
    ModelName    "919"
    HorizSync    30.0 - 80.0
    VertRefresh  55.0 - 75.0
    Option      "DPMS"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device     "Card0"
    Monitor    "AOC"
    SubSection "Display"
        Viewport   0 0
        Depth     1
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     4
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     8
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     15
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     16
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     24
    EndSubSection
EndSection

#I DID CHANGES BELOW HIS LINE---------------------

Section "Device"
    Identifier  "Card1"
    Driver      "radeon"
    VendorName  "ATI Technologies Inc"
    BoardName   "RV535 [Radeon X1650 Series]"
    BusID       "PCI:1:0:0"
EndSection

Section "Monitor"
    Identifier   "Monitor1"
    VendorName   "SAM"
    ModelName    "SyncMaster"
    HorizSync    30.0 - 75.0
    VertRefresh  56.0 - 61.0
    Option      "DPMS"
EndSection

Section "Screen"
    Identifier "Screen1"
    Device     "Card1"
    Monitor    "Samsung"
    SubSection "Display"
        Viewport   0 0
        Depth     1
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     4
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     8
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     15
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     16
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     24
    EndSubSection
EndSection

After reboot it should work.

to check if both cards are installed please use:

sudo lspci | grep VGA

this should list two VGA cards

I WOULD LIKE TO ASK SOMEBODY EXPERIENCED WITH LINUX/UBUNTU TO TAKE A LOOK AT THIS AND TO DO SOME REMARKS.

Regards,
Misery


Anyone get XRDP working on Kubuntu 16.04 desktop?

I am having the same issue and I did find a work around. I dropped the resolution from full screen to anything below 1920x1080

I have kubuntu 16.04.3 fresh install and used Ubuntu 16.04: Connect to KDE desktop environment via XRDP instructions.

This dose work but it forces a very small screen. I am still looking for a way to run at full screen or at least higher resolution.

Update: Changing the resolution has some odd results. When I first tried 1680x1050 it did not work on windows 7 so I tried it on windows 10 and it worked fine. I was even able to right click the top of the window to get full screen or smart resizing options and both worked. So I tried it on windows 7 again and this time it worked but on windows 7 there is no full screen or smart resizing option so the task bars overlaps with windows 7 task bar. After getting success I tried to repeat the steps again to post what I found out here and got different results. I have rebooted server and can not get the resize or full screen to work again. the window seems to be stuck at about 600x800. rough guess on resolution.


What is apt-check and why does it run during boot?

One of the services started at boot time from upstart is mounted-run (as you can see in /etc/init/). The comment at start of the file says:

# mounted-run - Populate and link to /run filesystem
#
# Populates the /run filesystem and adds compatibility links to it

Among other things, it executes:

run-parts --lsbsysinit /etc/update-motd.d

i.e., executes every script in /etc/update-motd.d to update the message that you see when you log-in to a textual console, or through ssh (motd = message of the day). This message also says if there are packages to be upgraded and if a reboot is required.

In this dir you find the script 90-updates-available that in turn calls

/usr/lib/update-notifier/update-motd-updates-available

that, based on a timestamp, calls /usr/lib/update-notifier/apt-check.
This python script update the repositories, so it take some time to execute, but depending on the timestamp of the last update, it is not always executed at boot.


Ubuntu 16.04 not detecting external HDMI monitor

Annoyingly, I stumbled to the solution while trying to fix the problem.  I run gnome3 on this machine, and in and attempt to fix the problem with this:

sudo apt-get install xserver-xorg-video-intel xorg-video-abi-20 xserver-xorg-core

and it removed ubuntu-gnome-desktop and many xorg drivers... so when I rebooted, the keyboard and mouse did not work. I booted into a live CD, mounted and chroot to the main partition and removed xserver-xorg-video-intel and reinstalled ubuntu-gnome-desktop and all the xorg drivers came along with it.

When I rebooted, back to the main partition, I had return functionality to the keyboard and mouse and the external monitor worked too.


Ubuntu Server 14.04 not accepting connections after log out

Looks like I have solved the problem.
I turned off the automatic power management on the hardware node's NIC.


Can I have rhythmbox integration on dash in 11.10?

Yes, these program that you see up are your Default Applications.
(System Settings / System Info) then on the left you'll see Default Applications.
Just change your default Music: to Rhythmbox.


GTK3 installation problems, Ubuntu 18.04

As noted at https://itsfoss.com/ppa-guide/ "A repository is a collection of files that has information about various software, their versions and some other details like the checksum. Each Ubuntu version has its own official set of four repositories:

Main – Canonical-supported free and open-source software.
Universe – Community-maintained free and open-source software.
Restricted – Proprietary drivers for devices.
Multiverse – Software restricted by copyright or legal issues.

So basically it’s a web URL that has information about the software. How does your system know where are these repositories? This information is stored in the sources.list file in the directory /etc/apt. If you look at its content, you’ll see that it has the URL of the repositories. The lines with # at the beginning are ignored.

"Now when you run the command sudo apt update (then sudo apt upgrade), your system uses APT tool to check against the repo and stores the information about the software and their version in a cache. When you use the command sudo apt install package_name, it uses the information to get that package from the URL where the actual software is stored."

The 404 error you found shows the web address in your /etc/apt/sources.list is out of date; there isn't a directory at http://us.archive.ubuntu.com/ubuntu/pool/main/g/gtk+3.0/ with the file libgtk-3-dev_3.22.30-1ubuntu3_amd64.deb in the server at 91.189.91.24.

You need to run sudo apt update && sudo apt upgrade before you try again to update the list inside your Ubuntu of what packages are where.

Should those fail, problems most likely are:

trying to install a package no longer available in the repositories (almost always replaced by a newer package with a sightly different name), or
the list of repositories in /etc/apt/sources.list is out of date, or
the Internet connection to the repositories is down.


ibm t480s + ibm thunderbolt 3 + 2 dell 4k dual monitors + ubuntu 18.04LTS

Sounds like you may have accidentally plugged-in the thunderbolt cable in your usb-c port instead of the thunderbolt one. You need to plug in the cable into the thunderbolt port of your laptop which is between the lenovo proprietary ethernet port and the usb-c charging port. The current docking station solutions from lenovo are very badly designed :(


How lsb module affects system, and can be made available to the system?

Since there are no lsb modules installed in your machine, you get that message.

You can install the lsb modules using the command

sudo apt-get install lsb-core

After installation, when you run the same command you wont see the message saying 'No LSB modules are available'

lsb_release -a will display some basic info about to which LSB specifications your system/OS complies with.

Hope this helps.


Changing Resolution with Wine App Opened freezes screen

I don't know if this is a known bug, but for your WINE applications, you can have WINE use a window. It will allow your applications to have their own "screen size" without affecting the global resolution.


How can lm_sensors support Z370 chipset motherboards?

Apparently is not possible without intervention with current Ubuntu distributions (and if things stay as those are even with next LTS 18.04).

If one wants now to use it, he/she will have to manually resort to downloading and compiling such driver from https://github.com/groeck/it87 and follow the instructions there.

This is less than ideal, that's why I've raised an Ubuntu question https://answers.launchpad.net/ubuntu/+question/662421 to update the it87 driver.

Edit

As per suggestions, raised a bug https://bugs.launchpad.net/ubuntu/+bug/1740736 for Ubuntu folks to cater for latest driver...


Could I abort the install process on Ubuntu Software?

Cancellation isn't supported now.

It's a pending feature request on GNOME's bug tracker (with nothing related on Launchpad). There's no opposition to it (but then again, there's not much activity at all related to that request).

Even if it does get implemented in a later version, I'm not sure the feature will be backported to Ubuntu 16.04. Consider filing a bug report on Launchpad linking to the upstream bug report to notify Ubuntu devs of the request.


From the question description it appears you are running mongod from your own account (user: makan).

Your invocation of mongod without specifying a configuration file or --dbpath would require this user to have read/write permissions for the default dbpath directory (/data/db). Since /data/db is only writable by user mongodb, a permission error is expected when mongod tries to write a file running with the permissions of makan:

  lock file: /data/db/mongod.lock errno:13 Permission denied Is a mongod instance already running?, terminating

The usual way to start/stop mongod is using the service definition, which runs as the user and group mongodb via sudo service mongod start.

The service uses a configuration file (/etc/mongod.conf) and a data directory  (/var/lib/mongodb) which should already have the correct permissions after installation.


Phone pictures not showing in UbuntuOne folder on computer

you will probably need to tell ubuntu one on your laptop to sync your photos folder. If you open the ubuntu one app on your laptop the photos folder wil prbably  hopefully be displayed, bt will be greyed out or untick (cant remember). just tel ubuntu one that you want to sync it . job done


Ubuntu boots to purple screen with Nvidia MSI 1080 and nomodeset

Ok, gave up on this one as it was greatly effecting our work-flow and installed Fedora 27. Everything works as expected.


Not able to access Windows after installing Ubuntu

Try this code:

sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer

Open grub customizer.
Refresh the list and arrange the list of order.
Save and reboot the system.


Ubuntu 14.04 Desktop on RAID-5 with LVM, GRUB failed to install

I've found the problem.

I read that GRUB can be placed inside the LVM and that it is somehow possible, however with the lack of proper documentation I DO NOT recommend trying this. That is what caused the problem, placing GRUB inside LVM volume on RAIeD-5.

To fix this, all you need to do is write GRUB to the regular HD's, outside of the RAID partitions. You can do this be "chroot"ing, but I have found an easier way:

Boot from Live CD, and make sure you have internet connection, then:

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

This will launch a GUI repair tool, follow the instructions carefully and it will re-install GRUB for you.

The lesson is do not place GRUB in an LVM volume upon installation, choose one of the hard drives, outside the RAID partitions i.e. /sda, /sdb/, etc...

Good Luck.


Error: Connection refused for MQTT Mosquitto on Ubuntu 18.04

According to this post, you need to run mosquitto as a daemon by running:

mosquitto -d

To have it start at boot time, you can enable the mosquitto service by running:

sudo systemctl enable mosquitto.service


You lost me with mention of "battery brightness".  I don't know what that means.  Are you referring to screen brightness?  If it involves the screen, I can refer you to two command-line packages.  xrandr allows you to change screem resolution on the fly.  That works for desktops and laptops.  The package xbacklight only works for laptops.  That allows you to adjust your screen brightness on the fly.  If you want these settings to take place when you log in, make the commands part of a .profile script file in our $HOME folder.  This gives you an example:

    #!/bin/bash
    xrandr -s 1024x768
    xbacklight = 35


Unfortunately, the new VMware Player does not have access to the VM Tools downloads yet. I've been told it's coming soon, just need to be patient (only been a few days since the release). You can always go back to the previous v15.5 release for now, then upgrade when the new tools are available (btw, the old tools will work if you upgrade to v16 before the new tools arrive).
The (2) PPAs you mentioned won't help (both require real, not virtualized, GPUs).


Configuration Error while installing MySQL in Ubuntu 16.04

Probably your some config files are missing on your system. Run the following command to restore them:

apt-get -o Dpkg::Options::="--force-confmiss" install mysql-server

It is possible, that you get an error at the end of this command, but the folder /etc/mysql/conf.d/ should be there now. If the command fails, you have to start mysql manually:

service mysql start

Then run the following, to finish installation:

apt-get install -f mysql-server


How to install the NVidia driver on a notebook?

From the command line, if you run the following command, what are the results?

lspci | grep -i vga

Does it list an Nvidia card as installed?

It may be that you have no Nvidia card at all. If you do, in fact, have an Nvidia card installed, it may be disabled by your hardware configuration options in EFI/BIOS.

(for example, I have a ThinkPad W530 with both Intel and Nvidia cards in it. You can specify one or the other, or both where it dynamically switches between the two)

If you do have an Nvidia card, and the "Additional Drivers" section isn't listing it... it may be an unsupported model.

If you will report back your findings, I'll do what I can to help you. :)


Can an external flash or hard drive be used to boost performance, similar to Windows' ReadyBoost?

ReadyBoost improves things by caching boot files on media with fast access time. It's much like ureadahead but using an agile medium instead of just stacking the files on the boot disk. Whether or not it actually works better than something like ureadahead is highly debateable.

A Flash drive might have a lower seek time than a mechanical disk but throughputs are often very limited (there are exceptions of course: USB3 SSDs, for example). It's possible that by removing the seek element (as it does by stacking the files) ureadahead is faster because the drive has the faster throughput.

ReadyBoost has no effect on after-boot performance, IIRC, though it's concievable they might put some memory paging on there too if it's fast. You can put your swap on an external drive but that's only viable if the disk is faster, in both access and throughput.

In answer to your question: plugging a slow mechanical disk into a slow USB2 bus will give you no benefit other than extra disk space. Even if ureadahead could use it (which I don't think it can) any benefit would rely on the external drive having a higher throughput than your internal disk.

If that's the case (your internal disk is slow) you really want to consider upgrading it. Your primary disk should be the fastest permanent storage in your system. If you're considering an external swap, have a look at the prices of RAM. Stupidly high quantities are  very cheap these days.


Wifi continuously connects and disconnects and after computer crash

First thoughts would be to check if there are any other conflicting Wifi connections near by.

Try and get a "Wifi Channel Scanner" for the computer, verify what channel you are using on your wireless router/access point and see if there are any conflicting ones (e.g. Your channel could be 3 and there could be other wifi networks using the same channel or close to 3 either 2 or 4. Generally there should be a gap of 2 between each. For example, you are using 3 and another is using 5)

Make sure the drivers are up to date for the Wifi adapter.

Other than that you may have to get in contact with Netgear and ask them for a bit of support, as it could be a hardware issue.


Installing Ubuntu 14.04 onto external HDD

First of all try to follow the default partitioning, or if not, use the 2 partition schema: one for the system, and a swap  big as your amount of ram. This is kind of foolproof.

(Just wondering: why are you installing a system on an external drive (I suppose, USB connected), which has a bandwith of 10Mb/s instead of 100-500Mb/s in case of internal HDD. This is not a good ideea!)


Zip an archive without including parent directory

Use the -j or --junk-paths option in your zip command.

From the zip man page:

-j

--junk-paths

Store just the name of a saved file (junk the path), and do not store directory
names. By default, zip will store the full path (relative to the current
directory).


Ive seen this may times; especially on vmware.

As far as I know, errors=panic dos not acually work ( but try for yourself; it may be implmented now.. )
Panic also dont help you much, as system would still be down/dead...

If you change filesystem type to xfs:
Xfs is a bit different in handling write-errors - at least it dos not go readonly. There are still errors and I believe your application can get write errors on some files, until you reboot/unmount and run xfs_repair.
- this can give a corrupted database...

The real solution is to have stable hardware (stable SAN/VMware... )..


First of all, you can try to update grub (command update-grub).

If this didn't work, you can try to boot from a windows cd and do a repair install. Afterwards (as windows will have destroyed your grub boot loader), you need to reinstall grub from a linux live cd.

If you don't want to risk your data, create an image first. You may also want to mount that image inside a virtualbox container - if you don't really need to boot into windows anyway, this may be a more useful option.


How do I rollback to Firefox to 3.6 from a PPA version?

Yes, try these commands:

sudo apt-get install ppa-purge
sudo ppa-purge ppa:ubuntu-mozilla-daily/ppa

Which will remove the PPA, sudo apt-get remove firefox-4.0 to remove Firefox 4.0, and sudo apt-get update and sudo apt-get upgrade to refresh the repository sources and upgrade (downgrade) "Namoroka" to plain old Firefox 3.6.


sudo bash /usr/bin/sudo must be owned by uid 0 and have the setuid bit set

Log out as the current user, then log back in as root.
Execute apt-get remove sudo -y && apt-get install sudo -y
Log out as root, then log back in as the current user.

This action will reset all permission to default state


HP Pavilion with Radeon 6470M hangs with Black Screen on Boot

I had given up trying and decided to wait for the 11.10 upgrade.

After upgrading to 11.10 I installed the ATI drivers and everything seems to be working. I'm assuming that it was an issue with Unity that has subsequently been fixed.


I have the same problem, and i figured out that the problem is with video drivers. So if you want to have better launcher view, you can open terminal ant type:

LIBGL_ALWAYS_SOFTWARE=1 wine ~/.wine/drive_c/Program*/Battle.net/"Battle.net Launcher.exe"

Note: this will work if you installed Hearthstone in default installation location.

P.S. this command will disable text in launcher but you still get better view than before.

If you are running Hearthstone through PlayOnLinux, go to Configure / Miscellaneous / "Command to exec before running the program" and put: export LIBGL_ALWAYS_SOFTWARE=1


What is the difference between mail-server^ task and the mail-stack-delivery package?

Visit the mail-stack-delivery package page and download the tar.gz containing the Debian/Ubuntu packaging.

Open the debian/control file and look for lines beginning with Provides: like this one:

Package: dovecot-imapd
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, dovecot-core (= ${binary:Version}), ucf (>= 2.0020)
Provides: imap-server
Description: secure IMAP server that supports mbox, maildir, dbox and mdbox mailboxes

You can see that dovecot-imapd provides a package named imap-server, which is a virtual package, as defined in the Debian Policy Manual:

  Sometimes, there are several packages which offer more-or-less the
  same functionality. In this case, it's useful to define a virtual
  package whose name describes that common functionality. (The virtual
  packages only exist logically, not physically; that's why they are
  called virtual.) The packages with this particular function will then
  provide the virtual package. Thus, any other package requiring that
  function can simply depend on the virtual package without having to
  specify all possible packages individually.

Edit: mail-server^ is not a metapackage, it's a task as defined in /usr/share/tasksel/**/*.desc

Apt can understand task if the "^" is appended to the task name but the installation process is a bit different from what tasksel is doing.

Visit Should I use tasksel, tasks in APT or install regular metapackages? for a complete description of both installation processes.

In terms of installed packages, you can easily dry-run apt-get install for both mail-server^ and mail-stack-delivery:

sudo apt-get install -s mail-server^
sudo apt-get install -s mail-stack-delivery

The task mail-server will install:

bsd-mailx
dovecot-core
dovecot-imapd
dovecot-pop3d
libgpgme11
libpth20
libtokyocabinet8
mutt
postfix
procmail
ssl-cert

But mail-stack-delivery will install those packages instead:

dovecot-core
dovecot-imapd
dovecot-managesieved
dovecot-pop3d
dovecot-sieve
mail-stack-delivery
postfix
ssl-cert

I hope that answers your initial question.


You can't remove the Unity Shopping Lens in Ubuntu 13.10 because there's no Shopping lens. Ubuntu 13.10 comes with a feature called Unity Smart Scopes (or "100 scopes") which uses a huge list of scopes to display results in Dash and among these, there are some used for shopping. So if you don't want shopping suggestions in Dash, you must disable these shopping scopes (see below).
Unity Dash without shopping suggestions
How to disable Unity Dash plugins (scopes) in Ubuntu 13.10
To disable a Dash plugin (scope) in Ubuntu 13.10 Saucy Salamander:

open Dash,
go to the Applications lens (either do it manually using your mouse or use the Super + A keyboard shortcut),
click "Filter results" on the right and under "Type",
select "Dash plugins".

All the Dash search plugins (scopes) should be listed.
To disable a plugin, click on it and then click the "Disable" button. Later on you can enable them back in the same way.
Disable the Amazon / shopping suggestions Unity Dash scopes
If you don't want shopping suggestions in Dash, disable the following scopes (by using the instructions above): Amazon, Ebay, Music Store, Popular Tracks Online, Skimlinks, Ubuntu One Music Search and Ubuntu Shop.
To disable all these shopping Dash plugins/scopes from the command line, use the following command
 gsettings set com.canonical.Unity.Lenses disabled-scopes "['more_suggestions-amazon.scope', 'more_suggestions-u1ms.scope', 'more_suggestions-populartracks.scope', 'music-musicstore.scope', 'more_suggestions-ebay.scope', 'more_suggestions-ubuntushop.scope', 'more_suggestions-skimlinks.scope']"


Enabling multi-touch on a non-multi-touch touchpad

If you download the Synaptics TouchPad driver from the Ubuntu Software Centre (search for synaptiks).

This worked well for me. You have to auto start it by putting it in the Start Up Programmes with synaptikscfg init. Apart from that it's simple and straight forward.


Automatically setting the DISPLAY variable

Normally you'd add it at the end of .login but that may not be executed in WSL so the safest bet is to add it at the end of .profile.

Edit

Ref: https://www.gnu.org/software/bash/manual/html_node/Bash-Startup-Files.html
The gist of the startup is .profile is not executed if either .bash_login or .bash_profile exists.  To solve this, add this to the end of .bash_profile if it exists.

export DISPLAY=:0.0
echo DISPLAY is $DISPLAY


How to run hooks with LetsEncrypt certbot after auto renewal?

Cerbot will run scripts from renewal-hooks. --deploy-hook is not required.
Don't forget to set chmod +x for scripts.
If you run
sudo certbot renew --dry-run

certbot executes the hooks too.


It seems that for some reason during the upgrade from 17.04 to 17.10 the kernel got switched from 4.13.0-16-generic to 4.13.0-16-lowlatency. It could be due to the fact that I ran the upgrade over ssh client instead of on the system itself. I did not investigate further as to why this happened. Since this was a new machine, I wiped it clean and installed 17.04 and upgraded to 17.10 on the terminal itself.


how to extract the text between single quotes?

You could try

basename `gsettings get org.gnome.desktop.background picture-uri` \'

assuming you are using BASH.

basename will extract the last name in the path, which is generated using your command to gsettings, put in backticks so it is seen as a command and not a string. The second argument to basename is the terminating characters you want to omit, in this case the apostrophe, which must be escaped using a backslash so it doesn't start a quote on the shell.


Error 403 Forbidden |localhost | in Ubuntu i do not come enter to index.php

Sounds like a permissions error. Try sudo chmod -R 775 on the directory in question. (Preferably where the site's root folder is).

As well, use sudo nano /etc/apache2/sites-available/000-default.conf to open nano and enter this at the bottom of the file (keep in mind that [folder name] is your root folder for the site.

  <Directory [folder name]>
  AllowOverride All
  </Directory>


Alternative Display Manager for easy login

Grub and I3 are not Display Managers.
i3 is a Window manager and grub is the boot manager.
A display manager is basically the login screen you get when you are nearly in your Linux environment.

To get some help with installing an alternate Display Manager I recommend following the following link:
What is gdm3, kdm, lightdm? How to install and remove them?


Can I change where my /home folder is located?

Check out the howto: https://help.ubuntu.com/community/Partitioning/Home/Moving

The basic steps are as follows:

Setup your new partition
Backup and edit your fstab to mount the new partition as /media/home (just for the time being) and reboot.
Use rsync to migrate all data from /home into /media/home.
Edit fstab again so the new partition mounts as /home instead of /media/home but not reboot just yet.
Move /home to /old_home and reboot
Delete /old_home.


From: sandmann - Moderator on LinuxConfig.org forum

"Googled a bit about this, not much information to be found, only the same question, unanswered. Have you tried org.gnome.desktop.screensaver.idle-activation-enabled set to false with dconf-editor?"

Installed Dconf Editor, did the change (was from on to off, not true to false, but the info was essentially right on target!!!) - got REAL nervous as it is some kind registry editor, so I threw-up, then just did it... didn't fix it though... Seemed at first to have worked, but still doing the same thing - thanks for trying Sandmann…

You may ask ‘why was it important to this lady for the login screen to not blank?’ - well, I usually cut on the computer and wander off while it does it’s boot-up thing, then when I wander by and see it waiting and ready, I’ll get on it and do what I need to do (email, browse, etc.) ~ but, if I wander by and it is blank, I assume it isn’t on and just keep on wanderin’ by, sometimes leaving it in the blanked login screen for hours or even days.


There are still issues to work out with optimus, like what David Airlie calls "reverse optimus" to make HDMI and other video outputs work straight from the nVidia card:
http://airlied.livejournal.com/76723.html

Please join this team if you are new by clicking on the "Join Team"
link at the right of the Launchpad page. It's important to have as
many users in the community as possible to request for appropriate
support, even if you found a non-obvious way to make it work for you.


KVM: Copy (drag and drop) files between Ubuntu host to Windows 7 guest

Work around #1

Create a samba share on the host.

Since client and host should be able to communicate via a virtual network interface - automatically - this is a very easy workaround.


As it is sometimes there is a very easy solution to strange problems.

sudo apt-get remove skype && sudo apt-get install skype


Using guvcview, you can run guvcview -d /dev/video<id> with your camera id(you can find that by running ls /dev/video*) and then it opens up with a GUI. Under the settings tab, you can restore to hardware defaults.


How to upgrade kde plasma in kubuntu 14.10?

You may already be using the latest plasma version.  It looks like KDE is versioning things differently now, and kde is at 5.4, plasma is at 5.1, and the applications are either 4.11 or 4.12.  See this webpage for an explanation: blog post on kde's new versioning

Also check out the main kde.org page, and see what the latest releases are at kde announcements


Use the logger command.

logger Some message to write

There are several options available, including:

-i Log the process ID in each line
-f Log the contents of a specified file
-n Write to the specified remote syslog server
-p Specify a priority
-t Tag the line with a specified tag

See man 1 logger for more information on the tool.


Most likely caused by a problem with a graphics driver.  What video card or graphics chip (GPU) do you have?

You may be able to work around it by setting either "xforcevesa" or "nomodeset" kernel boot parameters in Grub.  Just search for either of these terms as there are many howtos for setting them in Ubuntu.  These will either bypass or disable the default graphics driver and allow you to login and install the correct driver.


Error when transferring a file via Bluetooth to a Samsung Galaxy phone

Had the same problem with SGS2, solved by going (on pc) into Bluetooth Preferences -> Receive Files and switching "Receive files into Download folder over bluetooth" back and forth


Looks like this link might give you some hints on how to boot into the text mode installer.
https://help.ubuntu.com/12.04/installation-guide/i386/boot-parms.html. Also, you might want to verify that the graphics driver for your video card is supported.


Try booting from Ubuntu install CD:
sudo mount /dev/sda1 /mnt
sudo grub-install --root-directory=/mnt /dev/sda

if it doesn't work, try chrooting:
sudo mount --bind /dev /mnt/dev
sudo mount --bind /proc /mnt/proc
sudo chroot /mnt
sudo grub-install /dev/sda1

Debugging grub loading:
Hold shift during boot, then hit e to edit the GRUB entry. Remove the part that says "quiet splash" and replace it with "text" to see what's happening during boot.
Have a look here: Linux kernel hangs at 'Switching to clocksource tsc" on Pentium 4.
and try to edit the boot entry (just add clocksource either with hpet or acpi_pm value):
clocksource=hpet quiet splash

If it works you might want to change in /etc/default/grub this line:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash clocksource=hpet"

then run
sudo update-grub


My password is in a configuration file. How do I prevent read access to other users on the system?

The answer is contained within the sample ssmtp.conf file - it reads as follows (taken from http://wiki.debian.org/sSMTP);

#### VERY IMPORTANT !!! If other people have access to this computer
# Your GMAIL Password is left unencrypted in this file
# so make sure you have a strong root password, and make sure
# you change the permissions of this file to be 640:
# chown root:mail /etc/ssmtp/ssmtp.conf
# chmod 640 /etc/ssmtp/ssmtp.conf"


How do I set Ubuntu 12.04.4 up to have buttons for applications, places, and system like older versions of Ubuntu

Install gnome fallback by run this following commands:

sudo apt-get install gnome-session-fallback
If the proccess is done, don't forget sudo apt-get update commands and then logout and press ubuntu icons near login.
Switch to gnome fallback
Then login to your old ubuntu B).

Good luck


Remove sudo privileges from a user (without deleting the user)

Just type

sudo deluser username sudo

This will remove the user named username from the group sudo.

Be careful not to remove the real adminuser from the sudo group.


How to remove all version of java completely from Linux system ?

The following solution removes all Java installations (OpenJDK and Oracle Java), installed via the Package Manager

Check the output of the commands below and check twice if it's ok to remove

dpkg --get-selections | awk '/oracle-java/ && /installer/ {print "sudo apt-get purge "$1}'
dpkg --get-selections | awk '/openjdk/ {print "sudo apt-get -y purge "$1}'

After that purge OpenJDK and Oracle Java via

dpkg --get-selections | awk '/oracle-java/ && /installer/ {system("sudo apt-get purge "$1)}'
dpkg --get-selections | awk '/openjdk/ {system("sudo apt-get -y purge "$1)}'


Executing simple aliased shell command without opening terminal

I found two ways that might work for you.
Both involve using the shortcut ALT + F2, which opens a "Run Command" prompt.

Enter your bash alias into the "Run Command" prompt, like so: bash -c <alias>.
Export your alias code as a script, make it executable, put it into your PATH and run it with <alias> from the "Run Command" prompt.

Regarding solution 2, it is not really the alias that will be called but a script that has the same code as the alias. It could work like this:

Put a file with the name of your alias into the ~/.local/bin folder:

#!/bin/bash
<code of your alias>

and make it executable with chmod +x <file>

Hopefully, that helped

Update:

I realized that aliases are not expanded in non-interactive shell. While it is possible to use bash -ic <alias> (thanks to @steeldriver) to run an alias in interactive shell, this is NOT recommended, as the shell does not close after the command and stays open, which takes up processing power.

I would recommend solution 2 instead.


how to remove google Chrome App Launcher from ubuntu 14.04 launcher

You can try to remove launcher entries by typing:

rm $HOME/.local/share/applications/chrome-*.desktop


In order to get the document scanned you may want to follow this :

Install vsftpd

sudo apt-get install vsftpd

As root, create the directory /home/ftpscan (read only for everybody except root) and  /home/ftpscan/write (read-write for everybody).

# sudo mkdir /home/ftpscan
# sudo mkdir /home/ftpscan/write
# sudo chmod ugo+rwx /home/ftpscan/write

modify the configuration of vsftpd to include those lines :

# edit /etc/vsftpd.conf with your favorite text editor
# enable anonymous user : any password accepted
anonymous_enable=YES
# Do not need those local users
local_enable=NO
#allow anonymous to write
write_enable=YES
anon_mkdir_write_enable=YES
anon_upload_enable=YES
anon_root=/home/ftpscan
# Allows everybody to read the item placed anonymously
chown_upload_mode=0666
anon_umask=000

restart service vsftpd
Open the port 21 (FTP) for your printer (I think you may want to use UFW).
Configure your printer via the http interface : I do not know the english words, may be you can help.  We take a webbrowser and follow

 HTTP://<IP>
 -> "Carnet d'adressse"              / ? 3th item
 -> "Carnet d'addresse PC/Server"    / ?
 -> "Carnet d'adresses PC / Serveur" / ?
 -> "ajouter"                        / add
  Change those fields (<.> means that it must be interpreted)
  - Name is free
  - Type of network   == FTP server and not SMB server
  - Host Address      == <your computer hostanme or your computer ip>
  - Port number       == <empty or 21>
  - connection name   == anonymous
  - password          == <anything or nothing>
  - path to directory == write

That is very creative names. Xerox is not giving neither easy nor standard interface.  I was expecting something more admirable from this company.


Clearing temporary data like cookies and cache might help.

Since when you use a browser, like Chrome, it saves some information from websites in its cache and cookies. Clearing them fixes certain problems, like loading or formatting issues on sites.

Alternatively, if you just want to be confident that the issue isn't with connection, try opening website in Incognito mode.


vimdiff tool is under package vim. You should install vim using following command:

sudo apt-get install vim

Then you can use the vimdiff as:

vimdiff file1 file2


I found that my computer was running out of memory(Not even 100kb free space) because of a python script I was executing. I freed up some memory and it solved the problem.


Upstart - Bluepill not starting without sudo

I seriously doubt that your job is starting correctly. Most likely you would find in /var/log/upstart/yourjobconfigname.log following line:

  sudo: sorry, you must have a tty to run sudo

sudo is meant to be used interactively. See How should I use sudo from an upstart script? for details.

You should reconsider your design. It will be much better to create dedicated system user that will run your job process and apply needed permissions. In your job configuration you would need to add setuid and perhaps setgid stanzas.

description "Start up the bluepill service"

start on runlevel [2]
stop on runlevel [016]

setuid bluepill
setgid bluepill
exec sudo /home/deploy/.rvm/wrappers/<app_name>/bluepill load /home/deploy/websites/<app_name>/current/config/server/staging/delayed_job.bluepill

bluepill is added designated system user. See adduser for details.

sudo adduser --system --group --no-create-home bluepill

Based on the tickets mentioned in the comment adding expect daemon stanza might be helpful. When starting bluepill process starts as daemon e.g. there will be two forks. Without expect daemon stanza Upstart cannot track PIDs properly. As said in entry on expect stanza This stanza is extremely important.


How to install QtRuby + Qt4 on Ubuntu 14?

Follow these steps to install Qtruby+Qt4

run following command in terminal

sudo aptitude install libqt4-core libqt4-dev

Download qtruby from http://rubyforge.org/projects/korundum/

version=2.1.0
wget http://rubyforge.org/frs/download.php/71843/qt4-qtruby-${version}.tar.gz

Extract qtruby

tar -xvzf qt4-qtruby-${version}.tar.gz
cd qt4-qtruby-${version}

qtruby installer uses the location of the Ruby binary it is started with

rvm use 1.8.7
cmake .
make

Now install,

sudo make install

ubuntu doesn't look here by default, but the qtruby install puts its libraries here

sudo ldconfig /usr/local/lib

We had to run make install with root because it writes to /usr/local/lib, but it also writes to $MY_RUBY_HOME.

we don't want root-owned files floating around in there

sudo chown -R $USER:$USER $MY_RUBY_HOME

NOTE - For more information please have a look at rvm documentation


Sooo... what package should I be looking for?

You shouldn't looking for a package. As the bug (you linked) has been marked "Fix Released" that means, the fix has been released and you will get it immediately with an update. So, just update your system and it should be fine.

As for the ubuntu-themes package, I've looked and I've found that is a project that contains lot of other packages. ubuntu-themes package in Launchpad.

I don't think that it produces a single binary you can install, but this source package produces other binaries like : light-themes, ubuntu-artwork..etc . See here.


samba shares reject samba username and password from Windows

You probably need to add the user to samba: smbpasswd -a myuser


How do I fix a partition i made installing Ubuntu

You can use resize2fs command to a ext4 filesystem, even if it's your root partition:

sudo resize2fs /dev/sda1

Here you find a tutorial step by step!


Where is the persistent option for Startup Disk Creator in 16.04?

Unfortunately it looks like in the source release notes changelog it was a decision to drop the Erase and Persistence widgets:

usb-creator (0.3.0) xenial; urgency=medium

  [ Marc Deslauriers ]
  * Rework the whole imaging process for writing to devices:
    - Use an equivalent of dd to make an exact copy of the image to the device
    - This also breaks persistence.

  [ Mathieu Trudel-Lapierre ]
  * Update UI and frontend code to drop the persistence widgets.
  * Drop Erase Disk widgets too.

 -- Mathieu Trudel-Lapierre <mathieu-tl@ubuntu.com>  Fri, 11 Dec 2015 12:37:41 -0500

This can be found if you download the source for usb-creator-gtk.


How is it determined which application is to open a file of specific mime-type?

There are two ways a MIME type and a .desktop file are associated.

Method 1

The first way is through *.list MIME config files (many exist on the system, see below). For example, a typical entry in ~/.local/share/applications/mimeapps.list might be:

[Default Applications]
application/x-bittorrent=transmission.desktop;deluge.desktop

This means that the preferred application is transmission, if it cannot be found, then the second choice is deluge.

Method 2

The second way is through the .desktop file itself. The application advertises which MIME types it can open. For example, in transmission-gtk.desktop, we have the following line

MimeType=application/x-bittorrent;x-scheme-handler/magnet;

which indicates that this program can handle those two MIME types.

Which Application To Use?

The association between MIME types and Applications is defined by the freedesktop.org standards. Here are the steps taken when determining which application (i.e. which .desktop file) to launch for a given MIME type.

Step 1: Look for an association in the MIME config files. The lookup order is as follows:

$XDG_CONFIG_HOME/$desktop-mimeapps.list
$XDG_CONFIG_HOME/mimeapps.list
$XDG_CONFIG_DIRS/$desktop-mimeapps.list
$XDG_CONFIG_DIRS/mimeapps.list
$XDG_DATA_HOME/applications/$desktop-mimeapps.list
$XDG_DATA_HOME/applications/mimeapps.list
$XDG_DATA_DIRS/applications/$desktop-mimeapps.list
$XDG_DATA_DIRS/applications/mimeapps.list

Step 2: Once all levels have been checked, if no entry could be found, the implementations can pick any of the .desktop files associated with the MIME type, taking into account added and removed associations (which exist in the MIME config files).

Although you do not have any MIME config files, the reason that transmission is being used is because of Step 2 as defined by the standard. Check your transmission-gtk.desktop file to see whether it advertises its ability to open torrents.

I suggest reading the linked document for a full understanding.


Prevent a user from accessing the internet, except for certain websites

Changing the file like this fixed everything:

# Generated by iptables-save v1.4.12 on Sat Jul 13 07:41:12 2013
*filter
:INPUT ACCEPT [3137:3823422]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [1877:121508]
-A OUTPUT -d [[SPECIFIC IP]] -j ACCEPT
-A OUTPUT -p tcp --destination-port 53 -j ACCEPT
-A OUTPUT -p udp --destination-port 53 -j ACCEPT
-A OUTPUT -p tcp --destination-port 953 -j ACCEPT
-A OUTPUT -m owner --uid-owner 1000 -j DROP
COMMIT
# Completed on Sat Jul 13 07:41:12 2013

Thanks to gertvdijk for telling me what to change.


Touchpad - Two finger scroll not working

You can open the mouse and touchpad menu in the system settings and make sure that two finger scroll is enabled.


What they try to tell is that you should first execute ulimit and then run mongod on the same shell session. This way Mongo DB process will have it's limits changed.

As you probably want to start Mongo DB using the startup script, the simplest solution would be modify this startup script and add ulimit call before starting Mongo DB daemon. This is still not the best solution to modify Mongo DB startup scripts.

The best way to deal with this problem would be changing limit defaults in file /etc/security/limits.conf or better adding specific configuration to /etc/security/limits.d See man pam_limits and man limits.conf for more information.