I'd suggest booting from USB memory stick (e.g. Ubuntu 18.04 LTS). Also make sure to use 64 bit variant if you still can find 32 bit version somewhere.

The fact that lshw lists memory funny is not unexpected. The system I'm currently using has 4x8 GB of DDR3 memory and lshw listing looks basically like this:

  *-memory:0 UNCLAIMED
       physical id: 1
     *-bank UNCLAIMED
          description: DIMM DDR3 Synchronous 1333 MHz (0.8 ns)
          product: 99U5471-036.A00LF
          vendor: Kingston
          physical id: 0
          serial: 6B2B875D
          slot: ChannelA-DIMM0
          size: 8GiB
          width: 64 bits
          clock: 1333MHz (0.8ns)
  *-memory:1
       description: System Memory
       physical id: 5e
       slot: System board or motherboard
     *-bank:0
          description: DIMM DDR3 Synchronous 1333 MHz (0.8 ns)
          product: KHX1600C10D3/8GX
          vendor: Kingston
          physical id: 0
          serial: B804123E
          slot: ChannelA-DIMM1
          size: 8GiB
          width: 64 bits
          clock: 1333MHz (0.8ns)
     *-bank:1
          description: DIMM DDR3 Synchronous 1333 MHz (0.8 ns)
          product: 99U5471-036.A00LF
          vendor: Kingston
          physical id: 1
          serial: 692B865D
          slot: ChannelB-DIMM0
          size: 8GiB
          width: 64 bits
          clock: 1333MHz (0.8ns)
     *-bank:2
          description: DIMM DDR3 Synchronous 1333 MHz (0.8 ns)
          product: KHX1600C10D3/8GX
          vendor: Kingston
          physical id: 2
          serial: B704D03D
          slot: ChannelB-DIMM1
          size: 8GiB
          width: 64 bits
          clock: 1333MHz (0.8ns)
  *-memory:2 UNCLAIMED
       physical id: 2
  *-memory:3 UNCLAIMED
       physical id: 3

Note how memory:0 seems to have one UNCLAIMED bank which has one stick and memory:1 has three sticks and memory:2 and memory:3 are empty.

The slot: names seem to be okay so I would only trust those.

However, looking through sudo dmidecode output, it seems that this may be due BIOS bug because DMI seems to tell similar configuration for memory.

In the end, if grep "MemTotal" /proc/meminfo does not match the actual memory (minus GPU memory reserved for integrated graphics), then Linux cannot use all of your actual memory. If that is the case, I'd try to look for BIOS updates or try faking OS for ACPI: https://wiki.archlinux.org/index.php/DSDT. In case of broken bios, you could also try noacpi kernel flag which will disable e.g. power management as a side-effect but will help with most ACPI/BIOS problems.


OK so the problem is that the PATH is different for the User account and the root account. Try editing the rood bash profile file:

/root/.bashrc

At the bottom add the line

export PATH=$PATH:/opt/lampp/bin

To set the path for when sudo is running. Then source the profile:

sudo source /root/.bashrc


You can change this by using ccsm

Firstly, Install It by

sudo apt-get install compizconfig-settings-manager

Then, launch it using the command ccsm

Select Shift Switcher

Click on the Shortcut to initiate

A new dialog will appear, Click on grab key combination

Another dialog box will appear, perform the required key combination


How to install libelf-devel or elfutils-libelf-devel in ubuntu 18.04 hp laptop ay503tx

you need to install linix headers generic by:

sudo apt-get update
sudo apt-get install linux-generic

I see you already have downloaded the realtek wifi drivers make sure you are in the right directory and run this to install them:

cd rtlwifi_new
sudo dkms add ../rtlwifi_new
sudo dkms build rtlwifi-new/0.6
sudo dkms install rtlwifi-new/0.6
sudo modprobe -v rtl8723de ant_sel=2

Congrats you have running wifi.

Save the config with this command:

sudo /bin/sh -c 'echo "options rtl8723de ant_sel=2" >> /etc/modprobe.d/rtl8723de.conf'

Restart.

Details here:

https://h30434.www3.hp.com/t5/Notebook-Wireless-and-Networking/Realtek-8723DE-wifi-module-amp-Bluetooth-Linux-driver/td-p/6477307


Can't log in in Ubuntu 14.04 after install realtek drivers

I once faced the same problem of not being able to login in Ubuntu 14.04. I solved the problem by reinstalling ubuntu-desktop through the virtual terminal (Ctrl+Alt+F1).

So, please try it once. Hit Ctrl+Alt+F1, then enter your username and password.
Afterwards just type these commands:

sudo apt-get update

sudo apt-get install --reinstall ubuntu-desktop

Then reboot and you will be able to login.


How to add commands to be run after a systemd-controlled system service?

According to documentation I have to use ExecStop= in my battery-script.service.
Now it looks like:

[Unit]

[Service]
ExecStart=/usr/local/bin/battery.sh
ExecStop=/usr/local/bin/battery-stop.sh

[Install]
WantedBy=default.target


PHP Installation broken - shows strange php code as response

I seems this message is shown if the local php installation is broken. For me this seems to have happend when I upgraded Ubuntu 14.04 to Ubuntu 16.04.

The following commands resolved the issue:

sudo apt-get install --reinstall php
sudo aptitude install libapache2-mod-php


How do I access machines on the home network with their machine name?

First, make sure you have the Avahi daemon installed. (Should be installed by default on Ubuntu Desktop, but not on Server.)

sudo apt-get install avahi-daemon

Then to access them, add ".local" to the end of the name, for example

ssh machinename.local

I'm not sure if it's possible to remove the need to add .local


Nvidia HDMI sound is not working, cant update ALSA driver

it was true... The package build for 16.04 was corrupt. Now, 4 days later, updating the ALSA drivers work! Unfortunately it doesnt resolve my issue with my sound over hdmi with my nvidia gtx780...

Best regards,


Go to your Settings -> Displays
  Note what the value of the slider is at "Scale for menu and title bars" (mine was 1.5)
  Open a terminal
  sudo -H gedit /usr/share/applications/google-chrome.desktop
  Find this line:

Exec=/usr/bin/google-chrome-stable %U

  Change it to this (where n is the value you noted in step #2):

Exec=/usr/bin/google-chrome-stable --force-device-scale-factor=n %U

  Save/close, relaunch Chrome.

  Explanation: Ubuntu applies a system-wide scaling factor to the UI in
  hi-DPI monitors. Chrome thinks it's so special, so it ignores that and
  does its own thing.

From this answer by Brandon to this question on SuperUser
 Chrome UI size & zoom levels in Ubuntu 16.04


Is there a way to query fonts that support a particular Unicode range?

You can use the fc-list tool to list fonts matching various patterns.  One such pattern is to query fonts for their language coverage.

To query for fonts supporting Armenian (which has a two letter ISO language code hy), run the following:

fc-list :lang=hy

The same should work for other languages you are interested in.


SSH connection using key works only with -i command line

after adding IdentityFIle directive inside my /etc/ssh/ssh_config like the below

IdentityFile /path/to/private/key

ssh connection established fine


You're halfway there already!

You did the right thing by doing an lsusb as that gives you the unique vendor ID for your device.

From the ID 15f4:0131 you posted, we can infer it's an Astrometa_DVB-T2.

Then you head to LinuxTV.org, which has the best resources on the web for everything Linux and TVs.

Unfortunately, the same identical ID (which should be unique, but in this case isn't) comes with 2 demodulators:

the 2013 revision comes with a Panasonic MN88472
the 2014 revision comes with a Panasonic MN88473

So read this first so you know what you're dealing with (DVB) and then go on to there to actually build the drivers yourself¹.

As the information there is too long to paste here for your device, that's the best I can do for you.

¹Building your own drivers is not for the faint at heart! You need to have basic programming skills and know what a compiler, linker (and in this case) firmware is!


Seafile can't run for ccnet daemon Error

Use these commands:

ccnet -c ~/.ccnet -d
seaf-cli start
seaf-cli status

Line 1 runs ccnet as a daemon (a background process)
Line 2 starts seafile
Line 3 check status

From now on, you can sync your folders.


You can try
sudo apt-get -f install

-f stands to "fix broken". It will attempt to correct broken dependencies.
After this run the following :

sudo dpkg --configure -a
Then again
sudo apt-get -f install
This generally works for most cases. For more details you can look at this question.


How to insert a different header for every line with sed?

Since you specifically asked for a sed solution (I wouldn't suggest actually doing it this way - but you could):

$ sed = file | sed '1~2 s/^/>seq/'
>seq1
CWGAGATCGGAAGAGCGGTTCAGCAGGAATGCCGAG
>seq2
ACACTCTTTCCCTACACGACGCTCTTCCGATCTAGGC
>seq3
ACACTCTTTCCCTACACGACGCTCTTCCGATCTGATT
>seq4
ACACTCTTTCCCTACACGACGCTCTTCCGATCTACCGT

The first invocation sed = file inserts bare line numbers, then the second decorates themby prepending the >seq string.

OTOH if you know ahead of time that there are 770 lines, then you could do

printf ">seq%d\n" {1..770} | sed 'R file'

although this relies on the GNU sed R extension:

  R filename
  Queue a line of filename to be read and inserted into the output
  stream at the end of the current cycle, or when the next input line is
  read. Note that if filename cannot be read, or if its end is reached,
  no line is appended, without any error indication.

Of course if you don't know the number of lines ahead of time, you could do

printf ">seq%d\n" $(seq 1 "$(wc -l < file)") | sed 'R file'

but that would lose the advantage of only needing to read the file once.

In practice I'd probably use @John1024's awk solution or its perl equivalent

perl -lpe 'print ">seq" . $.' file


Automatic synchronization or backup to External HDD at every plugin

Here's an answer from our friends over at Unix Stackflow: https://unix.stackexchange.com/questions/66749/how-to-auto-sync-with-a-plugged-in-usb-mass-storage-device

It appears the most promising tool for this is DirSync Pro (apparently OSS).


How to make xcalib always start up automatically?

Well, a simple solution would be to first let the system write the settings and then overwrite them yourself ;)

So, you should add to your command a timeout at first, so as to let the system do what it has to do, and then you should overwrite these settings. This should be your command:

bash -c 'sleep 10 && xcalib -gc 1.2 monitor-profile.icc'

This will wait 10 seconds at first (you may need to tweak this timeout so as to much your needs) and then it will execute your command.

As a result, you will overwrite what the system has written and not vice versa.


deleted files from boot, now can't install anything

Find your current running kernel with:

uname -r

Then delete any vmlinuz/initrd kernel & image files from boot provided they are not the running kernel.  I suggest you create a copy of the running kernel somewhere first just in case you make a mistake.

You can remove old kernels several ways.
Just deleting them (not recommended).

Use a tool: How do I remove old kernel versions to clean up the boot menu?

Or manually remove with package manager:
https://help.ubuntu.com/community/Lubuntu/Documentation/RemoveOldKernels

Also to identify what is taking up all the space.  From a shell type the following commands and post the output.  Also what filesystem type is /boot I presume ext4?

cd /boot
du -sk *|sort -n


I can't log in because I delete `/etc/passwd`. How can I recover my files?

If you boot from a live USB you are doing the correct thing. Your hard drive will be accessible and the live USB will not delete any data in the hard drive.

Use a second USB (storage USB) to transfer the data from the hard drive to the storage USB.


Unable to create partitions on a newly bought HDD

you should probably not be using "Disks" to attempt to partition your HDD. Disks is a simple mountpoint management tool which is really handy in it's own cases but not for formatting.

Gparted is unanimously regarded as the go-to formatting and partitioning tool on linux.

You can find Gparted in you Software Center.

In Gparted, every action yo take needs to be "applied" so be sure to click that green check mark to see your changes take effect!

Also don't choose MBR (in the video I can see your drive is only 1TB not 2TB, so MBR should function for this drive yet this technology, the way I see it, is outdated).

You should choose GPT. GPT replaces MBR and is far better. Most importantly it absolves you of the need to have master and slave partitions. you can have as many primary partitions as you want (128 to be exact) and in no particular order.

from : https://www.disk-partition.com/gpt-mbr/gpt-guid-partition-table-disk-1203.html

  Compare with MBR partitioning style, GPT disk has more advantages. It
  allows each disk to have up to 128 primary partitions, and the maximum
  volume size can grow up to 18 petabytes, allowing using primary and
  backup partition table for redundancy. Also, it supports each GPT
  partition to have a unique identification ID (GUID). However, the
  maximum volume size supported by MBR disk is only 2 TB (terabytes) and
  each disk can only has at most 4 primary partitions (or 3 primary
  partition + 1 extended partition, in this way unlimited logical
  partitions can be created on extended partition). In addition, unlike
  the MBR disk, the crucial platform operation data are stored in
  partitions but not in the unpartitioned place or hidden sector. In
  addition, GPT disk district have a surplus of primary and backup
  partition table to improve the integrity of regional data structure.


Clicking a window's decoration brings the window to the top, but clicking elswhere does not!

In CompizConfig Settings, under General Options, check Raise on click.

If you don't have CompizConfig, install package compizconfig-settings-manager.


Ubuntu 18.04 LTS- How to set the default-jre with a specific version?

You may use the following command to install OpenJDK 8:

sudo apt install openjdk-8-jdk

And check the version with:

java -version


Problem while enter my password to open an editor

Those aren't actually error messages. They are output because either ssh is using the -v command line option, or loglevel is defined in /etc/ssh/ssh_config. They can be ignored in the meantime.

If you just type your password as if the message weren't staring at you it should be possible to login if everything else is ok. It doesn't matter if you type over it.

If there is something else wrong it would be best to see the actual command you entered and all of the debug messages.


Installing Ubuntu without touching Windows

Yes you can use the same method as before
That is:
Step 1: Disconnect all the hard drives except the one you want to install Ubuntu in.
Step 2: Install Ubuntu
Step 3: Reconnect all the other hard drives.
If you don't want to open the computer and disconnect the drives, that is fine too. Just be careful when you select the drives. See Guilherme's answer below about using "Something else..." option and "Location for bootloader (GRUB) installation". In particular, the Grub, also known as the bootloader, goes in the same drive as Ubuntu.
There are a few things you need to keep in mind if this is the first time you are using an UEFI/GPT system.
Point 1: Make sure the Installation media or the Live DVD/USB you install Ubuntu from boots in the UEFI mode, not the Legacy mode.
When you boot the Install USB/DVD in UEFI mode you will see a Grub based menu with

If the install USB/DVD boots in the Legacy mode, you will see a graphical page with the these choices:

I assume Windows is installed in the UEFI mode, not Legacy BIOS mode in the other hard drive. If you have Windows in UEFI and Ubuntu in Legacy modes, then every time you want to switch OS you will have to get into UEFI settings and change mode and reboot.
Point 2: Use Guided Partition Table (GPT) in the drive you install Ubuntu. This may not be necessary, but UEFI and GPT goes hand in hand, and having MBR (Master Boot Record) based partition table, may cause issues.
If you plan to use the default installation method for Ubuntu and use the whole drive, then you don't need to worry about partition schemes. Ubuntu will do everything needed.
Done
If you prefer to do your own partitioning then there is one more thing...
Point 3: You need to create an extra partition needed for UEFI. This has to be a primary partition in FAT32 format of size between 100MB to 500MB. It must have the esp and boot flags set. You may want to make it the first partition. The mount point for this partition must be /boot/efi.
You can partition the rest of the drive as you please. The default option would be to partition the rest of the drive as a single ext4 formatted partition with mount point /. Most recent versions of Ubuntu use a swap file instead of a linux-swap partition. So, you may want to skip that. You may use other partition schemes if you know what you are doing.
Bug Alert!
There is a bug (bug number: 1396379) in the Ubuntu installer that installs the grub bootloader on the first ESP it finds. See https://ubuntuforums.org/showthread.php?t=2182302 for discussions on this.
To workaround this bug you will need to take a few extra steps.
Workaround

When you boot from the LiveUSB in UEFI mode, use the Try Ubuntu
without Installing option.
Open the Gparted application when the Ubuntu desktop starts.
Select the Windows (first) drive within Gparted at the top right
corner(1):

The NVME drive in this picture does not have Windows. However, it has an EFI System Partition (ESP).

Highlight the ESP in the bottom list of partitions as shown above (2). Right click on the highlighted partition and select Manage Flags from the context menu. You will see:

You should see two flags, boot and esp checked. Uncheck those two flags. Click Close button to exit the Manage Flag window. Click the green "Apply" ✅ button if it is clickable.
You will need to restore those check marks once Ubuntu is installed using the same above process so that Windows can boot from the first drive.
Close Gparted.
This is the end of the workaround.
Hope this helps


Connect to internet using wifi and run in terminal:

sudo apt-get install r8168-dkms

Then reboot. This will install an alternative Ethernet driver for this adapter.


Getting Ubuntu Package Fresh Install List

dpkg --get selections | grep install will give you the list of packages (approx 3500-4000 on an Ubuntu Desktop system) that is apt-marked for installation on your system.

Note that this may be slightly different from what actually is currently installed. Apt looks for that delta each time it runs, and tries to install or remove any changes.

Another method is to use dpkg -l. Both methods list the contents of the dpkg database, with differing levels of detail and with different output formats.


mouse stopped working, checked htop, and HOLY WOW my kcore file is 140 petabytes!! (see screen shot)

This is only about your /proc and not about your mouse since you asked about /proc

You're off by a thousand, since the size is in bytes. According to Novell knowledge base, the kcore file is all the addressable memory of the kernel. The size correspond to the arcitecture limits and you have a 64 bit linux-system with a 128TiB kcore.

As with most files under /proc/, it's a virtual file and it's not wise to do anything with it.


SSH welcome message on 17.04 shows notice about 12.04

My question is more, is there a reason why this appears after a release-upgrade?

It is probably a new feature of Ubuntu 17.04 that it tells you that you should update your other 12.04 systems that are EOL today.

  Is this message something generic not taking into consideration the current version of ubuntu?

Yes. It is generic.

  Or maybe my system is not updated properly?

The system is updated properly. I see the same message.

To clarify what is going on there, digging deeper into the parts that generate this message, we can find that the message is generated by the /etc/update-motd.d/50-motd-news which picks the MOTD from https://motd.ubuntu.com/.

So this is just a generic MOTD from Ubuntu, which should inform you about the important news around the project.

To disable the message, open the mentioned file and comment out the line including the other or just remove that file.


Sync network-drive (Windows Home Server 2011)

Thought I might share some knowledge here.

Determine machine's IP (using the machine's name in the Windows-network won't do the job)
If necessary, start the server via Wake-On-Lan, w.g. via a RDP, ping or similar (I've been using a WHS Addin called "Lights Out" which basically is a WoL-service which uses a Windows client-software to automatically boot the server as you start the client-PC... not available for Linux, though. So this is just a workarround.)
Mount the drive

sudo mkdir /mnt/shared
sudo mount -t cifs "//192.168.0.xxx/Exchange" /mnt/shared/ -o user=User

Simply use a preferred syncing-tool like grsync and use the created mount-dir
(Or use the regular rsyn-command)

rsync /dir /mnt/shared -u -P -z

I've put all the commands in a script which I simply start manually every once in a while, but I'm sure you can make this happen automatically somehow. But the main reason why it refused to work was the fact that the drive wasn't mounted via cifs.


Error during device I/O when using USB scanner

Autosuspend of a USB port is possible through the laptop-mode-tools package.

The kernel could also play a part.

laptop-mode-tools

If you have this installed then there should be a file called /etc/laptop-mode/conf.d/usb-autosuspend.conf.

Assuming you have this file, examine the file.

Two possible settings you might want to consider:

CONTROL_USB_AUTOSUSPEND="auto" - if you set this to 0 then auto-suspend is switched off for all USB devices.
Perhaps better - you can blacklist certain devices such as your scanner by adding its USB-ID to AUTOSUSPEND_USBID_BLACKLIST.  You can find your scanner id by running lsusb.  For example - AUTOSUSPEND_USBID_BLACKLIST="046d:c025"

Kernel Boot option

You can force autosuspend to be switched off through the grub-boot option usbcore.autosuspend

Add usbcore.autosuspend=-1 to the value GRUB_CMDLINE_LINUX_DEFAULT in the file /etc/default/grub.  Dont forget to run sudo update-grub afterwards.


How can I start programming with quickly

Try this :

quickly create MyProgram

cd MyProgram

quickly run

This should bring up the default GUI interface of your program.

If it does not then there is something wrong with your installation. Try re installing it

QUICKLY how to use: Tutorial


From https://wiki.archlinux.org/index.php/ICC_Profiles I managed to find the default icc profile in OSX and use xcalib to load it.

e.g.
    /usr/bin/xcalib -d :0 /home/username/icc/Color LCD-00000610-0000-9CC7-0000-0000042731C0.icc

For some reason, when I run that from command-line I need to restart X (I just suspend to RAM and wake it again) before I notice the changes.


send the file to your gmail account as attachment and from there you can save it to google drive directly.

  uuencode file.txt  file.txt | mail your_email@gmail.com

I know this is not direct to gdrive, but as there is no other options available I use this easy approach.


Mount fstab cifs guest command not recognized

1) perhaps, just a hunch, fstab program runs before network is up.
The correct approach should be editing /etc/network/if-up.d  for updating the fstab whenever the interface goes up (and if-down.d, when it goes down). (ask for help with this)

2) Other thing: probably you had the guest user, if you want only the "guest" user to mount, ok, but you'll probably want any user to mount. you should put "user", for any user to have access.


Based on the output of the apt process, it seems you added manually some other unofficial repositories, which is okay. But when doing so you have to make sure they support you OS flavor, or at least the dists exist. You can't just add focal and hope it'll work.

When browsing manually to https://downloads.mariadb.com/MaxScale/2.4/ubuntu, there is no dist named focal, and this explains the 404  Not Found error. Same goes for http://ppa.launchpad.net/chris-lea/redis-server/ubuntu.

The error N: Ignoring file 'mariadb.list.old_1' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension speaks a little bit by itself, and should be fixed.
You can read more about managing your sources and repo lists here: Repositories/Ubuntu


Is there a way to print info/man pages to PDF?

i=gpg2; info $i | aha | wkhtmltopdf - $i.pdf

creates a decent PDF file.

LibreOffice is also able to convert to PDF:

i=gpg2; info $i > $i && libreoffice --convert-to pdf $i && rm $i

The output can compete with the above solution in my opinion.

Also there's enscript which offers interesting formatting options (seeman enscript):

i=gpg2; info $i > $i; enscript -B -o $i.ps $i; ps2pdf $i.ps $i.pdf && rm $i{,.ps}

info gpg2 | lp -d PDF

makes use of CUPS PDF (you might need to install the cups-pdf package first) to print a PDF file in ~/PDF/ – but it's not as fancy.

i=gpg2; info -ao $i.pdf $i

also works, but the output is plain ugly.


If I understand correctly, this's a problem is with X server. There are no means of switching between devices while the X server is running.

Bumblebee used 2 instances of X server being used in the same time and switch buffers between them. This attempt was just a workaround the problem and it suffers from excessive overhead.


No usb, no wired network after installing 12.04

might be good to post your hardware configuration so people would have idea how to solv you problem. Perhaps you can submit the result of "lspci"


Monitoring resource usage by single application over period of time

If you install/start collectl, it will begin collecting process stats every minute in /var/log/collectl.  you can change the frequency to be shorter/longer if you like but I wouldn't go longer.  You'll see a file with the extension raw.gz created every day at midnite.

To look at historical process data just 'play it back' by running the command:

collectl -p /var/log/filename -sZ

which will show all process data for every sample. On the other hand if you run

collectl -p /var/log/filename --top

it will show the top 10 processes by CPU every minute.  I'll leave it to you to figure out how to change the number of processes shown as well as which field to use to sort the processes, but as a hint, try

collectl --showtopopt


That's what you have disk swapspace for. Linux will page out the least used memory pages when memory runs low. When a process is in STOP state, it's pages will fast be candidate to pageout.

Since disk is much slower than RAM the system can feel slow if it is paging/swapping too much, so enough RAM is always a good thing.


How do I change the desktop wallpaper to a dual screen image

It's looking only in specific locations for the wallpapers.  In order to use your own, you will need to either locate the pictures you used, by pressing the "+" button below the thumbnails, and browsing for the picture.  I believe it defaults to looking in the "Pictures" folder in your home directory, but you can browse any folder.

Don't forget to set the option above the theme name to "Span" if you want it to span both monitors instead of repeating.


here is the detailed answer from crokodyll.blogspot


How to make Gwibber notifications clickable?

Actually, notify-osd does support this. However, gwibber does not send notifications with the necessary hints to require interaction. And the way notify-osd handles it, may not be what you want. The way this is handled in Unity, is that gwibber adds itself to the Messages indicator, and you click on there to open the gwibber UI, when you get a notification, if you wish to do that.

To make gwibber do it, even if you switch to notification-daemon instead of notify-osd, you will need to patch the code in gwibber to add the necessary hints of interactivity, to the notifications themselves.


How to pass kernel parameters from pxe server?

The first method I showed is actually correct, I just forgot to load the right kernel. Everything is working fine now.


You can use rythmbox to transfer music.

Just place the music you want to add in the ~/music folder and open rythmbox.

connect your iPod.

Drag the music from the computer to your iPod.

This method worked for my old iPod nano 3rd generation but it should work for you too.

rythmbox is usually installed in ubuntu by default so you don't have to install anything new either.


Use vimdiff in place of diff to compare configs during package updates

I wish there was (I should do something about that, I suppose). But no.

However, you can do:

Press Z.
vimdiff /etc/gnome/defaults.list{,.dpkg-new}


Are Ubuntu 20.04 updates failing on in.archive.ubuntu.com

Thanks to DK Bose's comment, changing server helped. It fails intermittently though, but it started working. Here is how to get around with this issue.
Run the following as root
cd /etc/apt
sed -i 's/in\./us\./g' sources.list

Below should be the output of your next apt-get update
# apt-get update
Get:1 http://security.ubuntu.com/ubuntu focal-security InRelease [107 kB]
Hit:2 http://us.archive.ubuntu.com/ubuntu focal InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease
Get:4 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease [98.3 kB]
Hit:5 http://dl.google.com/linux/chrome/deb stable InRelease
Fetched 205 kB in 6s (36.3 kB/s)
Reading package lists... Done

Hope this helps!
~Abhay Dandekar


How to use namespaced-openvpn for VPN per application?

Okay. It seems this question is too complicated for someone to actually answer or perhaps it has been answered before and no one cared to reply.

Anyhow: I worked on it for another day and have figured that since I am only interested in exposing one port for the web interface of an application, I may as well use socat. So I did.

After creating the namespaced-openvpn connection and starting the application inside that network namespace, I ran the following command in a dedicated terminal:

sudo socat tcp-listen:PORT-TO-FORWARD-TO,fork,reuseaddr exec:'ip netns exec vpn socat STDIO tcp-connect\:127.0.0.1\:PORT-TO-LISTEN-TO',nofork

Notes:

PORT-TO-FORWARD-TO is the port that I want the port to be forwarded to (in the root network namespace)
PORT-TO-LISTEN-TO is the port of the application, which I want to expose into the root namespace
127.0.0.1 I had to use the actual localhost-IP (not localhost or a name, because it does not seem to get resolved properly)
make sure to escape the double-point-character (:) inside the single-quotes
I am not sure whether this causes DNS-leaks; from what I have checked it does not, but I cannot be certain since I do not know how to test it

What's left to do:

automate all the commands in order to start the application and forward the port on startup: I do not need this currently, but if / when I find out how to do it, I shall add it here


Google online account is always asking for access grant

It's definitely not the correct behaviour.

There is already a bug reported for a similar situation, but not enough information has been provided unfortunately. If you could help by providing the missing information, that would help us a lot in finding out what's wrong:

https://launchpad.net/bugs/1029289


burned successfully but coastered dvd media

Simply reburn it, it is rewriteable.  A suggestion is never burn at maximum speed, especially when you have less 2 gigs of memory or are doing something else on the computer a the same time. The lower speed allows the  buffer to fill before writing to the DVD, permitting a constant flow of data.


How do I install linux on my computer without using a usb or cd?

Since you cannot boot from USB, you could try booting over the network.

However, there's an easier method using CD's.  I see in your question that you cannot load the images onto CD because of size.  I assume it's because the computer has a CD drive and not a DVD drive.

In this case, please follow this link to download an burn a MinimalCD.  It's a tiny image that will start the installation, and pull all the data(packages) over the internet during installation.  This can easily fit on a CD since most of these images are under 60 MB, and a typical CD holds ~650-700 MB.


WARNING: CPU random generator seem to be failing, disable hardware random number generation

if you have same problem you need upgrade your BIOS it's very important and it's very serious problem.

AMD bug, should be bios update available.

Thanks @crip659


To resolve this part

cmp: EOF on /tmp/tmp.EnmkqhupY9 which is empty

You can try adding your local hostname to /etc/hosts
127.0.0.1 localhost
127.0.1.1 <your hostname>


smbmount has been deprecated in favor of mount.cifs. I want to say "since at least 2008" but I can't find a reference.

Here's the accompanying manpage. You would use these parameters instead:

 sudo mount -t cifs //192.168.0.100/ samba/ -o rw

You might also need to install the cifs-utils  package.

......


Installing Java 7 in 16.04 and using multiple Java versions

The openjdk-7-jdk package is available in Ubuntu 14.04. Although you don't have Ubuntu 14.04 currently installed, you can keep using the Ubuntu version that you have and install Ubuntu 14.04 as a guest OS in VirtualBox. I recommend that you keep the Ubuntu 14.04 VirtualBox guest OS files for as long as you need to use Java 7 and also make backups of these files.

To install openjdk-7-jdk in Ubuntu 14.04 run:

sudo apt-get install openjdk-7-jdk

Java 7 is also available at the Java SE 7 Archive Downloads webpage of the official Oracle website. Select the .tar.gz file which is currently named jdk-7u80-linux-x64.tar.gz (for 64-bit architecture) or jdk-7u80-linux-i586.tar.gz (for 32-bit  architecture) and follow the installation instructions at this answer. Oracle gives this warning that the packages in the Oracle Java Archive packages are no longer updated with the latest security patches.

  These older versions of the JRE and JDK are provided to help developers debug issues in older systems. They are not updated with the latest security patches and are not recommended for use in production.

openjdk-8-jdk is not included in the Ubuntu 14.04 default repositories, so install the Oracle Java 8 JDK version by following the instructions from: How can I install Sun/Oracle's proprietary Java JDK 6/7/8 or JRE?. Switch between Java 7 and Java 8 by following the instructions from: Switch between multiple java versions. update-java-alternatives and update-alternatives commands list the jre/jdk installations and the paths to their executable files and provides a way of switching between Java versions.


Before using fancontrol you have to generate a configuration using sudo pwmconfig from fancontrol package, which replace lm-sensors.

You may also find some relevant info at How to manage two video cards on a laptop (ATI and Intel)?


hdparm - version that accepts non-ascii characters for ata passwords

I'm not 100% sure what you are trying to achieve here but this command:
hdparm --security-unlock $(printf '\x48\x65\x6C\x6C\x6F\x20\x57\x6F\x72\x6C\x64') /dev/sdc

would send the listed hexadecimal values from the printf command to hdparm and should produce

security_password="Hello World"
/dev/sdc:
Issuing SECURITY_UNLOCK command, password="Hello World", user=user

Is this what you want? If not, you can put just about anything in the brackets to translate from any base to any other. No need to use a different version of hdparm, less still to compile from source.


Can't open Orca settings on Ubuntu 13.04

The orca setup is now working in 16.04 (LTS)

Please upgrade to the latest version of Ubuntu.


Modify sound indicator menu to hide controls from inactive player or remove it after closeing

Sound indicator, with no active player (launchers only, no control buttons)

Sound indicator, with active player (full control buttons)

15.10

Have same build steps as 14.04.

Remove player from menu after close

Modify src/service.vala for desktop menu to HIDE_INACTIVE_PLAYERS.

this.menus.insert ("desktop", new SoundMenu ("indicator.desktop-settings", SoundMenu.DisplayFlags.SHOW_MUTE|SoundMenu.DisplayFlags.HIDE_INACTIVE_PLAYERS));

And modify src/sound-menu.vala for add_player function to remove_player_section if it is not running & hide inactive is set.

public void add_player (MediaPlayer player) {
    if (this.notify_handlers.contains (player))
        return;

    if (player.is_running || !this.hide_inactive)
            this.insert_player_section (player);
        else
            this.remove_player_section (player);
    this.update_playlists (player);

Hide player controls (Prev/Play/Next) from menu after close, keep only its launcher

Same as 14.04, no change.

14.04

Download build dependencies and source

sudo apt-get build-dep indicator-sound
apt-get source indicator-sound

Choose the behavior you want:

Remove player from menu after close

Modify src/service.vala for desktop menu.

this.menus.insert ("desktop", new SoundMenu ("indicator.desktop-settings", SoundMenu.DisplayFlags.SHOW_MUTE | SoundMenu.DisplayFlags.HIDE_INACTIVE_PLAYERS));

I added | SoundMenu.DisplayFlags.HIDE_INACTIVE_PLAYERS, You can remove SoundMenu.DisplayFlags.SHOW_MUTE | if you want hide volume control with muted players.
Hide player controls (Prev/Play/Next) from menu after close, keep only its launcher

Modify src/sound-menu.vala

Add new flag HIDE_INACTIVE_PLAYERS_CONTROLS = 128 with , in end of previous line.

public enum DisplayFlags {
    NONE = 0,
    SHOW_MUTE = 1,
    HIDE_INACTIVE_PLAYERS = 2,
    HIDE_PLAYERS = 4,
    HIDE_INACTIVE_PLAYERS_CONTROLS = 128
}

Add bool hide_inactive_controls; variable to hold flag status

bool hide_inactive;
bool hide_inactive_controls;
bool hide_players = false;

Add this.hide_inactive_controls =... line. to pass SoundMenu constructor flag parameter to its variable.

this.hide_inactive = (flags & DisplayFlags.HIDE_INACTIVE_PLAYERS) != 0;
this.hide_inactive_controls = (flags & DisplayFlags.HIDE_INACTIVE_PLAYERS_CONTROLS) != 0;
this.notify_handlers = new HashTable<MediaPlayer, ulong> (direct_hash, direct_equal);

Add if (player.is_running || !this.hide_inactive_controls) { and }. to wrap instructions which create (prev/play/next) in menu item. So they are not created only if player is running or hide flag is inactive.

if (player.is_running || !this.hide_inactive_controls) {
    var playback_item = new MenuItem (null, null);
    playback_item.set_attribute ("x-canonical-type", "s", "com.canonical.unity.playback-item");
    playback_item.set_attribute ("x-canonical-play-action", "s", "indicator.play." + player.id);
    playback_item.set_attribute ("x-canonical-next-action", "s", "indicator.next." + player.id);
    playback_item.set_attribute ("x-canonical-previous-action", "s", "indicator.previous." + player.id);
    section.append_item (playback_item);
}

Add if (this.hide_inactive_controls) { to next }. To force player menu section recreation when player is-running state changes.

var handler_id = player.notify["is-running"].connect ( () => {
    if (this.hide_inactive) {
        if (player.is_running) {
            this.insert_player_section (player);
        }
        else {
            this.remove_player_section (player);
        }
    }
    if (this.hide_inactive_controls) {
        this.remove_player_section (player);
        this.insert_player_section (player);
    }
    this.update_playlists (player);
});

Finally, modify src/service.vala. Add our new created flag | SoundMenu.DisplayFlags.HIDE_INACTIVE_PLAYERS_CONTROLS to desktop menu.

this.menus.insert ("desktop", new SoundMenu ("indicator.desktop-settings", SoundMenu.DisplayFlags.SHOW_MUTE | SoundMenu.DisplayFlags.HIDE_INACTIVE_PLAYERS_CONTROLS));

Build and install

cd indicator-sound-12.10.2+14.04.20140313/
mkdir build
cd build/
cmake ..
make
sudo make install

Now, the players will disappear after closing them.

12.04

Download build dependencies and source

sudo apt-get build-dep indicator-sound
apt-get source indicator-sound

Modify src/player-controller.vala, Replace "rhythmbox.desktop" with "xrhythmbox.desktop" in the two occurrences. (just different name)
Build and install

cd indicator-sound-0.8.5.0/
./configure
make
make install

Note: That was a quick trick, the correct way may be:

Replace

  this.custom_items[widget_order.TRANSPORT].property_set_bool (MENUITEM_PROP_VISIBLE,
                                                          this.app_info.get_id() == "rhythmbox.desktop");

with

  this.custom_items[widget_order.TRANSPORT].property_set_bool (MENUITEM_PROP_VISIBLE,
                                                          false);

and

if (this.app_info.get_id() == "rhythmbox.desktop"){
  TransportMenuitem transport = this.custom_items[widget_order.TRANSPORT] as TransportMenuitem;
  transport.handle_cached_action();
}
else{
  this.custom_items[widget_order.TRANSPORT].property_set_bool (MENUITEM_PROP_VISIBLE,
                                                           true);
}

with

this.custom_items[widget_order.TRANSPORT].property_set_bool (MENUITEM_PROP_VISIBLE,
                                                           true);


Wireless earphones mic not working in ubuntu 18.04

I fixed this issue by this command as there were missing multimedia extras plugins on my system.
sudo apt install ubuntu-restricted-extras

make sure to restart the system after this.


Why does xterm alt-backspace produce the Unicode character U+00FF?

You wanted a man page?

man xterm

   eightBitInput (class EightBitInput)
           If  “true”,  Meta  characters (a single-byte character combined
           with the Meta modifier key) input from the  keyboard  are  pre‐
           sented  as a single character, modified according to the eight‐
           BitMeta resource.  If “false”, Meta  characters  are  converted
           into  a  two-character  sequence with the character itself pre‐
           ceded by ESC.  The default is “true”.

No applause or thank you necessary: Just click the sad little grey check-mark till it turns green.  For any future questions: just click here.  ;-)


Ubuntu 16.04.2 cannot login after installing xpra

Install the official packages from xpra.org instead, and these problems will go away.


Can't connect to 802.1x EAP network in recent Ubuntu versions

I know a workaround
http://ubuntuforums.org/showthread.php?t=2168015,
try to remove

[802-1x]
system-ca-certs=true  <--THIS LINE

in the file:

/etc/NetworkManager/system-connections/[Your connection]


try with this guide

Ubuntu Quantal Installation Guide

And check the section - Using Ubuntu-supplied fglrx/Catalyst - Work fine with my HD7850 and kernel 3.7.0-7 .

Note: I had two minimal issues but the solution is here:

ATI Proprietary Driver Over/Underscan setting ignored after
reboot.
How to remove the “AMD Testing use only” watermark?


How to run graphical python program on Ubuntu server?

I'm assuming you are accessing the server remotely. If so (or if you can) see below.

For development you may want to look at using jupyter notebook. It runs on the server and you can access it from a web browser on another computer. You can wright you code or scripts in it and save/load programs there. The main thing is that over the remote browser session you can get images to appear so it may serve your needs. I've quite liked the tool from my use.

  The Jupyter Notebook is an open-source web application that allows you to create and share documents that contain live code, equations, visualizations and narrative text.

jupyter


How to boot to Ubuntu ISO image on drive?

Forgive me if I'm wrong, but if /dev/sda1 is already mounted at /boot, wouldnt you get a redundant /boot in your path when you're also specifying it in the $isofile variable? I think GRUB is looking for the image in /boot/boot/, so maybe try changing to:

set isofile="ubuntu-14.10-desktop-amd64.iso"


How do I replace new line and space with  using sed for every calendar month?

I'd use a for loop to go over the months needed, for 1–12 that's:

var='
\n
'
for i in {1..12}; do
  cal -hm$i | sed '1{s|^|'"${var}"'|;s|$|
|};2,${s|\(..\) |\1	|g;s|^|
|;s|$|
|};$s|$|\n
|' >>file.html
done

This works in 16.04. As pointed out by others in the comments and confirmed by the man page, in 17.10 (et seqq.) cal doesn't have the -h option any more. You can use ncal instead, see man cal for details.


I don't see in your post: update-rc.d recordbyradio enable

Maybe the service isn't enabled and that's why it's not working.


GRUB won't always start when usb hdd present

It might have something to do with the boot order of your machine, make sure it boots from the hdd before booting from a usb device. Boot order should be something like: 1 cdrom, 2 hdd, 3 usb, 4 networkboot. I hope this helps.


From your image , it appears that you are using a development version of Chromium.

You can simply click and resize as in this picture:

See how my extensions look like after dragging the bar to the left:

Now to the right:

Note that you can hide any extensions that you don't want:

And you can restore it back , from the extensions, in the wrench menu.

Edit: I missed that you have tried to drag it. I used to have this problem.
What I did is that I hid all of the extensions and enabled them again from the extensions settings.

Also make sure to have the latest daily updates. Otherwise switch to a stable version. ( because maybe it's a bug).


Is there a way to set the theme for Cairo-Dock to be the same as the Dash theme?

Nevermind. I was looking under themes for different themes but the default theme automatically matches the Dash theme.


Making Windows seasoned students feel comfortable with Kubuntu

Disk labels

Ubuntu community docs: https://help.ubuntu.com/community/RenameUSBDrive

  This guide is primarily for external drives such as USB hard drives,
  USB flash drives, and flash memory cards. You can label internal
  disks...

You could edit internal disk labels same way as the external disks.

Custom Kickoff menu - names, tags, subsections

The KDE has a GUI: KDE Menu Editor

On line: http://docs.kde.org/stable/en/kde-workspace/kmenuedit/

or

Start the KMenuEdit:

  KMenuEdit can be started either by right mouse button clicking the
  application launcher button on the panel and choosing Edit
  Applications..., or by typing kmenuedit in the KRunner line.

and press the F1 / Help-> KDE Help Center Handbook

  KMenuEdit allows editing the menu of KDE application launchers:
  Kickoff, classic K menu or Lancelot Launcher.

  KMenuEdit allows you to:

  View and edit the menu used by the current application launcher (Kickoff, classic menu or Lancelot Launcher)
  Cut, Copy and Paste submenus and items
  Create and delete submenus and items
  Change the order of submenus and items
  Hide items and add new submenus and items

The setting can be moved to the another system:

  Transfer application launcher settings

  There is no way to transfer menu settings using the GUI, you have to
  do that manually and copy the following files to the target user:

  KMenuEdit stores the menu hierarchy in
  $HOME/.config/menus/applications-kmenuedit.menu and
  $HOME/.local/share/desktop-directories contains desktop files for
  submenus you created. In $HOME/.local/share/applications/ you find the
  desktop files for the custom items you created.

  The shortcuts for each application are stored in
  ~/.kde/share/config/kglobalshortcutsrc, but export/import does not
  work because the UUIDs of the shortcuts do not match up between
  systems, even though the .desktop files are the same. You have to
  assign all shortcuts manually again.


Personal Cloud Storage from backup files

No, Ubuntu does not give personal cloud storage anymore: that once came together with UbuntuOne, but the service has been shut down since.

About other cloud storage services I cannot improve over what you can find by googling around a bit.

Bye.


You can look up what a failed status of PHP mail() means here:

http://php.net/manual/en/function.mail.php

  Returns TRUE if the mail was successfully accepted for delivery, FALSE otherwise.

The false return value indicates the mail was not accepted for delivery by your MTA.

On a local Linux server, if you've done no other configuration changes, PHP will probably be trying to submit mail using the sendmail command.  This command is provided by a number of different MTAs, such as postfix, or classic sendmail itself.

If you have a minimal Ubuntu installation you may not have an MTA installed at all.  Otherwise, you may have one, but it may not be configured to be able to send outgoing mail.

Or, your computer may not have port 25 access to the internet.  It is common for consumer-level connections to block outgoing connecitons on port 25 which effectively stops these computers sending outgoing email.

If you don't want to set up a full mail server (MTA) locally on your server or your ISP's policy prohibits you from doing so, you can relay mail through another server (such as your ISP's).

To do this you need to install a local MTA but configure it only to relay all outgoing mail through another server instead of trying to deliver it directly.

There are various lightweight MTAs which only exist to bridge the gap between a local sendmail function and a remote SMTP server, but it's probably better to install an MTA with proper queuing functionality like postfix, even though you will not be using most of postfix's features.

If you install postfix it's relatively easy to do this because Ubuntu gives you a menu when installing (if you missed the menu, you can use sudo dpkg-reconfigure postfix to do it again later, though that'll ask you even more questions).  You probably want what Ubuntu calls a "satellite host", and you want to be final destination for no mail (eg nothing under "mydestination" or "relay_domains" in postfix's configuration, and use "relayhost" to refer to the external SMTP server).


How to minimize usage of CPU/memory by ffmpeg when recording video

1. Make a lossless RGB output first

ffmpeg -y -framerate 25 -video_size 1280x1024 -f x11grab -i :0.0 -c:v libx264rgb \
-crf 0 -preset ultrafast temp.mp4

The input is RGB, so using the encoder libx264rgb will avoid the potentially slow RGB to YUV conversion that would occur if you use plain libx264.
This uses the quickest x264 encoding preset: ultrafast.
The output will be lossless because -crf 0 is used.

2. Then re-encode it

The output from the first command will be huge, and most dumb players can't handle RGB H.264 so you can re-encode it:

ffmpeg -i temp.mp4 -c:v libx264 -crf 23 -preset medium -vf format=yuv420p out.mp4

You can experiment with the -crf value to control output quality. A subjectively sane range is 18-28, where 18 is visually lossless or nearly so. Default is 23.
Use the slowest preset you have patience for: ultrafast, superfast, veryfast, faster, fast, medium, slow, slower, veryslow. Default is medium.
I added -vf format=yuv420p to ensure the output works with dumb players like QuickTime and Windows Media Player. You can omit this if you're uploading it to YouTube or only playing it on VLC, mpv, MPlayer, or any other FFmpeg based player.

Also see

FFmpeg Wiki: H.264 Encoding Guide


I have found out it seems to be a wayland related problem. When I use xorg there is no problem, so, although I haven't been able to solve the problem, I have at least been able to narrow down and avoid its source.


try

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -f

to meet dependencies


"Could not connect to any X display" with gnuplot (Ubuntu for windows)

I could solve my problem by downloading Xming on my Windows system, so that linux can access X11
The qt terminal works well in this condition.

Thanks for the help !


How do I install the latest python-opencv in 64-bit Ubuntu?

You heard wrong.

Installing python-opencv on 12.04 64-bit works just fine. See apt-get log for details.


Apparently that does not work, although the man page of snap suggests it should. Instead remove the snap package:

sudo snap remove telegram-desktop

then reinstall with devmode configuration:

sudo snap install --devmode telegram-desktop

If already saved user configuration data is of concern for you, then you can restore the user configuration from your previous install. That is automatically saved for 31 days when you remove a snap. List the snapshots:

snap saved

Take note of the number of the telegram-desktop snapshot in the first column, and restore the snapshot with

snap restore <number>


Cannot not boot into Ubuntu 19.10 after installing Plymouth theme

I just solved it in another way.

I forced shutdown by holding down the power button and entered BIOS.
Without changing anything in BIOS I tried to boot again and after the purple boot page loaded I used Esc to see the text mode. Everything was OK but GDM could not start and it didn't get to the LOGIN page.

I used ctrl-alt-f2 to get to the command line. I entered my user and password.
then I tried this and it solved my problem:

sudo update-alternatives --config default
sudo update-initramfs -u

And without even rebooting the system using ctrl-alt-f1 I got to the login page (gdm) and meanwhile I am using my Ubuntu to type this answer.


Firefox won't start from launch menu - hangs on FUTEX_WAIT_PRIVATE

I have this very same issue.  When I start my machine and log into Unity, one of the first things I will launch is Firefox.  The icon in the Unity bar flashes a few times and then nothing.

I go to into System Monitor and find 2 Firefox processes there...one that is a zombie and other sleeping.  If I do a 'strace -p ' on the sleeping process, it shows it is stuck on FUTEX_WAIT_PRIVATE.

This didn't occur when I was on 12.04, just since updating to 12.10.  I've also seen the suggestion to disable the Firefox add-ons for Unity Desktop, Unity Websites, Global Menu Bar Integation, and Ubuntu Firefox Mods.  I've done this, but get the same result.

Now, if while in System Monitor I kill the sleeping process, I can try to relaunch.  Typically the 2nd launch works fine.  But the first never does.

I'm thinking this still has has something to do with Unity, even with Unity integration add-ons disabled, because if I use Gnome or XFCE for desktop management...then Firefox launches fine the first time, or any time.


how to remove VLC from computer search and as default player

Since you mentioned "installing new VLC", and since dpkg cannot trace it, you probably installed it as a snap.
sudo snap remove vlc should remove vlc installed with snap.


prepared a bootable usb stick from ubuntu-12.04.3-desktop-amd64.iso but it says'cannot find operating system'

You can try Linux Live to make a pendrive bootable from windows.

Try again to make pendrive bootable by formatting it once. It should work.


Infinite login loop - Signature not found in user keyring

I had this problem too. From TTY1, you have to change the password to the previous one that was not giving you the problem. Then you should log out and log back in with the old password. After that you can change your password back to the new one and everything should be fixed.

You could also run (taken from this answer):
ecryptfs-rewrap-passphrase /home/.ecryptfs/$USER/.ecryptfs/wrapped-passphrase


I just finished doing this myself and I did it using Samba.  I'm able to mount the samba shares from my windows & ubuntu computers

Here are some links that helped me get started:

https://help.ubuntu.com/community/SettingUpSamba

http://ubuntuforums.org/showthread.php?t=280473


What speech service does Orca Screen Reader use?

By default orca uses espeak as a TTS-engine. You can use espeak directly from terminal or script:

espeak "hello world"

To use it with a different language use

espeak --voices

to list the available voices, and then use the -v option to specify the voice, e.g. for your language:

espeak -vro "some romanian slang here"


I figured out that there is a setting in /etc/phpldapadmin/config.php of auto_number...

I set:
$servers->setValue('auto_number','enable',true);
$servers->setValue('auto_number','mechanism','search');
$servers->setValue('auto_number','min',array('uidNumber'=>5000,'gidNumber'=>5000));

I could then log in with both su - and via the graphical shell.


Just choose option "try ubuntu" ( without installing ). It is a perfect way to see if everything works. You will probably see you have all drivers with Ubuntu installation and then you can choose to proceed with installation.


Yubikey + VMware Horizon + Windows Remote Desktop

Maybe:
The solution doesnt exist for you right now. Bug fixed after 10.3.5 of VMware tools, which does not appear for Horizon Clients.
https://kb.vmware.com/s/article/67532
https://www.vmware.com/resources/compatibility/sim/interop_matrix.php#interop&103=&139=
Or, Maybe not. What version of VMware Horizon are you using?
https://www.vmware.com/resources/compatibility/sim/interop_matrix.php#interop&569=&139=
The second and third link is a grid describing what VMware Tools correlate to VMware Horizon 7 versions. It appears VMware Horizon 7 version 7.5.0 and above with VMware tools version 10.3.10 and above should have a fix for your problem according to the article on my first link.


How To Make .RTF Files Non-Executable in Ubuntu 16.04

Open Nautilus.

Navigate to one of the RTF files in question and left single click on it. Not a double click, a single left click to give it focus.

Hover your mouse over the top menu bar to make the "File, Edit..." menu appear then use:

Click Edit drop-down menu
Click Preferences option
Click Behavior tab
Observe the radio option buttons under Executable Text Files
Check radio button View executable text files when they are opened

Note though when you do this and double click on a Bash Script file it will be opened with the default text editor selected instead of being executed.


StartupWMClass will not change WM_Class of Eclipse IDE

StartupWMClass does not change the actual application window class, but only tells the desktop manager what window class should use to identify the application window(s).

The problem is that Eclipse uses Eclipse as window class despite its version.

If you want to use more than one Eclipse version at once and have windows grouped correctly, with the ability to pin the application icon as favorite, you should edit the plugin.xml of package you are using.

For Eclipse Java EE IDE I succesfully edited the plugin.xml in

<eclipse-root>/plugins/org.eclipse.epp.package.jee_<current-version>

changing the properties

plugin/extension/product/@name
plugin/extension/product/property[@name=appName]/@value

(not sure wich one is enough) to whatever value you prefer. The same value you should put in .desktop file as StartupWMClass.


Cannot add Libre Office Start Center to Favourites?

Copy the .desktop file of the control center, /usr/share/applications/libreoffice-startcenter.desktop to your local ~/.local/share/applications folder. Change the line NotShowIn=GNOME; to NotShowIn=, or delete the line. The launcher will now be found in your dash. You can launch it and then right-click the icon in your dash to pin it.

Some background: the line NotShowIn=GNOME; prevents the launcher from actually showing up in the dash. While you can edit the system wide desktop file, it is safer practice to copy the .desktop file locally and edit it there. You do not need root permissions for that, and your changes will not be overwritten by future updates. You can edit the system wide file if you want the change to be effective for all users on the system.


Restore content of corrupted system file

From debian-8 :

[Unit]
Description=Network Manager Wait Online
Documentation=man:nm-online(1)
Requisite=NetworkManager.service
After=NetworkManager.service
Before=network-online.target

[Service]
Type=oneshot
ExecStart=/usr/bin/nm-online -s -q --timeout=30
RemainAfterExit=yes

[Install]
WantedBy=network-online.target


Got error 'GRUB installation failed' while installing ubuntu 12.04 lts on windows 8

Old post, but I need Rep! Maybe this will help someone anyway

I followed this guide UEFI and I finally got the same error to go away.

If you read 1. Boot mode matching -- "If you're dual-booting with another OS, the two OSes' boot modes should match. Most computers that ship with Windows 8 and later use UEFI to boot that OS, so this configuration dictates use of UEFI mode when installing and booting Ubuntu."

So it seems like you need to download GRUB or get rid of window 8.1. I am not familiar with how to install GRUB, but this link will be useful GRUB MANUAL.


Enter the Preferences of Firefox.
Go to Sync.
Click Set Up Firefox Sync.


How to allow an argument AND no argument and act differently on them with getopts

To check for missing arguments, start optstring with a colon : by changing "p:sdih" to ":p:sdih"
Then, add a case argument before \?) like so:
:) echo "Option $OPTARG has no argument."
   exit
   ;;

You can check for more than one option by evaluating "$OPTARG"

If an option-argument is missing:

If the first character of optstring is a colon, the shell    variable specified by name shall be set to the     character
and the shell variable OPTARG shall be set to the    option character
found.

Otherwise, the shell variable specified by name shall be set    to the question-mark character, the shell variable OPTARG    shall be
unset, and a diagnostic message shall be written to    standard error.
This condition shall be considered to be an    error detected in the
way arguments were presented to the    invoking application, but shall
not be an error in getopts    processing; a diagnostic message shall
be written as stated,    but the exit status shall be zero.

More information can be found here


Overriding configuration options for unattended-upgrades

So if you want to:

use unattended-upgrades
and
to change its behaviour
and
not to change the package scripts inside unattended-upgrades themselves

(so basically have your cake and eat it too ;-) )

You'll have to:

cron a daily script
that greps today's date in var/log/dpkg.log
sends you an email every day

if the email is empty: nothing happened, otherwise you'll have the log so all the empty and full emails together is what you asked for.


Bootup error: grub rescue> unknown file system

Well firstly, why did you format your H: drive? That had Ubuntu on it!
You can fix this by getting your Ubuntu CD, booting from it, and reinstalling Ubuntu on whatever partition you want to. This will also reinstall GRUB2 and therefore make your system able to boot Ubuntu and Windows 7 (which, by chance, is the system I use myself)

Hope this helps!
-whiskers75 :)


It seems to get that far in posting tasks, but it is usually not related to battery state. Often it is video related, but could need other boot parameters.

You should first try nomodeset as a boot parameter at grub menu. Works for most video issues, but depending on video card/chip other setting or other devices may need different settings or both nomodeset & other settings.

https://help.ubuntu.com/community/BootOptions

On first boot after install, press e on getting the GRUB bootloader menu.
Hold shift from BIOS boot to get menu if only one system installed.
Using arrow keys navigate to and delete quiet and splash and type the word nomodeset in their place


start Apostrophe markdown editor from comand line

Use this command:
flatpak run org.gnome.gitlab.somas.Apostrophe <your file>


1)Estimated at Q1-2015.

2)Yes you could do it,but that is basically jailbreaking.
As for the devices on which you could do that I suggest you carefully read this list:
https://wiki.ubuntu.com/Touch/Devices
But you could get the best results on Nexus devices because those are the devices used by the developers themselves for testing.


Is there any advantage to setting up a personal cloud instead of running a personal server without virtualization?

Firstly: "cloud" is marketing jargon for virtualisation but it tends to mean flexible virtualisation, where there's some elasticity and you can move things around. That the case, you'd require more than one host machine to do it and by the sounds of it, you don't want or need that.

Your real comparison is between virtualisation and no virtualisation.

Why would somebody actually want to virtualise a machine?

If they needed to run different versions or configurations of a platform
If the software needed the whole server to roam over and could damage other apps
If the virtual servers were being provisioned to separate users
They need to test various setups before deploying
Consolidation of multiple hardware servers into one beast.

I don't see anything there that applies to you.

You talk about separating services but I don't see any benefit to you of doing that. You can take a normal machine and play around with it, install a mail server and if you don't like it you can just uninstall. There's no reason why this would effect another running service.

The only time it might is if you want to test a new configuration of an existing system without any downtime. In this case, you could provision a new VM, install and test, but you could easily do the same with a desktop and virtualbox. Vbox actually makes things a lot simpler.

There are benefits to virtualising but they only usually hit home when you're trying to turn a room full of slow, hot servers into a much leaner, efficient setup or if you have a lot of users who all need their own install space. For a single user with a single machine, you'll see more negatives than positives.


How can I remove "Install This" from my ubuntu USB installation?

There are basically two ways to run Ubuntu from a USB drive.

The first is to do a regular install and select the USB drive as the target for installation. Be sure to select the right drive for writing GRUB to the Master Boot Record (MBR). If you select your internal drive by mistake then your computer will not boot if your USB drive is not connected, even though your intention is to boot into Windows.

The second is to use the program Startup Disk Creator on Ubuntu to create a Live USB install. To add persistence select the option "Stored in reserved extra space" under the question "When starting up from this disk, documents and settings will be:" and then use the slider to reserve as much space as you need to store your documents and extra applications.

If you want to remove the "install this" icon from your desktop all you have to do is uninstall the package called "ubiquity". Do this with:

$ sudo apt-get remove ubiquity

Note that this only works if you've enabled persistence when creating the live USB. If you use the first method then ubiquity will be uninstalled as part of the installation process.


A little udev magic.
create
/etc/udev/rules.d/90-qualcomm.rules
SUBSYSTEM=="usb", ATTR{idVendor}=="05c6", ATTR{idProduct}=="1000", RUN+="/usr/sbin/usb_modeswitch -W -v 05c6 -p 1000 -K"

Let udev reload the roules.
P.S. fixing wrong file name
sudo udevadm  control -R

Replug the modem.
found udev-rule


How to avoid password request for sudo for crontab scripts?

Sometimes running a process from root's crontab may cause issues with initial file ownership and rwx mode; those may not be correctly preserved.

In any case:

1) to create a new user, keep it simple:

 $ sudo deluser my-user  # if "my-user" is a regular user
 $ adduser my-user
 $ sudo gpasswd -a my-user sudo

2) to include a new entry with a NOPASSWD tag in sudoers or in a file (e.g. /etc/sudoers.d/60_my-user_rules), make the colon stick to the tag, i.e. NOPASSWD:
I've not seen it before with interspersed space and yr rule becomes:

 my-user my-host = NOPASSWD: /full/path/to/cmd [parameter1 [| parameter2 [| ...]]]

Adding (ALL) before the NOPASSWD: is optional as the rule defaults to (ALL:ALL) anyway. You may however want to not only run your cmd/script with root privilege but also run it as either a given user (spec-user) or as a member of a given group (spec-group) or both. In that case, the rule becomes:

 my-user my-host = ([spec-user][:spec-group]) NOPASSWD: /full/path/to/cmd [parameter1 [| parameter2 [| ...]]]

This will actually restrict yr passwordless sudo disposition to one user, one host and one command. You can harden this rule by specifying the optional parameter(s) to that command. In that case the rule will apply only for that/those exact parameter(s).
For scripts, you could further harden this rule by ensuring that the rule applies only if the script was not modified in any way. This is a way to avoid script-hijacking. This is done through cmd-aliasing and specifying SHA-sums in /etc/sudoers.d/60_my-user_rules.

HTH. Please report if you experience issues with that answer.


Why can't I see the sudoer permissions for another user in Ubuntu 18.04?

The man page for sudo describes the -U option like this:

-U user, --other-user=user

    Used in conjunction with the -l option to list the privileges for user
    instead of for the invoking user. The security policy may restrict
    listing other users' privileges. The sudoers policy only allows root or
    a user with the ALL privilege on the current host to use this option.

This option has not changed since at least Ubuntu 14.04. So, the user who checks this need to have ALL privilege on the system.


Ubuntu 12.04 CD-R doesn't start when i start the PC

Without a specific model, it's hard to tell you exactly how to do this, but:

SafeBoot is likely to be blocking CD boot, so you are indeed headed in the right direction.
Note that not all BIOSes want F12 - some like DEL, some F2 and so on.

Also, ensure you are in fact pressing the F key - on my HP Pavilion G6, to get F2 I have to hold [fn] + [BRIGHTNESS DOWN], to get F3 I have to hold [fn] + [BRIGHTNESS UP] and so on.


18.10 upgrade from 18.04 -- Login loop. Can't mount private data

It looks like the passphrase is correct, since the recovery script "Inserted auth tok with sig [193135fb7689a807] into user session keyring" OK.

There's few results now when searching for mount (2) "system call failed: bad address", but this bug report involves upgrading from 18.04.1 to 18.10 also, and a thread on Ubuntu forums and they can't seem to mount anything even in a terminal. If you're not able to mount anything either, it's looking like a bug in the upgrade somehow, or at least something wrong with the upgrade & eCryptfs.

To recover (or at least backup) your home files, I would:

Boot a live ISO of Ubuntu 18.04 (but trying a live 18.10 might work too, in case it's only an upgrade related problem)
Run ecryptfs-recover-private on your mounted home partition, mounting/decrypting your home files
Copy/backup your files so they're at least safe

Then, in your main 18.10 install, I'd try creating a new user with an encrypted home, verify that they can log out & in successfully, and delete & re-create your main user & copy your backed up home files to your new home.


Which has the most updated Gnome-Shell: Gnome Remix 12.10 or Ubuntu Gnome 13.04?

Ubuntu GNOME is formerly known as Ubuntu GNOME Remix and is the official gnome shell flavor of ubuntu.
Refer to wiki here

Latest Ubuntu GNOME/Gnome Remix version is 12.10 but 13.04 Gnome Remix is around corner, and it can be upgraded into Gnome 3.8 through PPAs

[UPDATE!] To get most updated Gnome-Shell, get latest Ubuntu version and upgrade gnome manually through PPA.  You can see from GNOME3 Team PPA page the supported Gnome version by different Ubuntu versions

Ubuntu 13.04 --> Gnome 3.8

Ubuntu 12.10 --> Gnome 3.6

Ubuntu 12.04 --> Gnome 3.4


ubuntu 18 freeze when systemctl restart systemd-logind.service

Restarting systemd-logind is not good for your graphical session(s).  I would have expected the session to crash and log you out instead, but that's not what they imply either.  I have no idea what they were doing.  I would suggest rebooting instead of running the restart command.

In case you set it to hibernate, make sure that you have also tested hibernation, e.g. systemctl hibernate command :).


"wine: cannot find L"C:\windows\system32\runas.exe"

This seems to be Wine 5.0 Stable Branch (winehq-stable), however this branch have not all features (This problem have been answered on r/wine_gaming), so you need install a brach witch supports that command. In this case, wine staging (winehq-staging) can execute the command your looking for.

Install winehq-staging

If you installed wine 5.0 succesfull, you can install winehq-staging by running:

sudo apt install --install-recommends winehq-staging

You can see more details of this command at wine.org


Ubuntu 17.04 keyboard not responding after suspend

Basically, run this in a shell to confirm you are applicable to this solution:

dmesg | grep i8042

and confirm you get this output

[ 1.514469] i8042: PNP: PS/2 Controller [PNP0303:KBC,PNP0f13:MOUE] at 0x60,0x64 irq 1,12
[ 1.525273] serio: i8042 KBD port at 0x60,0x64 irq 1
[ 1.525287] serio: i8042 AUX port at 0x60,0x64 irq 12
[ 1.526035] input: AT Raw Set 2 keyboard as /devices/platform/i8042/serio0/input/input3
[ 21.927438] input: SynPS/2 Synaptics TouchPad as /devices/platform/i8042/serio1/input/input10

then, add the boot parameters i8042.direct and i8042.dumbkbd to /etc/default/grub. For example, run

sudo nano /etc/default/grub

Find the line that begins GRUB_CMDLINE_LINUX_DEFAULT= and edit it to include the new parameters, so that after your edit it looks something like

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash i8042.direct i8042.dumbkbd"

Save by pressing Ctrl+O, exit by pressing Ctrl+X, and run

sudo update-grub

Source: Some time traveler here on Ubuntu Forums


Ubuntu One app doesn't autostart after I renamed Ubuntu One folder

Solution for all users from the same machine

If you want to make .Ubuntu One folder (and, like this, make it hidden) the default folder for Ubuntu One application for all users from the same machine, you have to edit three files where this directory is set.

Edit /etc/xdg/ubuntuone/syncdaemon.conf file with root privileges, find and change the line:

root_dir.default = ~/Ubuntu One

with the line:

root_dir.default = ~/.Ubuntu One

Edit /usr/bin/ubuntuone-launch file with root privileges, find and change the line:

U1ROOT = os.path.expanduser('~/Ubuntu One/')

with the line:

U1ROOT = os.path.expanduser('~/.Ubuntu One/')

Edit /etc/xdg/autostart/ubuntuone-launch.desktop file with root privileges, find and change the line:

Exec=/bin/sh -c '[ -d "$HOME/Ubuntu One" ] && ubuntuone-launch'

with the line:

Exec=/bin/sh -c '[ -d "$HOME/.Ubuntu One" ] && ubuntuone-launch'

Another one thing that you must to do is to edit the command for Ubuntu One application in Startup Applications:

Run the following command in terminal:

rename 's/Ubuntu\ One$/.Ubuntu\ One/' /home/*/Ubuntu\ One

to rename Ubuntu One to .Ubuntu One for all other users.
Finally restart Ubuntu One application from terminal with the following command:

u1sdtool --quit && u1sdtool --start

Solution only for the current user

As dobey suggest in this comment, the above solution may be overwritten when installing updates, so it will be better to change the settings for each individual user:

Copy syncdaemon.conf file from /etc/xdg/ubuntuone/ to ~/.config/ubuntuone/.
Edit the copied file (~/.config/ubuntuone/syncdaemon.conf), find and change the line:

root_dir.default = ~/Ubuntu One

with the line:

root_dir.default = ~/.Ubuntu One

Edit and change the command for Ubuntu One application in Startup Applications to:

/bin/sh -c '[ -d "$HOME/.Ubuntu One" ] && u1sdtool --start'

Finally restart Ubuntu One application from terminal with the following command:

u1sdtool --quit && u1sdtool --start


Server is dropping SSH connections, then not allowing me to log back on

The most likely explanation for why you were kicked off of one of your virtual servers, and why you were warned that its SSH key had changed, is that the server's IP address changed. This would have resulted in it going down for a short time (or, if you're using DHCP, was perhaps the result of it going down for a short time). That is, either the server went down, or, more likely, just its network connection was interrupted. This would have interrupted the SSH connection in progress and also could have resulted in the IP address changing so that when you tried to connect to the same IP, you would have been connecting to a different (possibly virtual) machine (with a different SSH key). Or, so that when you tried to connect to the same machine with a different IP, you may have been connecting to a machine whose IP was the same as the IP address of a machine the client had previously connected to (which would give the same error about the SSH key changing).


How do I get statistics about my recoll index?

You can get raw statistics about the index size by checking the size of the index directory, by default ~/.recoll/xapiandb: du ~/.recoll/xapiandb

With a recent Recoll version, you can also get more structured statistics from the Recoll GUI: open the "Term explorer" tool (yes I know, not too intuitive...), and choose the "Index statistics" entry from the top dropdown list


How do I sort a wordlist by string length?

I assume you want to do this on the command-line.

Most command line tools work in a line-based manner, so it is straightforward with awk, sort and cut, see for example this other question:

# Print line-length and the line
awk '{ print length, $0 }' infile |

# Sort numerically by line-length
sort -n                           |

# Remove line-length number
cut -d' ' -f2-

Output:

1
b
f
gg
123
4rr
k3j3

See man awk, info sort and info cut for more.


Is the Ubuntu Application Review Board dead?

The Ubuntu App Review board is certainly not dead/scrapped by any stretch of imagination. Its just that we are undergoing a transition period in forming new ARB with new members, Our processes have slowed down a bit and there is a low volume on the mailing list. So Kindly bear with us as we are in a transition process.

Regards

Bhavani

On behalf of the ARB


How can I persistently change nfs-kernel-server grace period settings?

find file "/usr/lib/systemd/scripts/nfs-utils_env.sh"

Change the line that starts with "echo RPCNFSDARGS"
to:

echo RPCNFSDARGS=\"-L 10 -G 10 $RPCNFSDOPTS ${RPCNFSDCOUNT:-8}\"

for more info

# man rpc.nfsd

       -L  or  --lease-time seconds
          Set the lease-time used for NFSv4.  This corresponds to how often clients need to confirm their state with the server. Valid range is from 10 to 3600 sec‐
          onds.

   -G  or  --grace-time seconds
          Set the grace-time used for NFSv4 and NLM (for NFSv2 and NFSv3).  New file open requests (NFSv4) and new file locks (NLM) will not be allowed until  after
          this time has passed to allow clients to recover state.


How do I completely reset network settings?

It depends what sort of connection you have and whether you have had to manually tweak some settings for it, as sometimes you need to do in the case of a wireless connection.

If you have a wired connection and have simply been altering the settings with Network Manager, you can unplug your Ethernet cable, go into Network Manager and delete all the wired connections (eth0, autoethernet, etc) and then reboot. This has worked for me before. On restart, your wired network will be detected and automatically configured with DHCP to set up ip addresses and DNS settings. This assumes, however, you have a dynamic ip address: you will still have to specify some settings manually if not.

If you have manually altered any settings such as disabling DNSmasq or manually specifying nameservers by creating a fixed resolv.conf, or even changing firewall settings, then you will need to reverse these first and then remove your connections from network manager and reboot.

If none of these approaches are successful, you may need to login to your router and check the settings there.


The only way to answer this question 100% accurately without knowing all of the various settings, tweaks, and customisations you have made to your system over the last few years is to try it. This is not as risky as you might think, because you said that the Ubuntu Desktop installation is running in a VM. This gives you the ability to "rollback" if things go sour.
This is what I do when updating VMs:

Clone the VM
Upgrade the clone
Test the clone

So long as the clone is good, then I use the clone. If it's no good, I delete the clone and continue using the original. The nice thing about this is that if I ever need to go back to the previous version for whatever reason, the old VM is sitting there waiting.
VMs are "cheap". Don't be afraid to clone/delete/destroy them to test a theory


How to use Ubuntu QML Dialog or other Popup without any buttons?

Well, I found an answer to my own question, I believe I am going to have to make my own dialog inheriting PopupBase, and it is as simple as having PopupBase {} as the root element in my MyDialog.qml file. I know because I found the actual Dialog.qml file from the Ubuntu QML library, and that's exactly how they did it.


How can I toggle between two audio outputs via terminal?

I built a script which does the switching. I call it using xbindkeys. I'm sure it could be improved, because I'm not very good with grep, and it's not ideal that the script works on the basis of numbers instead of names. The script is big because it takes a lot of effort to automate the process, but here are the essential parts:

# Identify any active sink inputs (audio streams - identified by number).
pacmd list-sink-inputs

# Identify the next sink (output - identified by number or by name).
pacmd list-sinks

# Switch the sink input to the next sink.
pactl move-sink-input "$sink_input" "$next_sink"

# Change the default sink to the next one.
pactl set-default-sink "$next_sink"


You can use blkid to get the UUID for the drive, then set that in your /etc/fstab to mount your drive each and every time to the same location.

Example:

:~$ sudo blkid
/dev/sda1: LABEL="Seagate Backup Plus Drive" UUID="6AAA4323AA42EB61" TYPE="ntfs"

As we can see the UUID there so take a note of that.  We will use the UUID for the fstab.

Create a mount point for it:

sudo mkdir /media/Seagate

Now, all I need to do is to add that mount to the fstab file:

sudo nano /etc/fstab

Add the line as follows:

UUID=6AAA4323AA42EB61 /media/Seagate ntfs defaults,nofail 0 0

If my drive was formatted as ext4, I would just change the ntfs to ext4.  After I save the file with a Ctrl+O, then all I have to do to get the mount to go right now is sudo mount -a if the drive is not mounted.  Every reboot the drive is always mounted now at the same spot.

EDIT: It has been brought to my attention that if the drive is not plugged in, the host might go into Maintenance mode before booting all the way up.  Adding nofail to the line should work so that it skips that drive during boot if it is not connected.

Hope this helps!


Dual monitor resolutions won't stick after boot unknown

Well I figured out my problem and figured I'd post what I did in case anyone else runs into something similar.

In the end, I edited my xorg.config file, added a .xprofile file and deleted my .config/monitors.xml file.

xorg.config

Section "Monitor"
        Identifier      "aticonfig-Monitor[0]-0"
        Option          "VendorName" "ATI Proprietary Driver"
        Option          "ModelName" "Generic Autodetecting Monitor"
        Option          "DPMS" "true"
        Option          "PreferredMode" "1920x1080"
        Option          "Primary" "true"
EndSection

Section "Monitor"
        Identifier      "VGA0"
        Option          "RightOf" "aticonfig-Monitor[0]-0"
        Option          "PreferredMode" "1280x1024"
EndSection

Section "Screen"
        Identifier "aticonfig-Screen[0]-0"
        Device     "aticonfig-Device[0]-0"
        DefaultDepth    24
        SubSection "Display"
                Viewport  0 0
                Depth     24
        EndSubSection
EndSection

Section "Module"
        Load    "glx"
EndSection

Section "ServerLayout"
        Identifier     "aticonfig Layout"
        Screen         "aticonfig-Screen[0]-0"
EndSection

Section "Device"
        Identifier  "aticonfig-Device[0]-0"
        Driver      "fglrx"
        BusID       "PCI:1:0:0"
        Option      "Monitor-DVI-0" "aticonfig-Monitor[0]-0"
        Option      "Monitor-VGA-0" "VGA0"
EndSection

.xprofile

xrandr --addmode VGA-0 1280x1024

A new monitors.xml file was auto-generated on startup and still contains the ??? for the unknown monitor (VGA-0) but it does not contain the duplicates anymore.

Everything seems fine now


12.10 64-bit install freezes on Asus UX32VD

sorry .. i am french , but ...

the final 12.10 version of ubuntu work quiet well on asus ux 32vd for me, double boot with win 7 pro.

I used the amd 64 version , booting from a cd . Probably because of using the esc touch at the beginning, i suppose the cd start on uefi mode: a black screen with a line like " grub loader  ..." then the live session begin normally. (Previously i did 4 partition after reducing the "data" partition of win : / 20 go ; swap 4,5 go ; home 4 go ; "reserve boot " 500 mo. ). I click on the icon "install" after connecting wifi; and choose the personnalise option for that the installation use my 4 partition.

When the install was finish , the reboot was correct , grub had ubuntu and win, but win 7 didn't be able to start : message like " unable to locate valid efi file ". But ubuntu start with no problem.

I just have to load boot repair and use it. At the end there was an advertisement like " may be you should have to add an entry in the bios ...". but ...

I restart and grub had 2 line more : win loader efi , win repair efi ( approximately) ; and this work with no problem.  So it's great.

What works ? Keys for chicklet led ; wifi ; sound ; and evrything with good velocity.

Problems ? keys for adjust screen light ; unable ( for the moment to read a recent dvd even with VLC; and may be the length of battery seems short .

These are only first impression , I didn't have time to solve thes "small" problems ( I hope ! ) but anyway , thanks to canonical for this work , essentially to arrive to install the dual boot wheter the uefi bios.

Hope this will be useful for you. Malain


Cannot find -lGL but I've installed the Nvidia driver

You can make symbolic link:

sudo ln -s /usr/lib/nvidia-331/libGL.so /usr/lib/libGL.so

Or you can install GLX development files:

sudo apt-get install libgl1-mesa-dev


You can't use the tweepy API without registering your credentials.

  Tweepy tries to make OAuth as painless as possible for you. To begin
  the process we need to register our client application with Twitter.
  Create a new application and once you are done you should have your
  consumer token and secret. Keep these two handy, you’ll need them.

Look at this example code:

from __future__ import absolute_import, print_function

import tweepy

# == OAuth Authentication ==
#
# This mode of authentication is the new preferred way
# of authenticating with Twitter.

# The consumer keys can be found on your application's Details
# page located at https://dev.twitter.com/apps (under "OAuth settings")
consumer_key=""
consumer_secret=""

# The access tokens can be found on your applications's Details
# page located at https://dev.twitter.com/apps (located
# under "Your access token")
access_token=""
access_token_secret=""

auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.secure = True
auth.set_access_token(access_token, access_token_secret)

api = tweepy.API(auth)

# If the authentication was successful, you should
# see the name of the account print out
print(api.me().name)

Source: http://docs.tweepy.org/en/v3.2.0/auth_tutorial.html


liblzma.so is already in Ubuntu (see /usr/lib/x86_64-linux-gnu/liblzma.so and /lib/x86_64-linux-gnu/liblzma.so.5.0.0, and you don;t need to recompile it. Unless you really need it, I recommend you remove all references to liblzma from /usr/local/lib.


For more info see the link below

How to open files as root via a right click

Nautilus as Root in Ubuntu


Have you tried booting without the wlan? Although you cannot connect to the Internet, you at least can confirm the problem is coming from the combination including your wlan card.

If this does work: (If your current wlan adapter is pci, maybe you can remove it and) borrow someone elses USB wifi-adapter and plug it in when (successfully) booted up and try to connect to the Internet than.


Change gtk-2 scrollbar to something like overlay scrollbar (in appearance)

The solution is in /usr/share/themes/Ambiance/gtk-2.0/gtkrc – for example, for Ambiance theme. You can edit this file through Terminal (Ctrl+Alt+T):

sudo gedit /usr/share/themes/Ambiance/gtk-2.0/gtkrc

It contains anything about everything, so be careful.

If you don’t mind about the procedure, you can download my file and replace the gtkrc with it, by the command:

sudo cp "~/Downloads/gtkrc" /usr/share/themes/Ambiance/gtk-2.0/gtkrc

and whithin the quotation marks put your path for the downloaded file.

The procedure

•   Under the block style "default" you can find some lines starting with GtkScrollbar. GtkScrollbar::slider-width is clear to define slider width, so put the value "3" for it.

•   To remove scrollbars steppers we add two more lines:

GtkScrollbar::has-forward-stepper = 0
GtkScrollbar::has-backward-stepper = 0

and change the GtkRange::stepper-size to "1".

•   Now, we go to change the colors! Under the block style "scrollbar", put the same orange color for three bg colors:

bg[NORMAL] = @selected_bg_color
bg[PRELIGHT] = @selected_bg_color
bg[ACTIVE] = @selected_bg_color

Of course you can use different numbers on your choice. For example, if you want the slider to get darker when you hold it by mouse, use smaller values for ACTIVE mode.

•   At last, in the same block under the block engine "murrine", I applied some modifications to make the slider look like overlay:

roundness = 0
contrast = 0.0
trough_shades = {1.3, 1.2}
glowstyle = 3

Here is the result (it will be a bit better now, because I’ve edited gtkrc after making these screenshots):


GNOME3 won't be in 11.04. There is a PPA available, but it still has some issues that will be ironed out over time.

How do I install and use the latest version of GNOME?
Will I be able to switch to Gnome-Shell in 11.04?


How to add annotations to a scanned PDF using Evince?

Document Viewer (evince) supports adding and saving annotations in scanned documents. Evince 3.18.2 from the Ubuntu 16.04 default repositories also supports highlighting of text snippets, but not of images. The instructions for adding annotations to a PDF document in Document Viewer are here. If these instructions don't work on your system, then report it as a bug.

As soon as you close the little annotation window, the icon for the annotation should appear in the same place in the document where you added it. The annotation icon looks like a tiny post-it note which is attached to the document by a push pin. Clicking on the note shows the annotation in an annotation popup window.


Configuring Python Development version installation

Your issue is not related to the installation of the development package for python but since you decided to use Intel’s MKL library to build PSI4 you have to have them properly installed somewhere.

For a Linux compilation though you could select the ATLAS library as stated in the Recommendations for BLAS and LAPACK libraries:

sudo apt-get install libatlas-dev

Then you'll be able to launch configure without any problem:

../configure --prefix=/usr/local/psi4 --with-blas='-lf77blas -latlas' --with-lapack='-llapack -lcblas'

Tested OK with psi4.0b5.tar.gz on 12.04 LTS and 13.10.


Will the Logitech T650 rechargable wireless touchpad work with Ubuntu?

As of Feb 19, 2014 there is a new firmware update on the Logitech site that enhances out of the box gestures support for this touchpad. The firmware update process requires a windows box, but once it is done you can use the touchpad on Linux with the enhanced features without any extra software.

Here is the link:
http://www.logitech.com/en-us/support/touchpad-t650?section=downloads&crid=398&bit=32&osid=14&softwareid=11370


How do I delete the entire history (Recently Used Items) in the dash?

An alternative way, with a simple interface to remove all record logs of Recently Used files and applications in Ubuntu 12.04 is to follow these simple steps:

Click on the control icon (cog wheel on top right hand corner of
display screen);
Select System settings;
Click on All Settings tab at the top of the dialogue window that
opens up;
Select Privacy icon;
Select tab Recent Items;
Under "Forget Activities option" listed, select All in the drop-down
box on the right-hand side of the option;
Click on Delete History button;
Click on Yes to the confirmation dialogue;
Close System Settings application window;

Job is done!

Do this a couple of times and it will become second-nature to cleaning up and protecting yourself every time.


There is a way!!!  AWESOME!  Modify the Keyboard in Linux!


The problem was my mouse, the Mad Catz MMO 7.

The fix was to create "xorg.conf" in /etc/X11 and then edit it to contain:

Section "InputClass"
Identifier "Mouse Remap"
MatchProduct "Mad Catz Mad Catz M.M.O.7 Mouse|M.M.O.7"
MatchIsPointer "true"
MatchDevicePath "/dev/input/event*"
Option    "Buttons" "24"
Option    "ButtonMapping" "1 2 3 4 5 0 0 8 9 10 11 12 0 0 0 16 17 7 6 0 0 0 0 0"
Option    "AutoReleaseButtons" "20 21 22 23 24"
Option    "ZAxisMapping" "4 5 6 7"
EndSection

Reboot and enjoy.


Is there any software that really disables laptop's touchpad?

Your laptop should have a key combination to disable the touchpad still if you are asking for a software then you can search in the software centre for pointing devices and install that.

you'll find it in system > preferences > pointing devices

there you'll find the option to disable touchpad under General tab


You can bypass cpufrequtils if it's not installed or not working these commands will adjust your frequency:

to set the high and low frequency boundaries is to use the following commands:

First, list supported frequencies:

cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies

To list the current low boundary set use this command:

cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

or list the max:

cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

To set the low to 1200 for example, use this command:

echo "1200000" | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_min_freq

To set the max to 2700 for example use this command:

echo "2700000" | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_max_freq

The default governor is set to "ondemand" and will only max out if needed or under system load. The CPU will not clock high under low load. To set the CPU to a static frequency, use "performance" and set the max_freq to the desired frequency.

To list available governors, use the following command:

cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors

To list current governor, use the following command:

cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

To set the current governor to performance, use this command:

echo "performance" | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor

You can even adjust the individual cores by substituting cpu* with the actual cpu such as cpu0, cpu1, cpu2, or cpu3 depending on how many cores you have.

here is some more info