How to search for and list available ppas via the python launchpad API?

Finding all PPAs

There is no API to do this and there probably won't be as you are not supposed to ask for huge collections of objects via the Python APIs.

Finding all PPAs with a certain name

AFAIK it is not possible. Report a feature request on https://bugs.launchpad.net/launchpadlib.

Finding all PPAs owned by a user with a given name

This is possible, use launchpad.people['username'].ppas, full example:

python
>>> from launchpadlib.launchpad import Launchpad
>>> launchpad = Launchpad.login_anonymously('just testing', 'production', '/home/user/tmp')
>>> [ ppa.name for ppa in launchpad.people['mvo'].ppas ]
[u'apt-clone-lucid', u'apt-fix-633967', u'apt-ftparchive-arch', u'apt-ftparchive-lucid', u'apt-ftparchive-srccache-backport', u'apt-gcc5', u'apt-https-fix', u'apt-lucid-chris', u'apt-precise', u'apt-src-ftparchive', u'apt-vivid', u'auto-upgrade-tester', u'debsigs-trusty', u'eglibc-trusty', u'freeglut-multiarch', u'gir-multiarch', u'hwe-eol', u'linux-firmware-nonfree', u'lp1347721', u'lp1371058', u'lucid-precise-upgrades', u'lucid-precise-upgrades2', u'oem', u'openoffice', u'ppa', u'public-test', u'python-apt', u'release-upgrader-apt', u'samba4', u'sdk', u'smem', u'synaptic', u'test-dependencies', u'ubuntu-sdk-libs', u'unattended-upgrades', u'upgrade-tests', u'wine', u'wsmancli']

You might think that you can combine this with searching people, but it will not work. There is a limit on how many people you can get (I think it is 50 or something like that).

The entire API is documented here: https://launchpad.net/+apidoc/1.0.html


With USB, try Unetbootin.

sudo apt-get install unetbootin

With DVD, follow this.

Check again you iso (may corrupted, etc).


OP posted
After removing linux-image-server with apt-get remove, I managed to fix it with a
sudo apt-get -f install

Since I removed the current running linux-image, I figured I could reinstall them with apt-get.


Cd Drive keeps opening on its own. Ubuntu 18.04

Try this

eject -v -a off

explanation:

This  option controls the auto-eject mode, supported by some devices.  When enabled, the drive automatically ejects when the device is
            closed.


StackApplet doesn't open / can't add account

I had the same problem this is how i fixed it.

Doesnt show - install sudo apt-get install python-appindicator

Cant add account - try the temporary fix first to see if it works then go for the permanent solution

http://ppa.launchpad.net/stackapplet-dev/stackapplet/ubuntu/pool/main/s/stackapplet/stackapplet_1.5.2-0~201406200412~ubuntu14.04.1_all.deb

i downloaded an older version and installed it and it works. you than run the app and add your user and then update the app using:

sudo apt install stackapplet

This is a temporary fix. As you will no longer be able to add an account because of a bug in the new version.

Permanent Fix - Which is what i have done

download the source files of the older stackapplet from this link:
http://ppa.launchpad.net/stackapplet-dev/stackapplet/ubuntu/pool/main/s/stackapplet/stackapplet_1.5.2-0~201406200416~ubuntu14.10.1.tar.xz

extract the files and then look for a folder called html. you need to replace the html folder used by the latest stackapplet with the older html folder.

the location of the html is: [/usr/share/stackapplet/html/
]

you will need root access to replace the files.

dont know how to do this. well here is the less technical way.
run this in terminal:

sudo nautilus /usr/share/stackapplet/

this will open up a file browser with root access. now just delete the html folder or rename it. Finally copy the html folder extracted from the archive.

Your done, if you have the app open. close it run it again and it should all work. i havent tested everything but adding accounts and changing colour works. just not sure about autostart on login

Note - the links are to the actual developers page. so can be trusted


To disable for all sessions:

sudo sh -c "echo manual >> /usr/share/upstart/sessions/mediascanner-2.0.conf"

To disable for your user only:

echo manual >> ~/.config/upstart/mediascanner-2.0.override


No significant changes occurred after 14.04.2 LTS so you can go for it. Tough GNOME is stable, I would still prefer the Unity interface. If you have a good Internet connection, I would suggest you to download multiple ISO files.


We still have Server version, so terminal will stay.
Advancing GUI will only benefit Ubuntu by expanding the customer base and attracting more uses. And terminal still a part of of GUI - not everything should be duplicated in UI (the same for the Windows - the most advanced scenarios are possible via PowerShell only)


set up WLAN on a Ubuntu desktop to connect with wireless device

YES! If other computer/devices are connected to the router...Just install Samba a network homegroup sharing utility just like the one in Windows OS. After that you have to configure the software, router and the other devices.


Small snap loop devices visible in gnome-disk-utility OR what is the function of snap ubuntu-core

Each individual snap is a read-only squashfs filesystem image. In order to access files within these images, snapd mounts the images, one for each installed snap version, inside /snap.

This list of mounted loop devices thus effectively includes the snaps you have installed, and is part of the normal operation of snapd. You should not attempt remove them. If you really don't want them there at all, then you can remove the corresponding snaps.

Various utilities are designed to show you all mounted filesystems, including loopback ones, which is why you see them. snapd is the first common daemon I've seen to maintain a large and variable set of loopback mounts in this way, which admittedly does hamper the UI of these utilities. Perhaps eventually we'll see these utilities hide loopback mounts by default.


One option is to manually remove entries from this file, with sudo/root:

/etc/apt/sources.list


I had sound problems on my Mac, too.  I used the following command and it worked:

sudo sh -c "echo 'options snd-hda-intel model=imac24' >> /etc/modprobe.d/alsa-base.conf

I found this on the Ubuntu Help pages.  You can also find instructions for fixing sound on Macs on this other Ubuntu Help page.


Its taking too much time for copying files into pendrive

If your pen drive is a USB 1.0 one then it's bandwidth cannot exceed 1 MB/s, if it's a usb 2.0 one then 600Megabitspersec , please report your current transfer rate.And if its read files with the same speed as it does for writing then your pen drive is all right.


Slack is a free, cross-platform team collaboration tool. Slack's features include real-time messaging, archiving, search, channels for team conversations, private groups, and file sharing. Slack has a web application accessible from a browser and a local application for Ubuntu 64-bit. The local Slack application allows you to sign in to multiple teams, get desktop notifications, and launch right from the panel.

To install slack in all currently supported versions of Ubuntu open the terminal and type:

sudo snap install slack --classic

Slack has a free version for small teams, or anyone who wants to try Slack for an unlimited period of time.

Slack security features include data encryption in transit and at rest. Slack YouTube channel.


I get this error mail every time I login to my web server, what does it mean?

I think if you have a look at /etc/cron.daily/logrotate - you will find that the script is checking for the existence of (and capability to write to): /var/lib/logrotate/status

In my /etc/cron.daily/logrotate script, there is a line that precedes the head command that will first test for the existence of, OR create (with touch) the "status" file:
test -e status || touch status
head -1 status > status.clean

Probably yours is not able to write the "status" file to "/var/lib/logrotate/" with the touch command? I would cd into /var/lib/logrotate//logrotate and see if I could manually create the "status" file(assuming it doesn't exist there already) with the command: touch status . Maybe there's no disk space left for that directory? Check with df -h /var/lib/logrotate/ , or maybe it's set to be immutable (dunno why this would be).


After searching for a graphics driver using $ apt search nvidia-driver I was able to find the driver I needed and install it using $ sudo apt install nvidia-driver-430


I have the same problem.  Selecting "Applications" just results in an empty box and no searches come up with any applications.

I finally found this solution:
http://ubuntuforums.org/showthread.php?t=1853156

I ran the command that begins:
"sudo apt-get install --reinstall..."

I got some errors that some packages did not exist, so I just removed them from the command line and tried the command again, until it worked.

"sudo lightdm restart" gave me an error...apparently root does not have permission to access a user's display manager?  But no matter...the apt-get re-install did the trick and the next time I clicked on the dash home, the applications were all back.


How to install an ati hd 4200 driver and make it work good?

I would recommend that you use the open source graphics drivers. Meaning, get rid of the AMD Catalyst fglrx drivers. Catalyst is very slow and provides a poor desktop experience, especially on Unity. It barely even works. For months it would regularly crash Unity, so consider yourself lucky if it doesn't crash.

You had to have taken some action in order to install fglrx; it doesn't come installed by default. The Restricted Drivers app lets you choose to install it, and kind of hints that it'll provide higher performance. Hah! Yeah right. It "makes your windows laggy". :D

The open source graphics drivers at least deliver decent performance with Unity, although you may run into some slowness when playing 3D games. Hopefully you're not into that kind of thing...

The best solution of course is to get an Intel CPU with Ivy Bridge graphics ("3rd Generation Core i7") -- those things fly on Ubuntu. Beautiful, fast, and stable. :)


Why SanDisk Cruzer Glide 8GB can't be made bootable by StartupDiskCreator?

simply use universal usb installer , Saves a lot of headache...

http://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/


Missing folders in windows network share mounted using samba

This is a long shot because I do not know what version of the kernel you are using but change your mount command or any of the other ones offered here to include the option vers=1.0

For example:

mount -t cifs -o username=user,password=****,vers=1.0 //WIN_PC/WIN_SHARE/ /mnt/samba/WIN_SHARE

There is a bug report that describes your situation: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1572132

The reason why nautilus / gvfs works is because by default the samba client uses smb1 ( the equivalent of vers=1.0 ) whereas cifs since Linux kernel 4.13 uses smb3 by default.

EDIT: I should note that with Ubuntu 18.04 the samba client / nautilus / gvfs can go beyond smb1 to smb3 in which case neither method would have worked without changing some configuration.


Why can't I log into Lubuntu after the 13.04 update, even if I know the password?

I had a similar problem with the Peppermint login screen. After logging in with ctrl-alt-F1, have you tried to start X:

startx

For me, that resulted in a blank screen, but then when I rebooted the login screen worked like it is supposed to.  Another thing you might try instead of startx is:

sudo service lxdm start


Ubuntu 17.10 how to install Nvidia GEFORCE GT 740M

If I were you, I will try to click on software updates and click additional driver tab to install the driver.

In my previous experiences, it mostly worked...


It seems that these preferences can be access via command line.
If you right click on your desktop, and clock on open terminal, you can try these commands:
Open the preference dialog box
sudo pcmanfm --desktop-pref

One liner to set desktop preference to center
sudo pcmanfm --wallpaper-mode=center

Additional information can be found at the pcmanfm man page (pcmanfm is the lxde file manager): https://www.mankier.com/1/pcmanfm


AFAIK all your command did was print every variable = value pair from the /proc/sys/vm namespace instead of just that of vm.swappiness - essentially the equivalent of having done cat /proc/sys/vm/* instead of cat /proc/sys/vm/swappiness.

To have actually changed any parameters, you would have needed to add -w or --write (and specified a particular one, and likely to have elevated your privileges as well).


I just did the same. Bought lenovo flex 14, and installed ubuntu 13.10 alongside the preinstalled windows 8. I now have a dual boot.

I mostly followed the instructions from this thread: Installing Ubuntu Alongside a Pre-Installed Windows with UEFI. I had to make a few modifications though.

The touch screen works fine. I have not faced any trouble so far.


How can I dump all physical memory to a file?

Use fmem
You used to be able to simply dd /dev/mem back in the day, but no longer for security reasons (since kernel 2.6, IIRC).
The alternative is to either build the kernel yourself wih the option to let root do that (will edit with name later, on phone now) OR better, use fmem, a kernel module which creates a /dev/fmem device pretty much meant for easy dumping.

fmem works great for me on 12.04. Just make sure you use the run.sh file included in the tarball to load the module; do not use insmod:

$ ./run.sh
...
----Memory areas: -----
reg00: base=0x000000000 (    0MB), size= 1024MB, count=1: write-back
reg01: base=0x0c8800000 ( 3208MB), size=    2MB, count=1: write-combining
-----------------------
!!! Don't forget add "count=" to dd !!!

$ ls /dev/f*
/dev/fb0  /dev/fd0  /dev/fmem  /dev/full  /dev/fuse

$ sudo dd if=/dev/fmem of=/tmp/fmem_dump.dd bs=1MB count=10
10+0 records in
10+0 records out
10000000 bytes (10 MB) copied, 0.0331212 s, 302 MB/s


wifi module keeps getting soft blocked after reboot

I logged in with a monitor and keyboard and found that there was an "Enable WiFi" menu item unchecked in the GUI. Checking that menu item seems to have resolved the problem. It looks like I could have also done this on the command line with nmcli r wifi on, if anyone else stumbles upon this question in the future.


how to recover deleted ntfs patition with data entirely while installing ubuntu 13.04

In short: no, your data cannot be recovered, and please learn from this experience and back up your data regularly, and also make sure you fully understand what you are doing to your system before you start. By and large, if you erased your partitions, you've erased your data.

The more you use the drive and write data to it, the less change any retrieval application will be able to recover anything, so in all honesty, if you've formatted the drive, installed Ubuntu and booted into it, the chances of you being able to recover anything are almost nil - I'm surprised the tool you chose was able to recover any data at all.


This lock file doesn't contain any content of the original document, it can't help you to restore lost file.
LO stores autorecovery data in /tmp, if your configuration remains default. After rebooting this directory was cleaned. You seem to have lost your document, unfortunately. That's true, that if LO haven't proposed file restore, it's probably lost.
Related discussions on askLO:
https://ask.libreoffice.org/en/question/46776/where-is-the-autorecovery-information-saved/
https://ask.libreoffice.org/en/question/28969/libreoffice-crashed-on-save-any-chance-of-recovery/


Can I make a juju action pass a file back to where it was called from?

You could send a shh private key in charm action,

$ juju run-action ssh_pkey=`cat .ssh/somekey`

and add public key to host authorized_keys.

or just set host key in charm config

$ juju config myservice key=`cat .ssh/somekey`


I think you just need to go into your bios (likely F2 at boot) and set your boot order so that Ubuntu disk is at the top of the list.


How to remove the first colon ':' from a timestamp?

To cut off the first character, you can also use cut -c:

$ echo ":29.06.2019 23:03:17" | cut -c 2-
29.06.2019 23:03:17


Remmina copy past does not work - Ubunu 16.04

Suggested fix is to upgrade

sudo apt-add-repository ppa:remmina-ppa-team/remmina-next
sudo apt-get update
sudo apt-get install remmina remmina-plugin-rdp

according to

https://www.ithowtoo.com/2017/01/31/ubuntu-16-04-fixing-no-copy-and-paste-into-remmina-rdp-client/
https://bugs.launchpad.net/ubuntu/+source/remmina/+bug/1439478/comments/22


Automatically run a command on start up?

Try add command to rc.local file with nano or gedit. It runs commands, when startup process was ended. Do nothing by default. You can find it in /etc/rc.local


How to dual boot windows 7 with Ubuntu installed first?

Even though It's Willem said you can't you can. First, before I respond, I need to know: Do you have multiple hard drives, or at least 1 TB of space. If not, it would not be smart to follow through doing this. If you do...

    sudo apt-get install gparted

Then open gparted in your search bar and create a new partition, leaving at least 500 GB for the windows installation. Then once you have that partition made..

    sudo gedit /etc/fstab

You don't have to use gedit, I just like the simplicity.
You should see a line at the bottom that looks like this:

 /dev/sda1       /home           ext4    defaults        0       1

Copy that information from your new partition, and make that line. Then save, and exit.

Finally do

   mount -a

Then SHUTDOWN. DO NOT REBOOT.
Obviously turn your computer back on. Login, and do

    df

You should now see a new drive, mounted on whatever file. You now have this partition to use for a Windows Installation. There you go!


Just the way Windows has the mode(facility) to start in recover mode or recover it from recovery media. Ubuntu Linux also has got that option. In the grub screen there will be something like "Advanced options"

Also if you have multiple kernel images you can boot into any of them(just like Windows load last good configuration etc...)

For more details, refer to this. If this solves your problem mark it as answer


How to upgrade from 11.10 to 12.04 using an USB?

Run Update Manager - install any updates and rebbot of necessary. Check your settings have Long Term Distributions Upgrades enabled. Check for update again and you will see "New Ubuntu Release 12.04 Available" - then do an upgrade.


Is there any program to push files to my Android phone?

There are two ways to do this.

MTP

Connect your phone to your computer using a USB cable. Your phone should prompt you to select a transfer mode.  Select MTP or File Transfer.

Ubuntu should then mount your phone like a regular USB device.

On the command line, you can use cp or mv to transfer files.

ADB

Install the Android Debug Bridge from Google or by using sudo apt install android-tools-adbd

If your phone is in developer mode, when you plug it into your computer the phone should prompt you to trust the computer.

You can then use adb push screenshot_1.jpg /path/on/your/phone


How to Recover drivers when upgrading from XP to Ubuntu

Yes, you will lose everything. Be informed that windows and Linux are completely different operating system, and even if you retain a copy of windows driver it is use less in Ubuntu (Or derivative). But Cheer that, Ubuntu will support CD/DVD drive and memory card reader out of the box, in most probable case you will not require separate drivers. Happy journey ahead with Ubuntu.


You should run the first (echo ...) command as a privileged user. So first switch to root by sudo su, then run the echo command.

Doing sudo echo ... will not work, as the > redirection will be done before sudo is executed.


I haven't used intellij but all I can say is, Ubuntu 16.04 runs good. I also use it for development purpose and everything works fine here.


Go to the top right corner and click on the gears icon:

Press System Settings
Click Security and Privacy
Ensure the button is ON
Turn all check-marks on

That's it!  Zeitgeist is now recording all checked activities.

For more information and how to analyse the data, head to http://zeitgeist-project.com/experience/ and especially look at "Activity Journal" which is a UI to the back-end sqlite database (you can also just run queries on the database itself, or have it copied over somewhere else for later analysis)


I'm not 100% sure about that but the better option I found was (in my case) to install ubuntu 12.04 as a virtual machine in windows desktop, whereas I preferred to have ubuntu-only on a separate laptop.


How to resolve "ERROR machine is already provisioned" in manual provision set up?

Per documentation on https://jujucharms.com/docs/stable/clouds-manual:

Note: If you have an existing configuration, you can use juju generate-config --show to output the new config file, then copy and paste relevant areas in a text editor etc.

On each failing node:

sudo rm -rf /etc/init/juju*
sudo rm -rf /var/lib/juju

Now kill all Juju processes and run

sudo apt-get remove juju-mongodb landscape-common
sudo rm -rf /var/lib/juju
sudo rm -rf /usr/lib/juju
sudo rm /tmp/pprof.jujud.* /usr/bin/juju-run
sudo rm -r /etc/juju

This will allow a normal add-machine.


What makes fonts in Ubuntu as sharp as fonts optimized by ClearType on Windows?

Both systems, Microsoft's ClearType and FreeType, use  Subpixel Rendering, which utilises the RGB subpixels on your TFT display to make the glyphs appear sharper and improve their form.

One important difference is that Windows tries much harder to fit the font into 'the pixel grid', which is why it looks 'sharper', at the expense of the glyphs' contours:

  ClearType also uses very heavy font hinting to force the font to fit into the pixel grid. This increases edge contrast and readability of small fonts at the expense of font rendering fidelity and has been criticised by graphic designers for making different fonts look similar. from Wikipedia's ClearType


Try to correct it under system settings -> Appearance -> Font -> Force fonts DPI with 100 for example  and restart kde with

sudo service sddm restart


How can l resume a detached screen after switching off my laptop?

If you switched off your laptop, then that screen process has terminated. You should run screen on the AWS instance:

ssh ubuntu@ip
# Then
screen
python ...

Ultimately, screen should run on whichever system is likely to remain running. If that's your laptop, then run screen on the laptop. If that's the AWS instance, then run it on the AWS instance.


I'll put it in as an answer because I tested it and it works for me.

the processor ID changes on reboot, so you can get the ID# from

$(pidof <process_name>)

so for firefox for example.

htop -p $(pidof firefox)

works for me


Can I repair Ubuntu after an interrupted upgrade?

I was able to fix it. Going into recovery mode and repairing the broken packages (to some extent) started me off on the right track. That didn't solve everything initially, though. A lot of things were all screwed up in different areas, I had missing packages and altered settings, so it took awhile for me to get everything back to normal, but I have a fully upgraded 17.04 now.

While I don't have a step-by-step on how to fix it (I should have recorded the process), for anyone suffering similar problems, just go into recovery mode -- in the GRUB menu -- and press "repair broken packages". That may not solve everything or it might, but if it doesn't just let me know and I'll try to guide you through it if I can.


Linux From Scratch (LFS) is a project that provides you with step-by-step instructions for building your own custom Linux system, entirely from source code.

If do you want a more basic level, you can try this tutorial


How can'i pass this " openssh-client' has no installation candidate "

You didn't say which operating system version you use, so I would first try to search for it, giving different package names, like ssh, ssh AND client etc etc.

Open Terminal windows and try make few searches and check whether package description says about ssh/ssh client.

  sudo apt-cache search XXX

...where XXX is one of the following: openssh, ssh, ssh-client

IF it does, then install this package with:

  sudo apt-get install  _package_name_received_

Eventually, search for this file on disk, as you might have it stored in different location, and if found, use absolute path to this ssh file.

  sudo find / -name ssh -type f 2>/dev/null


I think all you need to do is reset the association to open folders with Nautilus.

Open Nautilus, browse to any folder, and right click.
Choose Open with Other Application
Choose Files. Files is the display name of /usr/share/applications/nautilus-folder-handler.desktop


After you installed the Epson deb packages, run

sudo apt-get install -f

All dependencies will be installed and the driver will be installed too.

After you install the deb package you will need to install new printer again with the new driver.


WLAN driver Xubuntu 18 Lenovo Legion Y540-15IRH Laptop

The key document which explains the use of apt may be helpful. First, the update line tells Ubuntu to check the list of repositories and refresh its list of what's available to download.

 sudo apt update

Next, we tell Ubuntu to get any new items you have installed previously from those repositories.

 sudo apt upgrade

Now that all the current apps and dependencies are up to date, we go get the ndis tools.

 sudo apt install ndisgtk ndiswrapper-utils

Once that's done, then you can proceed with https://mxlinux.org/wiki/networking/ndiswrapper/#Installation

Click Start menu > System > Windows Wireless Drivers
Click on the Install New Driver button and note where you told it to save it to
Navigate to the folder where you stored the downloaded driver folder
Highlight the *.inf file, and click OK
Jump to the Blacklist section below to finish.


Kernel panics when attempting to use non-mirrored dual monitors w/ ATI x1900

I've found a work-around for this issue.

Downgrade xorg-input-edev from 2.7.0 -> 2.6.99. I utilized the
instructions on this page[1].
Open Ubuntu's display program (System Settings->Displays) and move the left screen to the right; apply changes.
Move the right screen back to the left.

I have no idea what bug I'm sneaking around, so I hope this is fixed in xorg-input-edev 7.1.

1 - http://blog.shevin.info/2012/05/how-to-fix-dual-monitor-freeze-in.html


You can use inxi to show you where your RAM is mostly being used then you can determine if you want to disable items taking up your RAM.

First install inxi

sudo apt install inxi

Then run the following command to give you the first 10 highest memory usage apps:

inxi -t m10

Here is an example:

terrance@terrance-ubuntu:~$ inxi -t m10
Processes: Memory: MB / % used - Used/Total: 1697.9/7976.8MB - top 10 active
           1: mem: 574.19MB (7.1%) command: clamd pid: 1346
           2: mem: 197.59MB (2.4%) command: chrome pid: 31949
           3: mem: 155.93MB (1.9%) command: chrome pid: 31992
           4: mem: 122.07MB (1.5%) command: chrome pid: 32309
           5: mem: 101.23MB (1.2%) command: chrome pid: 32072
           6: mem: 85.83MB (1.0%) command: chrome pid: 730
           7: mem: 85.03MB (1.0%) command: chrome pid: 32115
           8: mem: 79.94MB (1.0%) command: chrome pid: 922
           9: mem: 77.59MB (0.9%) command: chrome pid: 32088
           10: mem: 77.54MB (0.9%) command: chrome pid: 32204

I can see that clamd which is part of clamav is taking over 500MB of RAM, so I could remove the app and that would free up that much more RAM for me.

Here's one without chrome running:

terrance@terrance-ubuntu:~$ inxi -t m10
Processes: Memory: MB / % used - Used/Total: 1286.6/7976.8MB - top 10 active
           1: mem: 574.19MB (7.1%) command: clamd pid: 1346
           2: mem: 73.07MB (0.9%) command: systemd-journald pid: 379
           3: mem: 64.81MB (0.8%) command: evolution-calendar-factory pid: 8357
           4: mem: 64.07MB (0.8%) command: Xorg pid: 2018
           5: mem: 61.54MB (0.7%) command: xfdesktop pid: 5868
           6: mem: 60.20MB (0.7%) command: evolution-calendar-factory-subprocess pid: 9091
           7: mem: 52.86MB (0.6%) command: redshift-gtk (started by: python3) pid: 5945
           8: mem: 49.09MB (0.6%) command: blueman-applet (started by: python3) pid: 6200
           9: mem: 40.87MB (0.5%) command: xfce4-panel pid: 5860
           10: mem: 36.90MB (0.4%) command: xfce4-terminal pid: 16315

Hope this helps!


14.04: login loops back on itself - ecryptfs

Since you could not get unencrypted content and the read-only filesystem problem messed up the steps, login to a TTY (CtrlAltF1) using your username and password, and do:

sudo mkdir /home/bak
sudo mv $HOME /home/bak
sudo mv /home/.ecryptfs /home/bak
sudo cp -R /etc/skel $HOME
sudo chown -R $USER:$USER $HOME

In order, these commands do:

Make a backup directory
Move your current home directory to the back up, as well as the .ecryptfs folder
Make a new home folder using the basic profile in /etc/skel
Assign you as the owner of the new home folder.

Now, try logging into the GUI (CtrlAltF7) using your username.


The following command is an alternative for the gnome-session-quit (logout) which should close the session cleanly (not killing the gdm):

dbus-send --session --type=method_call --print-reply --dest=org.gnome.SessionManager /org/gnome/SessionManager org.gnome.SessionManager.Logout uint32:1.

(it's one line)


How can I block users from changing wallpaper (under Unity in Ubuntu 12 and 14)?

Although the suggestion below is far from "waterproof", it offers at least some "first-line" precautions against changing the wallpaper too easily.

You could make a small script to run in the background that checks every x seconds if the current wallpaper is still the wallpaper that you set in the first place.

The command to see (get) what is the current wallpaper:

gsettings get org.gnome.desktop.background picture-uri

If you run this in a terminal, you will get an output looking like:

'file:///home/jacob/Thema/Bureaublad4/Frog.jpg'

We can make the script restore the original wallpaper if it has changed.

To set a specific wallpaper, the command is:

gsettings set org.gnome.desktop.background picture-uri 'file:///home/jacob/Thema/Bureaublad4/Frog.jpg'

If we use these two in a python script, we could get the following (python3, 14.04):

#!/usr/bin/env python3

import time
import subprocess

set_wallpaper = "file:///home/jacob/Thema/Bureaublad4/Frog.jpg"

cmd2 = "gsettings set org.gnome.desktop.background picture-uri "+set_wallpaper
cmd1 = "gsettings get org.gnome.desktop.background picture-uri"

def check_wall():
    curr_wallpaper = subprocess.check_output(["/bin/bash", "-c", cmd1]).decode("utf-8").strip()
    if curr_wallpaper == "'"+set_wallpaper+"'":
        pass
    else:
        subprocess.Popen(["/bin/bash", "-c", cmd2])

while True:
    check_wall()
    time.sleep(10)

The only difference for 12.04 is the shebang: 12.04 does not come with python3 by default, so the shebang should be:

#!/usr/bin/env python

How to use

copy the script into an empty file. Change the wallpaper line (after set_wallpaper =) into the path to your wallpaper image (starting with file://, like in the example). Save it as something.py.
run it by the command:

python3 /path/to/something.py

or (12.04)

python /path/to/something.py

If all works as you wish, add it to your startup applications: Dash > "Startup Applications" > "Add"


It can't answer your question in detail, however, the following approach might be useful to you.
If you take a look at gnome-look.org you'll find the "cursor" theme section on the second position to the left side. In the provided link the author of that particular cursor-theme (submitted on 2020-11-15) and therefore fairly recent mentioned in his description below the preview:

This Cursor is built with clickgen and render with the puppeteer.

clickgen is (an) API for building X11 and Windows Cursors from .png files. clickgen is using anicursorgen and xcursorgen under the hood.
Puppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer runs headless by default, but can be configured to run full (non-headless) Chrome or Chromium

So you might look into those two applications and/or directly get in contact with that community for detailed information - who better is there.


Execute memtest86+ on a Ubuntu 16 system

So, it appears memtest86+ was not the way to go for UEFI systems. What you want is memtest86, without the +.

memtest86+ is available on this website. For reasons I can't explain, you can't make a bootable USB device out of its windows installer, that works on UEFI.
memtest86 is available on this website. Creating an USB device bootable on UEFI is possible with this version.

It was just a matter of turning to the right version of this software. Thanks to @Terrance for putting me on the right track with the UEFI / BIOS distinction.


multiple hadoop-env.sh with .deb hadoop package

I think that /etc/hadoop/hadoop-env.sh is a right file to edit.

I also set up Hadoop according to the tutorial you mentioned but I downloaded a Hadoop distribution from Apache website.


GNOME application doesn't use the system input method

You need to enable IBus and select the method of input. Restart X-server or reboot.

Right click on the applications when opened ie: Gedit, to change input method.

Let me attach the windows options you should have:


How to change a hypen to a period in a file and/or directory

Use rename command, to rename everything:

rename -n 's/-/\./' *

For files:

find -maxdepth 1 -type f -exec rename -n 's/-/\./' {} +

For directories:

find -maxdepth 1 -type d -exec rename -n 's/-/\./' {} +

Remove the -n option from command when you was sure it would work for you.
You can also change -maxdepth according to your needs.


Which is the best way to suggest to include an application in Ubuntu Studio's repositories?

The best way to suggest adding an application to the Ubuntu repositories is to file a wishlist bug on the bug tracker. However, this generally won't accomplish much. There are many, many more suggestions than there are volunteer packagers.

In fact, somebody has already made this suggestion.

There are two best ways to really add software to Ubuntu:

One is to package a snap for the Ubuntu Snap store. The link includes tutorials and help forums for new volunteer packagers. Since snaps are cross-distro and cross-platform, it's generally best for the upstream project to do the snappifying. Volunteers to help those projects are usually warmly welcomed.
The other is to package a deb for Debian, which will subsequently be merged into Ubuntu. The link includes tutorials, help forums, and upload sponsorship new volunteer packagers. Packaging debs has historically been done by volunteer users, NOT by developers.

Using either snaps or debs, regular maintenance is required to ensure that the package continues to work with new releases of Ubuntu.

This generally works best when a team shares the packaging, testing, and maintenance effort -- many hands make light work. Looks like the upstream bug tracker indicates other folks are interested in forming a team with you to do that packaging.

If this sounds very complex, that's just because it's new to you today. Planning a simple social event (like a birthday party) is much more complex and fraught than packaging software, so don't be discouraged. The first step is to link up with a couple like-minded fellows, and attack it together. And have fun.


Ubuntu 14.10 won't boot after a drive sector was destroyed

Hard disks mostly warn users before dying.  You've got such a warning and there is only one thing to be said:

Back up your data now and get a new drive! Please! Pretty please?


How to make python interactive console based on blocks rather than lines

Have a look at ptpython. It's not in the repositories but you can easily install it via pip3.


How to increase the distance between the close minimize and maximize buttons

If you are using XFCE, you can open xfce4-settings-manager and change panel theme in window manager (in style tab ). You will find many button layouts there.

(This should be a comment but I dont have enough credits)


How can I install canon pixma ip100 driver for Ubuntu 12.04LTS 64bit?

kina. The issue is that this ppa does not have a Precise version. For whatever reason, the owner has not uploaded since last year for the Oneiric release. I will explain how to get the Oneiric version driver. I see no reason that it would not work for Precise, but I make no promises!

You already have the proper ppa added. Now you must change the distribution version. In the terminal enter software-properties-gtk. A menu labelled Software Sources will open (you've probably seen it before).

Left-click the "Other Software" tab. A list of all your current ppas will show up. Look through the list for "http://ppa.launchpad.net/michael-gruz/canon/ubuntu precise main". Click on that to highlight it and press the "Edit..." button below.

This will open a window labelled "Edit Source". On the list of options will be "Distribution:" and it will be set to "precise". Change this to "oneiric". Click "Ok". Enter password if prompted.

When you now check the "Other Software" tab again, you should see that "oneiric" has replaced "precise" in the ppa name. Now in terminal enter:

sudo apt-get update && sudo apt-get install cnijfilter-ip100series

Now if all goes well your driver will install. Hope this works well for you!


How are the chances that ImageMagick 7 will be part of Ubuntu 20.04

Check out the Debian Package Tracker for Imagemagick to see some of the issues.

The automated version monitoring tool does not yet (as of today) register 7.0 as being available. So nobody at Debian knows to package it.
Take a look at the many HIGH and NORMAL issues in the "Action Needed" section. A lot of volunteer effort is needed before another version can be packaged at all!

So I would evaluate the chances of Imagemagick 7 making it into Ubuntu 20.04 as LOW.

It's possible if a group of Debian-skilled volunteers charge in and help the current maintainers work all those problems and package 7.0.9 immediately...it's just not likely that such a group is about to do that.

If you want to move the ball forward, join the Imagemagick Maintainers Team.


Unmet dependencies after installing CUDA 10.2

Ok, I was able to find a solution online:

1) I switched prime profiles to intel.
2) moved cuda.list file somewhere else (the 10.2 version that I had installed)
3) Commented lines in .bashrc where it pointed path to cuda 10.2 (not sure if necessary)
4) rebooted
5) $ sudo apt --fix-broken install

(and that worked this time!)

6) switched prime profile back to nvidia
7) uncommented lines in .bashrc (reverse step 3)
8) $ source .bashrc

And it worked. I have now cuda 10.2 installed and apt no longer has broken dependencies. :-)


GNU screen: Running commands in different window when screen is started

Sure you can. On my servers i have a /etc/screenrc with:

screen -t TOP 0 top
screen -t ETC 1 cd /etc
screen -t Console 2


Can anyone help me to find out which version of Ubuntu we use?

Open terminal and type the command:

lsb_release -a


Unable to install Steam 64bit - Wrong architecture (Lubuntu 12.04)

Some similar questions have already been asked here.

The problem, in short, is trying to force the installation of a 32 bit package on a 64 bit machine.

I would suggest you to have a look at these questions:

How do I apt-get a 32-bit package on a 64-bit installation?
How do I install a 32-bit proprietary deb on a 64-bit system without causing dependency problems?


Remove the already installed virtualbox by running the below command,

sudo dpkg -P --force-remove-reinstreq virtualbox-4.3

Then download the virtualbox.deb file from here.And install it by running,

sudo dpkg -i filename.deb


Canon LBP6000 printer not working with Ubuntu 14.04

Using sudo (root or administrative) rights:

sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libstdc++6:i386 libxml2:i386 zlib1g:i386 libpopt0:i386

In the most cases you need sudo to become root access to install software in your system.


No window buttons in nautilus when maximised

Okay. So I only listed the extensions I had enabled. No Title Bar by franglais125 was installed (but disabled). After uninstalling it Files kept its window buttons when it was maximised but Ubuntu Software still has the issue. After a restart, Ubuntu Software got its window buttons back!


The .vmx file is typically located in the directory where you created the virtual machine.

In Linux, run the vmware-cmd -l command to list the full path to all registered .vmx files.

In Windows XP and Server 2003, the default location for the file is:

C:\Documents and Settings\your_user_name\My Documents\Virtual Machines\virtual_machine_name.vmx

In Windows Vista, Windows 7, and Windows Server 2008, the default location for the file is:

C:\Users\your_user_name\My Documents\Virtual Machines\virtual_machine_name.vmx

Source


Automatic Colorization - but how to do multiple files?

Apparently, you're missing the definition of your $file variable...

Since the usage for your command is to simply specify the input file and a name for the output file, you could use (inside the directory where everything is a file you want to "colorize"):

for file in * ; do echo th colorize.lua "$file" "${file/./-color.}" ; done

The echo is just for testing, to see if the right files are being found and the right thing is going to be done with them. Once you have done it with echo and checked that the right files were found and the right names were output, then do it without echo to actually change the files:

for file in * ; do th colorize.lua "$file" "${file/./-color.}" ; done

But this will match all the files in the directory and assumes that they all have a . which will be replaced with -color. (if there is more than one dot, the first dot will be replaced) for example:

old-pic1.png -> old-pic1-color.png
old-pic2.png -> old-pic2-color.png

instead of using * which matches all files, it would be better to glob for the files by part of their name which is in common, like .png then you could replace * with *.png to find only files with that ending.


How to run local shell script on remote server via SSH?

ssh user@remotehost "bash -s" < local_script.sh

-s makes bash read from standard input.

If you need to pass arguments to your script:

ssh user@remotehost "bash -s" -- < local_script.sh "your_arg" "--aswitch" "avalue"

Note the double dash -- (signifying the end of the command options) and the quotes around the arguments.


stat command format to append '/' to file name if directory, and remove "./" from front

Add -mindepth 1 to get rid of . which is depth==0
Alternative: use find * instead of find .
Separate files from folders with -type d ... -or -type f ...
Use + instead of \; to send multiple files to stat; it can handle it and will be much faster !

find * \
-type d -exec stat -c '%n/: %Y' {} + \
-or -type f -exec stat -c '%n: %Y' {} +

BUT...

You don't need -exec stat at all !

Use finds bultin -printf to print the last modification date (%Cs would be the equivalent to stat's %Y).
-printf '%P' instead of %p will also let you get rid of ./ at the beginning of each file name.

find . -mindepth 1 \
-type d -printf '%P/: %Cs\n' \
-or -type f -printf '%P: %Cs\n'

Output:

a_file.txt: 1561624333
some_folder/: 1561624645
some_folder/some_file.txt: 1561624645
some_folder/another_file.txt: 1536557809


Check the mode[1] of either the paint tool or the layer you are painting on. If it not Normal (for instance it could be in "Lighten only" mode) then unexpected things[2] can happen.

[1] Drop-down selector at the top of the Layers list for layers, or at the top of the Tool option dialog for paint tools

[2] if you don't know about layer/paint modes of course.


Is there a way to disable changing the background in GNOME?

The new dconf has options for lockdown and also has an example (where they use the wallpaper ;)) on the dconf system admin page:

  Lockdown

  Lockdown is supported by creating a 'locks' subdirectory in the keyfile directory (ie: /etc/dconf/db/local.d/locks). The files contained in this directory contain a list of keys to lock, one per line. Just as with the keyfiles, you may add any number of files to this directory. Here's an example of what one might look like:

# prevent changes to the company wallpaper
/org/gnome/desktop/background/picture-uri

  Of course, you need to run the 'dconf update' tool after changing the locks. The tool will notice if the timestamp on the 'locks' directory has changed, so there is no need to touch the ".d" directory as well.

  Presently (as of dconf 0.7.4) lockdown is only supported on a per-key basis. Put another way: you may not yet lock entire subpaths. This is for performance reasons, but there are plans to address this in future releases.


Searching for photos with portrait orientation (height greater than width) with `find` and `exif`

We can use a modified version of this answer: How to find all images with a certain pixel size using commandline?

find . -iname "*.jpg" -type f -exec identify -format '%w %h %i' '{}' \; | awk '$1<$2'


Creating virtual hosts for a domain and subdomain on ubuntu

I'm no expert in this, but I myself want to run a local hosted server with online capabilities too, I did ran it a few months ago, but now I'm getting back to it, and kinda rusty to be honest, so I'm re-learning everything back with the mess to work with VHosts and setup local servers to later be online and ... it's a mess lol... But what I see and I quote:

  The challenge I am facing is if I type in only example.com it goes to mysite.example.com instead of www.example.com.

However you mentioned the config below is for your subdomain... In which case it should be inverted... you see you're pointing your main domain to your: "/var/www/mysite" which should be used for your subdomain... mysite.example.com instead. So I'm guessing you're confusing the entries for the directories.. that's why your main domain, it's going to mysite.example.com instead of www.example.com because you have setup your configuration the other way around :D

ServerName mysite.example.com
#ServerAlias mysite.example.com      // not sure if i need alias
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html

<Directory /var/www/html>
 Options Indexes FollowSymLinks MultiViews
 AllowOverride All
 Order allow,deny
 allow from all
</Directory>

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

Hope this helped.


Go to the BIOS, and verify the UEFI settings (legacy, ,UEFI secure boot, ...),.

Then have a look at your drives, they should be enabled and detected by the BIOS.

And last make sure the SATA controller is in the AHCI mode (i.e not in the legacy or RAID or something).


Is it possible to run application by clicking on its desktop-file from /usr/share/applications opened in Nautilus?

It is not possible in modern versions of Nautilus. It is a bug 1819375 caused by upstream Nautilus simplification.
You have to use other fully-functional modern file-managers like Caja, Dolphin, Konqueror, Nemo, PCManFM or Thunar.


Make sure you have the ubuntu-restricted-extras package installed, as well as the gstreamer0.10-plugins-ugly-multiverse and gstreamer0.10-plugins-bad-multiverse packages.  You can find them in Software Center; if they don't show up there go to edit->Software Sources and make sure you have Multiverse enabled.


Downloading a file in ubuntu from a website with wget

The command and link you are using seems to contain errors.  The actual format of wget is:

wget [option] [URL]

You removed spaces (which obviously matters) and added target= (which isn't there in actual URL). So, it must be something like:

wget -P /home/ubuntu/Desktop/ "http://ftp.heanet.ie/mirrors/www.apache.org/dist/hadoop/common/stable/hadoop-2.9.2.tar.gz"

I have tested the above command and at my end it is working fine and successfully downloaded hadoop-2.9.2.tar.gz in the Desktop directory.


How to get the quota kernel modules on the AWS kernel?

Long story short: install the linux-modules-extra-aws package.
I've spent a lot of time on this and the answer was hidden among the comments of the question itself.

There is a bugreport on launchpad for this bugs.launchpad.net/ubuntu/+source/linux-aws/+bug/1773172 – MrSpock Mar
12 '19 at 14:12

Hope this helps others as well.


I want to use my old PIII to learn basic linux stuff, should I use ubuntu?

I would recommend you to use Lubuntu.
It's a faster, more lightweight and energy saving variant of Ubuntu using LXDE- the Lightweight X11 Desktop Environment.
Xubuntu will also be good (Ubuntu + XFCE): http://www.xubuntu.org/
Crunchbang(Debian,  Ubuntu is also based on Debian, + Openbox) is good and it uses 60MB RAM http://crunchbanglinux.org/
You can see this thread for more information.
System requirements for lubuntu can be found here.


change windows boot order from within ubuntu

If you download Grub Cusomizer from the Software Centre, this gives you the option to Reorder and customize your Grub to how you want it.


How to check whether my proxy server allows ssh connection or not in Ubuntu?

You can use netcat to test this:

if nc -z remote.host.example.com 22; then
    echo "Connection to TCP/22 succeeded"
else
    echo "Connection to TCP/22 failed"
fi


download acceleration with multiple connections

Add the packages uget and aria2. Start uGet then go to settings and enable the aria2 plugin, this is needed for multi-threaded downloads. You'll need to manually specify the number of connections when you add new downloads, but other than that little annoyance it's a great app.

I am having problems whitelisting the indicator icon for this app, however, and need to minimize to the dock instead. Unity-2d-panel has more problems with indicator icons than the standard unity-panel so it may not affect you. I'll report back if i find a way to resolve this.


not able to create boot partition in grub after resizing ubuntu partition

Ok, i had the exact same problem at least 9-10 times each time i formatted my /home partition and the windows partition later.What i do every time is this:

mount the ubuntu live cd and try ubuntu
open terminal
sudo fdisk -l (that gives a list of partition)
sudo mount /dev/sdanumber_0f_disk_you_have_installed_the_ubuntu /mnt
for example sudo mount /dev/sda2 /mnt

lets say number_0f_disk_you_have_installed_the_ubuntu=X

sudo mount /dev/sdaX /mnt/boot
sudo mount --bind /dev /mnt/dev/
sudo chroot /mnt
grub-install /dev/sda
sudo umount /mnt/dev
sudo umount /mnt
sudo reboot


WMF files no longer recognised; cannot work with them in GIMP

Have you tried Inkscape

Inkscape's import for WMF is quite mature, and most WMF files can be imported without issues. You will have the ability to convert WMF file with something that is compatible with GIMP

You can download it from the Ubuntu Software Center

Click here for more information on Inkscape Wiki

How to in Inkscape

  Press the "File" option on the top navigation bar in Inkscape and
  click "Import."

  A file navigation window opens.

  Click the drop-down box near the bottom of the page and select the
  "Windows MetaFile (.wmf)" option.

  Navigate to and click on the WMF file using the file navigator.

  Click the "Open" button. The WMF file imports into and opens in
  Inkscape.

To Convert Try This

  Click the "File" option from the top navigation bar and then click
  "Save As."

  Click the "File Type" drop-down box and select another graphic file
  type from the list.

  For example, to convert the WMF file to a PNG, click the "PNG (.png)"
  option on the File Type list.

  Click the "Save" button. Note that you can also "Export" the WMF file
  for even more graphic file options.

  Just click "Export" from the "File" menu instead of "Save As." Select
  another graphic file type.

  Inkscape exports WMF files to the JPG or GIF file types.

Read more: How to Convert to WMF Graphics in Ubuntu | eHow.com http://www.ehow.com/how_8693491_convert-wmf-graphics-ubuntu.html#ixzz1v1FJSTOc


How can I set an animated background image or lock screen?

You could use something like https://launchpad.net/livewallpaper , but you can't add your own video's /GIF's.

With this one you can: https://www.ostechnix.com/set-animated-video-wallpapers-linux-desktop/

I haven't used them, so you should make a back-up of your system before installing the new software.

And on a sidenote: you should upgrade Ubuntu 15.04 to a newer LTS version, 15.04 isn't a LTS version and support ended approx. 9 months after the release (march 2016). 16.04 and 18.04 are both newer LTS versions.


Well, I finally managed to get it to suspend fully on inactivity.

In addition to  System Settings > Power set to turn off after 10 minutes,   I had to ALSO set  System Settings > Brightness and Lock   to turn off the screen after 10 minutes.

Surely if these 2 settings are dependent on each other they should be together in one section of System Settings?  The way they interact seems wrong, and the Systems Settings > Power section doesn't hint or warn that it can't be set independently.


Running desktop entry causes program to start then close without ever showing

Try replacing sudo -i with gksudo or (better yet) pkexec -- this will create a graphical prompt for the root password, rather than asking for it in an inaccesible console


How to change de "Minimize all windows" shortcut in Xubuntu?

Open System Settings (power icon in the top right) and select
"Keyboard" (not "Keyboard Layout").
On the "Shortcuts" tab, select "Navigation" in the left menu.
Scroll down to find "Hide all normal windows".
Click the shortcut text to the right, and it will show "New
accelerator".
Press Super+D and it will change.
Try it out.


Fan running constantly after installing ubuntu [dell inspiron 5520]

One thing I would check would be the load of the system (as this is usually the case when the fan revs up), fire up a terminal and type:

uptime

To read more about the load values, see for example this thread: https://stackoverflow.com/questions/21617500/understanding-load-average-vs-cpu-usage

If it seems high, you might also wanna dig deeper into the top command:

top

and even checking all the process, with

ps -aux

trying to pinpoint if there are applications running hot.


on most english locale keyboard:

Locate a button that looks like this(as shown below):

then press Shift + \


/etc/resolv.conf (which is actually a symbolic link to /run/resolvconf/resolv.conf) is written by the resolvconf utility based on information coming from various possible sources.

127.0.1.1 is the loopback IP address on which the NetworkManager-controlled instance of dnsmasq listens. Dnsmasq runs locally and accepts DNS queries at 127.0.1.1 and forwards these queries to an external nameserver whose address is furnished by NetworkManager. This scheme does not always work well and if you have any problem with it (as you do) then it is advisable to disable NetworkManager-controlled dnsmasq. To disable it, edit /etc/NetworkManager/NetworkManager.conf

sudo gedit /etc/NetworkManager/NetworkManager.conf

and comment out the line

dns=dnsmasq

so that it looks like the following.

#dns=dnsmasq

Then restart network-manager. The command you use depends on your Ubuntu version:

sudo service network-manager restart # For newer systems using Systemd
sudo restart network-manager         # For older systems using Upstart

After this you should have a nameserver line in resolv.conf with a non-loopback IP address. If this is not the case then try the following command.

sudo dpkg-reconfigure resolvconf

If you still don't have a nameserver line in resolv.conf with a non-loopback IP address or if you still have no DNS service, try rebooting.

If you still have no good DNS service then start investigating the nameserver at the external IP address (1.2.3.4 in the example below). Does it correctly resolve domain names when approached using the host or dig utilities?

host www.ford.com 1.2.3.4

dig @1.2.3.4 www.gm.com

Do Google's nameservers work?

host www.ford.com 8.8.8.8

dig @8.8.4.4 www.gm.com

If you find that your external nameserver isn't working properly then you should configure your connection to use a well behaved nameserver such as Google's. To do this, right click on the network indicator and go to Edit Connections |  | Edit... |  IPv4 Settings. Assuming that the current Method is Automatic (DHCP), set Method to Automatic (DHCP) addresses only and fill in good nameserver addresses in the field entitled Additional DNS servers.


MySQL-Workbench 6.3.6 can not display server status. Platform time_t error

Just a guess - do you have NTP sync enabled? I am having same issue on Ubuntu 12.04 as a Hyper-V guest. When Ubuntu boots, MySQL is being started prior to time sync and gets nice eternal uptime. Simple solution - service mysql restart.
Proper solution - make sure mysql service starts after ntp sync.


is it possible to use an ipod classic3G as external disk with ubuntu 12.04?

You can enable writing to HFS+ in Linux even if you didn't disable journaling. In addition to hfsplus which you already have, you need to have hfsprogs installed:

sudo apt-get install hfsprogs

Then, use the -o force option:

sudo mount -o force /dev/sdX /your/mount/point

If the drive has been mounted automatically (as it should be on a desktop system like Ubuntu), you can enable write with

sudo mount -o remount,rw,force /mount/point

or

sudo mount -o remount,rw,force /dev/sdx

/mount/point would usually be /media/Your_drive_label /dev/sdx is your HFS+ device

Use mount -l to find which device is already mounted on which mount point.


Accidentally uninstalled xorg hwe package and lost graphic interface

Well, after trying several methods, I ended up just reinstalling ubuntu, so no longer can receive support on this, thank you.


mdadm trying to resync/rebuild array automatically

You have dissembled/stopped the old array and created a new one with mdadm, right? In that case the superblocks of the old array on all drives should have been overwritten, the old array is no more. But, now you are wondering why you see something like following in /proc/mdstat, right?

Personalities : [raid6] [raid5] [raid4]
md0 : active raid5 loop6[6] loop5[4] loop4[3] loop3[2] loop2[1] loop1[0]
      511680 blocks level 5, 64k chunk, algorithm 2 [6/5] [UUUUU_]
      [>....................]  recovery =  2.0% (2176/102336) finish=0.7min speed=2176K/sec

unused devices: <none>

This is just fine for initial array creation.


What will happen if I install the latest version of an existing library by building from source?

is there any chance that the consequence of my action will come back to haunt me?

Maybe. Read on:

The new ("enable...:) configured libraries have overwritten the new misconfigured libraries you installed...no harm done.
The new libraries are installed under /usr/local because that's the default for a lot of Linux distributions, but not Ubuntu; Ubuntu puts them under /usr. The former is OK for binaries (/usr/local/bin), which Ubuntu has in its default path, and those will take precedence over any binaries installed in /usr/bin, but this is not true for libraries, because /usr/local/lib is not in the default path.
Any programs that use this library will continue using the older headers/version in /usr/lib, unless you specifically tell those programs to use the new ones, e.g. by prefixing them with LD_LIBRARY_PATH=... or by explicitly adding /usr/local/lib to your path. For compiling things which depend on this library, you'll need to explicitly specify the /usr/local/lib path to include the new headers.
To fix this:

It's a good idea to remove the repo-installed version of the library, unless it has lots of dependencies, in which case leave it be (or you'd have to recompile the lot).
Install checkinstall, which you can use instead of the final make install step to give you a deb file that is easy to install and uninstall.
Set the correct install prefix via the -DCMAKE_INSTALL_PREFIX=/usr directive before compiling.

That should do it!


This may not be what your looking for, but it would work to clear up your static issue . . . and give you the option for a different wallpaper on each monitor.  A little wallpaper utility named "nitrogen".  You can use apt-get install to grab it or you can find it in the software manager.  This is a workaround though not a fix, but it is really easy to use.  Then just set it up in your autrun settings like "Name: Nitrogen, Command: nitrogen --restore, Comment: whatever you want".  To add your image folder click on preferences and go from there, pretty self explanatory.


sysv-rc-conf is the tool you want:

sudo apt-get install sysv-rc-conf

You have to run it as root:

sudo sysv-rc-conf

then use the arrow keys to navigate, spacebar to select, q to quit. Be sure you know what you are doing.

PS: the video you posted is for ubuntu desktop (unity). You didn't install X on your server, just for that, right?


How do I install Muvizu on Ubuntu 14,04 LTS?

Did you browse it on Wine website?
I think the best choice would be dual boot, and still use Windows to run this app, untill there's a Linux version or another software with the same tools.


How do I revert the alt-tab behavior so that switching to an app brings to the front all the windows of that app?

Unfortunately this is not configurable, but you can easily get this back manually compiling the unity source (please, file a bug to ask to add an option, btw).

As I was saying, you can get this back editing the file BamfLauncherIcon.cpp changing the line: bool only_top_win = !any_urgent; to bool only_top_win = true;

I know this is not the best solution, but since this has been a late change we had not the time to introduce a new ccsm option.


How can I use chewing(zhuyin) input method?

You can generate e.g. the zh_TW.UTF-8 locale.

sudo locale-gen zh_TW.UTF-8

Edit:

This is rather confusing. I just submitted an issue to the GNOME developers:

https://gitlab.gnome.org/GNOME/gnome-control-center/issues/82


How to put system to sleep instead of hibernate?

Sorry for the first answer, yes, sleep is for shell (Now edited).
You can sleep (suspend) your system using pm-utils (installed for default on ubuntu) or systemctl.

pm-suspend

If you have installed systemctl, you can use direct interface for systemd

systemctl suspend

More info:
Power Management / Reduced Power
Systemd


Recovering Open Document Format Files and OLE in one go

You could try foremost as described in the Ubuntu Community Help Wiki.

sudo apt-get install foremost

Assumed your deleted files are on /media/USB/ and you want to restore them to ~/Desktop/recovery/ run:

sudo foremost -t ole,zip -i /media/USB -o ~/Desktop/recovery

After that change ownership of that folder by

sudo chown -R user:user ~/Desktop/recovery/

whereat user is your username.

  From the mentioned wiki page: "zip: Note is will extract .jar files as well because they use a similar format. Open Office docs are just zip’d XML files so they are extracted as well. These include SXW, SXC, SXI, and SX? for undetermined OpenOffice files."


Assuming you are talking about Ubuntu's built in VNC service, (when you say remote deskop I always think Windows RDP,) You need to look at your setting at

System -> Preferences -> Remote Desktop

There you should see all the settings you need.  This ofcourse just shares access to the computer so two users cannot log into two different accounts,  you can share mouse control or one can watch though.

Also this link may be of help:
https://help.ubuntu.com/community/VNC/Servers


Configuring startup apps during ISO customization in UCK

Scripts that you wanted started in a custom ISO, you put in the following folder:

remaster-root/etc/skel/.config/autostart/

as when the ISO boots the /etc/skel/ folder becomes the default user.  There is where you can also put desktop icons and shortcuts or other scripts that you want.

Hope this helps!


Can't take screenshots after updating to 14.10 from 14.04

I had the same problem but I managed to fix it.

The problem is with the Graphics Drivers that ship with Ubuntu 14.10. Upgrading to a newer driver fixed the problem.

This can be a little risky, but the easiest way I know of to do this is to install the oibaf (i.e. bleeding edge) drivers.

https://launchpad.net/~oibaf/+archive/ubuntu/graphics-drivers

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

More details here:

http://phoronix.com/forums/showthread.php?50038-Updated-and-Optimized-Ubuntu-Free-Graphics-Drivers

I've reported the bug. Hopefully mainline Ubuntu 14.10 gets a driver update.


12.10 doesn't recognize Integrated Graphics card of Intel g540

Install mesa-utils by running these commands:

  sudo apt-get update
  sudo apt-get install mesa-utils

Then it should work.


Unable to Resume after Screen has Locked

If you don't want to change screensavers (not sure why you wouldn't), there's another litle workaround.

It's a bit irritating, but I found that you can fanagle the screen lock by switching between terminals (ctrl-alt-F1, ctrl-alt-F7, ctrl-alt-F6, ctrl-alt-F7) until the correct login widgets finally show up. For me it passes from background screen with status bar, to background screen, to black screen screensaver -- after which I can wake up my screen and enter my session password.

Not sure why it works, and sometimes it takes a bit longer than others, but it works consistenly, eventually, and every time.

Now, I will go install xscreensaver....


Unable to locate /usr/lib/jvm/java-6-sun/jre/lib/javaws.jar in /usr/share/java

You can try and install Sun (now Oracle) Java version. You can find in that repository ppa:ferramroberto/java. You can add these repositry using that command:

sudo apt-add-repository ppa:ferramroberto/java

And install:

sudo apt-get update ; sudo apt-get install sun-java6-jre

I don't remeber if it is necessery but maybe you have to use update-java-alternatives command to change the default Java engine.


OK,now I figure it out...
It turns out that I need to start ibus with parameter -x so that XIM starts up.
I added these lines to ~/.bashrc:

export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export XIM=ibus
export QT_IM_MODULE=ibus
export XIM_ARGS="ibus-daemon -d -x"

Then I modified the startup applications, ibus-daemon -dxr
The last step, modify the /usr/bin/opera, add

GTK_IM_MODULE=xim
QT_IM_MODULE=xim
XMODIFIERS="@im=ibus"

It works like a charm... This might be a piece of cake for many users but I think it can help a lot of newbies like me:)


Cannot re-enable password requirement for login to my account after disabling it. (14.04)

I finally solved this myself. Even though I had set "Automatic Login" to off and had set a user password in System Settings -> User Accounts, it had failed to properly set the flags in /etc/gshadow and /etc/group. To check and see if it is set properly, do in terminal:

sudo grep nopasswd /etc/gshadow

which should return something like:

nopasswdlogin:!::

and

sudo grep nopasswd /etc/group

returning:

nopasswdlogin:x:112:

Instead, mine looked like:

nopasswdlogin:!::josh
nopasswdlogin:x:112:josh

if you see user names at the end of these lines, then you need to remove them. Any user names on these lines indicate that user can login in without a password. To remove them, just open the files in gedit and delete ONLY the user names you want to require passwords of. You can open them with:

gksudo gedit /etc/gshadow
gksudo gedit /etc/group

Once you delete the user names, save the files and reboot. Done!


I would wait a while before upgrading just to see if there are any issues from such an upgrade.  But to do the upgrade you would just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo add-apt-repository ppa:libreoffice/libreoffice-4-0
sudo apt-get update && sudo apt-get dist-upgrade

Before the upgrade

After the upgrade

Or you can just wait, and it will be upgraded automatically.


Permission Denied when using ./configure

I had this error because I was trying to run the command on a mounted partition that had the "noexec" flag on.

After remounting to remove this flag, everything worked fine. With this command:

sudo mount -o remount,exec /media/MOUNTEDDISKNAME


Surface Headphones as A2DP Sink and A2DP Source

The A2DP protocol only supports communication in one direction according to Wikipedia.
Thus a Bluetooth device (with one Bluetooth connection) can either be a A2DP source XOR be a A2DP sink.


How to create Excel xlsx files from a script?

I highly recommend John McNamara's modules. He uploaded a new Python module called XlsxWriter for creating XLSX files to PyPi that I packaged for Debian and Ubuntu.

It is a port of a Perl module that he wrote called Excel::Writer::XLSX which is a extension of another Perl module called Spreadsheet::WriteExcel.

python3-xlsxwriter (python-xlsxwriter for python 2.x)

XlsxWriter is a Python module for writing files in the Excel 2007+ XLSX file format.

It can be used to write text, numbers, and formulas to multiple worksheets and it supports features such as formatting, images, charts, page setup, autofilters, conditional formatting and many others.

XlsxWriter has some advantages over the alternative Python modules for writing Excel files:

It supports more Excel features than any of the alternative modules.
It has a high degree of fidelity with files produced by Excel. In most cases the files produced are 100% equivalent to files produced by Excel.
It has extensive documentation, example files and tests.
It is fast and can be configured to use very little memory even for very large output files.
Integration with Pandas (Python Data Analysis Library).

A simple example of some of the features of the XlsxWriter Python module:

#Copyright 2013-2014, John McNamara, jmcnamara@cpan.org
import xlsxwriter

# Create an new Excel file and add a worksheet.
workbook = xlsxwriter.Workbook('demo.xlsx')
worksheet = workbook.add_worksheet()

# Widen the first column to make the text clearer.
worksheet.set_column('A:A', 20)

# Add a bold format to use to highlight cells.
bold = workbook.add_format({'bold': True})

# Write some simple text.
worksheet.write('A1', 'Hello')

# Text with formatting.
worksheet.write('A2', 'World', bold)

# Write some numbers, with row/column notation.
worksheet.write(2, 0, 123)
worksheet.write(3, 0, 123.456)

# Insert an image.
worksheet.insert_image('B5', 'logo.png')

workbook.close()

Visit this page for a full list of XlsxWriter examples.

libexcel-writer-xlsx-perl

The Excel::Writer::XLSX module can be used to create an Excel file in the 2007+ XLSX format.

Multiple worksheets can be added to a workbook and formatting can be applied to cells. Text, numbers, and formulas can be written to the cells.

Excel::Writer::XLSX uses the same interface as the Spreadsheet::WriteExcel module which produces an Excel file in binary XLS format.

Excel::Writer::XLSX supports all of the features of Spreadsheet::WriteExcel and in some cases has more functionality.
For more details see Compatibility with Spreadsheet::WriteExcel.

The main advantage of the XLSX format over the XLS format is that it allows a larger number of rows and columns in a worksheet.

The XLSX file format also produces much smaller files than the XLS file format.

To write a string, a formatted string, a number and a formula to the first worksheet in an Excel workbook called perl.xlsx:

# reverse ('(c)'), March 2001, John McNamara, jmcnamara@cpan.org
use Excel::Writer::XLSX;

# Create a new Excel workbook
my $workbook = Excel::Writer::XLSX->new( 'perl.xlsx' );

# Add a worksheet
$worksheet = $workbook->add_worksheet();

#  Add and define a format
$format = $workbook->add_format();
$format->set_bold();
$format->set_color( 'red' );
$format->set_align( 'center' );

# Write a formatted and unformatted string, row and column notation.
$col = $row = 0;
$worksheet->write( $row, $col, 'Hi Excel!', $format );
$worksheet->write( 1, $col, 'Hi Excel!' );

# Write a number and a formula using A1 notation
$worksheet->write( 'A3', 1.2345 );
$worksheet->write( 'A4', '=SIN(PI()/4)' );

Visit this page for a full list of Excel::Writer::XLSX examples.


running a tar command eats all resources

I think fkraiem is correct.
To elaborate:

According to the crontab man pages

user@host $ man 5 crontab

The time and date fields are:

          field          allowed values
          -----          --------------
          minute         0-59
          hour           0-23
          day of month   1-31
          month          1-12 (or names, see below)
          day of week    0-7 (0 or 7 is Sun, or use names)

   A field may be an asterisk (*), which always stands for ``first-last''.

In your command

#m h  dom mon dow   command
 * 2   *   *   *    cd /home/user/backup...

You're saying, EVERY minute of hour 2 of every day of every month of every day of week.
In other words, every minute of 2am will start another instance of your given command.


Enable Touchpad configuration in ubuntu 14.04 Toshiba Tecra Z40

According to this site:

http://www.linlap.com/toshiba_tecra_z50

  the problems I had with the touchpad not being recognized (which is an
  issue to many) were solved by updating to kernel 3.17


KUbuntu Screenlock crashes on 17.10 since update

KUbuntu 18.04 magically fixed this issue.
Lockscreen works now on nvidia & intel GPUs, suspend doesn't randomly crash KSM server anymore.


Incomplete Ubuntu 12.04 install dual-boot XP

First and foremost the Ubuntu download must be checksummed. It can be done automatically if you use Free Download Manager if you download from Windows. If you want to dualboot with Windows download the Wubi type Ubuntu installer otherwise the original will do. Also the Ubuntu you download, Please download the one which is compatible with your motherboard, I mean 32-bit if your motherboard supports 32 bit OS or 64-bit if your motherboard supports 64-bit OS. Rest of the software including Flashplayer and others you can get it from Ubuntu Software Centre or Synaptic, whichever one you prefer.
Or you can buy it from the Linux market to get a properly checksummed Ubuntu Operating System. It is very cheap.
Good luck.


You can:

1) Resize the Win partition to create free space on your HDD.
You can do it with gparted by choosing "smth else" during Ubuntu install or with a Win partitioning tool such as EaseUS Partition Master. I personally prefer to use Win tools to resize Win partitions, but gparted must work.

2) Choose "smth else" during Ubuntu install, and install Ubuntu on this free space.

3) After installing Ubuntu manually add Windows 7 to your GRUB menu: "sudo gedit /etc/grub.d/40_custom", follow instructions here: http://technologytales.com/2010/11/21/manually-adding-an-entry-for-windows-7-to-an-ubuntu-grub2-menu/. Ubuntu has no native GUI GRUB2 editor like KDE's ((

This procedure was considered super-user-friendly in the Mandrake days)

NB Check if you don't already have four primary partitions on your HDD. You won't be able to install Linux unless you delete / change to logical one of these.

NB Backup. Resizing partitions is never risk free, EVEN if Ubuntu install had detected your Win.


Ubuntu Sluggish and Graphics Problem after Nvidia Driver Update

I use NVIDIA GeForce 7050pv and I faced the same problem as you do. For my knowledge you don't update your driver until knowing that version is stable and support your graphics card. See here https://help.ubuntu.com/community/BinaryDriverHowto/Nvidia


Custom GNOME applet in Python needs to have root privileges

You can do this with PolicyKit.

Library Reference


Using NTFS file system in Ubuntu, does it harm hard disk?

I can think of two disadvantages:

When I use NTFS in Linux I found that performance is worse than ext4, particularly when opening with the file manager a directory containing several hundred or more files/folders (it takes way more time to load) or when copying large amounts of data like 1 GB or more (that's my personal experience after comparing copying the same set of data using the same media and changing the file system)
If the file system is not cleanly unmounted (i.e. power shortage), it refuses to mount unless it's checked with an NTFS file system check utility or is forced to mount, which most of the times you need to do manually (that is, using terminal). Most of the times the file system check is automatically done when is ext4.

Given that, and if you are going to use Linux only, I think that is better to use ext4,  however if you have a dual boot computer (Linux and Windows) and you're going to open that partition in Windows, go ahead and keep the NTFS partition to share files between the two OS.

In that scenario, keep in mind that (and this can count as a disadvantage) you can create names in Linux with characters that are reserved in Windows, so you can't open that files in Windows. i. e. you can create a file named "file#1.txt" in Linux, but that file can't be opened in Windows since "#" character reserved in Windows.


Sorry, after having researched to find the problem, I was putting the "nomodeset" option in the wrong line.


nothing is written in a file created from a upstart job

Commands executed by Upstart do not have a HOME environment variable.

I used upstart-socket-bridge on an unrelated project to print the environment variables (u-s-b adds a few special variables)

/etc/init/socket-test.conf:

description "upstart-socket-bridge test"
start on socket PROTO=inet PORT=34567 ADDR=127.0.0.1
setuid my_username
exec /bin/sh /tmp/socket-server

/tmp/socket-server:

#!/bin/sh
outfile=/tmp/outfile
date > $outfile            # Timestamp
printenv >> $outfile
exit 0

Trigger the job:

$ nc localhost 34567

And the output list of environment variables looks like:

$ cat /tmp/outfile
Wed Dec 11 07:23:50 CST 2013
UPSTART_INSTANCE=
PORT=34567
PROTO=inet
UPSTART_JOB=socket-test
UPSTART_FDS=12
TERM=linux
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin
UPSTART_EVENTS=socket
PWD=/
ADDR=127.0.0.1


Here is the solution for those who have the same problem (thanks to Martin W):

Install dconf-editor e.g. via Ubuntu Software.
Open it and go to org/gnome/shell/extensions/dash-to-dock.
Edit "click-action" and activate 'use default value'.
Set "custom value" to minimize.


I use a dynamic dns provider such as dyndns* and then alias the fqdn to the name that is provided by the dynamic dns service.  For example dyndns provides a hostname such as myhouse.dyndns.org and then a simple cname alias is created pointing www.example.com to myhouse.dyndns.org and voila!

this is not an endorsement for dyndns service, I am not associated with their service nor do I recommend it, but it is an example of how this can be done.


How much will I need RAM to run windows 10 inside Virtual Box in Ubuntu

It will be difficult to answer this because the question can only be answered with opinion. We can try to break the question down, though:
Is this enough to let me run Windows 10 [in] VirtualBox?
Yes. You can allocate 4GB of RAM to the VM and make sure your browsers are closed on the host before starting Windows to ensure there are enough physical resources available. Be sure to have a swap file of 12GB or more, though. If there is not enough memory available to the host, everything could lock up. More swap isn’t always the answer, but it can reduce the pain of a complete freeze.
Is this enough to let me run Windows 10 with basic office apps smoothly [in] VirtualBox?
What is “smooth” for one person may be very different from your perspective. This will result in a great deal of opinion-based answers, which are not always helpful.
Is this enough to let me run Windows 10 with basic office apps smoothly and some other non-heavy Windows only software [in] VirtualBox?
Define “non-heavy”. For me, SQL Server Management Studio would be considered “non-heavy before noon”, as it can do a lot with very little resources … until I start working with large return datasets. Same with some sites running in Edge. Reading AskUbuntu will be easy. Using Google Maps will kill the machine. Just like the previous question, the answer can only come from you.

A suggestion:
Virtual machines are “cheap”. Give it a try and see if your computer can give you the performance you need with VirtualBox. If you can upgrade the RAM, that will give you more breathing room. If you can allocate more than 4GB to the VM without locking up the host OS, that might be a good way to get a little more performance (generally the host needs at least 4GB remaining for its own processes). If you need to buy Windows and don’t want risk losing money, consider trying out a pre-built VM from Microsoft for 90 days to see if your machine can handle the workload.
At the end of the day, the only person who can answer this question correctly is you


Cannot access Ubuntu samba shares from Mac OS after install of Ubuntu 14.10

Had the exact same issue. Try the following:

sudo smbpasswd -a <username> #this should be your home account username on Ubuntu

it should prompt you to set a samba password, which is stored separately to your Ubuntu passwords. You can set it the same as your Home user password if you wish, although it is not recommended. Then do:

sudo nano /etc/samba/smb.conf

Scroll to the bottom of the file and add/edit your shared folders as follows:

[<folder_name>]
path = /home/<user_name>/<folder_name>
available = yes
valid users = <user_name>
read only = no
browseable = yes
public = yes
writable = yes

Then restart samba with:

sudo service smbd restart

last but not least:

testparm

If all is well you should see a message like:

Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[printers]"
Processing section "[print$]"
Processing section "[<folder_name>]"
Loaded services file OK.
Server role: ROLE_STANDALONE

Lifted from instructions here.

This worked for me on Mac OS 10.10.1.


Network controller: Qualcomm Atheros Device 0042 (rev 31) ubuntu 14.04 wifi not detected

The instructions are different due to some changes at github, in terminal
cd /lib/firmware/ath10k/QCA9377/hw1.0
sudo cp WLAN.TF.1.0/firmware-5.bin_WLAN.TF.1.0-00002-QCATFSWPZ-5 firmware-5.bin

Reboot


How do I launch `spark-shell` from the command line?

The following commands should work:

cd /home/m1/workspace/spark-1.6.1/bin
./spark-shell

I see that you have other copies of spark-shell here:

/home/m1/workspace/spark-2.0.0-bin-hadoop2.6/bin/spark-shell
/home/m1/Téléchargements/spark-1.6.1/bin/spark-shell
/home/m1/Téléchargements/spark-1.6.1-bin-hadoop2.6/bin/spark-shell
/home/m1/Téléchargements/spark-2.0.0-bin-hadoop2.6/bin/spark-shell

and these can be opened using the same pattern I have given in the first example or even entered into your $PATH for easier access...


add this line to your .bashrc in your home directory

alias rgrep="grep -n --colour"


Emails in Thunderbird disappear on repair

I have, meanwhile, found two ways to restore these folders to a state in which they are stable under the operations described in the question:

Option A:  move folders to an imap server & back (using drag & drop)

[Initially, I had incorrectly reported that this does not help.  But this was because I had inadvertedly been using a pop-server and other local mail storage instead.  Sorry.]

Option B:  export & reimport emails as eml-files (using ImportExportTools addon)

[This option I had already reported on in my original question, but it has several drawbacks:
(a) I need to do this for each folder manually,
(b) Marking emails as read is no longer functional after this process:  they are sporadically reverted to “unread“ status.  In particular, all emails get reverted to “unread” status when I “repair” the folder.]

If anybody knows what is actually going on here, and how the problem is “supposed” to be fixed, I’d still be interested.


How to disable non-desktop application notification?

You can hide the espanso notifications by adding the following option to your default.yml config:
show_notifications: false

(Source)


Wacom Intuos Express Keys Not Working Properly

You need to map buttons 1,3,8, and 9.

Did you read the following info?

https://github.com/linuxwacom/xf86-input-wacom/wiki/Consumer-Tablet-ExpressKey-Mapping-Issue


Create custom mount/unmount entry for nemo/nautilus "devices"

SSHfs unmount problem is known (see bug 254171 for Nautilus and bug 1763033 for Caja).

You can mount some network shares (SSH, FTP, SMB/CIFS) with help of GVFS by creating Bookmarks for them (something like smb://1.1.1.1/public_share). Such mounts will not require root/superuser access. From terminal you can access their files in /run/user/1000/gvfs/smb-share:server=localhost,share=public_share (or similar).

For custom scripts you can try to use Nautilus Action (or FileManager Actions). See this Q&A for details.


`scp -r` wont copy the directory I've selected in winows

You must specify the destination path :

scp -r /local/path user@host:/remote/path

note that spaces in remote pathname must be escaped

scp -r /local/path user@host:/remote/path\\\ name
scp -r /local/path user@host:"'/remote/path name'"

You may also use rsync via ssh

rsync --stats -avzhe ssh /source/path user@host:/dest/path

More information:
 - https://help.ubuntu.com/community/rsync
 - https://askubuntu.com/a/446726/77093


Automatically move Xubuntu panel to external monitor

Try this How can I make xrandr customization permanent?
There are several ways to do that. First write a arandr script, second have the script start after login.
Follow the thread, there are more than 1 solution. The last one seems easy enough.

Cheers.


The easiest method is to boot up with your Windows 7 disc, choose System Recovery Options and then click Startup Repair. That should generally remove grub from your master boot record and allow you to boot into Windows normally.

And almost sure you have to make valid Boot CD. The only reason why your Boot CD is bot recognized can be caused by Wrong CD.


awk -v var=$var /var/ is not working as expected

If your file is HTML or XML then you should consider using a tool that is designed for markup languages.
However if you must use awk, then AFAIK you can't use variables inside a regexp constant /.../. However you can use what the GNU awk user guide refers to as a dynamic regexp or a computed regexp - basically a string expression that you can use on the RHS of a ~ comparison. So:
$ TPNum='"P16"'

$ awk -v TPNum="$TPNum" '
    $0 ~ "\\<style:style style:name="TPNum{p=1} p{print} /style:style>/{p=0}
  ' file
    <style:style style:name="P16" style:family="paragraph" style:parent-style-name="Table_20_Contents">
      <style:paragraph-properties fo:text-align="center" style:justify-single-word="false"/>
      <style:text-properties fo:color="#000000" style:font-name="open sansregular2" fo:font-size="18pt" officeooo:rsid="00050000" officeooo:paragraph-rsid="000040000" style:font-size-asian="18pt" style:font-size-complex="18pt"/>
    </style:style>

The backslash needs to be escaped in the dynamic regex because the string is scanned twice:

What difference does it make if the string is scanned twice? The
answer has to do with escape sequences, and particularly with
backslashes. To get a backslash into a regular expression inside a
string, you have to type two backslashes.


Change tab color/shadow on Nautilus Elementary with Elementary theme

i had the same problem. I solved it in the next file: elementary/gtk-2.0/Apps/nautilus.rc

I have created a new style to display the nautilus tabs on my own. I added this code just after the last style section:

style "nautilus-tabs"
{
    bg[NORMAL]              = shade (1.06, @bg_color)   # selected tab entire
    bg[ACTIVE]              = shade (0.92, @bg_color)   # unselected tab

    engine "murrine" { roundness = 4 }
}

With this, you can define your own style. Change the values as you want.

At the end of the file change this line:

widget_class    "*Nautilus*Notebook"            style "murrine-thin"

by this one:

widget_class    "*Nautilus*Notebook"            style "nautilus-tabs"

Save the file and reload the theme.

Sorry for my english. I could answer you in spanish, but english is more international.

Regards from Spain.


BCM43455 PCIe Wireless Adapter not recognised

The issue is that it cannot find your brcm/brcmfmac43455-sdio.txt file. For me, this issue happened on the CSL Narrow Box 4k. I've experimented a lot with many solutions found on the web, but the following finally did the trick:

Download the text file.
Copy it into your device's /lib/firmware/brcm/ folder.
Reboot.

Now the system should be able to find the missing file and WiFi should work as expected.

Note: I've only tested this using a patched Ubuntu image generated by the isorespin.sh script. The steps described above may or may not work on an un-patched image.

Edit: A colleague of mine has tested it on a regular Ubuntu MATE image, it works. So there's no need to use the isorespin.sh at all!


Ubuntu 12.04 server install fails with debootstrap warning

I had a similar problem and I solved it with workarround described here: http://cirrus.ucsd.edu/~pierce/fix_ubuntu_usb/


Command that will only print value once although it appears many times

If you want to keep the output lines in the same order as the input lines, use:

$ awk '!a[$0]++' file
SO4
HOH
CL
BME

How it works:

This uses associative array a to count the number of times each line has been previously seen.  If it has not been previously seen, the line is printed.


Blackberry and Ubuntu. As easy to connect?

Look at:

Smartphones and Ubuntu

Synchronize Blackberry Address book and Calendar with Evolution Directly

Can you better define which feature (sync, modem, etc.) you really need?


Xubuntu: fstab mount to /media/* is not shown on desktop

Xfce and Gnome are not the same desktop environment and do not always behave the same. When installing/using Ubuntu, you are using Unity with the Gnome desktop. When you install Xubuntu, Xfce does not function the same as gnome. The Xfce developers have not written a function to show those partitions mounted in /etc/fstab on the desktop. As a matter of fact, one of the tricks often used by those using Xfce is to add a drive or partition to /etc/fstab to prevent seeing it on the desktop.


Install dconf-editor

sudo apt-get install dconf-tools

Press alt+f2 and type dconf-editor

Navigate to desktop>gnome>remote access and change your port there, don't forget to tick the use-alternative-port option so that vino uses the one you set:


You can use the follwoing sed command for this:

sed -e 's/^>.*\^/>/g'

Explanation:

the expression searches for a string that starts with > and ends with ^
and replaces this with >
so, only the last few letters of the fasta-IDs are kept.

with your example:

$ echo ">xxx_3-13_00021^gcd
TGCCGTTATTACAATCCGGCAGTCCATACGGCAGCTTTTGCCTTACCCCAGTATCTGCAA
GATGCACTGGCTTCACAGCCGTCCTAA
>yyy_3-13_00019^group_3912
ATGGCCGTTTGCGCAAACAGTTACGCGCTCAGCGAGTCTGAAGCCGAAGATATGGCCGAT
TTAACGGCAGTTTTTGTTTTTCTGAAGAACGATTGTGGTTACCAGAACTTACCTAACGGG
CAAATTCGTCGCGCGCTGGTCTTTTTCGCCCAGCAAAACCAGTGGGATCTCAGTAATTAC
GACACCTTCGACATGAAAGCCCTCGGTGAAGACAGCTACCGCGATCTCAGCGGCATTGGC
ATTCCCGTCGCTAAAAAGTGCAAAGCCCTGGCTCGCGATTCCTTAAGCCTGCTTGCCTAC
GTCAAATAA
>zzzz_3-13_00020^cueO
ATGCAACGTCGTGATTTCTTGAAATATTCCGTCGCGCTGGGTGTGGCTTCAGCCTTGCCG
CTGTGGAGCCGCGCAGTATTTGCGGCGGAACGCCCAACGTTACCAATCCCTGATTTGCTC
ACGACCGATGCCCGTAATCGCATTCAGTTAACTATTGGCGCAGGTCAGTCCACCTTTGGC
GGGAAAACCGCAACTACCTGGGGCTATAACGGCAATCTGCTGGGGCCGGCGGTGAAATTA
CAGCGTGGCAAAGCGGTAACGGTTGATATCTACAACCAACTGACGGAAGAGACGACGTTG
CACTGGCACGGGCTGGAAGTACCGGGTGAAGTGGACGGCGGCCCGCAGGGAATTATTCCG" | sed -e 's/^>.*\^/>/g'

>gcd
TGCCGTTATTACAATCCGGCAGTCCATACGGCAGCTTTTGCCTTACCCCAGTATCTGCAA
GATGCACTGGCTTCACAGCCGTCCTAA
>group_3912
ATGGCCGTTTGCGCAAACAGTTACGCGCTCAGCGAGTCTGAAGCCGAAGATATGGCCGAT
TTAACGGCAGTTTTTGTTTTTCTGAAGAACGATTGTGGTTACCAGAACTTACCTAACGGG
CAAATTCGTCGCGCGCTGGTCTTTTTCGCCCAGCAAAACCAGTGGGATCTCAGTAATTAC
GACACCTTCGACATGAAAGCCCTCGGTGAAGACAGCTACCGCGATCTCAGCGGCATTGGC
ATTCCCGTCGCTAAAAAGTGCAAAGCCCTGGCTCGCGATTCCTTAAGCCTGCTTGCCTAC
GTCAAATAA
>cueO
ATGCAACGTCGTGATTTCTTGAAATATTCCGTCGCGCTGGGTGTGGCTTCAGCCTTGCCG
CTGTGGAGCCGCGCAGTATTTGCGGCGGAACGCCCAACGTTACCAATCCCTGATTTGCTC
ACGACCGATGCCCGTAATCGCATTCAGTTAACTATTGGCGCAGGTCAGTCCACCTTTGGC
GGGAAAACCGCAACTACCTGGGGCTATAACGGCAATCTGCTGGGGCCGGCGGTGAAATTA
CAGCGTGGCAAAGCGGTAACGGTTGATATCTACAACCAACTGACGGAAGAGACGACGTTG
CACTGGCACGGGCTGGAAGTACCGGGTGAAGTGGACGGCGGCCCGCAGGGAATTATTCCG


Create a /boot partition as ext4 with a size of 256-512MB and another partition you want to use for lvm, using for example gparted. Then manually set it up for lvm (assuming the partition you want to use for lvm is number 5):

sudo pvcreate /dev/sda5
sudo vgcreate myvg /dev/sda5
sudo lvcreate -n swap -L 400m myvg
sudo lvcreate -n home -L 60g myvg
sudo lvcreate -n root -l 100%FREE myvg

Now you can run the installer and pick the "something else" option, and select the logical volumes you just created for the use you intended.


ProFTPD fail : UserPassword Missing argument

Please remove the line which starts with :
"Warning: PHP Startup: Unable to load dynamic library ..."
and then put the "UserPassword  daemon" part and the password on one line, just like the syntax of the previous line.

By the way. It makes sense to change your passwords if this is used outside of your local LAN.


Hitting will not solve anything (since windows boot just fine), but it has to be done in order to teach who's the boss.

Having less Swap memory than the actual RAM wouldn't be a problem. I had a linux mint xfce installed in a bootable USB, no SWAP partition and still worked ok.
I think it would be a hardware problem... You said you switched the rams (I understand both at the same time conected), but did you tried each ram individually in each slot in order to detect a problem with slots and ram?

Does Windows recognize 4gb RAM?


Ubuntu 16.04 LTS on Lenovo X250 - sound issues

Did you set the sound over 100% ? In the sound parameters you can tick a box that allow to have a louder volume.
I have the same computer and installed 16.04 yesterday and have no sound issues, it was actually really low before I have done this. But after ticking that box, the volume is loud enough.


How to add an additional Sound track to an existing Video

For now this is what I have found (Still looking for the MKV way of doing it):

MP4 ONLY

You would need to first install gpac package:

sudo apt-get install gpac

Now proceed with the following command:

MP4Box -new -add OriginalMovie.mp4 -add Track2.mp3#audio:delay=300 Output.mp4

Where

MP4Box is the command to do this and yes it is capitalized
The first -new will tell MP4Box a new file will be created. You could put this at the end like "-new Output.mp4" but I wanted to put it in the beginning.
The first -add is to add the Original video file.
The second -add is to add the new track which I called Track2.mp3. It can have any other name.
The part that has the #audio:delay=300 is to tell MP4Box that this specific new track I am adding is an audio track and I need to add a Delay of 300 ms.

This way I can add the original video, insert a new track and even control the sync. The best part is, since MP4Box does not touch the video quality, it only takes a couple of seconds to add the Track, so I can test very quickly if the Audio delay is perfect or not.

Just in case, I extracted the sound from the other language like this:

avconv -i "AnotherSoundFile.mp4" Language.mp3

This would give me the mp3 sound track of that file and then I insert it to another file like I mentioned above.


Lenovo Z560 volume mute/unmute button always blinks while on battery. How do I stop that?

I think I found the solution to the problem.  See this thread:

http://productforums.google.com/forum/#!topic/chrome/TU74PFU9NNQ

It looks like the issue has nothing to do with Ubuntu or the kernel and is related to the Pepper-based Adobe Flash built in to Google Chrome.  When I followed the instructions given in that thread and disabled the Pepper Flash to use only the normal Flash (the one Adobe is going to discontinue for Linux, sadly....), the problem with my blinking led goes away.

(Note that in the linked thread, the problem was the webcam light blinking, and here it was the volume mute button blinking, but in both cases the same fix worked)

The fix listed in the thread is as follows:

Go into about:plugins, hit +Details to expand, then disable the "/home/opt/google/chrome/PepperFlash/libpepflashplayer.so" plugin, while leaving the normal flash enabled

(also not that this only affects Chrome, not Chromium (or Firefox), since only Chrome uses the Pepper-based Flash)


Suddenly No sound in Kodi, on Ubuntu 16.04.1LTS

Well it's fairly easy. Just press the F10 key and it should toggle mute/unmute. I found out about it too just recently.


How to get ubuntu 10.04 live cd for 64 bit pc

Here is the link to download Ubuntu 10.04.  Keep in mind that support for the desktop version is no longer available, but for server its valid until 04/2015.

I would recommend downloading a current version, unless you have need for 10.04.

Here is the direct link for the 64bit desktop version.


ScreenShot/PrintScreen doesn't work with menus dropped down!

As a work around you can take a screen shot with a delay for example:

gnome-screenshot --delay=7

or

xfce4-screenshooter -d 5

It seems that this issue of print screen not working in menu context has been around for awhile ... as can be seen with this bug report


How to CHANGE the account profile picture on Xubuntu

Files starting with a dot are hidden files in ubuntu.

You can press CTRL-h to show this files.

Press CTRL-h again to hide them.


How to solve unmet dependencies while installing fglrx on 12.04 64 bits?

Your answer

If you have not installed lib32gcc1 & libc6-i386, to fix the dependencies problem you should use sudo gdebi fglrx*.deb instead of sudo apt-get install fglrx-updates.

The GDebi is a tool that install .deb packages and solve automatically the independencies problems.

It is only one way of many to solve this. I recommend you use it because worked for me.

Extra information

I had some problems with the fglrx installation, see My Question. It might be useful

Reference: fglrx Installation Guide