When you install a new software that would have a version which supersedes the version in /usr/bin/ or anywhere else in the $PATH, you need to usually restart your terminal session.

Close out your terminal session or your SSH connection.  Once you start it back up, you should then be able to use the 'newer' version (/usr/local/bin/... will supersede /usr/bin/... when the same application is in both locations but with different versions, typically.)


save remote command output locally over ssh proxycommand

Use ssh_config (~/.ssh/config) to set your proxy setting. It will shorten your oneliners significantly.

Same way you pass your commands to the server you can store their output to the temp file, then rsync output files into your local machine, through the SSH proxy. Rsync uses ssh_config when it's present, but you can also specify custom SSH settings via rsync's -e flag.

So your ssh config will be something like:

Host free_node
    StrictHostKeyChecking no
    IdentityFile test-ssh-key
    User lab
    ProxyCommand ssh -i test-ssh-key -W %h:%p lab@api.test.com

Then:

rsync -av free_node:/root/output.log ~/

Alternatively if rsync isn't present on your server and you cannot install it, you can use scp instead.

scp free_node:/root/output.log ~/

However I recommend using ansible or any other automation tool for this job. Ansible uses ssh and ad-hoc commands. Python is its only requirement on server side, however with ansible's raw module you don't even need to have python installed on your server. You can also use custom ssh commands to pass your connections through proxy, as describe in ansible faq.


Terminal command to control the standard Music/Video Player(Play/Stop/Next..)

There is no general answer to your question, since music players can implement whatever they want.
However, the default players for Ubuntu all implement the mpris2 interface (if they are integrated into the soundmenu). Therefore they can be controlled via the command line.
One possible script to use is here: pympris.
You can run it like this:

mpris2-remote.py play
mpris2-remote.py stop
mpris2-remote.py next

If you prefer something more basic, you can look at the mpris2 definition here.
Alternatively you can emulate the gnome multimedia keys as you already wrote in your question.


Ubuntu 13.04 is showing some error while opening my computer

Try Reparing the grub and Ubuntu system..
What to do when I get an "attempt to read or write outside of disk 'hd0'" error and Boot Repair does not solve the problem?


This can be done rather quickly with dconf-editor:

Open dconf-editor
Click through to org ⇢ gnome ⇢ settings-daemon ⇢ plugins ⇢ power
Change the values of percentage-critical and percentage-action to something like 1%
Change use-time-for-policy to false
Close the editor

Hope this helps


sudo apt install --reinstall ncurses-bin should reinstall all the components, if you removed one.


Fake a webcam using a video loopback device?

The gst-launch manpages tells us that we need to decode the video first, and the easiest way to do so is like this:

gst-launch-0.10 filesrc location=[location] ! decodebin ! v4l2sink device=/dev/video0

gst-launch does not need to be run as root, and [location] can be relative too!


Is there a way to control the JACK Output volume via terminal or get a PulseAudio Input?

Update July 21, 2019

From a professional music website for Linux:

Jack Master Volume?

  Sorry for posting non-ardour question but I need your guidance. When
  Jack takes control over audio, many apps, including flashplayer, act
  very loud i.e in VLC I have volume set to 5%. I would like to control
  the master volume like in alsamixer instead of setting levels for each
  app individually. How can I do that?

There are two answers posted and this one is the most helpful:

  there is no such concept. JACK is designed for pro-audio and music
  creation workflows. Its not a desktop sound server, even though some
  of use it in that way. If you need such a thing, you will need to
  route all your JACK clients via a mixing client which could be
  something as simply as JackMix or as complex as Ardour. JACK itself
  does not provide this facility, and its totally out of the scope of
  its design.

The simplest solution then is to install JackMix:

"Ever struggled with a number of jack applications on your desktop everyone using its own master volume-fader but not one common place for all the volumes directly accessible?"

"The solution to your problem is JackMix, a mixer app for jack that looks exactly like the mixer you would use if you had to connect your analog equipment."

There are other applications for Jack which you can find listed here.

Original answer

I must confess to be musically-challenged but I think this script is where you are heading:

  You can get a list of all sinks with pacmd list-sinks, and set the
  volume withpacmd set-sink-volume`, so you need to do something like

VOLUME='+5%'
for SINK in `pacmd list-sinks | grep 'index:' | cut -b12-`
do
  pacmd set-sink-volume $SINK $VOLUME
done

  where $VOLUME can be absolute (150%) or relative (+5%, -5%), and
  possibly other formats, too.

  Most window managers can be configured to launch scripts or programs,
  complete with arguments, when you press keys. That's the best method,
  but if your WM doesn't, there are tools like xbindkeys. So you can
  customize in any way you want.

  Note that Pulseaudio will start using hardware mixers if the sink
  volume goes over 100%, and that can distort the sound.

  Also note that Pulseaudio allows to set the volume for each
  application ("audio stream") with pamcd set-sink-input-volume. You can
  list them with pacmd list-sink-inputs and set them in a similar way.

  That allows you have the sink volumes at a fixed level so they are
  about equal, without using hardware mixers, and when you switch sinks,
  it will automatically have the "right" volume. That's the setup I
  prefer.


Font rendering some wrong glyphs for Romanian language in Ubuntu 20.04

Please, use the font-manager GUI application to determine whether your fonts support the Romanian characters (ÂâĂăÎîȘșȚț). For fonts that do not contain Romanian characters, Romanian characters from other fonts will be substituted.
In my Ubuntu 20.10 installation;

there is no Helvetica font, so it will be substituted by another font (for example, the fc-match Helvetica command displays NimbusSans-Regular.otf: "Nimbus Sans" "Regular") and
the Arial font does not support the Romanian characters listed above (again these characters will be substituted by another font).

The fonts that support Romanian characters are these in my case:
C059, DejaVu Sans, DejaVu Sans Mono, DejaVu Serif, FreeMono, FreeSans, FreeSerif, Liberation Mono, Liberation Sans, Liberation Sans Narrow, Liberation Serif, Nimbus Mono PS, Nimbus Roman, Nimbus Sans, Nimbus Sans Narrow, Noto Mono, P052, Ubuntu, Ubuntu Condensed, Ubuntu Mono, Unifont, URW Bookman, URW Gothic, Z003.
I am sharing this information as an answer, because it didn't fit to a comment.


paste the contents of uname -a

and

xinput list

Possible solution :
https://askubuntu.com/a/1143740/956680


It does that because the /etc/network/interfaces file is only for editing current interfaces. You cannot create a new interface or rename an interface from it.
The correct settings that your gonna wanna use is this:
auto ens33
iface ens33 inet static
address 192.168.202.131
netmask 255.255.255.0
gateway 192.168.202.2
dns-nameservers 8.8.8.8

The name of the interface being configured in this case is ens33. You can get that information form your ifconfig command.
The ens33 on the left of the readout is the name of your interface. This could be eth0, wl0, ens33, etc... The name itself is dynamic and is different for different interfaces (each interface has to be unique, E.g. eth0, eth1 for Ethernet ports 1 and 2). In later versions of Ubuntu the naming schema changed, now eth0, etc... is a fall back if it cannot reliably name an interface.

links:
If you want to rename your interface, checkout this link:
https://askubuntu.com/a/689143/180773 (warning, advanced)

Tl;Dr:
The interface name is incorrect for your interfaces file.


Can I delete old snap folders which used to be installed but remain on system?

Check if the folders are empty. If they are it's safe to remove them.

If they aren't empty, check file properties for some of them and look at when they were last accessed. This should tell you if those files have been in use recently by any other software. Should be safe to remove those folders if they haven't been accessed recently.

Using your file manager (dolphin, on my system) you can right click on the file, then select Properties. Look for Accessed.


Ubuntu no longer recognises HDD partition as writable but Windows does?

If the ntfs-3g package is missing, please install it. I have had the same issue (NTFS filesystems read-only) after upgrading to oneiric. If the filesystem is still read-only, install ntfs-config and run it to check if NTFS support is properly configured.


Does the shortcut show up here?

Maybe try hitting reset to default to see if that fixes it.

you could also try and add a custom shortcut for this. I'm trying to find out that the command would be for this so I'm going to do some research on it.


Trouble opening Disk Manager in Windows 7 after installing Ubuntu 12.10

This sounds like a bug in the Windows Disk Manager software; there isn't much that you can do, or Ubuntu can do here. Report the problem to Microsoft and hope they can fix it for you.


Icon name to use in a desktop file when different icon themes, use different names for the same application

The way you indicate is also how it works. You provide a generic icon name, e.g. androidstudio. The system will first look if your current theme provides such icon, and if it does not, take an icon of a fallback theme or use a generic icon. As such, there is no provision to indicate multiple alternative icons in a .desktop file.

You are using only a single theme at a time, normally. So the easiest would be to hard code the icon you want to use in a local copy of the .desktop file of your application. You do not need to be root for this. Such local copy lives in .local/share/applications and overrides the system wide .desktop file.

If, for one or another reason, you prefer to switch themes and each time have the theme specific icon for your application, then you may rename (or better copy) the icon file so matching icons exist in all the themes you want to use. You need to be root to edit a system wide theme this way.


Does passing passwords as plain text arguments reduce WiFi network security?

Anything that is passed as a command line parameter can be viewed by:

anyone who can see the terminal contents while they still are on screen (as you said);
any program that has access to your history file until you remove it from there, or if you prevent it from being written (as you said);
any user on the system that lists the processes using ps or similar tools.

It is bad practice.

Quoting from the page you linked to: "You can pass your SSID and password through pipe or through arguments (see examples).". Adapting from https://github.com/oblique/create_ap#wpa--wpa2-passphrase-using-pipe:

Create a file that holds your password and make it readable only by your user:

touch ~/.wifipass
chmod 600 ~/.wifipass

Write into it:

MyAccessPoint
MyPassPhrase

Run the app with:

cat ~/.wifipass | create_ap wlan0 eth0

This solves the problem of passing passwords through CLI arguments.

If you also want to encrypt the password as it is stored, you can use the gnome keyring: https://kparal.wordpress.com/2009/09/29/command-line-access-to-gnome-keyring/ and https://github.com/kparal/gkeyring This should ask for a password when you log in.


** (gedit:14887): WARNING **: Could not load Gedit repository: Typelib file for namespace 'GtkSource', version '3.0' not found

sudo apt-get install gir1.2-gtksource-3.0

will fix this warning.

Inspired by:
gedit: should depend on gir1.2-gtksource-3.0


Very Low Mic sound problem in Ubuntu 14.04 LTS (Lenovo G50-70)

First off, use the speaker button on the top right corner of your home screen. When you click that, you will be able to see various audio profiles. Also you can control the audio level of various applications from the same.
If you are using lubuntu, you might get Audio Mixer. To get to this go to Home> Sound and Video> Audio Mixer. Check if the audio level is low there.

If all else fails, install alsamixer. You can use Synaptic Package manager for this. Alsamixer has a huge number of options to help you control the audio levels from different audio sources.

Hope that helps! :)


Let's compare version numbers.

Official Ubuntu repository has eclipse package with 3.8.1 version.
Snap - Eclipse 4.7.3a (as you have already discovered, should be installed with snap install eclipse --classic)
Ubuntu Make has 4.7.3a:

sudo apt-get install ubuntu-make
umake ide eclipse

Snap version has access to removable media because of --classic confinement:

  This revision of snap "eclipse" was published using classic confinement
  and thus may perform arbitrary system changes outside of the security
  sandbox that snaps are usually confined to, which may put your system
  at risk.

But I recommend version from Ubuntu Make. It is more straightforward.


It takes a little time for Canonical to process the Firefox updates and release them.  For example, Firefox 49 was released on September 20 2016 to release channel users.  It did not show up as an update on my systems until September 22 2016.

(extract from apt log)

Start-Date: 2016-09-22  09:34:27
Upgrade: firefox-locale-en:amd64 (48.0+build2-0ubuntu0.14.04.1, 49.0+build4-0ubuntu0.14.04.1), [....] firefox:amd64 (48.0+build2-0ubuntu0.14.04.1, 49.0+build4-0ubuntu0.14.04.1),[....

You do not need to do anything to your system unless a long time goes by and the update does not show up.  You can also check ubuntuupdates.org to (unofficially) see if the software has been released for Ubuntu.

** Update - it's in the repos as of 11/19/16


Laptop Soundcard buzzing when not in use

Thanks for explaining the issue, I would never have figured it out myself.
For future searchers, there are instructions for enabling or disabling the audio card's power saving mode here:
https://wiki.gentoo.org/wiki/Power_management/Soundcard
The bottom line for AC97 or Intel HDA cards is to create a file named /etc/modprobe.d/audio_powersave.conf and add one of these lines:
# For AC97 cards:
options snd_ac97_codec power_save=0
# For HD audio cards:
options snd_hda_intel power_save=0

Then reboot.


From UbuntuForums.org:

  Re: How to precisely resize windows in XFCE?

  xdotool will allow you to resize windows on the fly. For example, to resize an existing Mousepad window to 400x400 pixels:

xdotool windowsize $(xdotool search --name "Mousepad" | tail -1) 400 400

  If you want to start a program with a specific size, you can use the --geometry or -g parameters if the application supports them, or use a tool like devilspie.

Running the xdotool command worked perfectly. I just substituted Mousepad with whatever the name of the application was.

If you want to select the target window interactively, you can combine the two xdotool window commands windowsize and selectwindow:

xdotool selectwindow windowsize 800 600


How to extend an existing partition with newly installed hard drive

Since your partitions are showing up as /dev/sda*, that means you're using them directly. A physical partition is inherently part of a single disk, so you can't do it directly.

However, it is possible to create a logical partition that spans multiple physical drives, using LVM. LVM can be set up using the Ubuntu installer, but since you already have a working installation you would need to set it up manually. If you have a separate /home partition, this isn't too difficult:

From a live CD, back up your /home partition (e.g. using dd or partimage) to somewhere else.
Format the old /home partition and /dev/sdb1 as LVM physical volumes. If you want more space for the root as well, delete the /home partition and recreate it smaller.
Add the two physical volumes to an LVM volume group.
Create a new LVM volume using all available space.
Restore your image onto the new volume. Expand the partition to fill the entire space using resize2fs.
Adjust your fstab to tell it to automatically mount your logical partition.

Beware: You will lose the logical partition if either disk fails. Keep good backups.


How can I remove a bad program without logging in?

I resolved my problem by changing my shell to Unity in the login screen, logging in, and running sudo apt purge indicator-multiload. I could then log back in with a different shell.


From what I understand in the comments, it sounds like you just have one server, which you have installed MaaS on.

Having MaaS installed on a server doesn't just let you run VM's on the server using the MaaS API (interface). What MaaS does is let you manage other physical servers from the MaaS server, using the MaaS API.

You can build a setup where the MaaS server manages virtual machines and you can use those virtual machines using the MaaS API, but this would be used more for testing MaaS out than for production -- there are better systems (that don't involve MaaS) to use for running a bunch of virtual servers on one physical machine (like LibVirt and KVM or even LXC, which I hear Juju has and is continuing to work on their support for).

You might look at How do I configure juju for local usage? if you are wanting to just be able to deploy Juju charms That method would bypass using MaaS, and instead use something called containers (also referred to as LXC) that should let you deploy charms to the local computer but with the charm in it's own sandbox.


The path /usr/local/texlive... indicates that you've mixed up Ubuntu packages and TeXLive from source (upstream).

Don't do this.

lualatex isn't looking for the file in that location. Install texlive-luatex now properly (possibly apt-get install --reinstall).


This is my Conky (1.11.6) config which is transparent on Ubuntu 20.10 desktop. I think background and own_window_type are the most relevant:
conky.config = {
    alignment                           = 'top_left',
    background                          = false,
    border_inner_margin                 = 0,
    border_outer_margin                 = 0,
    border_width                        = 0,
    color0                              = '1FAAF0',
    color1                              = 'EBE1E1',
    cpu_avg_samples                     = 2,
    default_color                       = 'gray',
    default_outline_color               = 'green',
    default_shade_color                 = 'red',
    diskio_avg_samples                  = 2,
    double_buffer                       = true,
    draw_borders                        = false,
    draw_graph_borders                  = false,
    draw_outline                        = false,
    draw_shades                         = false,
    extra_newline                       = false,
    font                                = 'Play:normal:size=7',
    format_human_readable               = true,
    gap_x                               = 150,
    gap_y                               = 50,
    lua_load                            = '/home/me/rings.lua',
    lua_draw_hook_pre                   = 'conky_main',
    maximum_width                       = 1920,
    minimum_width                       = 1920,
    net_avg_samples                     = 2,
    no_buffers                          = true,
    out_to_console                      = false,
    out_to_stderr                       = false,
    extra_newline                       = false,
    own_window                          = true,
    own_window_argb_visual              = true,
    own_window_class                    = 'Conky',
    own_window_type                     = 'desktop',
    own_window_transparent              = true,
    own_window_argb_visual              = true,
    override_utf8_locale                = true,
    stippled_borders                    = 0,
    temperature_unit                    = 'celsius',
    text_buffer_size                    = 2048,
    update_interval                     = 1.0,
    uppercase                           = false,
    use_spacer                          = 'none',
    use_xft                             = true,
    show_graph_scale                    = false,
    show_graph_range                    = false,
    xftalpha                            = 0.9,
};


Cannot install 16.04 LTS (x86), "task mapper/0:1 blocked for more than 120 seconds"

For anyone who may find this in the future...
The issue is almost definitely memory-related, which is to say there's not enough memory to install Ubuntu 16 on this machine. Furthermore, this particular laptop maxes out at 1GB RAM so I can't install Ubuntu 16 no matter what as it requires 1.5GB RAM. I am able to install Lubuntu 16 on this machine without difficulty so that's what I'm doing.


How do I play HD video without it stuttering?

Try it on any other operating system with this specs and it will choke. Some Single Core 2 Ghz can't handle even 720p but 1080p it's a sure...

I have a PC: Athlon 3000+, Single Core 2 Ghz, ATI Radeon 4850 HD(1GB ; 512 bit) with big bandwidth and it chokes too... Overclocked to 2.4 Ghz and anyway chokes for 1080p(Blu-Ray).

Btw, try to compile the new kernel(2.6.38-rc4) it gives awesome performance boost(I don't know if it gives the boost for Single Core, for Multi-Core for sure but anyway, u may wanna try): https://wiki.ubuntu.com/KernelTeam/GitKernelBuild .If u want to compile the Kernel, don't forget that u need at least 7GB disk space.


Login interface completely changed in Xubuntu 18.04

I don't konow which displaymanager Xubuntu uses normaly. But you can run the comand to reconfigure your Display manager:

 sudo dpkg-reconfigure lightdm

If it is missing try to install it:

 sudo apt install lightdm

Insead of lightdm you can also use gdm3 wich is the default for Ubuntu (Gnome).


How to completely reset ubuntu networking settings?

Try this:

sudo nano /etc/network/interfaces

Enter:

auto eth0
iface eth0 inet dhcp

eth0 is assuming that you are using an Ethernet labeled "eth0". You can confirm that with ifconfig.


Ubuntu One syncs only the Ubuntu One folder. Where is my purchased music?

As of Natty subscription to synchronized folders is no longer automatic. You will be prompted as to which ones you want to synced on signing in to an existing account, and if and when you add additional synchronized folders. However not all of that work is done in Natty right now, so until then, go to System > Preferences > Ubuntu One, go to the “Cloud folders” tab, and select which ones you want synchronized.


The delay is a known bug: https://bugzilla.xfce.org/show_bug.cgi?id=16731
The main developer of the xfce4-whiskermenu-plugin has fixed the issue. Installing version 2.4.4 solves the problem.
I did so by adding the developer's PPA: https://launchpad.net/~gottcode/+archive/ubuntu/gcppa
I'm sure that version 2.4.4 will eventually find its way into the main Ubuntu repo, but I'm happy to have this extra repo for now.
The animation is intentional. Someone opened a bug but the developer does not see it as a problem and it isn't something for which there will be a separate setting: https://bugzilla.xfce.org/show_bug.cgi?id=16593 and https://gitlab.xfce.org/panel-plugins/xfce4-whiskermenu-plugin/-/issues/20
Since the animation wasn't causing the delay I personally have no problem with it.


If you used LVM then you can add directly to the volume group and then logical volume in turn.

If you didn't use LVM, you can mount the new space in an existing directory. This will make the space available under that directory, but won't expand the space it has been mounted onto.


ls -I <filename>

-I = Ignore the filename, i.e., don't list the specified file.

To ignore more than one file add an -I before each filename.

ls -I file1 -I file2

To ignore files by their name extensions do the following, for example.

ls -I "*.jpg" -I "*.svg"


Can I display Chrome/Chromium tabs in the top panel?

If your referring to the toolbar at the top of Unity then I don't believe there is a method to do this.

A better idea might be an auto hide feature for the toolbar in Gnome Shell.(http://www.webupd8.org/2011/11/autohide-top-bar-extension-finally.html)  Unity at the moment isn't very customizable beyond lenses and hacking/building from source yourself.

Gnome Shell on the other hand is very customizable and it is easy to do if you want to make your own and you know a little programming.

I am sure you already know about this, but you can always press F11(Fullscreen mode) and then move to the next tab with ctrl+(tab number) like ctrl + 1 for the first tab or ctrl + 2 for the second tab.  I suppose this would be nice if you are trying to get all the extra space outta of your screen.

Hope this helps.  I am personally working on some Unity plugins of my own and I will keep your question in mind.


Open dconf Editor application (dconf-editor from command line) and go to:
/ org / gnome / desktop / wm / preferences / button-layout

Edit the Custom value as follows:
appmenu:minimize,maximize,close

Click the Apply button.
After that you should have the three usual buttons.
Note: If you do not have the dconf Editor application, you can install it using:
$ sudo apt install dconf-editor


Could this be what you are looking for:

http://manpages.ubuntu.com/mod-mono-server

Mono is the .net framework for Linux


How to copy & paste from Ubuntu VirtualBox guest to Windows host?

Go to VirtualMachine's Settings->General->Advanced->Shared Clipboard (Bidirectional)

Reboot your virtual machine.

for me it solved the problem (it was set on Disabled), I had some machines working some not, so i checked settings in working ones they had bidirectional clipboard. Dont know if this was upgrade issue or... just double check your shared clipboard options.

Hope this helps someone.

VirtualBox V 4.1.20


is intel turbo-boost option good for life-time?

turbo doesn't harm your computer, can you find any evidence of this?

Turbo overclocks the cpu for a short period of time, so if you have bad cpu cooler it may have negative effect, but then a bad cpu cooler should be replaced.
You should always use turbo unless the temperature of the CPU is too high (near it's max value).

Also hard drives have improved a lot since Windows 98 was released. Also defragmentation and performance test aren't the same, defragmentation moves around the files and performance test maxes the hard drive out.


You can try:

sudo apt update

sudo apt upgrade

sudo apt dist-upgrade

I think you should always try to avoid the '-d' argument as it refers to development releases and may bring instability


Well I thought this was an interesting problem. There are things like apt-offline that will help you if you have another Ubuntu machine connected to the internet (strongly suggest looking into it if you do) but there isn't much I can see to help people who are stuck needing packages of things.

And yes, I do think the packages are worth the effort in this case. MySQL is a hard thing to install well manually. There's a lot of configuration that dpkg handles for you with the ubuntu packages.

So I've written this one-line script. Give it a package to install (in this case mysql-server) and it'll use your local apt-get database in simulate mode to work out what packages it needs. You might be able to get away without an updated package list, but I strongly suggest you run sudo apt-get update before running this (you'll need some bandwidth for that).

apt-get install -qs mysql-server | grep "Inst " | awk 'BEGIN { FS="[ \(\)\[\]\/]+" } { print "http://packages.ubuntu.com/" $5 "/" $6 "/" $2 "/download" }'

This generates a list like this:

http://packages.ubuntu.com/maverick/all/libnet-daemon-perl/download
http://packages.ubuntu.com/maverick/all/libplrpc-perl/download
http://packages.ubuntu.com/maverick/i386/libdbi-perl/download
http://packages.ubuntu.com/maverick/i386/libdbd-mysql-perl/download
http://packages.ubuntu.com/maverick-updates/i386/mysql-client-core-5.1/download
http://packages.ubuntu.com/maverick-updates/i386/mysql-client-5.1/download
http://packages.ubuntu.com/maverick-updates/i386/mysql-server-core-5.1/download
http://packages.ubuntu.com/maverick-updates/i386/mysql-server-5.1/download
http://packages.ubuntu.com/maverick/all/libhtml-template-perl/download
http://packages.ubuntu.com/maverick-updates/all/mysql-server/download

Those links will take you to the packages.ubuntu.com website where you can download the packages (at their right versions). Unfortunately, this is a little bit manual and the website is pretty slow. People might be able to improve my script to provide direct download links to the packages.

Once you have the packages and you're back on your low-bandwidth system, either stick them in /var/cache/apt/archives/ and run the standard sudo apt-get install mysql-server or simply cd into the directory where the packages are and run `sudo dpkg -i *.deb"


Full install to USB drive (not U.S.B installer)

Yes, you can. You just have to point the Ubuntu installer to the USB drive manually during the installation by choosing "something else". (Keep in mind you can't install from a USB stick to itself)

HOWEVER, I would not recommend it. It will be slow to start up, and may perform excessive writes, eventually causing the USB drive to fail.

Rather, I suggest creating a "live" USB stick with "persistence."


How can I configure logrotate to copy/SSH apache log files

Look at the prerotate and postrotate configuration options (examples in man logrotate). You could for instance have a prerotate that scps the file (make sure you configure SSH keys properly; your root user should be able to ssh to the target system without needing a password). This would copy the access.log file before rotating (renaming, compressing, etc) it.

Note that in this case you would lose any accesses that happen between the copying of the file and the rotation step, so you could also put this in the postrotate section but copy access.log.1 instead.

in /etc/logrotate/apache2 (this may be different, I only have access to a Debian system) you can add the prerotate section so the contents of the file look like this:

/var/log/apache2/*.log {
    weekly
    missingok
    rotate 52
    compress
    delaycompress
    notifempty
    create 640 root adm
    sharedscripts
    postrotate
        /etc/init.d/apache2 reload > /dev/null
    endscript
    prerotate
        scp /var/log/apache2/access.log you@elsewhere.com
    endscript
}


Assuming that image is named R2015b_glnxa64.iso, simply mount ISO:

sudo mkdir -p /media/iso
sudo mount -o ro,loop ./R2015b_glnxa64.iso /media/iso

run the installation script:

sudo /media/iso/install

and finally unmount image:

sudo umount /media/iso


If your clients are going to be running windows, I would recomend Samba. Samba can be enabled by right clicking on a folder->Properties->Share.

To mount your drives on your windows machines just write:

  \\ipforyourserver\sharedfoldername

in RUN


How do I remove trash icon from GNOME desktop?

Up to Ubuntu 18.10
You may use (GNOME) Tweaks (aka GNOME Tweak Tool) to do that. First install it (if it is not installed) by running the following command in Terminal
sudo apt install gnome-tweaks

or
sudo apt install gnome-tweak-tool

Launch Tweaks and go to Desktop section. Then toggle off (or uncheck) the Trash (or Rubbish bin or Wastebasket) option under "Icons on Desktop".

Alternatively you may run the following command in Terminal:
gsettings set org.gnome.nautilus.desktop trash-icon-visible false


NTFS can only be properly handled by Windows. It would be best to use a Windows machine to encrypt it.


Why does fstrim not seem to be thorough?

This may be because dirty data is still being flushed back to the device or because background processes (such as logging daemons) etc are writing to the device. A good experiment would be to force dirty data to be sync'd back to the device before trying the trim using sync.


Add source /usr/share/bash-completion/completions/password-store to your ~/.bashrc and then source the latter by running source ~/.bashrc.


Switching Workspace with 3 finger gesture on Ubuntu 16.04

Try,

synclient TapButton3=0 [instead of 1]

synclient ClickButton3=0 [instead of 1]

touchegg


Using xinput and setxkbmap utilities, you can set from terminal so that each keyboard to have a different layout.

First, using xinput -list | grep key command, you have to find the device ID of each keyboard. Here s an example (my case):

$ xinput -list | grep key
⎣ Virtual core keyboard                         id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ Video Bus                                 id=7    [slave  keyboard (3)]
    ↳ Power Button                              id=8    [slave  keyboard (3)]
    ↳ Sleep Button                              id=9    [slave  keyboard (3)]
    ↳ 2.4GHz 2way RF Receiver                   id=10   [slave  keyboard (3)]
    ↳ HP Webcam                                 id=12   [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=13   [slave  keyboard (3)]
    ↳ HP WMI hotkeys                            id=15   [slave  keyboard (3)]
    ↳   USB Keyboard                            id=16   [slave  keyboard (3)]
    ↳   USB Keyboard                            id=17   [slave  keyboard (3)]

And second, using setxkbmap -device <key_ID> -layout <layout_name>, set the layout which you wish for each keyboard. An example (for my keyboards):

setxkbmap -device 3 -layout ro    #My master keyboard is set to Romanian layout
setxkbmap -device 10 -layout us   #The keyboard with id=10 is set to English (US) layout
setxkbmap -device 16 -layout ru   #The keyboard with id=16 is set to EFor Russian layout


Use internet connection from one server in second server

Setup Server1

Configure iptables for NAT translation so that packets can be correctly routed through Server1:

sudo iptables -A FORWARD -o em1 -i em2 -s 192.168.2.0/24 -m conntrack --ctstate NEW -j ACCEPT
sudo iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
sudo iptables -t nat -F POSTROUTING
sudo iptables -t nat -A POSTROUTING -o em1 -j MASQUERADE

Save new added iptables rules:

sudo iptables-save | sudo tee /etc/iptables.sav

and add the following line before the "exit 0" in /etc/rc.local:

iptables-restore < /etc/iptables.sav

Configure Server1 for routing between two interfaces by enabling IP forwarding:

sudo sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward"

Open /etc/sysctl.conf and uncomment:

net.ipv4.ip_forward=1

Setup Server2

em1 is the network card on Server2 which is connected (by crossover cable) to em2 on the Server1. Any IP address can be set for em1 in Server2, as long as it matches the subnet (192.168.2.0/24) of em2 in Server1, for example: 192.168.2.100

Stop networking

sudo /etc/init.d/networking stop

Add default gateway for em1 in /etc/network/interfaces:

auto em1
iface em1 inet static
address 192.168.2.100
netmask 255.255.255.0
gateway 192.168.2.72

  This address should match the IP address of em2 in Server1.

Edit /etc/dhcp/dhclient.conf:

prepend domain-name-servers 8.8.8.8,8.8.4.4;

  8.8.8.8 and 8.8.4.4 are Google DNS. If you wish to use your ISP's DNS servers, just replace them.

Restart networking

sudo /etc/init.d/networking restart

Now Server2 should have the internet connection shared from Server1.


Disable/Remove app menu from gnome shell 3.10

This gnome extension can do that: taskbar

The option to hide the app menu is under the Misc tab.


Does cloning my HDD to an external HDD leaves the external drive useless?

Cloning it to the external HD will result in the fact that your external HD will be seen as a 320GB HD.

Not really useful.

Why do you want to clone it and not just copy all the files?


Previously I got similar problem with NVidia proprietary driver. If you don't mind playing in windowed mode.

Running NFS in Virtual Desktop mode of Wine.

Wine Configuration (winecfg) → Graphics  → Check: Emulate a virtual desktop

You can create new profile to be applied only for NFS.

Wine Configuration (winecfg) → Applications

Kind of such problems with wine you may search in https://appdb.winehq.org/


How to make my Toshiba u940 laptop's keyboard backlit to work?

To enable the backlight:

echo 2 | sudo tee /sys/class/leds/toshiba::kbd_backlight/brightness

The 2 at echo 2 | can be changed to a value between 0 - 3, with 3 being the brightest.

To disable the backlight, enter:

echo 0 | sudo tee /sys/class/leds/toshiba::kbd_backlight/brightness

reference this answer  but changing asus  to toshiba .

Updated

some people whom report this issue say disabling acpi solve the problem to disable acpi:

open terminal
edit /etc/default/grub
append acpi = off to GRUB_CMDLINE_LINUX_DEFAULT
update-grub
if not working do these steps again and delete acpi = off

if none of these solution work may it's this bug


If you don't like the idea of running Gnome-do from the terminal, one way to figure out what is happening is to start it as gnome-do > ~/.dolog.txt and read that file when do crashes.
What this does it divert the output of gnome-do (read the debugging information) to the file dolog.txt. This file will be found in your home directory, as in /home/username/dolog.txt

You may file a bug against gnome-do with that file on Launchpad to help fix it.

I am also having some problems with gnome-do crashing that way as well, and maybe with all of our inputs, the devs will be able to solve them.

As far as your other problem, which is restarting gnome-do once it crashes, you can always try this workaround that I found quite helpful:
Assign a shortcut key to restarting gnome-do, such as Ctrl+Shift+Space and use that instead to relaunch it.

An easy way would be to launch gconf-editor

then navigate to apps->metacity->global_keybindings and assign the value <Control><Shift><Space> to run_command_1

and then go to apps->metacity->keybinding_commands and type exec gnome-do > ~/dolog.txt as the value of command_1

Now when gnome-do crashes, you will have an easy way to restart it (Ctrl+Shift+Space) instead of going into the menu again...
And since that shortcut is so close to the original shortcut for summoning gnome-do in the first place, it has the added advantage of being easy to remember!


install conky, configure:error:required header(s) not found

Try  Conky 1.9.0 deb from this ppa.

https://launchpad.net/~vincent-c/+archive/conky/+packages


Upgrade IBus or "export IBUS_ENABLE_SYNC_MODE=1" to fix IntelliJ/Android Studio input issue

I would always choose the easiest method only if I got a disadvantage that bother me.

echo "export IBUS_ENABLE_SYNC_MODE=1" >> ~/.profile

Upgrading or downgrading to version not available in repository, in general  may create many complications like unresolved dependencies. You may then forced to installed from source. I would not close a door, so plan b is upgrading.


Update meson on Ubuntu 18.04.4 LTS -- force update

I upgraded meson from https://github.com/mesonbuild/meson.git and added it in front of my $PATH, but some scripts seem to use a hardcoded path to /usr/bin/meson, so that was not enough.

After the upgrade, I had the new version at ~/src/meson/meson.py which I copied to ~/src/meson/meson (without the .py extension).

Then, what fixed it for me was

my_meson=~/src/meson # <-- Adapt to the path of your wanted meson directory

export PATH=$my_meson:$PATH
echo 'export PATH='$my_meson':$PATH' >>~/.bashrc

sudo ln -si $my_meson/meson /usr/bin/meson

The essential part is the last line, which replaces the original symlink to point to the new version.


How to selectively update my local ubuntu mirror

You can use reprepro to do that:
http://mirrorer.alioth.debian.org/

Docs on their site looks outdated but this wiki seems helpful: https://wikitech.wikimedia.org/wiki/Reprepro


Installing Ubuntu 13.04 repartitioning problem

First of all you'll need to boot Windows 8 -> Right click on Computer -> Manage -> Disk Management -> Shrink your Windows partition to desired amount you want to give Ubuntu.

Then you'll need to boot using Ubuntu Live CD and use the space just cleared up by partitioning it into "/" (Root) "swap"  and /home  partitions. Give about 10 GB to the root, 1 GB to Swap partition and the rest to home.

Reply back in case any more information is needed. Welcome to Ubuntu!


GRUB is showing Failed to Set MokListRT: Invalid Parameter error after fresh installation of Ubuntu 20.10 on Gigabyte GA-990XA-UD3 in UEFI mode

Ubuntu installer incorrectly suggest what all UEFI systems has Secure Boot feature. But mine hasn't.
To correctly execute booloader and pass Secure Boot checks, Ubuntu use special package called shim. On UEFI systems without Secure Boot support it shouldn't be used in boot process.
The easiest way to remove it and rebuild grub, is to use Boot Repair app. Execute the following commands:
sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt install -y boot-repair

You may run it through terminal
sudo boot-repair

but because it will ask you to execute few commands on terminal during repair, I'll prefer to run it from graphic interface.
Wait until Boot Repair will scan your system and then set the following advanced options:

Main options

[x] Reinstall GRUB
[x] Use the standard EFI file
[ ] Backup and rename Windows EFI files
[ ] Restore EFI backups
[x] Unhide boot menu: X seconds
[ ] Repair file systems

Check GRUB location is correct
GRUB options

[ ] Secure Boot
[x] Purge GRUB before installing it
Uncheck all other options here

Other options: leave all as is, but I will prefer to change one option:

[ ] Repair Windows boot files

then click Apply. Follow instructions provided by the app, execute required commands, then click Follow in UI.
Now just reboot.
P.S. If you want to see your GRUB menu during boot load process (by default it's hidden and available by Esc pressing or Shift holding) you may do the following:
sudo nano /etc/default/grub

add or change
GRUB_TIMEOUT_STYLE=menu

and run
sudo update-grub

Then reboot.


Sure, you just boot via the live disk, mount your /home partition and copy your data to an external source. Once you boot intro the live disk (presuming you will use ubuntu) a hdd icon will show up in unity (ore more depending you your configuration) just click on that and it should mount it for you, that represents your hdd(s)


Automatically doubling the value of numbers in a string in multiple files

I assume all lines you want to change start with the string private static final Height biomeHeight = new Height. If yes, then you can use awk:

awk -F'[(,)]' '$1=="private static final Height biomeHeight = new Height"\
{$0=$1"("$2*2"F, "$3*2"F);";}1' file

Explanation:

-F'[(,)]' sets awk's delimiter to the characters (, ) and , that we have the paramters of that java function in the awk fields $2 and $3
$1=="..." if the first field equals the string

{$0=$1"("$2*2"F, "$3*2"F);";} reformat the new string with the doubled values.

1, that single 1 at the end is equivalent to {print $0}, hence print the whole (edited or not edited) line.

Edit:

The above awk statement only works when the line start exactly with private static .... When there are spaces we need to change it a bit:

awk -F'[(,)]' '$1~/[ ]*private static final Height biomeHeight = new Height/\
{$0=$1"("$2*2"F, "$3*2"F);";}1'

I checked with your pasted code. See the diff:

$ diff file_old file_new
12c12
<       private static final Height biomeHeight = new Height(8.0F, 0.025F);
---
>       private static final Height biomeHeight = new Height(16F, 0.05F);


Adding software as one of the type-ahead options in Ubuntu 20.04

The Ubuntu search (Gnome Shell search) not only searches program name, but also generic names, comments and keywords in the program launcher to search. "Periodic Table" therefore may not be included in the launcher for Kalzium.
To add these keywords, customize the launcher of Kalzium. Desktop launchers are little text files ending with the .desktop extension that live in specific folders in your system, in /usr/share/applications for applications installed using the APT system, but elsewhere for applications installed as snap or flatpak.
Find the .desktop file of Kalzium, and make a copy of it in the .local/share/applications folder in your home directory. .local is a hidden folder that you only can see when you enable "Show hidden files" in the file manager.
Edit that copy, and edit, or add, periodic table; to the Keywords= line, so it looks similar to:
Keywords=chemistry;Mendeleev;periodic table;

Formatting is important: keywords are separated by semi-colon (;) and also the last keyword needs to end with a semi-colon.
Your local customized copy will take precedence over the system wide one. The launcher of Kalzium should now be found if you type "periodic".
If you want this change to apply for all users, then place the modified copy in /usr/local/share/applications. That folder does not exist by default, so you need to create it. This is better practice than directly editing the file in /usr/share/applications: that folder is managed by the operating system, and your changes may be overwritten by an update.


It seems that a kernel module is blocking wifi, so
echo "blacklist ideapad-laptop" | sudo tee /etc/modprobe.d/ideapad-laptop.conf
Reboot and see if the hard blocks are gone

I would suggest filing a bug report at bugs.launchpad.net/ubuntu against package linux and then follow instructions


How to sync my music and photos with Windows Phone 7 device?

Your options:

Zune installed on virtual machine (e.g. VirtualBox)
Zune doesn't work with Wine (the Windows-Linux compatibility layer) and Windows Phone devices don't feature USB storage mode so your only option regarding Zune really is running it in Virtual Box + Windows.
https://duckduckgo.com/?q=linux+zune+virtualbox

USB mass storage hack on virtual machine
You install Windows with Zune on a virtual machine and use a small registry hack as per instructions given here http://forum.xda-developers.com/showthread.php?t=975401

Cloud storage (e.g. MediaFire.com or SkyDrive.com) as a middle-man (i.e. [your computer] <-> [cloud storage] <-> [your Windows Phone smartphone]) doesn't work. WP does not allow downloading MP3 to phone except from specialized websites/apps of specialized music stores/providers like 7digital.

Related:
Zune + Ubuntu, What are my options?


You need any partion manager to remove Ubuntu file systems ("/", and "/home") and linux swap. (If say more simply - delete everything). Then make one (or some, if you want) NTFS's and install there your Windows from flash drive (You can search in web about it).

P.S. My English in not very well, so maybe I make many mistakes. I tell you in advance thanks, if you will fix them.


how to mount dvd-rw drive/create mount point

I looked in /dev.  A file there was called dvd.  I entered '  ls -al /dev/dvd  ' and it told me that this was a link to /dev/sr0.  I inferred that from this response:

lrwxrwxrwx 1 root root 3 Apr 24 15:56 /dev/dvd -> sr0

The first 'l' means that it is a link, not a real file.

Then, I looked at /.  There was a directory there called 'mnt', the usual node for subdirectories of mounted peripheral devices.  It was empty.

I made a subdirectory of /mnt using:

sudo mkdir /mnt/cdrom

Then, I mounted sr0 there with:

sudo mount /dev/sr0 /mnt/cdrom

To see, I looked at it:

ls /mnt/cdrom

It came up with a lot of right-looking stuff, so I concluded success.


Check java version:

java -version

Find the java bin path using the command

readlink -f $(which java)

Check java.home preference in vscode settings. You find it navigating to Code -> Preferences -> Settings > Click on Java from the left side -> Home

Set java.home

"java.home":"/usr/lib/jvm/java-11-openjdk-amd64/bin"

Save and restart vscode.


Install Composer and configure with XAMPP

Install composer like so:

sudo curl -s https://getcomposer.org/installer | /opt/lampp/bin/php

After installation, you should then symlink it by running command:

sudo ln -s /opt/lampp/bin/php /usr/local/bin/php

Then run the command below to allow the 'composer' command to be run globally (this will be run from within the folder where you've just installed composer in which a composer.phar file has just been created):

sudo mv composer.phar /usr/local/bin/composer


Fglrx AMD Catalyst 12.6 doesn't compile in Ubuntu 12.10 (64 bit or 32 bit)

Read this link carefully and try again.

Follow these steps:

Install the prerequisite packages:

sudo apt-get install build-essential cdbs dh-make dkms execstack dh-modaliases linux-headers-generic

If you are using the x86_64 architecture (64 bit):

sudo apt-get install lib32gcc1

Download the driver. This package contains both the 32-bit and 64-bit driver.

wget http://www2.ati.com/drivers/legacy/12-6/amd-driver-installer-12.6-legacy-x86.x86_64.zip
unzip amd-driver-installer-12.6-legacy-x86.x86_64.zip
chmod +x amd-driver-installer-12.6-legacy-x86.x86_64.run

Create and install

sudo sh ./amd-driver-installer-12.6-legacy-x86.x86_64.run --buildpkg Ubuntu/quantal
sudo dpkg -i fglrx*.deb

then

sudo amdconfig --initial -f

After all this, if you can't login switch to a new tty using Ctrl+Alt+F2 and remove the fglrx driver using

sudo apt-get remove --purge fglrx fglrx_* fglrx-amdcccle* fglrx-dev*

Then to use the open source drivers

sudo apt-get remove --purge xserver-xorg-video-ati xserver-xorg-video-radeon
sudo apt-get install xserver-xorg-video-ati
sudo apt-get install --reinstall libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core
sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
sudo rm -rf /etc/ati

If you receive

$ E: Internal Error, No file name for libgl1-mesa-dri

Change the third command above to:

sudo apt-get install --reinstall libgl1-mesa-glx:i386 libgl1-mesa-glx:amd64 libgl1-mesa-dri:i386 libgl1-mesa-dri:amd64 xserver-xorg-core


The recommended method is to add a repository to your system:

deb http://ppa.launchpad.net/vala-team/ppa/ubuntu utopic main
deb-src http://ppa.launchpad.net/vala-team/ppa/ubuntu utopic main

If you are unsure on how to add this read the link on the launchpad page. Verification of the repository:

Signing key: 1024R/7DAAC99C ([What is this?][3])
Fingerprint: 008940D610E4CD892340AB0A4CE987B57DAAC99C

After this you can use Ubuntu Software Center or sudo apt-get install valac-0.26 from command line to install the latest stable version of vala (read the description on the launchpad page for more details).

From our community page on vala:

  The Vala team PPA also contains:

  libgee - Libgee is a collection library providing GObject-based interfaces and classes for commonly used data structures.
  vtg - Vala Toys for gEdit is an experimental collection of plugins that extends the gEdit editor to make it a better programmer editor
  for the Vala language.
  valide - Val(a)IDE is an Integrated Development Environment (IDE) for the Vala programming language.
  gtksourcecompletion - used by the editor packages. Source completion is not working in the PPA builds; there is no library file created.


How to use the ISU thousands separator (space)?

I don't find any locale in Ubuntu which combines space as the thousands separator and dot as the decimal point. Maybe you want to file a bug about it.

Anyway, you can fix it for yourself by modifying the en_IE locale. As regards the LC_NUMERIC data it copies them from the en_GB locale, so one way to fix it is to edit the en_GB locale definition file and regenerate the Irish locale:

sudo sed -ri 's/^(thousands_sep +)"<U002C>"/\1"<U0020>"/' /usr/share/i18n/locales/en_GB
sudo locale-gen en_IE.UTF-8


How to create new files or modify existing files in a sym link?

Most probably the folder /var/www belongs to root and you don't have permission to write there. So the symlink only enables you to read it not modify or create anything. You can always use sudo to modify those contents.

But do not change /var/www permission to gain access to it. This would be a real bad idea.

Here you can find better solution for your problem to access contents of /var/www without even using sudo.


How do I obtain token used to enable ubuntu-advantage esm?

@dobey is correct. Please get in touch with Canonical support via ticketing system https://support.canonical.com  or phone and they will help with enabling ESM service.


It seems that your answer is in this particular package:

ppa:ubuntu-x-swat/x-updates

I will try this when I get home, since I got the same graphics card

If you dont know how to add packages:

sudo add-apt-repository ppa:ubuntu-x-swat/x-updates && sudo apt-get update
sudo apt-get install nvidia-current && sudo apt-get install nvidia-settings

this should do the trick


Problems connecting to eduroam wifi - ubuntu touch

I use Aquaris E4.5 (Ubuntu edition). For me the following settings for the network manager on the phone worked:

Wireless Security : WPA & WPA2 Enterprise

Authentification  : PEAP

Anonymous Id      : (none)

Certificate       : (none)

PEAP Version      : Version 0

Auth. protocol    : MSCHAPv2

user name         : your_login

password          : your_password

hope this helps,
Julien


HP Pavilion G6 overheating due to the graphics driver

You can try deactivate the graphic driver in 'additional drivers'.


Sounds like you need to reset your GNOME configuration - if you're using Unity, look at this post, otherwise look at this post.


Accidentally erased 14.04-4 ubuntu and installed 14.04-1

Is your /dev/sdb1 mounted? If not, create a directory (i would suggest that you create it in /media/(your username)) and then run sudo mount /dev/sdb1 /path/to/the/directory

Also, if you want Ubuntu to mount your Windows filesystem everytime it starts up, add the filesystem entry to /etc/fstab.


Basically the black screen that used to be purple is called Grub. Grub is a bootloader, what a bootloader does is that it holds the entries which you can use to boot up your operating systems.

When grub is installed, the hard disk(s) is scanned for operating systems, then these entries are generated and given to grub.

So what boot repair did was to install grub (not sure what happens to the old grub, maybe it's overwritten). So boot repair scanned your hard disk and generated the entries that you see.

Not entirely sure why boot repair decided to add those extra entries. My guess is that those are .efi files that were found while it was scanning your hard disk (on /dev/sda2) and it just added them. Maybe because its function is to try and help you boot in any possible way it added them. You shouldn't worry anyway. If you want to remove them you can edit sda6/boot/grub/grub.cfg and just delete them (tell me if you need help with that).

As for /dev/sda3, this is a "microsoft reserved partition", why do you want to mount it? I have such a partition and I didn't try opening it before. It also gives me that error you see in gparted.

You can do gksu gedit /boot/grub/grub.cfg. This should have the entries you see when you boot. I saw them in the ubuntu paste that you provided. Take a look at it. The file starts at line 156. and you'll find "menuentry"s at lines like 468, 473... those are the ones that should be removed.

However I didn't do that by hand before so I'm not sure whether you can just delete the entries that you don't like. ...I tried grub-customizer before! you can use it! To install it you can use the ppa method.

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


At that point in the install, it's installing the Broadcom wireless driver and preparing the partitioning operations.  Both of these tasks are complex and thus require a moderate amount of CPU time.

If you do not check the box for third-party software, it will progress to the next screen much quicker.


Check if your firewall is enabled by running sudo ufw status.
To enable it run sudo ufw enable.
And the command you should run to open a port is sudo ufw allow [port]/[protocol].
Assuming you are running LAMP and want to expose the web server, you would want to run sudo ufw allow 80/tcp.


It looks like ssmtp doesn't support the -i argument, and requires -oi instead.  Note that -oi means the same thing and should work on other sendmail implementations.

Could you try changing your sendmail command to /usr/sbin/sendmail -t -oi?

ssmtp manpage at: https://linux.die.net/man/8/ssmtp.


Slow internet connection with mobile broadband

I found it! it isn't a problem with the modem, it's a bug in the 10.10 system and I switched to new 11.10 and now my net speed boosts more than windows do! thanks anyway for the help from you guys!


cpu frequency stays at the top even with ondemand or powersave governors

You can Is there a power saving application similar to Jupiter? read the full configuration

  Removing default Ubuntu cpu frequency config

sudo update-rc.d -f ondemand remove

Then you can use this post How to change default scaling governor back to ondemand

  Just keep it in mind that you need powersave

powersave       Run the cpu at the minimum frequency

sudo apt-get install cpufrequtils -y


installation error in sklearn for python3

There's an issue with the pre-compiled Cython C files (compatibility with Python 3.4.0) with the pypi version.

To properly install scikit-learn, use the git repo instead (tested ok on 14.04):

sudo pip3 install git+https://github.com/scikit-learn/scikit-learn.git


Setting a command to be run when switching to a virtual desktop (or an activity) in KDE

Devil's Pie 2 lets you launch a script when that Window #n
is created, which is not quite what you wanted, but simple;
you can use Autokey to run a script which switches the window
then changes the language, and launch another script to revert to the
original settings, all by hotkey, or
there's also a GUI-aware Scripting tool called Sikuli you might
find interesting.


Will Natty have the netbook-edition Icons?

The actual image data of the icons is the same, the following changes have happened between Maverick and Natty in regards to icons.

1) Backlight color picking algorithm has been tweaked to ensure icons contrast at least a little with their background.

2) Icons are bigger, 48px internal rather than 32px, and 52px external rather than 48px

Currently non-running icons have their "backlight" as we are calling it turned off. This is going to be turned back on in the coming days. Also the trash icon is once again going to be symbolic. These are minor changes that have simply not gotten fixed yet.


What partitions to make If I will dual boot with Windows OS?

First of all, logical partitions can be extended to multiple partitions, while primary ones cannot.

I always recommend to have a single partition for Linux systems. It's easier to install and you won't run out of space very soon. This often happens when you get kernel updates, for example, and your /boot partition becomes full. You will have a great work to increase its size. So it's easier to simply have one partition.

I would recommend this setup:

First partition, NTFS, Windows C: drive;
Second partition, NTFS, Windows D: drive;
Third partition, ext4, Ubuntu root partition;
Fourth partition, linux-swap, Ubuntu swap partition.

This way you won't have to stick with logical partitions and system maintainance becomes easier. You won't have to increase/decrease partition sizes due to "no enough space" errors and your partition table becomes cleaner.

To do it while installing Ubuntu, select Avanced Options when the installer asks for the partition scheme, select sda3, format it as ext4 and put / as its mountpoint. Then select sda4 and format it as linux-swap.

Also remember to install Windows BEFORE Ubuntu, otherwise Windows' bootloader will overwrite GRUB (Ubuntu's bootloader).


File/folder protection that even government cannot break

First and foremost, I believe there isn't any encryption which can be deemed 100% secure. The reason for that is, it is human made. Despite that the evolution of hardware in the past 20 years has prooven that nothing is secure forever. Best example is here the long time deemed secure md5 one way encryption.

But back to your question, your best security is physical disconection from the internet, and maybe using even GnuPG to encrypt , but then use a very big key and store the key on a USB apart from the file.

And when you now think "Ok, im good at 'whatever programming language, you name it', I'm going to implement myself some encryptions", you should have a decent knowlegde of that whole encryption process, because a wrong made implementation is as bad as no encryption at all.

See encryption more like house door locks, they are made to prolong the time and efford to invest to break in.

So best course of action:

keep your file disconnected, store it on an external harddrive.
keep your file encrypted.
use a large keypair (4096 size)
store your private key apart from the harddrive on a second medium.
if you fear your competitor breaks into your home/company, get big bad
dogs and an alarm system or store the drive with file in a bank deposit.


Redirect port 80 to 8080 and make it work on local machine

You need to use the OUTPUT chain as the packets meant for the loopback interface do not pass via the PREROUTING chain. The following should work; run as root:

iptables -t nat -A OUTPUT -o lo -p tcp --dport 80 -j REDIRECT --to-port 8080


automount USB drive in VirtualBox via udev in ubuntu 12.04

I managed to solve this myself.
This is only for USB Storage (which I needed)

Remember to create a usb filter on your Vbox machine that takes all USB devices and makes it available.

Create an udev rule file in /etc/udev/rules.d

I called mine 80-automnt.rules

Contents:

DRIVERS=="usb-storage", RUN+="/etc/udev/vboxusb.sh %p"

Create the /etc/udev/vboxusb.sh file.

Contents:

#!/bin/bash
vendorid=`/sbin/udevadm info --query=all --path=$1 | sed 's/E: -*//g' | grep "ID_VENDOR_ID" | awk -F"=" '{print $2}'`
modelid=`/sbin/udevadm info --query=all --path=$1 | sed 's/E: -*//g' | grep "ID_MODEL_ID" | awk -F"=" '{print $2}'`

set `/usr/bin/lsusb -d $vendorid:$modelid | sed 's/:.*//g'`
while [ ! -z "$1" ]; do
  case $1 in
    Bus) shift
    busdevice="$1"
    ;;
    Device) shift
    busdevice=${busdevice}"/$1"
    ;;
  esac
  shift
done
if [ ! -z "$busdevice" ]; then
  address=$(VBoxManage list usbhost | grep "Address:" | grep $busdevice | sed -e 's/Address://' -e 's/^[ \t]*//')
  if [ ! -z "$address" ]; then
    su - YOURVBOXUSER -c "VBoxManage controlvm YOURVBOXNAME usbattach $address"
  fi
fi


Syncing Onedrive personal and work accounts Simultaneously

I have a personal and work account in Onedrive. I have successfully run my personal account using the Onedrive free client but couldn't run multiple accounts.

Your first issue is you are running Ubuntu 18.x, which, depending on how you installed the client, you potentially will have a very outdated client version.
Follow the directions here: https://github.com/abraunegg/onedrive/blob/master/docs/INSTALL.md to install the correct client version.
To then configure multi-accounts, please refer to https://github.com/abraunegg/onedrive/blob/master/docs/USAGE.md#using-multiple-onedrive-accounts and https://github.com/abraunegg/onedrive/wiki/OneDrive-Client-Multi-Account-Configuration-Assistance


How to add options to the appmenu in Gnome Shell

Add the extension (with gnome-tweak-tool  )after adding this repository.

sudo add-apt-repository ppa:webupd8team/gnome3
sudo apt-get update
sudo apt-get install gnome-shell-extension-window-buttons


Bluetooth Dongle Not Working (Ubuntu 18.04)

If the output of lsusb is the same with and without plugging in the dongle, that means its clearly dead. Its not a driver issue.


Usually mount can autodetect the filesystem.  Have you tried mounting it with mount?

mkdir /mnt/sdb1
mount /dev/sdb1 /mnt/sdb1

There's a chance it's an unsupported filesystem, but most pre-formatted drives out there are some version of FAT, which is very well supported in linux.


Ubuntu 16.04 - cannot enter password at disk decryption splash screen

I had the same issue after installing proprietary NVIDIA GPU driver. Disabling splash screen worked for me. I know this is not a complete solution, but I think this workaround might be helpful because it is better than using GRUB menu options on every system boot.

I edited /etc/default/grub file: removed quiet splash from the GRUB_CMDLINE_LINUX_DEFAULT parameter. Then run sudo update-grub. Now the splash screen is gone and and I see a prompt to enter disk encryption as on the last screenshot in the question.

I am running Ubuntu 17.04, Linux kernel 4.10, NVIDIA driver 375.39.


You have added some PPA to your system's package management which isn't available anymore. Try this to remove the PPA and the packages installed from it.


ubuntu sudo apt --fix-broken install fails "Unable to make backup symlink"

I found many symlinks pointing to ''.  I deleted them all and the command finished successfully.


Ubuntu 16.04 LTS too slow after suspend and resume

Check this:
Ubuntu becomes quite laggy after wake up

And this: Slowdown after resume from suspend (Arch Linux)

In a nutshell, try the following:

sudo apt-get install msr-tools
sudo modprobe msr
sudo rdmsr -a 0x19a

If rdmsr does not give back 0 then:

sudo wrmsr -a 0x19a 0x0


Is that possible to install language pack offlinely?

yes you can do it.open your terminal and paste these lines one by one

mkdir lan
cd lan
wget http://shadow.ind.ntou.edu.tw/ubuntu//pool/main/l/language-pack-id-base/language-pack-id-base_12.04+20120417_all.deb
wget http://sg.archive.ubuntu.com/ubuntu/pool/main/l/language-pack-id/language-pack-id_12.04+20120417_all.deb
sudo dpkg -i *.deb

for more information: http://packages.ubuntu.com/precise/translations/


You need to install the PCRE development files package:

sudo apt-get install libpcre3-dev

If the build configuration script still doesn't find it (which I find unlikely, because the header files are placed in a standard location), use:

./configure --pcreinclude /usr/include


FreeNAS and Ubuntu install on same machine

I see no reason you can not dual boot. Another option might be to run FreeNAS in Ubuntu with Virtualization, you would then not need to reboot just to try FreeNAS

Here is a tutorial on running FreeNAS in virtualbox (hope it helps)

http://samkear.com/how-to-guides/installing-freenas-virtualbox

If you prefer, here is a tutorial on dual booting Ubuntu and FreeBSD, should work with FreeNAS

http://lists.freebsd.org/pipermail/freebsd-doc/2009-November/016465.html


How to add apps that doesn't appear on dash home to launcher?

The virtualbox icon will appear in the launcher on the side when you launch the application in Terminal, correct? If so, right-click the Virtualbox icon and click "Keep in Launcher".


storage partition - problem with dual boot

This most likely is because you hibernate Windows before booting into Ubuntu - Windows stores some information about filesystem in memory and when you boot back into Windows after hibernation that information is restored from the hibernation image, making the actual state of the filesystem and what Windows thinks of it to go out of sync. Then, when Windows flushes its disk caches, it overrides changes so your files disappear.

This is a potentially dangerous situation which can lead to data loss and possibly filesystem corruption. You need to make sure Windows is shut down properly (not hibernated) before booting into another OS.

This answer provides some details: https://askubuntu.com/a/145904/14564

In your case, I suspect, Ubuntu does not complain because it is a storage disk, not Windows system disk, so there is no hibernation image on it, so Ubuntu has no way of knowing Windows is hibernated.

I hope you have copies of the files which disappeard from the storage partition as they're likely to be gone.


Install RocketRaid 644L Raid Controller driver on Ubuntu

That driver appears to be for 12.10 only, and likely won't work on the older kernel in 12.04.

You will need to download the source and recompile it for your kernel.


In Unity you can achieve a similar behaviour with the shortcut Super+Space.

This shortcut will let you to switch to next input source. Changing input source will change your keyboard layout.
An example of using this is:

Current input source is set to Russian;
You can type something in Russian;
When you need English keyboard layout press Super+Space to switch to next input source;
Type some English text (e.g. $ or `);
Come back to Russian keyboard layout pressing Super+Space.

Now you can follow this step to set this behaviour as described above:

Open System Settings and select Keyboard.
In the Typing tab look at the window bottom left and select Text Entry.
You should see a new window that show on the left a list of input sources that you can use (and switch between) and on the right some options like shortcut to switch between input sources.
If you have already Russian and English as input sources you don't have to do anything, unless you want to change the shortcut. Instead if you have only Russian as input source you can add English input source pressing the + button under the list and select an English *input source (e.g. English (US)).
If you want to track which input source is active you can tick the checkbox in the bottom left beside to Show current input source in the menu bar.
Now you should be able to obtain the behaviour described above that will let you to switch between input source in an easy way.

I hope this could help you.

P.S. I did the same thing with my input sources: Italian and English.


How do you check if a property is undefined in qml?

Try:
text: text ? text : "default text"

"undefined" is just a string representation of a reference not referencing anything, just like None, or NULL in other languages.

=== is strict comparison operator, you might want to read this thread: https://stackoverflow.com/questions/523643/difference-between-and-in-javascript


Ubuntu 16.04 : Can't Install or Update mesa-vdpau-drivers

I am using Dell Inspiron with AMD graphic card, but Ubuntu 16.04 no longer supports it.
After upgrading from 14.04, I encounter similar issue with you, due to the unmet dependency problem. After searching and trying many ways, I make it work as below:
Type:

sudo apt-get -f install

Which will gvive the following output:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  libvdpau1
The following NEW packages will be installed:
  libvdpau1
0 upgraded, 1 newly installed, 0 to remove and 46 not upgraded.
4 not fully installed or removed.
Need to get 25.5 kB of archives.
After this operation, 100 kB of additional disk space will be used.
Do you want to continue? [Y/n]

Then type Y and Enter to continue and you'll get:

Get:1 http://it.archive.ubuntu.com/ubuntu xenial/main amd64 libvdpau1 amd64 1.1.1-3ubuntu1 [25.5 kB]
Fetched 25.5 kB in 20s (1,259 B/s)
(Reading database ... 192457 files and directories currently installed.)
Preparing to unpack .../libvdpau1_1.1.1-3ubuntu1_amd64.deb ...
Unpacking libvdpau1:amd64 (1.1.1-3ubuntu1) ...
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Setting up libvdpau1:amd64 (1.1.1-3ubuntu1) ...
Setting up mesa-vdpau-drivers:amd64 (17.0.7-0ubuntu0.16.04.1) ...
Setting up vdpau-va-driver:amd64 (0.7.4-5) ...
Setting up va-driver-all:amd64 (1.7.0-1) ...
Setting up vdpau-driver-all:amd64 (1.1.1-3ubuntu1) ...
Processing triggers for libc-bin (2.23-0ubuntu9) ...

Then type:

sudo apt-get update
sudo apt-get upgrade


Failed to start Load Kernel Modules Ubuntu 16.04.2


Ubuntu 16.04 wired connection not being detected

If your Ethernet card is inserted into your motherboard, typing ifconfig -a would show eth0 even without plugging the cable in.

So, check if your Ethernet card is securely inserted into your motherboard and see if your motherboard recognize it. If not, unplug the Ethernet card and plug it in again.


I just saw that your command is not complete. Try:

sudo apt-get install sqlite3 libsqlite3-dev

If still does not work, try the following:

Running the command:

 sudo apt-cache policy sqlite3

will give you the following output:

sqlite3:
  Installed: (none)
  Candidate: 3.7.9-2ubuntu1.1
  Version table:
     3.7.9-2ubuntu1.1 0
        500 http://archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
     3.7.9-2ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ precise/main amd64 Packages

It is visible that the package is in archive.ubuntu.com/ubuntu

Hence, check your repositories. Open the update manager, go to settings, and after typing your password, you will see the repositories selected:

Try the options I have selected, and you should be fine.


Thunderbird does not store remote address books' passwords

It's a bug with Inverse Sogo Connector 17.0.5, the latest version downloadable from their website at this time.

As a workaround, I've currently installed the Saved Password Editor extension for Thunderbird and added the address book password by hand:

https://addons.mozilla.org/en-us/thunderbird/addon/saved-password-editor/

After installing it, go to the menu Edit -> Preferences, then select the tab Security -> Passwords, click on the Saved Passwords button, and you'll have a button with a drop down menu where you can add a new password. Add the host of your password (e.g. https://myowncloud-bernarpa.com, without the remaining address book path, the Username and Password and the Annotation, that's the thing you get on the password window as "The server says:".


How to find the path of a specific application (Google Chrome)?

If you have installed the stable version of Google Chrome, run the following commands to find its location

whereis google-chrome-stable

or

which google-chrome-stable


As a workaround you can switch to lxdm, it includes a drop-down list that scrolls.
sudo dpkg-reconfigure lightdm

and select lxdm or another login manager like gdm
Restart the computer and you should be greeted with a different login manager.

If you really need to login to a different desktop, with lightdm in its current state (say the current selected one is unusable) you can use the tab key to cycle through the list, counting once the selection is off the screen until it cycles back to the top. You then know how many tabs it takes to get to the "OK" button, and can hit enter to select it.

Also it seems that the bug you linked is a duplicate of this bug, Launchpad Bug 1068605 be sure to click on the "This bug affects me"

And if there are some desktops you don't use: maybe a "2d" version of one desktop, or the openbox version of another... you can remove some from the list by following this question,
How to remove session entries from LightDM?
Or you may be able to change the LightDM greeter, How to change the LightDM theme/greeter?
Hopefully, that will give you some options to workaround the bug until it is fixed in future versions.


How can I add a bash script to the Unity launcher?

I created one for Gnome Screensaver, and saved it to: ~/.local/share/applications/

you may need to create this directory:

mkdir ~/.local/share/applications   (if required)

screensaver.desktop

[Desktop Entry]
Name=Activate Screensaver
Comment=
Exec=gnome-screensaver-command -a
Icon=screensaver
Terminal=false
Type=Application
StartupNotify=true

Then simply search in Dash for the 'Name', and move icon to launcher.


What's the meaning of version numbering of Ubuntu?

Ubuntu follows a regular 6 month release cycle. The version numbers are formatted in Y.MM (10.04: April, 2010). Every two years there is a Long Term Support (LTS) version release which will be officially supported for two more years.

The last LTS was 12.04, the current LTS is 14.04, and the next LTS is 16.04 - the three releases between these LTS releases culminate into the next LTS, ideally viewed as "6-month baby releases that piecemeal towards the next LTS".

Typically after each non-LTS release a point release is made for the current LTS designed to maintain stability and backport changes keeping an LTS release 'supported' These are denoted as a third version number (12.04.[1-4]).

This chart and more information can be found on the Ubuntu Wiki: LTS article.


Analog stereo out on speakers and headphones

I don't have a system which I can test this out on, but I believe this section from the Arch Linux PulseAudio website should help you:

https://wiki.archlinux.org/index.php/PulseAudio/Examples#Splitting_front.2Frear

To sum up what you should do:

Open a terminal and make a back up of /etc/pulse/default.pa like this: cp /etc/pulse/default.pa ~/default.pa.bak
Open the sound settings menu and change "analog output"'s mode to "Analog Surround 4.0 Output"
In the terminal run pacmd list-sinks and copy the outputted sink's name. Mine looks like "name: ", and we're interested in the bit in <>, yours should now end in "analog-surround-40".
Open default.pa as administrator using sudo gedit /etc/pulse/default.pa and add the lines:

  load-module module-remap-sink sink_name=speakers remix=no master=alsa_output.pci-0000_05_00.0.analog-surround-40 channels=2 master_channel_map=front-left,front-right channel_map=front-left,front-right

  load-module module-remap-sink sink_name=headphones remix=no master=alsa_output.pci-0000_05_00.0.analog-surround-40 channels=2 master_channel_map=rear-left,rear-right   channel_map=front-left,front-right

  Replace "master=alsa_output.pci-0000_05_00.0.analog-surround-40" with the device name you found in step 3.

Now you should be able to select from "Headphones" and "Speakers" in the Sound Settings menu when you want to switch between headphones and speakers.


ssh: Could not resolve hostname docker-ip onos1: No address associated with hostname

It seems there is several reason of why it's not working

An hostname cannot contains space. More information of valid hostname are available here : https://en.wikipedia.org/wiki/Hostname
If you are trying to reach the ssh from a docker and you opened the port (probably with -p 8101:22), you have then to use localhost or 127.0.0.1 instead. You command will be ssh -p 8101 karaf@localhost. If you are trying to connect on another host, simply use the IP address of this remote host.
If you like to enter in a running docker in command line, it may be more simple to use docker exec -ti <docker_id> bash. Replace the  by the Docker ID founded with docker ps command.


Why does sound stop working after a while?

An interesting tool I hadn't seen from
https://wiki.ubuntu.com/DebuggingSoundProblems :

ubuntu-bug audio

It attempts to do some interactive checks.  If you haven 't, try running that when the issue occurs.  But the checks are worth running any time.   I believe the bug information generated will provide the information that the next links ask for.  (For example, giving the equivalent of the alsa-info.sh from fedora.  EDIT:  Actually, you can find alsa-info.sh here.)

That page has some other good info as well.  I think most of the fixes are for constant problems, though, not intermittent ones like you are having.

Two Fedora-Linux wikis have some troubleshooting tips that could be extracted:
https://fedoraproject.org/wiki/Bug_info_kernel_sound
https://fedoraproject.org/wiki/Bug_info_PulseAudio

From the fedora pages:

  The output of pulseaudio -vvvvv, run
  on the command line, is often helpful.
  To provide this correctly, first
  configure PulseAudio not to respawn
  itself automatically when it dies, by
  creating a file ~/.pulse/client.conf
  with this content:

autospawn = no

  Then kill the existing server, with
  the command pulseaudio -k. Now
  launch pulseaudio -vvvvv from a
  console, and reproduce your problem.
  Provide the whole set of messages from
  the console where you ran pulseaudio.

  The output of pacmd ls can also
  provide a snapshot of the audio
  system's state.

Application-wise, here's a post (from 2009) mentioning that Skype caused problems for him:

  [...] I ran
  into some problems with skype (bug
  filed). PulseAudio asserts and goes
  away probably because of something
  Skype does wrong (although one could
  argue that PulseAudio shouldn’t break
  down completely because of one bad
  client).

Of course, there are lot of possible culprits, but knowing that one of your apps has in the past caused problems is at least encouraging (or discouraging, if you want).

Long shot -- check your CPU time for the pulseaudio process -- noticed this from the manpage:

--no-cpu-limit[=BOOL]

  Do not install CPU load limiter on platforms that support it. By default, PulseAudio will terminate itself when
  it notices that it takes up too much
  CPU time. This is useful as a
  protection against system lockups when
  real-time scheduling is used [....]


Nvidia driver on virtual box (Ubuntu 18.04)

If an OS is running in a virtual machine then the graphics driver for the guest OS is virtual too. You cannot install or use an Nvidia graphics driver in a guest OS in either VirtualBox or VMware.


I had a similar issue where the normal boot sequence got into a repeated failure pattern like your posted video shows.  To be sure you can look at the log file /var/log/Xorg.0.log.  In my case, I was able to boot into recovery mode, drop to a root shell, then install a different nvidia driver.  In my case, nvidia-340 was installed after the upgrade to 15.04, and upgrading to nvidia-346 fixed it.

In case it helps, here are the steps I followed to fix this.
Problem booting after updating from Ubuntu 14.10 to 15.04

Good luck.

Dennis


I want to know if increased RAM will help after conversion of XP-->Xubuntu 13.10

Xubuntu 13.10 works well with 2GB, and is much more efficient at memory use than XP. You will have no problem with 2GB, which is good since Crucial shows you cannot go past a pair of 1GB memory sticks.


Unrar-free seems to have a problem with these files. It creates a directory instead of a file when you try to extract the archive.

$ unrar-free --list test.rar

unrar 0.0.1  Copyright (C) 2004  Ben Asselstine, Jeroen Dekkers

RAR archive /home/.../test.rar

Pathname/Comment
                  Size   Packed Ratio  Date   Time     Attr      CRC   Meth Ver
-------------------------------------------------------------------------------
 this file should be unrared.flv
                     0        8   0% 10-11-11 18:09   .D....   00000000 m3? 2.9
-------------------------------------------------------------------------------
    1                0        8 inf%

Now:

$ unrar-free --extract test.rar

unrar 0.0.1  Copyright (C) 2004  Ben Asselstine, Jeroen Dekkers

Extracting from /home/.../test.rar

All OK

Finally:

$ ls -l
total 4
-rw-rw-r-- 1 ...... ...... 100 2011-11-10 18:12 test.rar
drwxrwxr-x 2 ...... ......   6 2011-11-10 18:27 this file should be unrared.flv

Please note the d at the first column of the filename.

To extract the file correctly you can use the unrar package instead of unrar-free.

$ unrar x test.rar

UNRAR 4.00 beta 3 freeware      Copyright (c) 1993-2010 Alexander Roshal

Extracting from test.rar

Extracting  this file should be unrared.flv                           OK
All OK

$ ls -l
total 4
-rw-rw-r-- 1 ...... ...... 100 2011-11-10 18:12 test.rar
-rw-rw-r-- 1 ...... ......   0 2011-11-10 18:09 this file should be unrared.flv


Cairo dock is a good option, check it out on http://glx-dock.org/

To install, just type sudo apt-get install cairo-dock on terminal


Can I set command line executed games to open in a window instead of fullscreen?

This can be configured from within the game itself, usually from the Settings menu. For example, here's how to set windowed mode for SuperTux:

  The in-game configuration can be done running the game, then choosing
  the Options menu. There you can configure: Graphics Mode (OpenGL/SDL),
  toggle fullscreen mode on/off, Enable or Disable Sound and Music, Show
  FPS (Frames Per Second) and do a Keyboard Setup (changing what
  keyboard keys do in the games' action).


Ubuntu 18.04 show date and time on every screen

Install GNOME Tweak Tool:

sudo apt install gnome-tweak-tool

Go to Top Bar on the left and enable date under clock.


Error when installing ubuntu with Windows installer

The first thing you need to is fix the MBR so you can boot the computer again. This is very quick and simple if you have the right tool.

If you have the system recovery disks or a bootable Windows repair disk, you can follow the instructions in the screen shot to repair the system. If you don't have one of these, you can also use EasyBCD to fix the problem. (Look for the free edition for personal use at the bottom of that page.)

It's hard to say what went wrong with WUBI (the Windows installer). It is a good idea to do a complete defrag of your hard drive before trying again. There are free tools that are more full-featured than the Windows defrag, such as MyDefrag.

You might also consider doing a standard install of Ubuntu alongside Windows 7. In my opinion, a regular install is actually less likely to cause you problems than using WUBI, especially over the long-term. In addition, WUBI does not work with 13.04, which is being released on April 25th.

You can burn a LiveCD that lets you try Ubuntu without making changes to your machine and then use the LiveCD to install Ubuntu to a new partition on your hard drive.

In addition to defragging, MyDefrag lets you also move your files to the beginning of the Windows partition. This is a good thing to do before doing a standard install of Ubuntu. If the disk is heavily fragmented, this file consolidation may take a long time to run, but you can stop MyDefrag and restart it later if needed.


Can I update the Software Center to 4.0?

You will not be able to update Software Center via the official repositories.

I don't believe that you will be able to use version 4 of the Software Center in maverick.  It hasnt been backported.

The software store developers produce a daily build - as the name suggests, its not tested, but contains the latest changes on a day-to-day basis.  However, I dont see any evidence that that has built successfully for sometime.

I would contact the software-center developers themselves (file a bug report via that link) if there was any intention to have version 4 available for maverick.  Its probable that it is just a recipe build packaging mistake by the maintainer Michael Vogt.


List the duration of each video file in a directory

Try this: (inspiration from superuser.com)

for f in *.mp4
do
  echo -n "$f "
  ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 -sexagesimal "$f"
done

However, output will be in the form HH:MM:SS.MILLISECONDS. If you leave out the option  -sexagesimal, you will get the duration in seconds.

For the desired outputform HH:MM, you could do something like this:

for f in *.mp4
do
  echo -n "$f "
  dur=`ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 "$f"`
  min=`echo "$dur/60" | bc`
  sec=`echo "$dur%60/1" | bc`
  echo "$min:$sec"
done


First of all, fax is far less secure than email. Never transmit any private or secure information over a fax. Anybody can walk right outside your building to the TNI box and get all of your faxes.

If you are looking for a solution for interfacing fax with your computer, you have a few options.

You could buy a fax modem for your computer and hook up the line to it.
You could port your fax number to an online fax service provider.
You could port your fax number to a SIP provider and build your own fax interface using asterisk and spandsp.


How do I create a kiosk-mode where only one application runs, no games, etc.?

You can change your setting to do the autologin and insert your program on the startup.
If you are looking for something that still running even if you kill it, check how to create a daemon.


The problem is, there is no python-igraph package for 12.04. Because of that, you get the error when you try to install it in 12.04. You can check the PPA for yourself.

It does have a package for 11.10 though. If you are desperate, you can download the deb package meant for 11.10 and install it manually. Hopefully, you can install it without much dependency problem.


Where is the "automatic (DHCP) addresses only" option in network?

You don't need an "automatic (DHCP) addresses only" option because, in your software, "Automatic (DHCP)" is for the address only. Note how the drop down is labelled "Addresses". The DNS settings have a separate Automatic toggle, which you have turned off in your case.


'Xojo' is the only application that I can't install

Thank you @bain.

I download .deb file in launhpad instead of downloading it in Software center or terminal.
I go to the 'My profile' then click ' View your private PPA subscriptions' so i can view the private PPA permission.Then click the link in the box and download the .deb file for ubuntu.


Here is your answer, plain and simple for ubuntu. it wont happen without extra hardware. this blogger even explains it nice and simple for us. http://jacksonh.tumblr.com/post/965806498/how-to-watch-netflix-streaming-movies-on-linux-with

now, thats the answer for ubuntu. if you still wanted free legal software to run netflix, you would need a different linux, called chromeos. now i know a lot of people hate google for various reasons, but they do offer chromeos for download for free, and it does do netflix. heck here is another blog post about it;
http://www.engadget.com/2011/07/31/netflix-plugin-for-chromeos-hits-v1-0-2-is-an-official-release/

no netflix for ubuntu, but it happens on chromeos.


How do I get an Atheros AR8131 ethernet card working?

I was having occasional drop-out issues with my Atheros AR8131 ethernet and found that an updated alx kernel driver was released by Qualcomm and works perfectly.

Note: This alx driver will not be included in the kernel however the code will eventually find its way into the current atl1c kernel driver.

alx Ethernet Driver

Remove current atl1c module and blacklist it:

rmmod atl1c

Add the line blacklist atl1c to /etc/modprobe.d/blacklist
Download the driver tarball and extract it.
Install by executing these commands in the extracted driver directory:

./scripts/driver-select alx
make
sudo make install

Verify module installed with:

lspci -v

Kernel driver in use: alx
Kernel modules: alx


What are the zpool create -O file-system-property arguments used for?

It should be doing what you expect, or at least it does for me. Did you do zpool create with -d, perchance, or created the pool with version below 5000 (disables all feature flags)? For compression=lz4 to work you have to have feature@lz4_compress feature flag enabled.


It seems as though the user being used to start the Tomcat server does not have permissions to remove/modify the PID file (which contains the process ID of a running instance of the server).  You may have initially started Tomcat as root, Tomcat improperly shut down for another reason (leaving behind the old PID file owned by root), but then switched to another user (who cannot remove/modify the root owned file).  You may need to become root and correct the PID file's ownership to that of the user who will run Tomcat, or simply remove the old PID file as root.


Wi-fi driver broken after changing kernel

Mainline kernels are not necessarily supported by Broadcom proprietary drivers.
Especially when you install the latest mainline kernels.
The drivers need patches to support the newest kernels. Ubuntu maintainers didn't create them for the 5.5-5.6 kernels, because they are not supported.
Remove mainline kernels and boot with an official Ubuntu kernel. The driver should work. If it doesn't, reinstall it.


how to skip nouveau driver error while installing ubuntu?

You can not kill or skip nouveau because it is part an integral part of linux kernel, part a module of X server. It goes in separate package but removing it is a really bad idea. You can blacklist nouveau module but this will likely lead to your GUI not booting at all.
You should ask a new question with proper details on the problem, the community will solve it.


Are there any other sources for Ubuntu 9.10?

In this site: http://old-releases.ubuntu.com/releases/karmic/ you will find below several options to download including (If you want to download from multiple sources) torrent format.

After doing some searching I found several FTP and HTTP sites that had all releases from 8.04 and above EXCEPT the 9.04 and 9.10. The only ones I found were:

http://nginyang.uvt.nl/karmic/ (DVD Release)

http://tw.archive.ubuntu.com/ubuntu-dvd-releases/releases/9.10/release/ (DVD Release)

Also a list of mirrors (Most of which do not have the 9.10 to download directly. Some of them have the torrent format for it): https://launchpad.net/ubuntu/+cdmirrors


Open a terminal by pressing ctrl+alt+t (don't worry, you'll use it only to invoke the text editor with sudo privileges).

On the terminal type:

sudo gedit

press enter and input your password when prompted.

Presto, the gedit editor should be running with root permissions!


Try Tor.

  Tor is a network of virtual tunnels that allows people and groups to
  improve their privacy and security on the Internet. It also enables
  software developers to create new communication tools with built-in
  privacy features. Tor provides the foundation for a range of
  applications that allow organizations and individuals to share
  information over public networks without compromising their privacy.

To install Tor, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt-get install tor

For more information see Tor

Source:TorProject


Display color goes haywire when resuming from lock screen

The easiest solution is to go to Systems > Screens (with the lock). Change the time to the screen lock at 1 minute. Then wait until the screen goes black.

Touch the mouse and normally it's ok.

Come back to the last menu to set the previous time to lock again.


I can't upgrade to Ubuntu 18.04 from 17.10

Upgrading from Ubuntu 16.04 LTS or 17.10
  Upgrades from 17.10 will not be enabled until a few days after 18.04's release. Upgrades from 16.04 LTS will not be enabled until a few days after the 18.04.1 release expected in late July.

  There are no offline upgrade options for Ubuntu Desktop and Ubuntu Server.

That's the official announcement from Bionic Beaver release notes

Hope this helps.


How do I create a Debian branch for my project on Launchpad?

You'll need to create a new, clean branch with bzr init, then copy your files into it.  Then bzr add, commit and push from the new branch.


I have a few comments about your setup generally and about dual-booting with Windows in particular:

You say that you "haven't been able to log back into Windows 10," but it's very unclear what this means -- it could be that no Windows boot menu entries appear in GRUB, that selecting a Windows entry in GRUB causes the computer to crash, that Windows boots but won't accept your password, that your cat is clawing at you whenever you try to boot Windows, etc. Although some of those issues may be Linux/Ubuntu issues, others are better addressed to a Windows forum -- or to a vet ;-). In any event, if it's something GRUB-related, you should update your question with details. If it's more Windows-related, you should post on a Windows forum.
Before you do anything potentially damaging, back up your ESP (/boot/efi under Ubuntu). Some potential repairs could make things worse -- maybe much worse. A file-level backup (using cp, tar, zip, or similar tools) should be fine.
There's evidence of both BIOS-mode and EFI-mode boot loaders on your system. Such configurations are potential land mines. Please read my page on the subject. In brief, I recommend disabling the Compatibility Support Module (CSM; also referred to as "legacy support" or similar terms) in your firmware. This will simplify your boot path and avoid potential mixed-mode problems.
You MUST disable the Windows feature called "Fast Startup" (or various other things). This topic is covered here (among other places). Failure to disable this feature can cause data corruption on shared data partitions, including the EFI System Partition (ESP), which is where your boot loaders reside. Note that the Windows Fast Startup feature is unrelated to firmware features with similar names, like "fast boot." The latter can make it hard to boot an Ubuntu installer but are otherwise harmless to Ubuntu or to dual-boot configurations, provided you can get everything working initially. Of course, disabling this feature may be impossible if you can't boot to Windows; but if you can get in even temporarily, this should be the first thing you do.
Some of your GRUB Windows entries point to the Windows boot loader under names created by Boot Repair's more intrusive (and usually unnecessary) options. Based on your efibootmgr output, it looks like these intrusive options were unnecessary. You may want to run Boot Repair again, enter the Advanced screen, select the option to restore backups, and continue. This may clean things up a bit. OTOH, it could make matters worse -- this is one situation where an ESP backup may become vital.
You might want to try my rEFInd boot manager. You can download a version for CD-R or USB flash drive (see the downloads page) and try rEFInd risk-free -- although you'll need to temporarily disable Secure Boot to try it this way. (You can re-enable Secure Boot and install rEFInd to your hard disk from your regular boot if you like it.) It's conceivable that rEFInd will get Windows booting again, but I can make no promises of that. With the tangle of backup boot loaders created by Boot Repair, the rEFInd menu is likely to be overpopulated at first, but you can trim it back in various ways.


It's much easier in 18.04! (I'm not sure since when this works)
In "Open With" set the application "Files" as default and that's it.

Now when you right-click on the archive, "Extract Here" is the first entry in the context-menu and will be called on doubleclick.