Is it possible to keep added ssh keys in ssh-agent after reboot? (using keychain)

Is it possible to keep added ssh keys in ssh-agent after reboot?

No way to keep them over reboot, because RAM is not persistent over reboots. You can put the ssh-add your_key into your ~/.bash_profile to make sure they are added.

Or use gnome-keyring or seahorse, which where you can store both keys and passphrases.


Why I get non-symmetric usage of CPU on multicore PC

Many programs are - unfortunately - not multi-processing capable and run in a single thread/on a single processor. Some use threads, which can be executed on another processor core than the "main" program.

If you have a program that uses a single thread only, it only needs one processor and it does not make sense to move it around the other CPUs, because that takes time.

However, you can be sure that the mapping of processes to cores is fine the way it is. See http://en.wikipedia.org/wiki/Scheduling_(computing)#Linux for some information.

And no, processor cores do not overheat if only one is used over some time.


JaxoDraw-2.0 uses a new LaTeX style file called axodraw4j.sty for its
  LaTeX exports which is based on J. Vermaseren's original axodraw.sty.
  The name has been changed to avoid any backward compatibility issues
  with olddocuments that use the original axodraw.sty.

Documentation of axodraw4j is included in the distribution tar ball. The latest version of the docs is always available from the subversion repository.

For detailed instructions, see Installing axodraw4j.sty

Source:JaxoDraw


CD RIP SLOW on Ubuntu 12.04. How can I increase ripping speed?

Instead of using /dev/sr0, use the correct entry from /dev/disk/by-id

For example, I run abcde with the option CDROM=/dev/disk/by-id/ata-PIONEER_DVD-RW_DVR-106D_CJDC269789WL and it now rips at full speed.


Ubuntu Studio 20.10 installation failed "does not have a Release file"

Go to Software and Updates

In the Ubuntu Software tab, look for the cdrom, if it’s checked, uncheck it.

Now, open up a terminal and open the file sources.list using
nano /etc/apt/sources.list

If you find a line starting with cdrom, then comment it by putting # like this #deb cdrom:....
Press Ctrl x, y and Enter to save.
Finally, run the command
sudo apt update


kernel panic-not syncing: VFS: unable to mount root fs on unknown block(0,2)

Same thing happened to me also, here's how to get it back:

First, try to boot in recovery mode:
Follow the instructions in this post.

If you manage to get to the root prompt where you can type commands, things are looking good. This should make your system bootable again:

update-initramfs -u
update-grub2

If you cannot get a root prompt at all, then get a LiveCD (the cd / usb key you used to install ubuntu should work) and boot from it. Then you have a useable system from which you can access the broken one:
Follow dilip's instructions in this post


Is Samba required if you don't share folders and don't have any printers?

No, it is not required. Note that "shared folders" also covers "mapped drives."


Overwrite debian with ubuntu.After installation of ubuntu,boot into it and open the terminal and run the below commands,

 sudo update-grub
 sudo shutdown -r now

The  sudo update-grub command will reinstall your grub to display both windows and ubuntu operating systems.sudo shutdown -r now will restart your pc to display the grub.


How do I run GNOME Wi-Fi selection dialog through terminal with command line?


Will Ubuntu get an asset set to allow Qt applications using GTK style buttons?

For the widget based design approach, Qt has been using GTK for rendering them for years now. For QML, there are the Desktop Components. So it seems like there's no need to worry.


curlftpfs mount disagrees with the fstab

Try fusermount to unmount the filesystem:

fusermount -u /mnt/nimh


Can someone help me with Windows 7 installation?

From reading your comments it seems like you are trying to install Windows second, which doesnt work. You need to boot the computer from the Windows CD then install, then reinstall Ubuntu if it overwrites the partition.


How to open more file in same window on different tag (using quanta plus editor)

Go to: System -> Preferences -> Main Menu -> Programming -> Quanta Plus -> Properties -> Command  ... then change quanta %U to quanta --unique %U

man quanta ... OPTIONS

--unique  Run as a one-instance application.


Launch a music player using play/pause key when player is not running

Go to Keyboard -> Shortcuts. Under sound and media see to what button does play action is attached with: If it is audio play button, you will be able to play or pause when your application is running. If not make it so by clicking on that item and giving the audio play button as the New Accelerator. Now in the same window go to Custom Shortcuts and click on the + button and add command for opening your application and give a name(in my case command is audacious). Now click on this new item and add the New accelerator (I gave Shift+Play). Remember if you give play button itself here it will reassign the button play for launching your application and you will not be able to do the play/pause action using the same button.


Why do my windows shade (roll up) on scroll when my cursor is at the right edge of a maixmized window?

You can config the Window Manager (the software which handles the graphic enviroment's behaviour) following:

  MENU: System --> Preferences --> Confguration Editor

Find "Metacity" (I assume you're using Gnome) on the left and change any option you want: feel free to experiment, any change is reversible.
The entry which you need should be in:/apps/metacity/window_keybindings/toggle_shaded.
Have a nice experience.


Errors were encountered while processing: libtk8.6:amd64 tk8.6-blt2.5

Every time I try to install packages I get similar errors. Here is my process for resolving those:

If step 1 succeeds, break.
If step n succeeds, go to step 1.
If step n fails, go to step n+1.

Steps

sudo apt install package-i-want

dependency X failed or erred in some way

sudo dpkg --configure -a
sudo apt -f install
sudo apt install --reinstall X
Go to step 1


If you're using bash, you'd better use an here string instead of a pipe as in:

bc <<< "scale=2;$var1/$var2"

This will save you a subshell.

Then, to store the output of a command, use a command substitution:

answer=$(bc <<< "scale=2;$var1/$var2")

Edit.

If you want something even cooler than bc, here's dc (reverse polish calculator):

answer=$(dc <<< "2k $var1 $var2/p")


How to download Data file with php link (Dynamic url) and login with wget

First you must quote the URL:

wget --no-check-certificate --user usr --password pswd \
'http://vision.imar.ro/human3.6m/filebrowser.php?download=1&filepath=Videos&filename=ActivitySpecific_1.tgz&downloadname=Directions'

Otherwise everything after the first & is cut off by the shell, and you would also see this:

[1] 20618
[2] 20619
[1]-  Done                    filepath=Videos
$
[2]+  Done                    filename=ActivitySpecific_1.tgz

Second, the small file was probably this.

Those --user and --password options won't usually work.  For cookie based logins, you need to do something like this (Adapted from info at man wget, /, --post):

wget --no-check-certificate --keep-session-cookies --save-cookies cookies.txt \
--post-data 'username=foo&password=bar' \
'https://vision.imar.ro/human3.6m/checklogin.php'

# Now grab the page or pages we care about.
wget --no-check-certificate --load-cookies cookies.txt \
'https://vision.imar.ro/human3.6m/filebrowser.php?download=1&filepath=Videos&filename=ActivitySpecific_1.tgz&downloadname=Directions'


How can I use a phonetic method to type Bulgarian on Ubuntu 18.10?

To change the language settings on Ubuntu 18.10 (18.04) open the user's by click on the the upper right corner and click on the settings button. Then choice Region & Language from the left side of the Settings application.

By click on the + button (1), you can add a new Input source. According to the question, probably you need Bulgarian (traditional phonetic). When there is more than one Input source the language switcher will appear in the toolbar (2). You need to log-off and log-in (or reboot the system) to apply the new Input source.

By the button Options (3) you can change the behavior of the language switcher when you switch the windows. Also there is an instructions how to change the keyboard shortcut, which by default is Super + Space.

If you click on the button Manage Installed Languages (4), initially you will be asked to install an additional common language support tools and then you will be able to add extended system support for Bulgarian. For example the Bulgarian spell check in LibreOffice will be available.

By the option Languages (5) you can switch the system language. In this case I would keep the original names names of the user's folders. By option Formats (6) you can change the Date/Time/etc. display format.


From what I can deduce, it seems your problem lies with custom applications in ~/.local/share/applications.

Simply clear this folder: rm -rf ~/.local/share/applications/*/* and it should be all good.

Please note that your applications will now not show up again. I would suggest removing them from Wine, and installing them with PlayOnLinux. This application will ensure that you get the correct icons (though in your launcher under Unity they will still show with Wine icons).


I am not able to install mysql on ubuntu after unistalling it

Try this -

sudo apt-get remove --purge mysql-server mysql-client mysql-common
sudo apt-get autoremove
sudo apt-get autoclean

Then reinstall:

sudo apt-get update
sudo apt-get install mysql-server mysql-client

It might be the autoclean and update that make a difference.


Me to from india , and im using ubuntu from last 3 years back , Yes u can get it from the official website , Here is the Link Official Site

All u need to choose the Architecture before u Download for that may i know which motherboard u using and did it support 64 bit ?


When is it appropriate to use `dump` vs `rsync`?

Having expended far too much time with dump, it is probably best relegated to history. Its primary design goal was to be as efficient as possible with slow filesystems and the constraints of magnetic tape.

Those design criteria no longer obtain and I cannot imagine a situation (aside from legacy systems) where dump would provide any advantage.


should I worry about this "Couldn't find valid filesystem superblock" error?

Everything is fine.

tune2fs only knows about ext2/ext3/ext4 filesystems. If you use it on something else, like a Samba share, you get an error like this because tune2fs can't deal with it.


if I install JDK do I also need to install JRE

You do not need to install JRE then, as JDK usually consists of both development & run-time environments in it. If you install JDK then JRE will already be packaged in it and installed automatically along with JDK.

Generally to do javac <filename.java>, you need to have JDK which already has JRE in it. To do java  filename you need only JRE.


I was also surprised after many websearches, that while inbound MIDI is easy to monitor in Linux, outbound isn't.
You mentioned your MIDI is transported over USB. I just very successfully used Wireshark USB capture to reverse engineer MIDI device comms (manufacturer-specific SYSEX messages). You can use filters to only show MIDI events (or even more specific MIDI packet types)
WARNING: plug the USB device in AFTER you've started the capture in Wireshark, because Wireshark needs to see the USB "handshake" (USB descriptor messages) to be able to dissect the messages, otherwise it's just opaque USB data whose protocol Wireshark doesn't know about.
edit: here's a blog post of mine describing things in greater detail


Google earth installation in Ubuntu 13.10 fail

Google Earth Build Package

This is a workaround

Download Google Earth x64 .DEB

Open Terminal, Copy & Paste Following Command And Press Enter

sudo apt-get install libc6:i386 lsb-core

Open Downloads Folder

Right Click On Google Earth .DEB Package & Select Extract Here

Click On Debian Folder

Right Click on Control & Select Open In Gedit

Remove The Whole Line Containing

Depends: lsb-core (>= 3.2), ia32-libs

Now Click Save, & Exit Control File

Now Delete The Original Google Earth .DEB Package You Downloaded

Create A Folder called getfix, Now Move The Extracted Google Earth Folder Into The getfix Folder

Now You Are Going To Rebuild The Google Earth .DEB Package

Open Terminal, Copy & Paste Following Command & Press Enter

dpkg -b /home/username/Downloads/getfix/google-earth-stable_current_amd64

Once You Have Done That, Back In Terminal Copy & Paste The Following Command

sudo dpkg -i /home/username/Downloads/getfix/google-earth-stable_current_amd64.deb

The Repackaged Google Earth Will Now Be Installed.


This is one of the 2 workarounds which I have used Workaround

You can force MATLAB to load the newer version of the library provided by the operating system, by following these instructions:

Identify the location where MATLAB is installed
Navigate to the sys/os/glnxa64 directory within this installation folder
Rename libstdc++.so.6 library to libstdc++.so.6.old

This is the 2nd workaround for R2015b and before

sudo apt-get install matlab-support

Both of these work.


Shutdown Ubuntu 12.04 Desktops on network by a script?

Yes, you can use ssh (see man ssh). For each machine it will be a command something like:

ssh [-l login_name] [user@]hostname sudo shutdown -h now


Mimic command key as control key in VMware

If I'm reading your question correctly, you are running Ubuntu in VMWare Fusion for Mac OS X.  There are two possible ways to remap the command key with that setup (choose only one):

VMWare Fusion for Mac has an option in Preferences > Keyboard and Mouse to choose which key combination to map the command key to (it's mapped to the windows key by default).  If you do it this way it applies to all of your virtual machines.
You can remap the Windows key in Ubuntu (which is what the command key does by default in VMWare Fusion).  Open Keyboard Preferences, then go to Layouts > Options > Alt/Win key behaviour.  Select "Control is mapped to Win keys (and the usual Ctrl keys)".

Whichever solution you choose, remember to disable VMWare's own keyboard shortcuts in VMWare preferences, otherwise VMWare's shortcuts will take precedence over the ones in Ubuntu.


How to install python-dev (for python 2.7) on ubuntu 18.04?

sudo sed -i s,//us.archive,//archive,g  /etc/apt/sources.list

or use

software-properties-gtk

and choose download from main server.

after that

sudo apt update && sudo apt install python-dev

Both ways change the apt sources to main server.


How to tell shell to re-read the ~/.bashrc?

Source it again:

. ~/.bashrc
# or
source ~/.bashrc


You can follow (not tested) the comment at https://extensions.gnome.org/extension/27/classic-systray/version/63/ , until it becomes an extension installable from gnome directly.


LXDE: Switch Tool Bar Menu and Desktop Right Click Menu Around

Right click on Desktop > Desktop Preferences > Advanced > chekbox [Show menu bla-bla...]


How to trigger a rescan of available disks for installation during Ubuntu 18.04 Server live install (subiquity installer)?

Running sudo subiquity will start the installer again in the new tty you are running the shell in. This initially solved this specific problem, however the installer fails later on. What did work was killing the process from tty2:

kill -9 "$(ps aux | grep subiquity | grep -v 'grep' | awk '{print $2}')"

This restarts the installer on tty1, shows the iSCSI volumes at the disk selection step and properly installs.

I specifically still have an issue during the boot process, but the above fixes everything for the question.


Sorry for replying late, I hope you've found your solution online. In case you haven't here are things that you can try.

Install pavucontrol with

~$ sudo apt-get install pavucontrol
~$ pavucontrol

Then, go under Output Devices and chose the appropriate option. In case that doesn't work, try uninstalling and reinstalling alsa-base, pulseaudio and pavucontrol

~$ sudo apt-get remove --purge alsa-base pulseaudio pavucontrol
~$ sudo apt-get install alsa-base pulseaudio pavucontrol
~$ sudo alsa force-reload
~$ pulseaudio --start

Open pavucontrol again. You might need to reboot after reinstalling given packages.


You need to buy/register domain, and make a dns hosting on your own servers or domain hosting service. If you want to host domain on your own server you should provide information about your dns hosting to registar, but this is difficult and better to choose service. Google for dns hosting and find a service.

You can't create domain for free. You need to buy it from registrar and submit them information about your dns servers. Then other dns servers will also known your domain.

There are a registrar what give domain for free or small price, but you should look carefully how they will charge you on next year.

You can get domain name for free, but it will be third level of domain. Like yourname.holder.com.


You can use auditd or inotify to monitor file changes.


How to disable WiFi interface with netplan?

Set your /etc/network/interfaces to this:
# ifupdown has been replaced by netplan(5) on this system.  See
# /etc/netplan for current configuration.
# To re-enable ifupdown on this system, you can run:
#    sudo apt install ifupdown
#
auto wlp0s20f3
iface wlp0s20f3 inet manual
     pre-up ifconfig $IFACE down
     pre-down ifconfig $IFACE down
     down ifconfig $IFACE down

Note: you may have to sudo apt install ifupdown

Set your /etc/netplan/wireless.yaml to this:
network:
  version: 2
  renderer: networkd
  wifis:
    wlx7ca7b0babcf7:
      addresses: [192.168.7.12/24]
      gateway4: 192.168.7.1
      nameservers:
        addresses: [8.8.8.8, 8.8.4.4]
      access-points:
        "my_network":
          password: "my_password"

sudo netplan --debug generate
sudo netplan apply
reboot


is Python available in any Ubuntu installation?

Python is an essential package because much of Ubuntu is based on Python. Ubuntu will not run without it.


You probably have a driver problem, but in the chance that it's a config problem you can mess around with xinput.

First, open a Terminal. List your input devices:

# show all input devices
xinput list

You'll get something like this:

$ xinput list
⎡ Virtual core pointer                          id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ Microsoft Natural® Ergonomic Keyboard 4000        id=11   [slave  pointer  (2)]
⎜   ↳ Evoluent VerticalMouse 4                  id=12   [slave  pointer  (2)]

I have an Evoluent VerticalMouse. You can see the identifier number is 12: "id=12".

I can test my mouse with:

# show all input from device with identifier number 12
xinput test 12

Now when I move my mouse or click, I get output in that terminal telling me what happened. Hit Ctrl-c to end the test.

You can reset your button map to the default with set-button-map. Note that I'm using my device name that was output by xinput list:

xinput set-button-map "Evoluent VerticalMouse 4" 1 2 3 4 5 6 7 8 9 10 11 12 13 14

Now try running xinput test with your id. If you're getting correct button responses here, then your xorg config was incorrect. (I don't know how to fix that yet -- I think you need to edit your xorg.conf to save the above settings. Looks like there's more info here.)


Can't watch protected flash videos (nbcsports.com) on chrome in Ubuntu 14.04

Some sites are poorly written security wise and the browser which is trying to protect you blocks the page.  Open up your browser console to check for errors which appear in red ... for example :

Uncaught DOMException: Blocked a frame with origin "http://www.nbcolympics.com" from accessing a cross-origin frame.(…)

I see above error when using this nbcolympics.com URL ... its a badly written web page when using a modern secure browser ... site is using advertisement feeds incorrectly in a fashion too similar to techniques used by malware sites such that the browser correctly throws up its hands and shuts off that content

Alternatively, often videos get blocked when you have installed ad blocker extensions ... on Chrome you can open a new window in incognito mode by hitting  ctrl-shift-N  which for the lifetime of that window all extensions are disabled and so previously blocked web content ( videos ) now appear as intended


How to get current or set wanted regional format in the terminal?

Regional Formats changes the following variables:
LC_NUMERIC
LC_TIME
LC_MONETARY

You can use locale to check the current set format.
ron@ron:~$ locale
LANG=en_US
LANGUAGE=en_US
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=en_US.UTF-8
LC_TIME=en_US.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=en_US.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=en_US.UTF-8
LC_NAME=en_US.UTF-8
LC_ADDRESS=en_US.UTF-8
LC_TELEPHONE=en_US.UTF-8
LC_MEASUREMENT=en_US.UTF-8
LC_IDENTIFICATION=en_US.UTF-8
LC_ALL=

If you want to see all the locale available in your system you can use:
ron@ron:~$ locale -a
C
C.UTF-8
en_AG
en_AG.utf8
en_AU.utf8
en_BW.utf8
en_CA.utf8

To change, for example, the date format to US you can use:
LC_TIME=en_US.UTF-8

To change it permanently:
sudo update-locale LC_TIME=en_US.UTF-8

You can also manually edit the file /etc/default/locale instead of update-locale, if you wish so. Changes will be applied the next time you log-in.
Refer to Locale - Community Help Wiki for more details. man 5 locale will you more options to find-tune any of the formats.


How to crash Bacula network backup system

It sounds like you've been asked to test a backup system to make sure it does what it's intended to: Keep data safe. There are a few tests you can do to simulate this:

Assume one of your workstations was hit by a meteor and create a new one based off the backups.

The process involves taking a computer, creating some documents, backing up and then reformatting and trying to recover. Document what you do to make recovery in the future a known process.
Assume a disk has died in the Bacula server. Can you recover? Can you keep writing backups? This usually requires a RAID6 solution.

The quick way to test this is to just pull a disk from the array. If the whole system dies or at least ceases to be useful, you have a problem.
What happens if the Bacula server is hit by a meteor? Daily off-site copies of the last backup are essential but they need to be secure too. Tape or online.

The goal is that your office can be hit by a meteor and you can get the whole thing up and running in a new location within a day. If you can't do that, your backup system isn't working.


PPTP client doesn't connect by command line

Try with this script
Save it with name vpn

#!/bin/bash
function routeadd {
    route add -net xxx.xxx.xxx.xxx netmask yyy.yyy.yyy.yyy dev ppp0
}

function makepptp {
   echo pty \"pptp zzz.zzz.zzz.zzz --nolaunchpppd\" >> /etc/ppp/peers/vpn;
   echo remotename PPTP >> /etc/ppp/peers/vpn;
   echo require-mppe-128 >> /etc/ppp/peers/vpn;
   echo file /etc/ppp/options.pptp >> /etc/ppp/peers/vpn;
   echo ipparam vpn >> /etc/ppp/peers/vpn;
pppd call vpn &
}
if [ -a /etc/ppp/chap-secrets ];
        then
        rm /etc/ppp/chap-secrets
    echo $1 PPTP $2 '*' >> /etc/ppp/chap-secrets;
else
    echo $1 PPTP $2 '*' >> /etc/ppp/chap-secrets;
fi

if [ -e /etc/ppp/peers/vpn ];
    then
    rm /etc/ppp/peers/vpn;
    echo name $1 >> /etc/ppp/peers/vpn;
    makepptp;
    sleep 8;
    routeadd;
else
    echo name $1 >> /etc/ppp/peers/vpn;
    makepptp;
    sleep 8;
    routeadd;
fi

Usege

sudp /path_to_script/vpn username password

In script:

xxx.xxx.xxx.xxx - represent network behind vpn server with you wish to access

yyy.yyy.yyy.yyy - represent network mask

zzz.zzz.zzz.zzz - represent ip of vpn server.


How do I fix a "/tmp is not ready or mounted" Error?

Have you checked the permissions in the /tmp directory? Maybe

ls -la /tmp

can help you by displaying the owners and files in /tmp. Let us know!


If you're using the snap of VLC, that's probably why. The snap uses the home interface to access files in your home folder. It may also use the removable-media interface (see snap connections vlc) to read data on removable devices like USB keys and mounted volumes.
So what's happening is the sandboxing security features of snap is blocking this. The workaround is to use "bind mounts" instead of symlinks. So you could for example sudo mount -o bind /meda/bigdisk /home/Videos/bigdisk and VLC should be able to see that.


What are the functional differences between Lubuntu and Ubuntu?

As Ubuntu wiki says:

  Both Lubuntu and Ubuntu share:

Same Core System

Same Repositories

  The differences between Lubuntu and Ubuntu are:

Different DE - Lubuntu uses LXDE while Ubuntu uses Unity as the default DE.

Different Default Applications

  Rather than that, they are the same. The DE is what makes Lubuntu a
  lightweight OS and of course the selected applications too because we
  make sure to use the lightest applications which are not resource
  hungry.

The default applications differ. For example, Lubuntu comes with Sylpheed instead of Thunderbird. But you can manually install whatever you need because the repositories are the same.

Anything you do on the command-line will likely be the same, except that some applications may not be installed by default or you may need to edit slightly. For example, Gnome's gnome-open command to open a file with the default application is xdg-open in Unity, and in Lubuntu may be something else.


Can't find my other drives after installing over Windows

If you only had one physical drive in the machine that would indicate that when Windows was installed that drive was partitioned into C, D, E, F, and G.

When you installed Ubuntu it saw that single physical drive and treated it as a single physical drive. The "Erase and Replace Windows" then was acting on that drive.

Running dh -h will allow you to verify if all of the space on the drive was reused by the installation. Compare the output to the size of the physical drive.


Should i upgrade linux-headers-generic-lts-trusty and linux-image-generic-lts-trusty?

Yes, it's normal...  (sorry for not answering you in chat.  It looked much more complex)

See the official Ubuntu documentation on 12.04.5 + 14.04 Hardware Enablement Stack Policies and Procedures.


Try the Logitech Media Server.

This is software that used to be bundled with Logitech hardware that is now obsolete, but it is still being maintained and developed. You can find it here. Download the "Debian Installer Package" that corresponds with your computer architecture (ARM, i386 32bits, AMD 64 bits) and install it with dpkg -i logitechmediaserver-[version].deb. Currently, the latest version is 7.9.
After installing it, you point it at your mp3 collection and it will create a database of your mp3 collection. You control it through a small webserver running on port 9000. There are various apps in the Apple Store and the Google Play store to control it.

I have been running this server for years on various pieces of hardware, either on a Ubuntu server or Raspberry Pi (running Raspbian). It's a very solid piece of work. It comes with many plugins, including (yes!) Spotify.


Writing an alias that puts a folder and its subfolders/files into an encrypted archive titled with the date

This should work fine for you.  The date command is all that is needed.

alias cryptodoc="cd ~/Desktop/ && 7z a -pSome_Pass -r ~/Desktop/$(date +%Y%m%d)_Documents_Backup.7z ~/Documents/* 2>/dev/null"

the command for date +%Y%m%d means, run date, then + means format, then %Y means YYYY, %m means MM and %d means DD.  Having the $( ) around the date command means to run it at the time of the command.

Hope this helps!


Configuring Intel Ironlake to run WoW's OpenGL | Wine1.7

Unfortunately the Ironlake series do not support OpenGL versions later than 2.1.  This is also true in Windows AFAIK.  I suspect that's your problem, and there are no other drivers.  Intel doesn't do binary drivers.


I need help on starting up 12.04 on my computer

Michael,
In my recent dual boots Win 7, Win XP with Ubuntu, Kubuntu Xubuntu, Lubuntu I can only say this: consider the terminal emulator your best friend. It is the highest level portal to install, remove and troubleshoot software/hardware conflicts. It offers the most specific, nuanced installations relative to your PC manufacturer, resident OS, etc. The other gentleman dosen't like Wubi, however it offers some ease of installation. The alternative seems to be a lot of exhausting,complex coding entries. They likely offer better stability when done (correctly) for dual boot OS's on a single disk drive.
Be that as it may,there are a lot of incredibly helpful people in the Linux community.
If you have Firefox, install the add on ubuntusers. The site is from Germany,and very useful links are mirrored in the states if you do not know German. Skip the forums (IMHO).Go to the "official" sites. Post the blurb about the kernel there. I daresay you will find your solution in short order.It may seem daunting, however the properly executed commands are like a magic key that opens the dungeon door. Even is your system is old, the terminal will rip thru your problem , effecting solutions that are amazing. (Much safer, faster and better than the overrated synapse.
Last, there are nuggets of info. on these sites, e.g., IF ONLY I realized 2 months ago what I learned today-- namely that in Kubuntu (the flavor I've settled on ) the Os gets sensitized to multiple pc's inj the same household who share common DNS DHCP adresses on the same router. It can get to where your pc will refuse to "talk" with another in the same household, fearing some cyberinvasion. Imagine-- built in attitudes for the OS. Some of it is maddening. The BEST workarounds are the "backports" "restricted " packages, and "ppa" portals for software. Though not oficially in the "Cannon" the best and most effective solutions lie there. Solutions involving routers, passwords, security, firewalls, etc -- PROCEED SLOWLY. They can sensitize all those demons that make Linus so blazingly fast. Nothing worse than a pack of angry demons. A lot of water must be applied to cool their jets.

John


keyboard shortcut editor does not intercept keypresses

After "Navigation" from the left pane, click the "Disabled" label within the row. It will now change to "New Shortcut", now press your key combination, or Backspace to clear.


ifort and icc installation on ubuntu14.04

ifortran is not for free. I think gfortran is going to do the job. I never faced such problems with gfortran.
Just make sure that gcc and gfortran are up-to-date:

gcc --version
gfortran --version


Use the bang-commands (e.g. '!!') of bash in scripts and aliases?

History expansion is done before alias expansion, so you'll have to use the history built-in to perform the expansion yourself:

alias getit='sudo apt-get install $(history -p !!)'

However, the above alias uses the whole last executed command as argument for sudo apt-get install, which means if we had given an argument to the failed command (like cowsay "Hello"), we would now also have this argument appearing in the list of packages to install (sudo apt-get install cowsay "Hello").

As this is not intended, we should modify the alias as steeldriver suggested and use !:0 instead of !! to only get the first word (the command name):

alias getit='sudo apt-get install $(history -p !:0)'

We still have to take care that this procedure only works, if the failed  command name and its package name are equal. It would e.g. not work for the command lynx (a CLI browser), because it is included in the package lynx-cur.


How to disable on-screen keyboard in my touchscreen laptop?

In case you are running Ubuntu 20.04, just open Settings -> Universal Access and switch off the Onscreen-Keyboard option there.
Hope this helps!


Ubuntu is still using upstart to manage the user session, and systemd only manages the system session.  Hopefully in the next release, the user session will migrate to systemd, and then this will work.


How to install ubuntu on a wiped out computer

Just set in BIOS boot order to your USB flash drive and save&exit. If your flash drive prepared correctly to boot - you'll see a welcome screen of Ubuntu installation


Virtual Box won't allow me to enter base memory

If you look in /home/<user>/VirtualBox VMs/<path to VM>
Look for <VM>.vbox and edit this file
Look for the Memory line and modify this carefully.
Run the emulator an check the memory


You can use aptitude or apt-get. The problem with this is that just qt selects too many packages and you could very well uninstalling other stuff that shouldn't/doesn't need to be uninstalled:

sudo apt-get -s remove qt*

This won't remove any packages, but will let you see what will you be removing.

sudo apt-get install aptitude
sudo aptitude search '?and(?name(qt), ~i)'

This will search any package that has qt and it's installed. Change the search for remove to remove it.


Best to leave it set for 640x480. Setting it to any higher resolution just makes the GRUB menu tiny, and harder to view.

However, if you must change it...

sudo pico /etc/default/grub

Find:

#GRUB_GFXMODE=640x480

And change it to:

GRUB_GFXMODE=640x480

changing the resolution as desired.

sudo update-grub


python3-pydot is in the default Ubuntu repositories in all currently supported versions of Ubuntu and can be quickly and easily installed without being in conflict with the default system version of Python. Open the terminal and type:

sudo apt-get install python3-pydot

The default location of dot_parser.py is /usr/lib/python3/dist-packages/dot_parser.py. The default location of pydot.py is /usr/lib/python3/dist-packages/pydot.py. You can use symbolic links to tell conda the paths to these files. Put the symbolic links in conda's own lib/python3.5/site-packages directory which for you would be something like: /home/rik/anaconda3/lib/python3.5/site-packages if rik is your username.


The same problem had plagued me since my upgrade to 13.04 until I finally found this post:

Fonts corrupted, all look the same

I used Syanptic to determine the unidentified library.  The following worked for me.

$ sudo apt-get purge libpango1.0-common pango-graphite


lubuntu 12.04 laptop fails installation if done with livecd

Here are somethings to try:

It sounds like the CD disc might be bad, or there might be something wrong with the ISO file.  Try using a different CD disc, and verify the ISO, by running an MD5SUM.

You can also try the 12.04 alternate CD.  Choose the 32Bit or the 64Bit  It accomplishes the same as the LiveCD, but the installation is done in text mode.

Try the installation using a USB flash drive instead.  You can use UNetbootin to create a bootable flash drive,


Why doesn't the advanced MATE menu have Education?

It seems to be the default choice. Right click on MATE menu and click Edit menu. Then check the Education box in column Show under Items. Finally, logout and login so that changes can take effect.


screen keyboard not showing up in Firefox (ubuntu 18.04)

I was just having the same problem on my HP Spectre 360. The screen keyboard seems to only automatically appear for gnome terminal and the text editor, nothing else.  I started just trying things and a swipe up from the bottom of the screen makes the keyboard appear.  It has a button with a down arrow (more of a small v actually) to make it go away again.


Xubuntu half screen is distorted upon regular boot

This is a common issue with netbook GPUs. To solve it, follow these steps:

Edit /etc/default/grub
Change #GRUB_TERMINAL=console to GRUB_TERMINAL=console (remove the #)
Run sudo update-grub
Reboot


login loop even after remove nvidia driver

In my case (GeForce 980, running Ubuntu 14.04 LTS), the issue was solved by disabling the Nouveau drivers and using the latest NVIDIA proprietary driver:

1.) Download the NVIDIA driver install script. Since you're stuck in a login loop, you can download the driver on another machine and scp it over to the affected machine. Don't run the script just yet.

2.) From the terminal, use nano, vim, or another editor to create a file called "/etc/modprobe.d/blacklist-nouveau.conf"

3.) In blacklist-nouveau.conf, include the following lines:

blacklist nouveau
options nouveau modeset=0

4.) Next, run the following command:$ sudo update-initramfs -u

5.) Run the NVIDIA driver install script with sudo. To be sure you're using the most recent version, use the update option. This downloads the most recent driver from ftp://download.nvidia.com and automatically downloads and installs it. For example, using the 361.42 driver:

$ sudo ./NVIDIA-Linux-x86_64-361.42.run --update

Go through the iterative process of installing the driver.

6.) Run $ sudo nvidia-xconfig to generate a new xorg.conf

7.) Reboot.

8.) If you're trying to run CUDA as well, install it after getting the latest NVIDIA drivers all set with steps 1-7. Alternatively, the CUDA installer gives you the opportunity to install the proprietary NVIDIA drivers along with the nvcc toolkit.

Good luck!


How to get brcmsac wireless drivers working?

The cleanest way to remove the proprietary STA driver is to make sure that the packages broadcom-sta-common, broadcom-sta-source and bcmwl-kernel-source are removed from the system. Do this with the Software Center or apt-get.

The brcmsmac (sometimes called brcm80211) driver is indeed part of the Linux kernel and included in Ubuntu along with firmware, so you should be set to go.


gcc uses the file extension (suffix) to determine the type - did you name your file with a .c suffix? If not, try renaming it - for example if I have a file called 'testc'

$ cat testc
#include<stdio.h>
int main()
{
printf("THIS is a C-file\n");
return 0;
}

Then

$ gcc -o test testc
testc: file not recognized: File format not recognized
collect2: ld returned 1 exit status

But after renaming to a proper .c file

$ mv testc test.c
$ gcc -o test test.c
$
$ ./test
THIS is a C-file


import cv2 error occured after installing opencv on ubuntu 16.04

That's a known bug in the contrib modules, specifically in the freetype module, which allows you to draw UTF-8 strings.

Before compiling OpenCV 3.2, run this command:

sed -i 's/${freetype2_LIBRARIES} ${harfbuzz_LIBRARIES}/${FREETYPE_LIBRARIES} ${HARFBUZZ_LIBRARIES}/g' ../opencv_contrib-3.2.0/modules/freetype/CMakeLists.txt

After that, you should be able to run the Python samples.

I also updated the tutorial you linked to include this fix by the way.


Is it possible to login as root in this situation?

Following this post when I'm here I need to enter E (don't hit enter) to edit the setting.

And then I navigate to this screen and go to the fourth line(starting with linux /boot/vm....to revovery \nomodeset) from the end and replace recovery \nomodeset with quiet splash rw init=/bin/bash. Last hit F10 to resume the booting, and you'll see a prompt and enter passwd to set a new password for root.


You are correct that this is a matter of setting up the proper routes so that only traffic directed to your campus resources goes through the VPN. Probably the simplest way is to le NetworkManager deal with it. You can install the f5vpn plugin for NetworkManager (https://github.com/ohwgiles/NetworkManager-f5vpn) and then use the GUI to create your connection. Under the IPv4 tab of the GUI, you just need to select "Use this connection only for resources on this network" to limit the traffic to the subnetwork associated with the VPN.

Disclaimer: as I don't have an f5vpn account, I cannot test this, but works with other VPNs I use.


dpkg warning files list file for package missing

Have a look at this Serverfault question.

  You might want to try something like this:

for package in $(apt-get upgrade 2>&1 |\
                 grep "warning: files list file for package '" |\
                 grep -Po "[^'\n ]+'" | grep -Po "[^']+"); do
    apt-get install --reinstall "$package";
done

  Copy/paste friendly in one line:

for package in $(apt-get upgrade 2>&1 | grep "warning: files list file for package '" | grep -Po "[^'\n ]+'" | grep -Po "[^']+"); do apt-get install --reinstall "$package"; done

  Be aware that running this command takes some time as it cycles
  through every package.

I wanted to suggest something similar to the accepted answer there before I found this. And I don't have enough reputation to add this as a comment.

Unfortunately I can't answer why this is happening. I had this problem after a dist-upgrade, and fixed it by reinstalling the packages.


try this, it my help you fix your problem:

Install the drivers:

sudo apt-get install xserver-xorg-input-all

If already installed, reinstall it:

sudo apt-get --purge autoremove xserver-xorg-input-all
sudo apt-get install xserver-xorg-input-all

Reboot and try again if everything is working.


You will find guidance on how to setup a CUPS server, which you can find on the Ubuntu server guide. Hope that helps.


Ubuntu server "sudo apt-get update" can't resolve security.ubuntu.com

Check under /etc/network/interfaces. If the Ubuntu is a server version then the interface setup is done here. A desktop version with a GUI would use network manager to configure the interface is high is a link from the top right of the toolbar. At a minimum I would imagine you have "auto lo iface  lo inet loopback and auto eth0 (or em1) iface eth0 (em1) dhcp" if you were to manually setup your connections things would be different but you should still be able to add DNS setting here. Try adding:
dns-nameserver 8.8.8.8 8.8.8.4
Under the Ethernet interface setting. Save the setting and from the terminal you can try:
sudo service network-interface restart INTERFACE=eth0 (or em1, whichever it was)
another option:
sudo ifconfig eth0 down
Make sure it goes down:
 ifconfig
Then:
sudo ifconfig eth0 up
If things are good you should be able to ping www.google.com
Check under:
man 5 interfaces or man ifconfig for other good info. Hope this helps.


Focus follows mouse stops working when opening window from launcher and no click to focus

This appears to have been a mouse issue.

The system was on a KVM switch and the mouse seemed to work fine on windows (the other computer on the KVM) but not on Ubuntu.

The USB mouse I tried as a substitute did not scroll and that turned out to be why it was on the shelf.  Bad luck there.

Once I found out the USB mouse was bad I tried another wireless mouse in exactly the same configuration on the KVM.

Everything immediately started working correctly and I have had no problems for a week.

I cannot explain why the mouse works on windows and not Ubuntu but I cannot call this an Ubuntu issue at this point considering that the mouse had worked on 12.04 for some time.

Advise on mouse issues is check hardware first this way.

Get a verified working mouse and swap out for mouse on problem system and see if this corrects the problem.

Going the other way, taking the mouse from the problem system and verifying it works on a different system may not isolate the issue.


Sorry I disagree with the method you want to use and the proposed answer is far too difficult for something as simple as this.

You should not put /home/ on an external disk. You only put the user directories inside /home/$USER/ on an external disk. The system supports putting your user directories elsewhere with the file ~.config/users-dirs.dirs. Perfect for this kind of setup. No need to mess with user-ids, UUIDs are anything else.

1 simple reason why you do not put /home/ on an external disk: There will be a problem in the future where the external disk does not mount and you will not be able to boot. Making it harder to fix you problems since you will need to fix it from a live session or grub rescue.

Keep /home/ next to your /. When the system does not find the external disk it will boot into an empty (blank) Desktop where /home/$USER/ is used as the base directory. But everything still works and you can use the desktop session to browse the web/AU for the problem you face.

And all you need to do is add both users to the same group and chown the external disk to that group.

Mind also that the external disk MUST be ext if you want to put your /home/ on it. You can not use NTFS. When you use the method describe above you can use NTFS (the directories in /home/$USER/ do not require file permissions that /home/ must have to function).


How to speed up Docker under Ubuntu 16.04

The problem was with type of storage driver it was aufs instead of overlay2.
After I changed docker configuration and restarted docker it started to work faster


What are the system requirements for each flavour of Ubuntu Desktop?

Ubuntu Desktop

The main flavour of Ubuntu using Unity (16.04) or GNOME Shell (17.10 and newer).

Minimum

Xenial Xerus (16.04)

700 MHz processor (Intel Celeron or better)
384 MB of system memory (RAM) for 32-bit
512 MB of system memory (RAM) for 64-bit
8 GB of free disk space
VGA capable of 1024x768 screen resolution
Either a DVD drive or a USB port for the installer media

Bionic Beaver (18.04)

at least 1 GHz 64-bit processor, given that 32-bit desktop live was discontinued
at least 1 GB of system memory
at least 9 GB of free disk space
other requirements may follow the "Recommended" section

The minimum requirements were last mentioned in 12.04 release note, and has since not found in release note of newer releases. The minimum requirements for newer releases are unofficial and subject to testing on real hardware or in a virtual machine (VM). Ubuntu has varying requirements on VM.

Bionic Beaver (18.04) on VM: Requires VT-x/AMD-V hardware acceleration. Requires at least 1156 MB RAM and 128 MB video memory, but disable 3D acceleration for at least usable desktop to open menu and change settings. This is the practical minimum for a test drive, but not for daily use.

Recommended

Xenial Xerus (16.04 64-bit)

2 GB system memory
other requirements are similar to the following

Bionic Beaver (18.04 64-bit)

2 GHz dual core processor or better
4 GB system memory (since 18.04.2)
25 GB of free hard drive space
Either a DVD drive or a USB port for the installer media
Internet access is helpful

For latest recommended requirements, visit download page of Ubuntu Desktop.


How to partition active memory in Ubuntu?

You can not. You should use a live medium to repartition your current disk.


How to enable nautilus advanced permissions in configuration editor?

In 11.10 and newer Nautilus' advanced configuration can be found via dconf-editor, which you can get by installing dconf-tools, then navigate to Org->gnome->Nautilus and browse around the keys.


Unbypassable way to block all distracting sites / content on Ubuntu?

The problem here is: you're the only one with access to your system, and you control it and its administration.  Because of this, you need sudo access to access administrative functions.  And as such, you retain the ability to bypass almost anything because of sudo commands and access.

The only true way to achieve what you're after is to hand off all administrative functions (and therefore 'control' of the system) to a third party other than yourself - that way, they control sudo and admin powers, and you can't bypass anything by doing sudo killall or similar.

THIS SAID, that person will be the sole admin on your system - once they are given admin powers, you would remove yourself from the sudo group and therefore have no administrative power on the sytem at all.  So this person has to be ready and available to respond to any cases where you need admin intervention.

(This is actually how corporate environments protect their systems from end-users having local admin on all systems and making changes - without sudo they can't really touch the system files or administrative things, and only the IT administrators can.)


Ubuntu partition won't display on screen

It sounds like X is not starting; setting the DISPLAY won't do anything, because there isn't an actual display running.

See if you can start in Failsafe X mode:

Boot into the recovery console
Choose Failsafe X mode

That will at least get you back to X where it's comfy.

Have a look at/post your Xorg log.  It's at /var/log/Xorg.0.log, especially for lines marked "(EE)" for error.

Also look at/post your /etc/X11/Xorg.conf file, the Xorg configuration.  Usually you can safely delete/move this file, and it will automatically be regenerated with good defaults.


If you installed the 13.04 over your old system, then your files will most likely be lost.

But if you installed it along the other, you can try the following:

I'm assuming that you know a bit about disks and mounting. I'm also assuming that your old system was on partition 2 of sda and your new system is on partition 3.

If it is like this, you can simply try mounting the old system:

sudo mount /dev/sda2 /mnt

If this doesn't work or you weren't using the recommended filesystem or whatever, you either need to specify the filesystem (like sudo mount /dev/sda2 /mnt -t ntfs) or it gives an error, which we need to know in order to help you.

"I don't have proper permissions" is very very vague.


How can I save a part of command lines into a new file using history command?

Current session:

You can do so by running the following command in the terminal:

history -a ~/current_session.txt

Current session's history will be saved to a file named current_session.txt in your home directory.

Certain inputs:

You can also search all history for a certain input and save the output to a file. For example to save all lines that have install in them, please run the following command in the terminal:

history | grep install > ~/search_results.txt

Search results will be saved to a file named search_results.txt in your home directory.

  Change install to whatever you want to search for.

  To search for multiple inputs put them between two quotation marks
  "" , separate them with a pipe | and put -E before them like so:

  history | grep -E "install|update|upgrade" > ~/search_results.txt

Best of luck


1 GB of Ram?
I suggest Lubuntu and Xubuntu. Further, I also suggest using the LTS version. If you do not understand, refer to this

Wiki- Lubuntu and Xubuntu


Multiple users access to the same vsftpd chroot environment in server 18.04

I've managed to achieve what I need by mounting the needed directory using the --bind parameter:

mkdir /home/ftp_user/sivh/
sudo mount --bind /home/sivhappftp/sivh/ftp_user/ /home/ftp_user/sivh/

After this each ftp user will be able to see the needed files in his home directory and use them in his ftp client as if they were local files.

Made this configuration permanent including a line, for each, in /etc/fstab:

/home/sivhappftp/sivh/ftp_user/   /home/ftp_user/sivh/      none    bind    0       0


This is not really an answer, but maybe an acceptable workaround, depending on what you actually want to measure. The following method will measure how long it takes to open a browser and display an html page in milliseconds:

Create an html file with the following content:

...and run (replacing the path to your file):

firefox "file:///path/to/file.html?startTime=$(date +%s%N | cut -b1-13)"

I don't have seamonkey installed, but I tested it with firefox and chromium and it should work with any browser that accepts a URL as parameter. It will also show you how long it takes if an instance is already running.


ubuntu hangs after starting with issue Pointer to Flat Panel Invalid message

I finally found how to resolve this issue.
exact error was

  Nouveau Pointer to flat panel table invalid

I tried different distro's and issue was same.

after looking at details of Nouveau errors i did this, booted my system into safe mode. for those who have issue like me where system hangs don't open any window via mouse just press Ctrl+T which will open terminal and run following command,

sudo apt-get install nvidia-current

This is for only system which have nvidia boards. and run

sudo reboot now

as if you move your mouse to reboot it will hang the system. and then when system runs press F10 or delete key to boot into bios,

Then change following options,(based on your bios it would be in one of submenu.

Enable VGA/Graphics slot
set it to 256 MB

then you reboot and enjoy your system :)


Desktop shortcut for Java executable doesn't connect

Use the Path= parameter in your desktop file  and Type=Application.

E.g.

Path=/home/bigaisdgood1/CashAdv
Type=Application

Path defines the working directory to run the program in, when entry of Type is Application.


configure: error: failed to find required module libxml2, while building mesa

This is because you lack the proper headers libraries for mesa. One way to solve them all is installing all the libraries with a single stroke:

sudo apt-get build-dep mesa

For the specific message you may need:

sudo apt-get install python-libxml2


wrong fs type errors caused while mounting an usb drive are mostly because of bad sectors in your current kernal.Updating your kernal will solve this issue.Run the following command to update your kernal,

sudo apt-get install linux-generic

After that reboot your pc and then try to mount your usb.


Dual-boot Ubuntu 20.04 & Windows 10 Pro - RST problem

Have you tried to reboot windows in safe mode after the switch to AHCI?
You need to have a complete boot on AHCI at least one time.
You can configure that with msconfig on windows before switching to AHCI:
https://www.intowindows.com/4-ways-to-change-the-boot-order-in-windows-10/


At which phase of boot process could one modify scancode/keycode translation tables of keyboard drivers supporting the Linux input layer API?

I put WantedBy=multi-user.target friendly-recovery.target in [Install] section of the .service file I created. That seems to work also in recovery mode root shell. Still, I don't know, if this is the best configuration to use.


Why is this bypassing the SUDO password?

sudo remembers your password for some time (15 minutes by default). You can make sudo to forget the password by running sudo -k


Info from https://launchpad.net/~wireguard : This formerly was responsible for producing a PPA for WireGuard on Ubuntu. That functionality has now been folded into Ubuntu itself, so our old PPA has been removed. Simply run apt install wireguard on all Ubuntus ≥ 16.04.


Why does Genymotion need Virtualbox to run?

Because

  Genymotion operation relies on the use of Oracle VM VirtualBox in the background. This enables virtualizing Android operating systems.

Your question seems to end in a cirle: Genymotion is a virtualBox based Android Emulator. So the answer basically ends up in: because Genymotion decided on that.


How can I disable screen locking _completely_ in Ubuntu 10.04?

I do not work with Ubuntu 10.04 myself, but found a threat that deals with easily removing the Hibernate button from the logout screen. I assume that removing the "lock screen" option works in the same way.

way to disable Hibernate from within gconf-editor so button disappears?

Maybe someone has a simpler solution, otherwise hope this helps.


Ubuntu 14.04 KDE reversed green and red on images

This seems indeed to be Firefox related problem, but in KDE only. I had to change the gfx.color_management.mode in about:config  Firefox section to 0 (it defaults to 2). It solved the colour issue although it might not have solved the source of the problem.


Can I specify tighter security group controls in EC2?

I found a way to do it

This can be solved by creating a security group earlier ( with whatever security policy we wish), so that juju can use the same security instead of creating one.
Security group name should match the name that we specify in the environment.yaml file. For example , if we use the name "amazon", then the security group name should be "juju-amazon".

As zookeeper service ( bootstrap instance) is listening on the port 2181 for all the client request , we need to open 2181 port for the group.


Confused about relationship between cron and anacron

Both cron and anacron are daemons that can schedule execution of recurring tasks to a certain point in time defined by the user.

The main difference between cron and anacron is that the former assumes that the system is running continuously. If your system is off and you have a job scheduled during this time, the job never gets executed.

On the other hand anacron is 'anachronistic' and is designed for systems that are not running 24x7. For it to work anacron uses time-stamped files to find out when the last time its commands were executed. It also maintains a file /etc/anacrontab just like cron does. In addition, cron.daily runs anacron every day. Hence, anacron can only run a job once a day, but cron can run as often as every minute.

From man anacrontab:

  When executed, Anacron reads a list of jobs from a configuration file,
  normally
         /etc/anacrontab  (see  anacrontab(5)).  This file contains the list of jobs that
         Anacron controls.  Each job entry specifies a period in days, a  delay  in  minutes, a unique job identifier, and a shell command.

  For  each  job,  Anacron checks whether this job has been executed in
  the last n
         days, where n is the period specified for that job.  If not,  Anacron  runs  the
         job's  shell  command,  after waiting for the number of minutes specified as the
         delay parameter.

  After the command exits, Anacron records the date in a  special
  timestamp  file
         for  that  job,  so it can know when to execute it again.  Only the date is used
         for the time calculations.  The hour is not used.

This means, if a task is scheduled to be run daily and the computer was turned off during that time, when anacron is run, it can see that the task was last run more than 24 hours ago and execute the task correctly.

For example if you specify the following in /etc/anacrontab:

7       15      test.daily      /bin/sh /home/username/script.sh

and on the day when the script.sh job is supposed to executed, if the system is not running, anacron will execute the script.sh 15 minutes after the system comes back up.

Few Reference:

Anacron sourceforge page
Digital ocean page
RedHat documentation on cron and anacron
Who runs scripts inside /etc/cron.hourly if anacron is enabled?


It certainly looks like a hardware problem, but not necessarily a damaged disk. Turn your notebook upside down, unscrew the lid of the disk compartment and see if the disk is pressed firmly against the connector. This may help. And do make backups.


How to view files from host? (running inside VMWare Fusion)

This question and answer from prosseek might help you.  The sshfs method seems a bit unorthodox to me, but I don't have vmware-fusion available to test any other way.


Ubuntu 16.04, Dual Monitors: Nvidia GTX GeForce 970, Intel i7-4790K iGPU

For one, you'll want the proprietary Nvidia drivers like Frank mentioned.

Another thing which should help: from what you said it sounds like you have one monitor running off of your CPU (through the mother board), and one running off of the GPU. I would recommend running both monitors off of your Nvidia GPU. The 970 can definitely support it, and it's likely to cut down on a lot of the trouble you're having.


It appears that this has been reported as a bug, and is closed as wontfix:

  We have decided to discontinue support of the QQ protocol in libpurple and Pidgin as of version 2.8.0. Other implementations are available; please investigate their use if you want to continue using QQ.


How to compile multiple all testbench components of Systemc

So here is the solution!
g++ -g -Wall -I $SYSTEMC_HOME/include half_adder.cpp full_adder.cpp driver.cpp monitor.cpp full_adder_main.cpp -c

g++ half_adder.o full_adder.o driver.o monitor.o full_adder_main.o -L $SYSTEMC_HOME/lib -lsystemc

./a.out

These are the commands I executed on my terminal.Before that make sure you have your environment variable set.
The environment variable setting(as shown in the question) are later added to bash.rc file
I am still learning how to write a makefile, but these commands will definitely help!
Thank you


Please install Ubuntu Restricted Extras from Software Centre. Ofcourse you have to tick the checkboxes for Software as well as Source code in the Software Updates before proceeding to download the software mentioned.
I think what you mean by not being able to play sounds is you are not able to play mp3's.


Installed dual boot Ubuntu 14.04 and Windows 8.1 Can't boot into Windows

How far can you get into your recovery disc? If you can enter CMD, you can follow this guide. This will reinstall the Windows 8 boot loader onto your primary hard drive's MBR.

Usually I'd include the steps upon posting, but the post is too long. Let me know how you get on, or how far you get, and if a success, I will rewrite the instructions into this post.


Problem in burning a DVD and getting the iso file

The file you downloaded is an ISO, but since it doesn't have anything associated with it, it will look as a ZIP file.  What you can do is download ImageBurn.  ImgBurn is a free burning software fir windows.

Now I believe that this is what you saw

In my case I have PowerISO installed, so what I did was, right click the file, and choose open with, and Clicked on choose default program, and choose power ISO

And once done this is the outcome

So once you download and install ImageBurn, click on write image file to disk, and  choose the file that you have downloaded.


The best way to compile a kernel for an i7 processor?

From my point of view kernel.org is the right place to get a kernel. Usually I clone the git repository from mainline. Maybe you could also use a recent vanilla kernel and apply the patches from Ubuntu. You'll find the diff at the linux-image package page. Be aware that there could be some conflicts which you have to resolve. So the first version is probably better.

I guess you wouldn't find any good .config in the wild. What I find helpful is make localmodconfig in the kernel source. First you copy your old config to /usr/src/linux-2.6 (or the place where your kernel sources are) and then you execute this command. It will disable all module which are not loaded. So you gain more customization in the first place.

I'm not aware of any patches which are good for Lucid.

I'm a member of a local LUG. We make from time to time kernel workshops. Here all members meet. We configure a kernel and talk about our knowledge of different entries. In the end all profit from it and this helps to build better kernels. So if I look for optimisation I would ask our members. If that is not an option, reading the Linux Kernel mailing list could also help to find a solution. You'll find often some discussion which are helpful.


yes setup automount

apt-get install autofs5

add the following to /etc/auto.master
/-      /etc/auto.misc --timeout=20

add the following to /etc/auto.misc
/mnt/shared -fstype=ext4 :/dev/sda8

run: service autofs restart

enjoy


Grub cannot load Windows 10 only BIOS can

On a Dell based Skylake using UEFI and NVMe with AMI BIOS this can be fixed by changing Firmware TPM from enabled to disabled on this screen:

NOTE: I thought someone had asked this last month before I got my new laptop. I searched in vane for that question to post this answer there. This problem will affect many people going forward as NVMe and USB-C ThunderBolt3 become more prevalent (they seem to go hand-in-hand) so I decided to post this Q&A so others could benefit. If you can find the original question please close this as a duplicate and I'll post this answer under the original question.


cant start xamp it gives error message like this

It seems that your installation of XAMPP is broken...

My best suggestion is to forget about XAMPP and install what you need from repositories and, if needed, configure it yourself. This seems to be a good tutorial: https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-14-04


fix incompatibilities libreOffice files opened in MS Office 2007

unfortunately NO. there is no full compatibility between libreoffice and ms office

You can save files as .doc and stay with office 2003 compatibility. That is better that .docx compatibility with office 2007/2010


Which Ubuntu kernel package should I run in a Xen domU

I believe that the 10.04 -server kernel supports pvops (http://wiki.xenproject.org/wiki/XenParavirtOps) and so you don't need a special kernel to run it as a domU.

From the link above:

"Ubuntu 10.04 ("Lucid Lynx") also includes Xen PV domU kernel."


I figured it out.  For anyone else with this problem, for me it was a problem with a Greasemonkey script (Youtube HD Ultimate), causing the page to be reloaded in a weird way.


gear icon missing ubuntu 14.04 from login

Run this in the terminal to access settings

    gnome-control-center


$ curl -sL https://packagecloud.io/AtomEditor/atom/gpgkey | sudo apt-key add -

This is actually two commands.

curl -sL https://packagecloud.io/AtomEditor/atom/gpgkey downloads the GPG key from PackageCLoud for the Atom Editor repository.

sudo apt-key add - adds it to apt so it can recognize and validate the repository's GPG signatures on packages.

$ sudo sh -c 'echo "deb [arch=amd64] https://packagecloud.io/AtomEditor/atom/any/ any main" > /etc/apt/sources.list.d/atom.list'

Easier if we split it into its three constituent parts.

sudo executes the sh command as superuser.

sh -c indicates to execute a specific command in the sh shell.

'echo "deb [arch=amd64] https://packagecloud.io/AtomEditor/atom/any/ any main" > /etc/apt/sources.list.d/atom.list' is the command being run by sh -c which creates the separate repository entry in /etc/apt/sources.list.d/atom.list so that when you do sudo apt update it'll check that repository for package data.


Ubuntu 16.04 freezes after random duration

You should try to update:

Your drivers

Search "drivers" in the Unity Dash and see if there is something unchecked.

Your Ubuntu

Search "update" in the Unity Dash and update your system.

Consider checking the logs for more information. (This link can help you)


If you wish to stop this behavior pending a gnome bug fix you may try this, tested on 12.04

sudo -H gedit /usr/share/applications/nautilus.desktop

Look for this line StartupNotify=true, change it to StartupNotify=false

Then restart nautilus or simply do a log out/in

There are 2 other nautilus .desktop's, home-folder.desktop & nautilus-folder-handler.desktop, I believe you can leave them as is


Expand the size of / partition with unallocated space

You are still using the disk!

Stop using the swap space on /dev/sda1, see man swapoff.

gparted will not alter a disk's partition table if ANY of the disk's partitions is in use.


How to run wallch in "random time" mode automatically on startup?

I am one of the developers of Wallch and I assure you that this is not possible :D

On our new version we plan to add something like that in our to-do list, though :)

Also, you will be able to adjust your very own time selection, not only between 2-20 minutes !

EDIT:

I just updated the 3+ versions of Wallch that we are releasing (before the 4th that we are planning to include into 12.10) and it is able to start at startup depending on what is your preference.

For example, if in the program you have set to run with random time and with random images, it will do exactly the same on startup etc.

You can install this version of Wallch by giving the following commands:

sudo add-apt-repository ppa:wallch/3+
sudo apt-get update && sudo apt-get install wallch

Also, in this version of Wallch you are able to set your own random time (not only between 2-20 mins)


I've had Tomboy twice delete a single important note. What's going on there?

I'm short-handing this answer as "There is a currently unresolved error in Tomboy."

It seems like this is what's going on here:
https://bugs.launchpad.net/ubuntu/+source/tomboy/+bug/580333

A note is overwritten with 0 data.  So it neither enters the Backup folder, nor is the data recoverable from the trash.

No one has yet been assigned to the bug.


I was able to install nvidia driver from the nvidia page. Just grab the driver in .run file and install it.

The command is like this:

sudo stop service lightdm
chmod +x NVIDIA-Linux-x86_64-331.49.run
sudo ./NVIDIA-Linux-x86_64-331.49.run

However I found that I could switch off the nvidia and run intel card instead. The intel card is much better than nvidia considering I'm using my MBP mostly for work and study but not gaming. Following is how I did that:

sudo vi /etc/grub.d/10_linux

+ Add following:
   echo "    outb 0x728 1" | sed "s/^/$submenu_indentation/"
   echo "    outb 0x710 2" | sed "s/^/$submenu_indentation/"
   echo "    outb 0x740 2" | sed "s/^/$submenu_indentation/"
   echo "    outb 0x750 0" | sed "s/^/$submenu_indentation/"
after these lines:
   if [ x$type != xrecovery ] ; then
        echo "    gfxmode \$linux_gfx_mode" | sed "s/^/$submenu_indentation/"
   fi

   echo "    insmod gzio" | sed "s/^/$submenu_indentation/"

+ Rebuild grub:
grub-mkconfig > /boot/grub/grub.cfg

+ Open Grub Customizer, add following options:
i915.lvds_channel_mode=2 i915.modeset=1 i915.lvds_use_ssc=0

+ Reboot and enjoy low power and low heat

+ To confirm Nvidia is off:
sudo cat /sys/kernel/debug/vgaswitcheroo/switch

+ Download mbp_power.c and compile it:
sudo gcc -O2 -o /usr/local/bin/mbp_power mbp_power.c

+ Make it run right after resuming from sleep
vim /etc/pm/sleep.d/10_disable_nvidia.sh

case "${1}" in
    hibernate|suspend)
        # this is called when going to hibernate or to sleep
            ;;
    resume|thaw)
        # this is called when waking up
        /usr/local/bin/mbp_power
            ;;
esac

+ Make sure every thing is executable
chmod +x /usr/local/bin/mbp_power
chmod +x /etc/pm/sleep.d/10_disable_nvidia.sh

mbp_power.c:

// compile:
// sudo gcc -O2 -o /usr/local/bin/mbp_power mbp_power.c

#include <stdio.h>
#include <sys/io.h>

#define PORT_SWITCH_DISPLAY 0x710
#define PORT_SWITCH_SELECT 0x728
#define PORT_SWITCH_DDC 0x740
#define PORT_DISCRETE_POWER 0x750

static int gmux_switch_to_igd()
{
    outb(1, PORT_SWITCH_SELECT);
    outb(2, PORT_SWITCH_DISPLAY);
    outb(2, PORT_SWITCH_DDC);
    return 0;
}

static void mbp_gpu_power(int state)
{
    outb(state, PORT_DISCRETE_POWER);
}

static void mb_gpu_print()
{
    printf("SELECT:  %hhu\n", inb(PORT_SWITCH_SELECT));
    printf("DISPLAY: %hhu\n", inb(PORT_SWITCH_DISPLAY));
    printf("DDC:     %hhu\n", inb(PORT_SWITCH_DDC));
    printf("POWER:   %hhu\n", inb(PORT_DISCRETE_POWER));
}

int main(int argc, char **argv)
{
    if (iopl(3) < 0) {
        perror ("No IO permissions");
        return 1;
    }
    int state=0;
    if (argc > 1) state = atoi(argv[1]);
    printf("Before:\n");
    mb_gpu_print();
    mbp_gpu_power(state);
    gmux_switch_to_igd();
    printf("After:\n");
    mb_gpu_print();
    return 0;
}

Proof in the following pic:


I somehow managed to break my hard drive - Please help

Your drive is a LUKS container which most likely contains a LVM volume group. Before proceeding, make sure that you have cryptsetup and lvm2 installed.

Open the container:

sudo cryptsetup luksOpen /dev/sda5 samsung

Activate the LVM logical volumes:

sudo vgchange -aay

Check what you now have in lsblk:

sudo lsblk


It is possible to search for x-display-manager meta used in Debian package that provide an X display manager.

Using aptitude:

aptitude search '~i~Px-display-manager'

Or debconf:

./dm_list.sh

#!/bin/sh
set -e

# source debconf library
. /usr/share/debconf/confmodule

# set default display manager
DEFAULT_DISPLAY_MANAGER_FILE=/etc/X11/default-display-manager

CHOICES=
if db_metaget shared/default-x-display-manager choices; then
  CHOICES="$RET"
fi

echo $CHOICES
echo default $DEFAULT_DISPLAY_MANAGER_FILE

sudo ./dm_list.sh

References:

DEBIAN/config file from lightdm debian package
How do I get a list of packages that “Provides” something" using dpkg?


Is it possible to run a command on the client when a ssh session is closed?

According to Dill on Ubuntuforums you can implement a logout script like so:

If you don't already have one, create a .bash_logout file:

http://rcsg-gsir.imsb-dsgi.nrc-cnrc.gc.ca/documents/advanced/node125.html

Here are the contents of my default .bash_logout on an Ubuntu machine and Debian server:

# ~/.bash_logout: executed by bash(1) when login shell exits.

# when leaving the console clear the screen to increase privacy

if [ "$SHLVL" = 1 ]; then
[ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q
fi

Feedback seems good to his answer.  Link for reference


Ubuntu running very very very very ... very slow

The Intel Core 2 Duo is a 64-bit processor, so using a 64-bit OS should be the way to go.

It seems to me like your swap is too small. Ubuntu is designed to start using Swap before your RAM is filled all the way up. From what I've seen, the suggested size of your Swap partition is equal to your amount of ram.

Here is more info on Swap - Ubuntu Wiki Swap FAQ


Script not having permission to write into /etc/network/interfaces

sudo echo "
auto lo:1
iface lo:1 inet static
address $1
netmask $2" | sudo tee /etc/network/interfaces

The last line on your script netmask $2" >/etc/network/interfaces attempts to edit the interfaces file which only root can write to. (Or at least it should be owned by root)
However, sudo echo "" > likely does not work how you want it to.

What it's doing is it is executing echo "" with root permissions, but the > operator is not executing with those permissions.

You may want to reformat your command along the lines of this example. In this case, the command that outputs to the file is being run as root, while the other commands do not have to be.  I've shown you an example of that above.


Where are the pre-defined keyboards defined?

Look at the /etc/default/keyboard file.

Here you can find a short explanation about keyboard-preferences.


QtCreator error; can't load library; ProjectExplorer(2.6.82)


Can not clone lxc container with lvm backingstore after ubuntu update

I'm guessing you know this, assuming you are the same "questioner" that opened the bug, but for the benefit of future searchers like me:

This is covered at https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1414771; the fix has been committed, and will be in a future release. In the meantime, as suggested in the bug, the workaround is to create a directory ${LXC_PATH}/${LXC_NAME}/${DEV_NAME} where

${LXC_PATH} is the directory where container information is stored (lxc-config lxc.lxcpath) - normally /var/lib/lxc
${LXC_NAME} is the name of the container you are trying to clone
${DEV_NAME} is the last component of the device containing the root filesystem of the container you are trying to clone (lxc-info --name "${LXC_NAME}" -c lxc.rootfs)


Does `C-x h` and `C-x-h` mean the same thing in Emacs ?

C-x h means hold the Control key pressed while you hit (press and release) the x key, and then hit the h key.

Emacs key notation does not use C-x-h; it is a mistake.  (But C-H-x is not a mistake, because H- is the Hyper modifier key - see below.)

The hyphen (-) is used after a key when the key is a modifier key. A modifier key is held down while the next key is hit. C- is the Control modifier key.  M- is the Meta modifier key (typically a keyboard Alt key). S is the Shift modifier key.  Those are the standard modifier keys.  Some keyboards have additional modifier keys, such as Hyper (H-) and Super (s-).

You can find such information by asking Emacs: C-h r to access the manual, then i to ask the index of the manual: type something and hit TAB to see what matching index entries there are. In this case: C-h r i key TAB shows you that key itself is an index entry - so hit RET (Enter key) to see information about keys, in particular, the answer to your question.

(Well, actually this node of the manual tells you the answer to your question.  You could find it using i key TAB as the entry keyboard input.)


gnome-session-quit --no-prompt will log you out of an existing Unity session, without a prompt.


List all files à la *.* (star-dot-star) in Windows using Nautilus on Ubuntu 18.04

Short answer: no.

Current versions of nautilus feature "Search". The search facility does not, however, support wildcards. As such, it is not possible to list all files in the current folder and in subfolders that match a wildcard pattern.

Nautilus supports wildcards in its file selection feature. For example, Ctrl+s followed by *.* and Enter will select all files in the current folder containing a dot in their name.


How to install Google app engine launcher in my ubuntu 14.04?

Google code has been shut down in 2015, so the SVN access will not work anymore and it seems that the project has not been maintained for a long time.

However, the source code is not lost: see the google code archive page, where you can

download the source code
or export the project to git-hub


Permissions question for drupal site in var/www

The earlier error 403 is permission related, the 404 error is file not found, Depending on the version of Ubuntu you are running you will find different files, type the following commands to find the document root, ls /etc/apache2/sites-available
 this should list either 000-default or 000-default.conf file, if there are other entries make a note as it may be configured with virtual hosts, now open this file with nano text editor by typing nano /etc/apache2/sites-available/000-default.conf use the filename you find instead of "000-default.conf" and scroll through this to find DocumentRoot, ideally this should be /var/www/html, if it is different please note it. Type ls -l /var/www/html or the path you get and check the listing there, use sudo touch /var/www/html/try.html to create a blank file in this default document root. Browse this file through your browser on the computer with http://localhost/try.html if it still gives 404 that means your config files need to be checked. Please report back the sites-available, the errors and path info you get. For permission set youself as the owner of files by sudo chown -R yourusername:www-data /var/www/html/ and sudo chmod -R g+w /var/www/html/ make appropriate changes to user and directory name to match your own system.


ubuntu won't shutdown or freezes at splash screen

Try pressing escape when it is frozen to see the shutdown commands behind the splash screen. Or remove "quiet splash" from this line in etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

you can do this by editing the etc/default/grub file

sudo gedit etc/default/grub - make the edit so it looks like this
GRUB_CMDLINE_LINUX_DEFAULT=""

If you had other parameters between the "" you can leave them in the line
then update grub with

sudo update-grub

On start up and shut down you should see the boot sequences commands now.
If you see Reached target shutdown and that is where it hangs forever this may be related to bug #1464917:

If you feel this is related to this bug please go to the link above and add your name to the "This affects me " link at the top of the bug description

Update:

There has been a development as a work around to this bug.  It seems to be related to the swap file usage/management.  Adam (from the bug link above) points out that if you turn your swap off, wait for it to process, before you shutdown the hang never happens.  When you are ready to shutdown your machine, open a terminal window and type;

sudo swapoff -a

Wait for the command to process and give your prompt back then you should be able to perform normal shutdown.  This is working for many including me.

end update

After the shutdown or reboot has hanged with this message Reached target Shutdown

Try Sysrq

Hold down the Alt and SysRq (Print Screen) keys.
While holding those down, type the following keys in order, several
seconds apart: REISUB
Computer should reboot.

You can also try the following after it hangs.

see if you can login tty1 and reboot

Press Ctrl+Alt+F1 or Ctrl+Alt+F2 or Ctrl+Alt+F3 ...
Write your username (lowercase, the name of the user folder in
/home) and hit Enter
Write your password (nothing will appear) and hit Enter

If your password and username are correct, you are now logged in.

If that fails try Ctrl+Alt+Del a couple times at that point in the tty1 screen

You might see a message that states the machine is going to reboot and then it should do just that after a minute or so.

Its better than a hard boot - until its fixed

In the bug notes it is reported that you can upgrade to Vivid-Proposed and it fixes the issue but some still see this after that upgrade.  It might be worth a shot.

Btw the same bug affects me.


"Starting Home Folder" in panel for about 10 seconds in Ubuntu Mate 18.04 LTS

I can reproduce this behavior and reported is as bug 1877734.

The fix is to edit the dragged shortcut and change Command field from caja --no-desktop to simple caja.


Is it necessary to use 'sudo' when doing a '--dry-run' with apt-get?

When you run apt-get --dry-run without sudo, you get a warning:

  NOTE: This is only a simulation!
  apt-get needs root privileges for real execution.
  Keep also in mind that locking is deactivated,
  so don't depend on the relevance to the real current situation!

So it is better to use sudo to get a real testing.


I don't know where you got the inf file, but it is obviously incorrect. Let's erase it:

sudo ndiswrapper -e bcmwlhigh6

Download this file to your desktop so we can find it: http://downloads.linksys.com/downloads/driver/AE2500xp_WHQL,0.zip Right-click it and select 'Extract Here.' Now do:

cd ~/Desktop/xp
gedit bcmwlhigh5.inf

Use nano or kate or leafpad if you don't have the text editor gedit. Add these lines, around line 170:

[Linksys_AE2500.files.NTamd64]
  AE2500xp64.sys,,,6

Spacing, spelling, punctuation, etc. must be perfect. Proofread carefully, save and close the text editor. Now do:

sudo ndiswrapper -i bcmwlhigh5.inf
sudo depmod -a

Check:

ndiswrapper -l

It should report:

bcmwlhigh5 : driver installed
device (13B1:003A) present

If so, then:

sudo modprobe ndiswrapper

Your wireless should now be working.

To delete all previous drivers and get a fresh start:

sudo rm -rf /etc/ndiswrapper/*

Then start again as above.

NOTE: ndiswrapper is two parts: user space tool that is used to install Windows XP drivers and kernel module to load the Windows XP drivers. Both are called ndiswrapper.


Audio jack not detected, sound playing from both speaker's and headphones

Sometimes a Windows Update will leave sound card in an unstable state. Rebooting into Ubuntu inherits that unstable state. By completely shutting down (power off) and cold booting (power on) the sound card is reinitialized.
There are other times when cold booting users have to go to Windows first to turn on sound cards and then reboot into Ubuntu in order for sound to work. This scenario is not ideal and a better fix / patch should be sought.


Are there tools to measure video quality?

Your interpretation of quality and my interpretation may differ as well as anyone else, therefore your subjective way is tainted. You need a definitive measurement of sort that will recognize pixel strength, movement, blur, saturation, density, focus and such.

This will all be handled according to the equipment used of course. What type of input/output media-processing-recording and capture are being used. As well as storing the data via film, digital or magnetic tape?

The variables are consistence to the finished product. ie: $100,000 3D theater projector or a home movie 8mm camera? There is a difference.

Now, back to your graphics card. Can it handle stressing the media analysis?

My point is this. There is no ONE GOOD ANSWER. I would suggest starting to research from this site : http://www.linux.com/news/software/applications/321373-the-beat-goes-on-open-source-multimedia-tools-part-2

This may not be definitive enough but you can get a good start.


Do you need a version newer than what is in the baseline repos?

If not, remove the ppa you added, and just

sudo apt install wine-stable

wine-stable:   Installed: 3.0-1ubuntu1   Candidate: 3.0-1ubuntu1   Version table:  *** 3.0-1ubuntu1 500
        500 [my-local-]mirror/us.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
        500 [my-local-]mirror/us.archive.ubuntu.com/ubuntu bionic/universe i386 Packages
        100 /var/lib/dpkg/status


32 bit program won't install but dependencies are satisfied

You could try force installing it.

To force install a deb package from the terminal, use one of these commands:

sudo dpkg -i --force-depends package.deb

or

sudo dpkg -i --force-all package.deb

Sources: @dobey comment and http://www.upubuntu.com/2011/10/how-to-force-install-debian-packages.html


My computer will not reboot after fresh install of ubuntu 12.04LTS

I would go back and reinstall Ubuntu again. Typically, the open source version of that driver works better. See this answer for more information on the open source version of that driver. Install Ubuntu again and try the solution in the link I gave you.

Good luck!


My Googlefu leads me to believe that you have an nvidia graphics chip and you are using the default nouveau graphics drivers.

Also, these issues can sometimes be overcome by editing your Grub boot option and adding nomodeset

Once you reach to the desktop I would open the Additional Drivers window and activate the nvidia-current driver.

I've linked to an answer I've previously given showing you how to add boot options such as nomodeset

Linked Question:

How do I set 'nomodeset' after I've already installed Ubuntu?


Try this. Open Terminal and run this command:

sudo -H gedit /etc/default/grub

In the grub configuration file, find this line and change

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

To

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor"

Save the configuration file and run this command

sudo update-grub

and restart your laptop.


Broken symbolic link while creating link from source directory

The command ln -s zotero.desktop ~/.local/share/applications/ creates the softlink ~/.local/share/applications/zotero.desktop which points to itself, ~/.local/share/applications/zotero.desktop:

$ ls -l ~/.local/share/applications/zotero.desktop
lrwxrwxrwx 1 terdon terdon 14 May 29 11:33 /home/terdon/.local/share/applications/zotero.desktop -> zotero.desktop

This is because the format of the ln command is:

ln source target

Since you gave the source as a file name, without a path, that is taken to be a file name in the target directory. I don't know where your target is, but assuming it is in the directory you ran the ln command from, you want to run this:

rm ~/.local/share/applications/zotero.desktop
ln -s "$PWD/zotero.desktop" ~/.local/share/applications/

In general, you need to remember that softlinks are relative. So for example, I can do this:

$ tree
.
├── file
└── foo

1 directory, 1 file
$ ln -s ../file foo/
terdon@tpad foo $ tree
.
├── file
└── foo
    └── file -> ../file

When I ran ln -s ../file foo, that means "create a symlink in the directory foo which points to ../file". But the ../file will be with respect to the symlink. So it will point to a file called file above the directory foo.

The simplest way to always get it right is to move into the target directory first and then run the ln command there, so that you get the relative path right.


Upgrade and update your repository packages and cache.  Run these commands:

$ sudo apt update
$ sudo apt upgrade
$ sudo apt dist-upgrade

Update:

Run these commands one by one:

$ sudo apt install --reinstall grub
$ sudo apt install --reinstall grub2-common
$ sudo apt install --reinstall grub-efi-amd64
$ sudo apt install --reinstall grub-efi-amd64-bin
$ sudo apt autoremove
$ sudo apt install grub-efi-amd64-signed


Where is the Full Circle magazine installed by the Ubuntu Software Center?

I also experienced the issue that you are inquiring about.  On my Ubuntu 12.10 setup, the PDF's of Full Circle Magazine are located in /opt/fullcircle/issues.  I did not have to create the folder - it was automatically created when I installed an issue of Full Circle from the Ubuntu Software Center.


Can’t Boot Into Linux Anymore - stuck in emergency mode

Go to Firmware settings. In boot sequence move Ubuntu above Windows boot manager. This will solve your issue.


When having this type of problem booting a CD my advice is to check the integrity.

As you boot, select the "Check disk for defects"

The boos screen looks something like this

You may also want to check the iso you downloaded. See Ubuntu Wiki MD5SUM for details.


Is it possible to query maximum ram my mobo takes?

You can easily find it out with the below command:

sudo dmidecode -t 16

This command will tell you how much is in each slot already:

sudo dmidecode -t 17


When I open Gnome ALSA Mixer I get a bad key or directory name error

As said in a comment, you should not touch any alsa configuration as it is just the hardware driver.
Playing with outputs is the job of the mixer, Pulseaudio.
You first will have to undo what you did, then run this process

1- List your output hardware

# Ask Alsa what are the hw drivers
aplay -l

# Or ask Pulseaudio
pacmd list-sinks  | grep -e 'name:'  -e 'alsa.device ' -e 'alsa.subdevice '

2- Create a Pulseaudio output sink for a combined output speakers_headset

# Of course, adapt it with your hw information (hw:x,x)
pacmd load-module module-alsa-sink device="hw:0,0" sink_name=speakers_output
pacmd load-module module-alsa-sink device="hw:0,1" sink_name=headset_output
pacmd load-module module-combine sink_name=speakers_headset slaves=speakers_output,headset_output

3- Select the created output sink speakers_headset

# With
gnome-control-center sound
# Or with
pavucontrol

You may also need to play with auto mute when headphones are plugged in. As you did not specify which type of speakers and headphone links are used, you'll have to digg it on yourself (BT, usb, internal, jack...)
See : https://wiki.archlinux.org/index.php/PulseAudio/Examples#Having_both_speakers_and_headphones_plugged_in_and_switching_in_software_on-the-fly


Are there any drawbacks to creating ext4 file systems with maximum inodes?

According to similar questions over on Stack Overflow
and Unix & Linux (see below) it is a bad idea
to max out the number of inodes on an ext4 filesystem.

Better use another filesystem or split your disk into multiple filesystems.

To summarize:

An inode occupies 256 bytes. It may be configured to 128, but even though:

2³² inodes × 256 bytes each = 1 TB

When creating an ext4 filesystem, you can specify the usage type
as defined in /etc/mke2fs.conf:

mkfs.ext4 -T usage-type /dev/something

For storing many small files the type small might be used:

small = {
    blocksize = 1024
    inode_size = 128
    inode_ratio = 4096
}

This means: for every 4096 bytes of diskspace (filesystem size) one inode will be reserved
each of which has a size of 128 bytes. The command mkfs.ext4 -T small /dev/something
would thus create 244 million inodes on a 1TB filesystem that occupy 31 GB. These
244 million files will at least occupy 250 GB (min. 1024 bytes each).
To hold 1 billion inodes with the small footprint (128 bytes) you would need 128 GB
just for the inodes. If the smallest possible blocksize (1024 according to mk2efs's
manpage) is used, then these 1 billion files would at least occupy 1TB (but remember
you only have 872 GB left because of the 128 GB for the inodes).
The smallest possible blocksize for ext4 is 1024 bytes. Hence, you cannot store more than
1 TB / 1024 = 1 billion files and it's pointless to have more inodes.
As a general rule of thumb the inode_ratio should not be smaller than the blocksize
because you cannot (easily) store more than one file in one block.
It is possible to store the first 60 bytes of a file directly whithin the inode if the
filesystem is configured that way. In that case, the file would not occupy a (regular)
block; read about such inline data here but also consider the inode size.
From a comment to the U&L question:

  Too many inodes has a deep cost for sure, they take up space themselves, and believe me that fsck performance is dead serious. We're talking practically exponential slowdowns, like 30 seconds vs 2 days... and this is I/O bound. Not to mention slow downs of file listing, indexing... etc.

References:

How to store one billion files on ext4?
Drawbacks of increasing number of inodes in EXT4
Ext4 Disk Layout
Smallest file block size (ext 3, 4)


Why can't Google Chrome load Flash plug-in?

You need to update Chrome to version 24.0.1312.69 or later. This is a known issue which has been fixed in the said version. Run the following command in terminal:

sudo apt-get update && sudo apt-get upgrade

Source: Google Chrome Forum Post


Unity settings were messed up when replacing it with MATE and launcher's gone

Open a terminal and execute the following command:

sudo apt-get install compiz-config-settings-manager

First, login to a Unity session. If you have no way to execute commands because of no interface, press Ctrl + Alt + F2 after you login to Unity and login to a text session with your username and password.

Now, execute the following command:

DISPLAY=:0 ccsm

and press Ctrl + Alt + F7 to return to unity.

On the compizconfig-settings-manager, scroll down to and select the Unity plugin. Make sure this is enabled with a check in the box to the lower left hand side. This should startup the unity desktop.

If you still need to reset unity and or compiz, continue with these instructions. The old unity --replace command is depreciated but you can download the newer unity-replace script that aims to provide the same function.

To install unity-replace, open a terminal and execute the following commands:

sudo apt-get install gdebi dconf-tools
wget https://launchpad.net/~amith/+archive/ubuntutools/+build/3910667/+files/unity-reset_0.1-8_all.deb
sudo gdebi unity-reset_0.1-8_all.deb
unity-reset

To reset compiz, execute the following command:

dconf reset -f /org/compiz/

Log out and log back in for the changes to take effect.

more info from webupd8

download the script from github


How can I cut the mac address out of DHCPDUMP?

Using grep (thanks to A.B. for the --line-buffered suggestion):

dhcpdump -i eth0 | grep --line-buffered -Po ' *IP: .*?\(\K[^)]*'
dhcpdump -i eth0 | grep --line-buffered -Po ' *IP: .*\(\K[^)]*'

The first one will extract the first address, the second one will extract the last address;

grep command #1 breakdown:

*: matches any number of  characters
IP:: matches an IP: string
.*?: matches any number of any character lazily
\(: matches a ( character
\K: discards the previous match
[^)]*: matches any number of any character not ) lazily

grep command #2 breakdown:

*: matches any number of  characters
IP:: matches an IP: string
.*: matches any number of any character greedily
\(: matches a ( character
\K: discards the previous match
[^)]*: matches any number of any character not ) lazily

Sample output:

user@debian ~ % echo "IP: 0.0.0.0 (xx:xx:xx:xx:xx:xx) > 255.255.255.255 (ff:ff:ff:ff:ff:ff)" | grep -Po ' *IP: .*?\(\K[^)]*'
xx:xx:xx:xx:xx:xx
user@debian ~ % echo "IP: 0.0.0.0 (xx:xx:xx:xx:xx:xx) > 255.255.255.255 (ff:ff:ff:ff:ff:ff)" | grep -Po ' *IP: .*\(\K[^)]*'
ff:ff:ff:ff:ff:ff


what Linux distro should i get for old laptop

According to your machine specifications I'd go with Lubuntu. It'd be wise to increase RAM as much as possible.


Ubuntu 14.04 upgrade - Conflicting information

LTS to LTS is an officially supported upgrade path. https://help.ubuntu.com/community/UpgradeNotes Considering 16.04 comes out soon, your best bet is to wait for that.


Issues like these should be filed as bugs. Since I've had related issues and have been told by others about similar issues, I've filed one: https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/886520. You should learn how to do this, because that's how bugs are fixed.

However, rebooting Ubuntu will not do any good since Nautilus is only run as your user in any case. Simply closing Nautilus and restarting it should fix all the issues. If it doesn't, then you can press alt+f2 and run killall nautilus which will restart Nautilus completely. The reason this might be necessary is that Nautilus is also used to display icons on your desktop, which means simply closing all open windows won't completely restart Nautilus. But in my experience, these problems go away if you just close the window and reopen it.

If you are able to provide reliable predictions of when this happens, please add a comment to the bug thread.


Is there a feed reader with web interface and desktop client?

Edit: I've just read your second paragraph. You could always build something on your own steam but you'll won't have the same level of integration and convenience as Google Reader unless you spend a very long time on this. Ultimately I think you have to settle for just a web interface and a browser on the desktop.

And out of all of the self-hosted solutions, unless able to build something perfect for your requirement, Fever looks like the best client (albeit at $30). It's all a bit Apple-flavoured but there you go.

If that's too rich, Tiny Tiny RSS might hit the bill. Oh and apparently they have an Android client in beta. You'll still be limited to the web interface on the desktop and it's not the prettiest (neither is Google Reader in all honesty) but worse things have happened at sea.

Edit 2: I've just read your first paragraph (yeah I'm doing things backwards today). If you want proper offline sync, I think it's possible that you want to be running this server on your computer, not an external server. For external access you'd need to expose it to the internet (port forwarding plus something like dyndns or similar). That's the only way I can possibly see you getting something even remotely like this.

I've recently moved from just using Liferea to:

A Google Reader account (web access)
Lightread (the new app from the recent app competition)
The Google Reader app on my phone.

Now I can be made angry by news whereever I am and it's all in sync.


Answer 1: Because packaged browsers (Chrome and Firefox) have embedded download managers, but they are not very feature rich so you can try this uGet download manager it is nice, lightweight and well-supported in Ubuntu. uGet Download Manager

Answer 2: Not every application would be on Ubuntu app store because applications may not be officially approved by Ubuntu app store or developers want to download our app from their official site or any other reason can be. If you want to download any app you first go to official app store if you would not find anything interesting then of course you would find at Google Search.


The .deb-files you have allready downloaded are stored in /var/cache/apt/archives/.