Script to move files to new directory periodically I'm new to Linux, and looking for help with a script. I'm using Resilio to back up photos from our iPhones. They go to '/media/data/phones/myiphone/resilio'

unfortunately resilio imports the photos in their iOS folders, each of which could contain up to 100 pictures per folder. As a folder fills up, blasted iOS makes a new random DCIM folder (100APPLE, etc), so folders will be added to the /resilio directory periodically as dictated by the iPhone. This is the part I'm finding tricky as I don't want to change the script each time a new DCIM folder is added.

I would like to extract any pictures and videos in each of these "iOS" folders and move them to a new single directory so all pics are in one folder (sorry, directory):

/media/data/phones/myiphone/pics

I would like for this to be done once a day.

(The pics directory will then be synced to my windows machine where I do my photo editing, etc. but that's not the part I need help with.)

If someone could walk me through this from beginning to end, including how to schedule the script to run, I would tremendously appreciate it. Pretend like you were explaining it to a kindergartner (who can read and type).

I'm happy to clarify anything that is unclear. Thx!!

First write a simple script to move the picture/videos to the desired directory. Something like the following, in a file named "backupPhotos.sh". I must assume that you know how to use a text editor.

#!/bin/bash

cd /media/data/phones/myiphone/resilio
find . -type f -exec mv {} ../pics \;

The first line says to run this script using /bin/bash (typically the default shell that you use in a terminal window). The line starting with "cd" changes the current working directory to the directory where your photos are saved by Resilio. The last line moves all the files under the resilio directory to the pics directory (only files will be moved "-type f", not the directory structure.

then do:

chmod 755 backupPhotos.sh
mkdir /media/data/phones/myiphone/pics

The chmod command tells Ubuntu that the file contains an executable script. The mkdir command creates the "pics" directory to hold the pictures/videos. If you already have the pics directory, then you don't need to do the mkdir.

Try out the script by typing the command

./backupPhotos.sh

in the directory where you created that file. Please take precautions to ensure that you have the pictures saved somewhere else during this testing phase, just in case something goes wrong. After you run the script, all the directories under "resilio" should be empty, and all the pictures/videos should be in the "pics" directory.

Once you are confident that this is working correctly, you can schedule it to run using crontab.
Before doing the next command, you should identify your preferred text editor by typing

export EDITOR=gedit

This will set your preferred editor to "gedit" (temporarily). Replace "gedit" with any text editor that you like and have installed. Then type the command

crontab -e

This will put you in your favorite editor with a likely empty crontab file. There should be some text in the crontb file, but it should all be commented out with the "#" character. You will add a line at the end of the file to schedule running your new script. The line will be:

0 5 * * * /path_to_script_directory/backupPhotos.sh

where "path_to_script_directory" is the full path to where the script is located (something like /home/mkinsocal). The three asterisks mean run the script every day. The "0 5" means run it at 0 minutes after 5AM. Note that you must have the computer up and running at 5AM every day for this to work. Once you have finished adding the line to your crontab file, save it,  and you are done.

You can do this with man find

Something like this would help:

find ./ -iname *.jp?g -exec cp '{}' photosDir/ \;


Ubuntu Server 16.04 installs on /sdc but fails to boot I am doing a clean install of Ubuntu Server 16.04 LTS on a machine with a single internal SSD. After completing the install, the system fails to boot and prints a single line fsck output, with the rest of the screen entirely blank.

This very same server installs Ubuntu Server 14.04.4 LTS just fine, so this is very specific to 16.04 LTS. I've tried installing every which way I can think of in 16 and I get the same results every time: installation completes with no errors, but upon reboot I get a black screen with that one line of fsck output after rebooting :(

I noticed that one big difference between 14 and 16 installs on this server machine (which is unexceptional, it's just a generic Broadwell i5 box with 16GB RAM and Samsung 850 EVO SSD) is that Ubuntu 14 detects and installs the drive as /sda whereas Ubuntu 16 detects and installs the drive as /sdc -- furthermore, Ubuntu 16 detects the USB flash drive with the Ubuntu install as /sda! This strikes me as .. very incorrect.

How can I get the Ubuntu Server 16.04 install to stop treating the USB installation drive as /sda?

Edit: per request, here's the output of fdisk after pressing alt+→ near the end of the install

here's the output of

# mkdir /mnt/ssd
# mount /dev/sdc1 /mnt/ssd
# nano /mnt/ssd/etc/fstab

When I boot into "rescue mode" from the USB install media (no option to boot in recovery mode is presented to me), I get the following options for "device to use as a root file system"

/dev/sda1
/dev/sda5
/dev/sdb1
Assemble RAID array
Do not use a root file system

Notice that no /sdc filesystem is detected or shown. However, when I enter console under /sda1 and fdisk -l I do see what I installed as /sdc!

I tried "Reinstall GRUB boot loader" targeting /sda1 and I get an error. I tried it again with /sda as the target, and that seemed to work.

But rebooting, same black screen, single like fsck output unfortunately.

I noticed the same behavior with 16.04 net install.

If your issue is the same as mine, it actually booted fine it's just showing you tty7.

Try hitting ctrl+alt+F1 that should take you to the terminal with a login prompt.

This looks like a similar problem I had with a previous Ubuntu. It was installing the boot loader to the Usb drive. I had to manually install a boot loader (grub or whatever) to the internal ssd.


Ubuntu 14.04 Realtek Semiconductor Co., Ltd. RTS5227 PCI Express Card Reader isn't working I've read some other posts issuing this problem. But without an solution for exactly this problem.
I've installed Ubuntu 14.04 on my Lenovo T440s.

Realtek Semiconductor Co., Ltd. RTS5227 PCI Express Card Reader isn't working on it.

After I pushed a SD Card into the slot, nothing happened.

# lspci

02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5227 PCI Express Card Reader (rev 01)
    Subsystem: Lenovo Device 220c
    Flags: fast devsel, IRQ 16
    Memory at f0500000 (32-bit, non-prefetchable) [size=4K]
    Capabilities: [40] Power Management version 3
    Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
    Capabilities: [70] Express Endpoint, MSI 00
    Capabilities: [100] Advanced Error Reporting
    Capabilities: [140] Device Serial Number 00-00-00-01-00-4c-e0-00
    Capabilities: [150] Latency Tolerance Reporting
    Capabilities: [158] L1 PM Substates

# lshw
    *-pci:0
         Beschreibung: PCI bridge
         Produkt: Lynx Point-LP PCI Express Root Port 6
         Hersteller: Intel Corporation
         Physische ID: 1c
         Bus-Informationen: pci@0000:00:1c.0
         Version: e4
         Breite: 32 bits
         Takt: 33MHz
         Fähigkeiten: pci pciexpress msi pm normal_decode bus_master cap_list
         Konfiguration: driver=pcieport
         Ressourcen: irq:17 memory:f0500000-f05fffff
       *-generic UNGEFORDERT
            Beschreibung: Unassigned class
            Produkt: RTS5227 PCI Express Card Reader
            Hersteller: Realtek Semiconductor Co., Ltd.
            Physische ID: 0
            Bus-Informationen: pci@0000:02:00.0
            Version: 01
            Breite: 32 bits
            Takt: 33MHz
            Fähigkeiten: pm msi pciexpress cap_list
            Konfiguration: latency=0
            Ressourcen: memory:f0500000-f0500fff

greetz

working on MSI GE60 I've got a Realtek Semiconductor Co., Ltd. RTS5227 working on windows but not in linux mint (based on ubuntu).

ATTENTION / IMPORTANT :

use this method can possibly induce the device to not recognize the card reader after a reboot. I've not understood yet what's going on but the device seems not able to enumerate on pci bus. I fixed that by cold boot on windows (with official driver).

I found some tutorials for rts5209 and tried to adapt them :

https://vidyut.net/realtek-sd-card-reader-working-ubuntu/

http://dainaccio.wordpress.com/2013/07/14/realtek-sd-reader-mounting-problems-under-linux-mintubuntu/#more-836

I took the sources for RTS5229 from realtek website (PCIE RTS5229 card reader driver for Linux) : no more than 2 links in my message, tutorials seems more important --> google

then I had do do a little more code modification than in the linked tutorials in rtcx.c in order to build without error : comment the declaration of proc_info in the rtsx_host_template initialization line 206.

(before)
.proc_info = proc_info,

(after)
//.proc_info = proc_info,

once I get through this I built the driver and try to go with it, but obviously the link between driver and hardware was not there.

So I took the name of my device and try to modify the code in order to have the right device name.
Go in the first lines (55) of rtsx.h and adapt the definition of the device name to your need :

(before)
#define CR_DRIVER_NAME "rts5229"

(after)
#define CR_DRIVER_NAME "rts5227"

After what I modified the target of the Makefile :

(before)
TARGET_MODULE := rts5229

(after)
TARGET_MODULE := rts5227

after what

make clean
make
sudo make install
sudo depmod
sudo modprobe rts5227

verify that your device is not using rtsx_pci module (lspci -v) if its the case you need to use the Dainaccio way to fix that (near the end of second tutorial).

when your module is correctly loaded a ls /dev should show you a new interface (for me /dev/sdb) :D

In fact that's not really clean.The thing is there should be a lot more understanding of the difference between the 2 card reader version and a lot more understanding of the driver to make that work fine.

The driver is basically functional, you can mount / unmount partition, write and read on the card, insertion and removal is detected. I have not tested the automount. But anyway a lspci -v with the driver working will show you that this solution is not clean : the peripheral class is not recognized so others values I think. By a brief look in the code I also saw many reference hard-coded to rts5229. they could be some work to be done...

anyway, have a nice day !

~~~~~

You can try following code for enable rtsx_pci module on boot.

echo "rtsx_pci" | sudo tee -a /etc/modules


Trouble downloading packages list due to a "Hash sum mismatch" error When I check for updates, I get a "Failed To Download Repository Information" error.

This is what comes up under details:

W: Failed to fetch gzip:/var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_natty_main_source_Sources  Hash Sum mismatch,
E: Some index files failed to download. They have been ignored, or old ones used instead.

Just remove all the content of /var/lib/apt/lists directory:

sudo rm -rf /var/lib/apt/lists/*

then run:

sudo apt-get update

I have resolved all the packages not being installed by running this command:

sudo apt-get install PACKAGENAME

For each of the packages. They are now installed and the "Hash Sum mismatch" error has gone.


How can I enable hardware acceleration for an ATI Radeon HD? When playing high definition video (720p and 1080p) the CPU reaches 100% and freezes the image at regular intervals.

According to the manufacturer this accelerator is capable of hardware acceleration for HD video.

Clearly something is not right.

This is the output of vainfo:

ivan@ivan-NT-A2400-NT-A3500:~$ vainfo
libva: libva version 0.32.0
Xlib:  extension "XFree86-DRI" missing on display ":0.0".
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/dri/fglrx_drv_video.so
libva: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit

Thanks for the help.

Here you have the information of vainfo:

ivan@ivan-NT-A2400-NT-A3500:~$ vainfo
libva: libva version 0.32.0
Xlib:  extension "XFree86-DRI" missing on display ":0.0".
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/dri/fglrx_drv_video.so
libva: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit

I have not yet installed / uninstalled anything in the system. This PC came with the system preinstalled. ATI drivers are installed.

Here I have picture with info on X:

Sorry:

This image shows vainfo information and drivers of my system.

Tested for Ubuntu 11.10 and any supported card ATI card using binary driver (only cards that support UDV2, radeon hd 4000 or higher)

Hardware video acceleration is only enabled if you are using the binaries from ATI, either install them using the Additional Driver tool or manually from the ATI site, the last method is preferred since the current package in the Additional Driver tool is quite buggy.

This post contains all the information needed to install/switch/remove drivers for ATI cards.

After this is done you still need a way to connect the media player to the hardware acceleration feature present in your new drivers.

To do that by installing xvba-va-driver, libva-glx1 and vainfo. Open a terminal and use this command, or look for the packages using the Ubuntu Software Center

sudo apt-get install xvba-va-driver libva-glx1 vainfo

After the packages are installed open a terminal (if not using it) and type vainfo, you should get an output like the following

 libva: libva version 0.32.0
 Xlib:  extension "XFree86-DRI" missing on display ":0.0".
 libva: va_getDriverName() returns 0
 libva: Trying to open /usr/lib/dri/fglrx_drv_video.so
 libva: va_openDriver() returns 0
 vainfo: VA API version: 0.32
 vainfo: Driver version: Splitted-Desktop Systems XvBA backend for VA-API - 0.7.8
 vainfo: Supported profile and entrypoints
 VAProfileH264High               :  VAEntrypointVLD
 VAProfileVC1Advanced            :  VAEntrypointVLD

If not something is wrong (drop a comment for more help).

If you get a similar output your drivers are installed and any video player with hardware decoding capabilities should pick it up automatically or allow you to enable this in the player's settings.

For a list of player capable of using hardware video decoding have a look here, the list is not as complete as I wanted but its a good starting point for information.

I can only help, if you have an ATI/ADM card. In this case:

Do you use the ATI-Driver? You can install it using the System-Settings. There should be an icon called "Additional Drivers". After a reboot, you should be able to use all your graphics-power.

I have an HD5770 and first was not able to install this driver on my 11.10. The auto-updater showed me some updates, and after installing them, it worked well. Maybe this information is relevant for you, too.

If it doesn't work, then try this:
http://mrrichard.hubpages.com/hub/2-Ways-to-Install-FGLRX-in-Ubuntu-1110-Oneric


No Sound in HTML5 and Google Chrome after update to 13.10 After upgrading to Ubuntu 13.10 I have no sound for HTML5 players in Google Chrome Browser.

Firefox works.

Flash Players are working.

No sound on Youtube when using HTML5. No sound on vimeo (They have html5 player as standard).

When I open the soundapplication, google doesn't show up when I try to play a html5 video. But it shows up, when playing a Flash Video.

Google Chrome Version is: 24.0.1312.52

Installed an updated via ppa:

deb http://dl.google.com/linux/chrome/deb/ stable main

I fixed it. Here is the complete journey:

I tried to install a new version (30.0.1599.114) of Chrome with a deb package.

Installation went O.K. but Chrome still said: Version 24.0.1312.52 in "About Google Chrome). Sound in HTML5 Players still didn't work.

I deleted the ppa. Installed deb package again. Still the same.

Then I moved my profile folder. Restarted Google Chrome and suddenly I had the new version. And HTML5 sound works.

To move the profile folder:

mv ~/.config/google-chrome ~/.config/google-chrome_bak

This will delete all your passwords and favorites etc. But if you have google chrome syncronization you can recover it.

Try this for a quick fix from terminal window:

sudo ln -s /usr/lib/mozilla/plugins/ /opt/google/chrome/plugins


Capacity of pen drive shown is less than the actual I have a 8 GB pendrive. I used to write raw data into the pendrive (without creating filesystem) using the dd command.

Today, when I inserted the pen drive, the I am unable to write anything on to it.  When I open gparted it is showing the total space on the pen drive as 500 MB. I am unable to create a new partition table or a partition on the pen drive now.

Here is the fdisk -l output.

Disk /dev/sdb: 0 MB, 512000 bytes
255 heads, 63 sectors/track, 0 cylinders, total 1000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00095df6

What's wrong with the pen drive? How can I recover the lost space?

Device Boot      Start         End      Blocks   Id  System

When I open gnome-disks, it shows the total space as 8 GB but when I try to create a new partition using it, it shows the following error:

Error creating partition on /dev/sdb: Command-line parted --align optimal --script "/dev/sdb" "mkpart primary ext2 1MiB 7969177599b"' exited with non-zero exit status 1: Error: The location 7969177599b is outside of the device /dev/sdb.
 (udisks-error-quark, 0)

These instructions worked for me to reformat an 8GB USB flash drive that was made useless after I used dd to write a bootable iso file to the flash drive. I reformatted the flash drive to its original FAT32 format as follows:

Remove all of your USB devices except for the 8GB USB flash drive that you want to reformat, so you won't get confused about the device name of the USB flash drive later on.

List all the partitions.
 sudo fdisk -l

Search the results of the command for output that looks like this:
 Disk /dev/sdc: 7864 MB, 7864320000 bytes
 30 heads, 33 sectors/track, 15515 cylinders, total 15360000 sectors
 Units = sectors of 1 * 512 = 512 bytes
 Sector size (logical/physical): 512 bytes / 512 bytes
 I/O size (minimum/optimal): 512 bytes / 512 bytes
 Disk identifier: 0x00016288

    Device Boot      Start         End      Blocks   Id  System
 /dev/sdc1   *        2048    15359999     7678976    b  W95 FAT32

If you see something like 7864 MB (8GB) in the output (see the example output above), then that is your 8GB USB flash drive. In this example it is called /dev/sdc. Now open the Disks application from the Dash and check again to make sure that the device name of your 8GB flash drive is the same as what you got from running the command: sudo fdisk -l.

Create a partition table on the disk of type msdos, sometimes known as Master Boot Record (MBR).
 sudo parted /dev/sdc mklabel msdos

In this example I used /dev/sdc for the name of the device which is what was found in the results of step 2. I can't stress strongly enough how important it is to verify the device name before running this step!
Warning: If you type the wrong device name you may overwrite your operating system or another one of your partitions containing important personal files!!! So be careful and check the device name a second time. Open the Disks application and check the device name of your 8GB USB flash drive in Disks. It should be the same device name!!! Now check again! You don't want to accidentally type the wrong device name!

Add an empty "primary" partition, which will hold a FAT filesystem later.
 sudo parted -a none /dev/sdc mkpart primary fat32 0 8192

Once again in this example I used /dev/sdc for the name of the device which is what was found in the results of step 2. The command specifies the start point (from 0 MB) to the end point (8192 MB). If the 8GB USB flash drive does not have the full 8192 MB space, parted will adjust it automatically. If the terminal returns a message that the start point can't start at 0 MB and you have to use some other small number close to 0 MB, type Y to accept this. Note the command is creating a single, primary partition on the whole disk.
This newly created partition will have the ID /dev/sdc1. That is because the device name in this example is /dev/sdc and the 1 at the end is because it is the first partition on that device.

Create a FAT filesystem on the /dev/sdc1 partition by formatting the partition.
 mkfs.vfat -n "8GB-USB" /dev/sdc1

/dev/sdc1 is the partition ID from step 4. "8GB-USB" is the partition label, which can be your own choice of label, just enclose the label inside two double quote characters.

You now have a ready-to-use reformatted USB flash drive with an 8GB FAT partition.

It sounds like a permissions problem. A few things I've found can cause this quirky problem:

Saving the data from one account/system, and try to add from another?
Using a protected name for the folder (such as Documents). That almost always messes with permissions, and locks a user out of the folder or drive.

I've found that Gparted is a good tool for diagnosing and re-partitioning thumb drives. Running nautilus as superuser (in the terminal type gksu nautilus, and enter your admin password when prompted) to allow you to check on permissions in files and folders on the drive.

You may want to wipe the USB drive and start again (there are geeky ways around the permissions problems, but do-overs are often faster--just be sure you don't create the same problem again).

Hope that helps.


Time and date inside a video capture Which video capture programs exists with this option: time and date displayed inside the video? I checked these programs, but I didn't find nothing in this sense.

You could try Kino. In this link they mention your same problem.
TL;DR: Go to view -> FX -> Filter -> Titler. Then you could use:

#timecode#

#dv.timecode#

#dv.datetime#

After trying several times , I have finally found a command that creates a video displaying current Date Time ( text='%{localtime:%Y-%m-%d %H_%M_%S}' )

From the command line using avconv:

avconv -nostats -loglevel 0 -t 3595 -i /dev/video0 -s hd1080 -vf \
drawtext="fontfile=/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf: \
text='%{localtime\:%Y-%m-%d %H_%M_%S}' : fontcolor=yellow@0.8: x=7: y=460"  \
/home/pi/c615/vf/c615_$now.avi

Edit the input file (after -i), output file (last line) and fonts to suit your needs.


Thunderbird or Evolution? Before I upgraded from 10.04 to 10.10 (I formatted my harddisk and installed it), I used thunderbird.

Now I wanted to test out evolution. I think it's pretty good, because there are integrated notifications and encryption methods. Another thing is that there's a calendar integrated in evolution, but I can also install a calendar addon for thunderbird.

What do you think about it? Can you tell me the pros and cons of thunderbird and evolution? I don't know which program I should use.

I never used evolution before 10.10, I always installed thunderbird.

Should I move to evolution, or stay with thunderbird? I like both of them, I just need some pros and cons.

If you think both email programs are bad, tell me a better one.

If you are going to use MS Exchange mailboxes , evolution is the mail client. Thats the pro for evolution.

If you are using IMAP, POP accounts, thunderbird is better. Thunderbird also has an addon for the osd notifications. It is faster than evolution in retrieving emails and you get a lot of useful addons with thunderbird . Plus , in evolution, tables created in ms outlook are not shown. I think evolution does not read them but thunderbird does.

So my vote goes for Thunderbird.

Thunderbird worked best for me. I hope this helps someone - http://adhocshare.blogspot.in/2012/10/setting-up-thunderbird-16-on-linux-with.html


ELF header smaller than expected I have a Dell XMP-13 Ultrabook (SSD drive only) with 12.04 installed dualboot with the original windows. It has been running flawlessly for many many months.

Today in the middle of a system update (kernel) I accidentally put it in suspend mode. Then it got frozen whenever I tried to boot.

I then booted in a previous ubuntu version and the partial upgrade dialog box appeared. I started it and the computer got frozen again.

Now it stops in the Dell logo screen with the message:

error: ELF header smaller than expected.
grub rescue>_

I did some research and tried to find the linux images as suggested in this answer: Recovering moved .mod files using grubrescue

However I always get the error: no such partition. when trying to ls on the drives:

grub rescue>ls
(hd0) (hd0,gtp10) (hd0,gtp9) (hd0,gtp8) (hd0,gtp7) (hd0,gtp6) (hd0,gtp5) (hd0,gtp4) (hd0,gtp3) (hd0,gtp2) (hd0,gtp1)

grub rescue>ls (hd0,gtp1)
error: no such partition.

grub rescue>ls (hd0,gtp1)/boot
error: no such partition.

This is the same for all drive numbers with and without the "/boot"

Any idea of what should I try?

First of all: if you come across this error do not despair. Despite the horrendous appearance of the situation it seems that in most cases it is savable.

After some research and help from Julian Stirling in the comments of my question I got the problem resolved by using boot-repair.

I had to:

Use my ubuntu desktop to create a bootable USB stick on Ubuntu
Then in order to be able to boot from the USB I had to change the BIOS Boot Mode Setting to Legacy Boot Mode, Secure Boot Off
After booting from the USB I selected the Try Ubuntu
connected to the internet (WiFi in my case)
open a new Terminal, and installed boot-repair:

sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update
When the update finishes run boot-repair:

sudo apt-get install -y boot-repair && (boot-repair &)
Then I clicked the "Recommended repair" button. In this step I got a little worried when prompted to choose Yes or No to the message "The boot of your PC is in Legacy mode. You may want to retry after changing it to EFI mode.". It turns out I had to click Yes or the boot-repair would not run. After a little wait boot-repair did its magic and when it finished I took note of the URL as instructed.
Finally I changed the BIOS Boot Mode Setting back to what it was before I started. Rebooted and boom! Everything was back to normal.

Sounds like your install is somehow mangled and the bootloader can't load the kernel. I would try to do a fresh install , if you have nothing to lose.


Squeak-VM in Ubuntu 12.04 ARM There is a Squeak-VM package for Ubuntu 12.04 here: Squeak-VM armhf binary.
Using Ubuntu for ARM on my Toshiba AC100 I can't find this package when I search for it with aptitude. Do I have to add additional repositories?

--edit 2012-09-27 20:21--

universe is activated in my sources.list:

deb http://ports.ubuntu.com/ubuntu-ports/ precise main restricted multiverse universe
deb-src http://ports.ubuntu.com/ubuntu-ports/ precise restricted main multiverse universe #Added by software-properties
deb http://ports.ubuntu.com/ubuntu-ports/ precise-updates main restricted multiverse universe
deb-src http://ports.ubuntu.com/ubuntu-ports/ precise-updates restricted main multiverse universe #Added by software-properties
deb http://ports.ubuntu.com/ubuntu-ports/ precise-security main restricted multiverse universe
deb-src http://ports.ubuntu.com/ubuntu-ports/ precise-security restricted main multiverse universe #Added by software-properties

When I search with aptitude, the following packages are found:

marc@toshi:~$ sudo aptitude search squeak
v   squeak-image-gz                                                 -
p   squeak-image3.9                                                 - Das Squeak-Smalltalk-System (Abbild und Änderungsprotokoll)
p   squeak-plugin-image                                             - Das Squeak-Smalltalk-System (Abbild und Änderungsprotokoll)
p   squeak-plugins-scratch                                          - Squeak plugins for the Scratch programming environment
p   squeak-plugins-scratch-dbg                                      - Squeak plugins for the Scratch programming environment - debug
p   squeak-sources3                                                 - Das Squeak-Smalltalk-System (Quelltext)
p   squeak-sources3.9                                               - Das Squeak-Smalltalk-System (Quelltext)

I'm still missing squeak-vm :-(

Did a sudo rm -rf /var/lib/apt/list and sudo apt-get update after that and now aptitude finds the package!


What is the "canary thread" and why is it starving? The following occasionally appears in /var/log/syslog:

rtkit-daemon[1145]: The canary thread is apparently starving. Taking action.
rtkit-daemon[1145]: Demoting known real-time threads.
rtkit-daemon[1145]: Successfully demoted thread 1431 of process 1368 (n/a).
rtkit-daemon[1145]: Successfully demoted thread 1430 of process 1368 (n/a).
rtkit-daemon[1145]: Successfully demoted thread 1368 of process 1368 (n/a).
rtkit-daemon[1145]: Demoted 3 threads.

What's going on here?

The term "canary" as used here comes from coal mining originally.  Coal miners used canaries to detect dangerous gases (if the canary they carried with them died, they knew they had to get out of the shaft/mine ASAP).  As a result the term "canary" is now often used for anything that you use to get an (early) warning about a dangerous situation.

In this case it seems like 'rtkit' starts a "normal" thread to test if the threads that get "real time" priorities are "starving" other threads (& processes), where "starving" means that they get too little processor time.  This is a safety measure to make sure that processes/threads that have access to real time priorities don't use up so much CPU time that other tasks get none anymore.

So apparently some thread(s) that got real-time priorities from rtkit is/are misbehaving, and trying to monopolize the CPU, rtkit detects this with its "canary thread", and thus rtkit takes away the real-time priorities.

It is a buffer overflow

Wikipedia buffer overflow canaries

I can not tell from the logs you posted where the problem is, can you check or pastebin log entries above an below those messages ? What is process 1368 ?

sudo ps -p 1368


ncurses line-drawing not working on console When I try to use a curses-based program on a virtual console, the line and box drawing part are not working, as below in the display when running dpkg-reconfigure console-setup. I'm using the the vga font, but I get the same result regardless of my font choice. When I do showconsolefont I can see the line drawing characters fine, it just won't work in ncurses programs. I also tried pinentry-curses which doesn't use colors and it has the same display problems. How can I fix curses on the console?

My terminal and locale on the console are:

TERM=linux
LANG=en_US.UTF-8
LANGUAGE=en_US:en
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=en_US.UTF-8
LC_TIME=en_US.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=en_US.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=en_US.UTF-8
LC_NAME=en_US.UTF-8
LC_ADDRESS=en_US.UTF-8
LC_TELEPHONE=en_US.UTF-8
LC_MEASUREMENT=en_US.UTF-8
LC_IDENTIFICATION=en_US.UTF-8
LC_ALL=

I'm using the 15.04 beta:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu Vivid Vervet (development branch)
Release:    15.04
Codename:   vivid

That looks like a problem with the console's encoding rather than its font.

Run dpkg-reconfigure console-setup again, but at the first screen select UTF-8 before selecting your chosen font:

Download current version putty
current version putty
If you use Putty, you need to update and enable as the picture shows.


Unable to install Ubuntu on Lenovo Y500 I am totally unable to install any flavor of Linux on my lenovo Y500.
TL;DR:

with EFI on -> cannot even access installer
with legacy - > installer runs fine, but installed OS never boots

Long Version:
It is going to be hard to recap what I did, because I tried so many things, but here is the gist of it:
EFI mode (secure boot disabled):
Trial #1

ubuntu 12.10 x64 & Mint 14 x64
boot from usb
see screen with choices
pick "try ubuntu"
get black screen

Trial #2

ubuntu 12.10 x64 & Mint 14 x64
boot from usb
see screen with choices
press "e" to enter edit mode
remove "quiet splash"
replace with "nomodeset"
end up on the command line with an error message from x server: "no screen found"
try fiddling around with xorg.conf to no avail

Trial #3

Arch Linux Live USB EFI mode
no boot

Trial #4

ubuntu 12.10 x64 & Mint 14 x64
set "e" to enter edit mode in menu
add acpi=off
end up with "(initramfs) unable to find a medium" message

Trial #5

same as above
set SATA mode to legacy (it was AHCI)
error loop that says something along the lines of "ata1.00: hard resetting link"

Legacy Mode
Trial #1

ubuntu 12.10 x64 & Mint 14 x64
USB boot
Everything seems to work
Proceed to normal install (picks SSD drive by default)
Everything seems to work
reboot
blank screen
reboot with "shift" pressed
see message "grub loading." and nothing
As per advised on Ubuntu's community EFI page, run boot-repair
same results
run boot-repair again
same results

Trial #2

ubuntu 12.10 x64 & Mint 14 x64
same as above, but pick 1T HDD as target install
same results

Trial #3

create a /boot partition on the SSD
install on SSD
same results ("grub loading.")
run boot repair twice
same results

Trial #4

create a GPT filesystem on HDD
create a /boot partition on the HDD
install on HDD
same results as above

Trial #5

install ubuntu on HDD
install boot on all drives (HDD & SSD)
same results

Trials #6

install Arch on SSD
no boot loader found

Notes:

Every step has been tried with multiple USBs.
All isos' MD5Sums have been verified
LiveUSBs have been created both through ubuntu's embedded app and unetbootin (save for Arch's live USB which was created by DDing the iso as per advised in the Arch wiki)
I have wiped out windows in my first trials, and I don't care, I am never going to use it. I don't want to dual-boot. I just want Ubuntu or Mint or Arch
as far as I can remember (it gets hard after 50+ trials), I tried every option with sata mode IDE or normal. Not sure though.

I've also tried numerous other things that I can't recall right now.
All in all I've been giving this 3 to 5 hours a day for a week and a half to absolutely no avail.
I am extremely disappointed as this is my first Lenovo and word is Lenovo is Linux-friendly...I have never spent more than an hour installing linux on any machine.
What's even more frustrating is that it seems to be working for some people, and I can't find any hint telling me how they managed. I wrote to one guy who posted a serie of youtube videos about how to get everything working perfectly on the Y500, and he told me he just installed mint without any problems. Might be I am a particular case because I have the SLI version of the Y500.
If anyone has pointers, incomplete solutions, ideas, black magic, I'll be forever in debt.
Thank you
P.S: This question, afaik, is not a duplicate of an existing question. I've scoured all questions containing "lenovo" and "install", and none applies to me.

This is how I enabled Ubuntu 13.04 to install alongside Windows 8 with a new (May 2013) Lenovo IdeaPad Y500 (1TB drive, dual NVidia GT 750M).

1) Download a copy of Ubuntu 13.04 x64 desktop ISO and install to a USB flash drive.  (http://www.ubuntu.com/download)  Create the USB install image following this guide (https://help.ubuntu.com/community/Installation/FromUSBStick)

2) Resize your Windows 8 partition using the built in Windows drive management tool.  Just resize the partition down, don't create a new partition in the empty space as the Ubuntu installer will do that.  (You may need to do a complete reboot for the resizing to take place.)

3) While still in Windows 8, edit the boot/grub/grub.conf on the new USB flash drive using Wordpad.

Change where it says "set gfxmode=auto" to "set gfxmode=1920x1080"

Under "Install Ubuntu", change "quiet splash" to "nomodeset=1"

So it should look something like this:

if loadfont /boot/grub/font.pf2 ; then
    set gfxmode=1920x1080
    insmod efi_gop
    insmod efi_uga
    insmod gfxterm
    terminal_output gfxterm
fi

set menu_color_normal=white/black
set menu_color_highlight=black/light-gray

menuentry "Try Ubuntu without installing" {
    set gfxpayload=keep
    linux   /casper/vmlinuz.efi  file=/cdrom/preseed/ubuntu.seed boot=casper quiet splash --
    initrd  /casper/initrd.lz
}
menuentry "Install Ubuntu" {
    set gfxpayload=keep
    linux   /casper/vmlinuz.efi  file=/cdrom/preseed/ubuntu.seed boot=casper only-ubiquity nomodeset=1 --
    initrd  /casper/initrd.lz
}
menuentry "OEM install (for manufacturers)" {
    set gfxpayload=keep
    linux   /casper/vmlinuz.efi  file=/cdrom/preseed/ubuntu.seed boot=casper only-ubiquity quiet splash oem-config/enable=true --
    initrd  /casper/initrd.lz
}
menuentry "Check disc for defects" {
    set gfxpayload=keep
    linux   /casper/vmlinuz.efi  boot=casper integrity-check quiet splash --
    initrd  /casper/initrd.lz
}

4)  Install Ubuntu and choose the option to install Ubuntu 13.04 alongside Windows 8.  Choose to install the bootloader onto your new Ubuntu partition.

5)  After the install is complete, boot again with your USB and select "Try Ubuntu" and let it boot to the text console.

You will not be able to use this new Ubuntu install until you edit this grub.cfg as well.  To do this, first mount this new partition, and then edit the grub.cfg as above in the Ubuntu editor of your choice (vi, nano, etc).

sudo mkdir /mnt/newinstall
sudo mount /mnt/newinstall /dev/sdb8
sudo vi /mnt/newinstall/boot/grub/grub.conf

(Same edits as listed in step 3.  Also on my install Ubuntu was on the 8th partition /dev/sdb8. Yours may vary so check it first!)

** Note the file is write protected, so make sure you use ":w!" to write from vi.

6) At this point you should be able to boot your new Ubuntu, but you will only be greeted with a hopefully legible text console.  The default VESA and nouveau drivers do not support the 750M cards.  In addition the Ubuntu provided nvidia binaries are also too old and will not work.  (Well I spent several hours without success trying to get them to work.)  The solution:

Install the new drivers from NVidia! (please visit the NVidia website and find the relevant driver URL.  I have listed the one current as of 2013-May-6):

wget http://us.download.nvidia.com/XFree86/Linux-x86_64/319.17/NVIDIA-Linux-x86_64-319.17.run
sudo chmod +x NVIDIA-Linux-x86_64-319.17.run
sudo sh ./NVIDIA-Linux-x86_64-319.17.run
(follow the installer instructions)

7) You should now have both a functional Windows 8 and Ubuntu 13.04!  I would love for the Ubuntu supported nvidia drivers to work, as any kernel Ubuntu updates will force me to have to re-install the nvidia binary drivers.

8) Choose your boot method.  You can select "F12" while booting to choose what to boot.  To set a default, hold "F2" while booting and you can reorder the boot priority.

I installed remastered Ubuntu 12.04 in legacy mode with Windows 7 & 8 Multi booting.

I just set 1st boot device to HDD, not SSD.

It works! and success to boot all Operating system.


My sshd_config file is empty is this correct? I just finished installing Ubuntu Server 12.04.4 and was setting up ssh.

When I did
$ sudo vi etc/ssh/sshd_config

I get something with no lines and the words [New Directory]

Is this the way it should be? My ssh_config file is ok. There's text in it.

Did I go wrong anywhere? How do I set this right?

I think the problem is a bit more simple than currently being suggested. Look at your command again:

sudo vi etc/ssh/sshd_config

There's no leading /. That means vi is trying to open <current-path>/etc/ssh/sshd_config so unless you're at /, it won't work.

The fix is to just specify the proper path:

sudo vi /etc/ssh/sshd_config

Yes it is absolutely normal there is nothing to do with it.. no worry..

it is basically OpenSSH SSH daemon configuration file


Cleanly uninstall ubuntu from Nexus 7 If I install Ubuntu on the Nexus 7 (following the instructions at https://wiki.ubuntu.com/Nexus7/Installation), and later uninstall it, will the device be in the original state, or will there be traces left behind?

I'm especially concerned about the following:

Do I void the warranty? (In practice, not strictly legally. Can I bring the re-flashed device back to the store and pretend it's original?)
Can I re-lock the bootloader?
Are there 'fuses' or tamper detection switches that tell that there was once something else installed?
Do I loose features in Android if I once unlocked the bootloader or installed Ubuntu (like being able to play DRMed videos)?

Installing Ubuntu on Nexus7 does not require rooting the phone.  It does require unlocking the boot loader which will void your warranty as stated on the device when you unlock it.  You can re-lock it later, but unfortunately I don't know if there are any counters that that will be able to use to detect you've tampered with it.

EDIT: chris-wayne who is on my team at Canonical called Google and they stated on the phone that unlocking your bootloader, installing something, then reflashing back to stock and re-locking will NOT void your warranty. We unfortunately don't have this in writing, but it is encouraging to hear.

Do I void the warranty? (In practice, not strictly legally. Can I bring the re-flashed device back to the store and pretend it's original?)

if you reset your device to a non-root mode, then you have your device within warranty

Can I re-lock the bootloader?

according to me, when you install the stock ROM, you get your bootloader locked by default

For more details on your questions, check following link :

http://www.jayceooi.com/2012/08/19/how-to-restore-stock-firmware-on-nexus-7-video/


How to stop keyboard cursor from behaving erraticly while typing ? (Ubuntu 17.10) I have an Asus laptop and I am using its inbuilt keyboard to type. The cursor keeps jumping from place to place while I type and sometimes it even deletes the sentences I write.

I have tried using the solutions mentioned in the link below, but unfortunately, they didn't work.
https://ubuntuforums.org/showthread.php?t=2363499

sudo apt-get install xserver-xorg-input-all
and
sudo apt-get --purge autoremove xsuerver-xorg-input-all && sudo apt-get install xserver-xorg-input-all

Other information
Ubuntu 17.10 dual boot with windows 10
intel icore 5
ASUS Q304

ram 6 Gb
ram 6 GB

I have had that problem for years and just figured it out to night. Just go into system settings > mouse & touchpad > take the check mark out of the box for Tap to click. Violla no more mouse scurrying accross your screen when you are typing. The one pitfall is that now to click somethings is that you have to actually push on your touchpad instead of just tapping.

Sounds like your hand/thumbs are touching the touchpad while you type.
If you go into system setting there should be an option to disable the touchpad while typing.


Strange error when logging into Xubuntu 12.04 Every time I log in, for some reason, I get a little box that pops up in the middle of my screen that says:

invalid option: -session

It just started yesterday and I'm not sure what is causing it. I'm running the 64bit version of Xubuntu 12.04 64-bit.

I've got same problem on Xubuntu 12.10. Deleting the ~/.cache/sessions folder helps. I hope somebody will use that answer.


Can an integrity check be run against a USB boot disk? Is there a way to perform an integrity check on a ready-to-use USB boot disk?

I just made a Lubuntu 14.04.01 boot USB, and have not been able to figure out how to run an integrity check on it.  I can't find any .iso file to run an MD5sum hash against.

You can find the md5sum of an Ubuntu iso here.

The above md5 value is the checksum of the entire disk, not of the individual files.

When you prepare a bootable USB, the files from the iso file are copied over to the USB and the bootloder of the USB is overwritten, thus making it bootable. You see here, a single file(for ex, lubuntu 14.04.1 x64 iso) with a md5 sum(a5f97cd6a9f171c70cf816de8728f13b) is now destroyed and multiple files are present in the USB instead. So you don't have an iso anymore to compare the original lubuntu iso's md5 sum to.

If you want to check the integrity of each of the individuals files, then you need to boot from the USB and then select check cd for defects from the boot menu. There's a file ms5sum.txt in each ubuntu iso which contains the md5sum of each individual file in the iso. The check cd for defects option verifies the md5sum of each file with the md5 list present in the iso.

From LiveWireBT's answer, just navigating into the usb drive and running md5sum -c md5sum.txt should perform a consistency check of the individual files.

Don't know whether the Linux Mint ISO uses the same grub menu as the vanilla Ubuntu ISO, but I'm just installing now and the grub menu that comes up has:

check the integrity of the medium

which took 10 mins to run and found 69 errors. I checked that iso image I downloaded was good, so I'm trying a different USB stick now.

It's GNU GRUB version 2.02^beta2-36ubuntu3


How to set Monday as the first day of the week in GNOME Calendar applet? What is the recommended way to change the first day of the week to Monday (instead of Sunday, as in the screenshot below)?

I couldn't find anything related in Clock Preferences, nor in System -> Preferences, or System -> Administration.

This probably has something to do with tweaking locales, so here's (possibly relevant) output from locale:

LANG=en_US.utf8
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
...
LC_ALL=

NB: I want to keep English as the UI language both in GNOME and on command line. Dates are currently displayed like this (e.g. ls -l): 2010-10-06 15:32, and I also want to keep that as it is.

Here's another solution, also from Ubuntu Forums. I think this is somewhat cleaner and more robust: it doesn't involve customizing Ubuntu's locale files (only settings that you're supposed to edit).

Gnome calendar applet adheres to your
locale settings. In Ubuntu, you can
assign locale components by editing
the file /etc/default/locale. Here is
what I've got there:
LANG="en_US.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"

Which means: I want software messages
in American, but time, paper size and
units in British i.e.weeks starting
with Mondays, A4, metric.

Props to artm who posted that!
Of course, LC_TIME="en_GB.UTF-8" is the relevant setting to get weeks to start on Mondays.
You need to log out and back in for the change to take effect.

Just open the terminal in the folder:
/etc/default

and use:
sudo update-locale LC_TIME="en_GB.UTF-8"

and restart

source:
-first answer
and
-https://www.thomas-krenn.com/en/wiki/Configure_Locales_in_Ubuntu


Why the maximum resolution available is 640x480 if my laptop has a 1280x800p? I've just installed Linux Ubuntu on my laptop and the screen looks very strange because all the margins are quite big. I know that I can do all the xrandr commands(eg. add more, newmode, output...) But the problem is that the maximum resolution available is 640 x 480 while the laptop's screen is 1280 x 800.
When I set a different mode for the default screen, it says that the configuration failed, and I'm sure it has to do with the maximum resolution. Image of the problem


VLC won't open video files from a secondary internal hard disk I have installed Ubuntu 16.10 on a 120GB hard disk (sda) and I have a secondary internal hard disk 500GB (sdc) which has nothing else but a folder with video files in it.
When I try to open a video with VLC on that sdc drive I get this error:
File reading failed:
VLC could not open the file "/media/"username"/"hardisksdcname"/Videos/"videofoldername"/"videoname".avi" (Permission denied).
Your input can't be opened:
VLC is unable to open the MRL 'file:///media/"username"/"harddisksdcname"/Videos/"videofoldername"/"videoname".avi'. Check the log for details.

The permissions are "read and write" for all (root and others).
When I copy the video to my desktop and then try to play it with VLC (from the desktop source copy) it works but when I try to strictly play it from my SDC hard drive this error appears.
I don't know where VLC stores its log file.
This is how my devices show up:
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
loop1    7:1    0   115M  0 loop /snap/vlc/4  ***<--whats that?***
sdb      8:16   0 447,1G  0 disk
sr0     11:0    1   1,1G  0 rom  /media/papajo/Ubuntu 15.10 amd64
loop2    7:2    0   228K  0 loop /snap/htop/68
loop0    7:0    0    76M  0 loop /snap/core/714
sdc      8:32   0 465,8G  0 disk
└─sdc1   8:33   0 465,8G  0 part
sda      8:0    0 119,2G  0 disk
├─sda2   8:2    0 102,8G  0 part /
├─sda3   8:3    0    16G  0 part [SWAP]
└─sda1   8:1    0   512M  0 part /boot/efi
sr1     11:1    1   1,5G  0 rom  /media/papajo/Ubuntu 16.10 amd64

If you're using the snap vlc, by default it'll be confined. To get around that, remove it:
sudo snap remove vlc

Then install from the command line:
sudo snap install --classic  vlc

This will allow browsing & loading files outside of $HOME
Please note: that on 16.04 with current snapd package this is no longer needed, vlc can browse mounted volumes, obviously same is true for 18.04.
--classic is basically the old --devmode option.
Though atm there seems no way to use hardware decoding with snaps, if that matters to you...

Without uninstalling and reinstalling VLC, you can see or listen to your local media files by moving the audio/video file to /home/<your-name>/snap/vlc/<example-audio-file>


Installing Ubuntu on my new Laptop for Dual Boot alongside Win 10 I have a new Lenovo G50-80 laptop with the following specs.

Ci5 5200/ 4GB / 1TB / 2GB Graph / Win 10 64-bit pre-installed

It has Secure Boot enabled and also Secure Boot on.

I want to install Ubuntu 14.04 alongside Win 10 and make it a dual boot system. I started by making a USB for Ubuntu and booted using the USB. I choose Something Else in installation type.

I will make partitions as below.

Swap 8 GB
/root 50 GB (ext4)
/home 50 GB (ext4)

But I did not know where to place the bootloader from the menu that is available. Should I place it in the UEFI partition? If I do so will it not affect my Win 10?

I need to use GRUB as my bootloader and I don't want to use the Windows bootloader.

Should I disable SECURE BOOT?

No you don't need to disable secure boot. Just make sure to boot your Ubuntu installation media in EFI mode. Then set mount points for the root, home and swap.

Keep /dev/sda for the bootloader installation as it is. Ubuntu installer (grub btw) is smart enough to detect your EFI, and non-Linux partitions.

Your swap space is too large though.

Install the bootloader in /dev/sda as it is the main partition.

Also, you need to disable the secure boot in order to install Ubuntu.


18.04 flashes black screen and lock screen several times during login This is an annoyance, but I thought I should post about it and see if anyone knows the solution.

I found:

GDM3 does not start in Ubuntu 18.04

But my situation is different as the laptop DOES eventually log in, it just takes a while (like 10 seconds or so, even if the user was already logged in and just locked).

I did try disabling Wayland, and it did not affect the problem (i.e. nothing improved).

I also found:

Ubuntu 18.04 + Gnome exit several times on logging in

But there are no answers; it's probably related since I've had to log in a second time at least once.

The usual case is that I will come to the laptop (which is a family laptop which rarely has fewer than three users logged in), swipe up and find the lock screen for another user, click "log in as another user", wait for a second or two while it switches to the main login window, click on my name, type in my password, press enter, and then watch the screen blink nine times between a black screen and the login window (where I just put in my password) before it logs me in.

This isn't just my account; all the users in the family have this experience.

The question: How can I make logins faster and get rid of the flashing black screen experience?

(I'm expecting more information will be needed to answer the question, but I'm not sure what information I should include.)

The hardware is a Lenovo ThinkPad L540.

I got same problem and tried to fix it for some time.

Try this one, this worked for me:

gsettings set org.gnome.shell.extensions.dash-to-dock transparency-mode FIXED

I found this solution here: https://ubuntuforums.org/showthread.php?t=2404491

Another user reported success by removing ubuntu dock extension

sudo apt-get remove gnome-shell-extension-ubuntu-dock

( I didn't tried this one jet, waiting for results after transperency-mode change )


Where is the Samba configuration GUI in Ubuntu 16.04? Just installed a fresh Ubuntu 16.04, and Samba. I want to share a drive with Windows machines, with anonymous users.

First thing I notice is the Samba configuration GUI (system-config-samba) is no longer available.

I forged ahead with the CLI and Nano, editing /etc/samba/smb.conf, using various bits of information from many other people struggling with the same issues.

I have it to the place where Windows machines can see the machine and the shared folder, but any attempt to open the share results in "Access Denied".  I want the share to be anonymous, but I also tried logging in using the Ubuntu user and password, and still "access denied".

Before I get into all the gory details after several hours of trying, what happened to the GUI config?  If it is just under another name, I'll try that first.

Update: It turns out there is an even easier way to configure sharing in 16.04 Unity.  Just right click on the folder to share and select "Local Network Share". From there, the Folder Sharing dialog opens to configure the sharing.

Unfortunately it doesn't work (remote user authentication always fails), but at least the interface is there.  I'll report back if and when I figure out more.

To get a GUI to configure Samba I installed system-config-samba. It was crashing.
I looked around a bit…
What worked for me was creating the missing file libuser.conf in /etc.
So I typed in terminal:

sudo touch /etc/libuser.conf

Source: https://ubuntuforums.org/showthread.php?t=2250379

I know this is a bit older but if anyone is interested in getting system-samba-config gui to work, then I wrote a script which does so. You can find it on github here
2021-May-06 Update: there is currently an issue with the wget urls used to install this deprecated library. You can follow that issue here; it looks like the python-gtk2 / python-glade2 maintainers might have pulled one of the deb file versions available for Ubuntu 18.04 and I haven't had time to do much analysis yet. I will update on my github first and here if i remember. If the downvote(s) on my answer scare you, that's entirely up to you. Personally, I think it has more to do with my post containing the word "Mint" - I have seen some overzealous fans of Ubuntu who don't read the rules carefully enough to take note that only questions must be strictly for Ubuntu and that distro-agnostic or derivative-distro answers are allowed as long as they are relevant... and have been downvoted by these types of people more than once. Still, up to you.
Personally, I recommend spending the time to learn how to edit /etc/samba/smb.conf. You shouldn't need to edit it that frequently and no workarounds to install deprecated software are needed. But I think very few people googling that care so I just answer the question :-)
The main issue was that system-samba-config was using gksu. my setup script creates a wrapper script then adds an exception to policykit so that the gui will launch. finally, it updates the *.desktop shortcut so that it launches using the wrapper script rather than trying to still use gksu.
I use this on Mint ~~19.3 (based off Ubuntu 18.04)~~ Mint 20 but my script doesn't contain anything Mint-specific or even Cinnamon DE-specific. Policykit is used on both Ubuntu and Mint. Desktop files are used by many DE's/distos an I believe /usr/share/applications is where *.desktop files live in both as well. Even if it doesn't work on Ubuntu for some strange reason, it would be a decent reference for anyone really wanting this. As long as system-samba-config is available in the repos, it should work. Pretty sure I was using this on Mint 18.3 (based on Ubuntu 16.04) at one point as well.
to use my setup script:
git clone https://github.com/zpangwin/linux-setup-scripts.git;
find linux-setup-scripts -type f -iname '*.sh' -exec chmod a+rx "{}" \;;
cd linux-setup-scripts/mint-20.x/apps/deprecated-system-config-samba
./install-scripts-with-policykit-exception.sh


How can I decode a base64 string from the command line? I would like to write a bash script to decode a base64 string. For example I type decode QWxhZGRpbjpvcGVuIHNlc2FtZQ== and it prints Aladdin:open sesame and returns to the prompt.

So far I have tried a simple bash file containing python -m base64 -d $1 but this command expects a filename not a string. Is there another non-interactive command (not necessarily in a Python module) that I can run from the command line to achieve this, without having to install any extra packages? (Or if I do, something super-minimal.)

Just use the base64 program from the coreutils package:

echo QWxhZGRpbjpvcGVuIHNlc2FtZQ== | base64 --decode

Or, to include the newline character

echo `echo QWxhZGRpbjpvcGVuIHNlc2FtZQ== | base64 --decode`

output (includes newline):

Aladdin:open sesame

I had a few moments of hair-pulling on this one because the base64 Linux tool and also the openssl can decode, indeed. But I have this particular base64 encoded file that decodes to slightly wrong value. The few bytes do match, but then there is this presence of EF BF BD EF BF BD when I view in hexedit viewer. And then the next sequence of bytes match again when compared to the correctly decoded expected output. These weird sequence of bytes got inserted in the in-betweens, sometime as EF BF BD only.
To resolve the matter, I have to look how the Java sender encodes it and then I created a small java base64 decoder. And now I can decoded to the expected value.
Here is the small snippet that does it: https://gist.github.com/typelogic/0567cdab6c15487c31496cb90006ff52


install crashdump on ubuntu 1404 I am following [here] to install crash dump on Ubuntu 1404:

sudo apt-get install linux-crashdump

However, it throws exception as below:

... unmet dependencies
linux-crashdump  : Depends: kdumptools but it is not going to be installed

PS: I have followed [here] to solve the problem, but it does not find any broken held package...

Update: my platform is Ubuntu 14.04 on Linux 3.16.0-generic.

Update 2: the following is the complete printout

app> sudo apt-get install linux-crashdump kdump-tools makedumpfile libdw1
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libdw1 : Depends: libelf1 (= 0.158-0ubuntu5) but 0.158-0ubuntu5.2 is to be installed
E: Unable to correct problems, you have held broken packages.

run sudo apt-get update first.

then [don't run this if you didn't want to upgrade the release ] sudo do-release-upgrade for updating the package.
reboot.

then run sudo apt-get install linux-crashdump

on ubuntu 16.04 server


Ubuntu 15.10 User login stuck Ubuntu 15.10 fairly fresh install, few changes (nothing major) with a few user accounts.

I noticed that the wallpaper with My company logo was showing as the log on screen for all users, it used to be an xfce one.  I have other users and did not want that, so before I logged off for the night I changed the login screen back, from "none" to "xfce", in the "Session and Startup" app (the one with the gray background and the little mouse).

When I got up this morning, and started the computer, once again my company logo appeared, with the user login box.  So I tried to log in as my company, type in my password, hit enter, then it shows the gray background with the mouse flickering on and off at random with the cursor I get when something is busy or loading.  It stays stuck there and does not change until I reboot.

I had it set to xfce after installing the OS originally, and never changed it to "none" by myself, it was changed somehow without my knowing (I have a few accounts but am the only flesh and blood user).

Luckily I am logged into another account so I can ask for help on how to remedy the situation.  Somehow I need to make changes to the affected account from this one (administrator), so I can log on to it again.

I am Linux syntax and component illiterate, so a step by step solution would be best, and thanks for helping.

I was on my laptop in Ubuntu when a window popped up asking to upgrade to 15.10.  I clicked on it and the download started.  I did not watch it download and when I saw it later, I can not get to the home page.  What I get to is a request in the upper left corner:  owner-Latitude - 5400 loginin:  (Is there a way to bypass this to get to a home page?  If not, how does one delete 15.10?

Thanks,

Tom


Why does Inkscape become unresponsive all of the sudden and how can I stop it from happening? I've just started using Inkscape in Ubuntu 11.10 and I'm not sure what exactly triggers it, but at some point, the Inkscape viewport becomes unresponsive.

The viewport is still visible. I can still manipulate the window itself: move, resize, open menu items at top. The cursor switches style. But clicking on anything within the viewport has no effect.

I must close the file and restart in order to regain control.

The problem seems to be related to this bug report: https://bugs.launchpad.net/inkscape/+bug/785701, and the problem seems to be Inkscape trying to access files that are currently unavailable to it (files that may be on network shares or external disks that are currently umounted or disconnected).

Mark Roth's answer on that launchpad page had a good suggestion to run "strace inkscape" from the terminal in order to see what happens when Inkscape freezes.  You may find that, rather than restarting the system, you can instead mount the disk with the file Inkscape is having trouble stat-ing then try starting up Inkscape again.

What hardware do you have? Your computer may not have sufficient hardware to run such an advanced resource-intensive program.


ninja: build stopped: subcommand failed I followed this link,
https://github.com/peyo-hd/device_brcm_rpi3

I have used make -j4 command and I get the below error :

1 warning generated.
[ 36% 11636/31519] Ensure Jack server is installed and started
Jack server already installed in "/home/prayasm/.jack-server"
Server is already running
[ 36% 11650/31519] build out/target/common/obj/JAVA_LIBRARIES/sdk_v8_intermediates/classes.jack
FAILED: /bin/bash -c "(mkdir -p out/target/common/obj/JAVA_LIBRARIES/sdk_v8_intermediates/classes.jack.tmpjill.res ) && (unzip -qo prebuilts/sdk/8/android.jar -d out/target/common/obj/JAVA_LIBRARIES/sdk_v8_intermediates/classes.jack.tmpjill.res ) && (find out/target/common/obj/JAVA_LIBRARIES/sdk_v8_intermediates/classes.jack.tmpjill.res -iname \"*.class\" -delete ) && (JACK_VERSION=3.26.ALPHA out/host/linux-x86/bin/jack @build/core/jack-default.args --verbose error  -D jack.import.resource.policy=keep-first -D jack.import.type.policy=keep-first -D jack.android.min-api-level=1 --import prebuilts/sdk/8/android.jar --import-resource out/target/common/obj/JAVA_LIBRARIES/sdk_v8_intermediates/classes.jack.tmpjill.res --output-jack out/target/common/obj/JAVA_LIBRARIES/sdk_v8_intermediates/classes.jack ) && (rm -rf out/target/common/obj/JAVA_LIBRARIES/sdk_v8_intermediates/classes.jack.tmpjill.res )"
Internal unknown error (500), try 'jack-diagnose' or see Jack server log
ninja: build stopped: subcommand failed.
make: * [ninja_wrapper] Error 1

Is this some known issue ?

You Can disable jack by following disabling-jack-in-android-compilation

The path of of javac.mk is  build/core/combo/javac.mk

- ANDROID_COMPILE_WITH_JACK := true
+ ANDROID_COMPILE_WITH_JACK := false


HP Stream 14 (BCM43142) WiFi driver I have installed Ubuntu 15.04 for a HP Stream 14 Laptop. The WiFi network driver is not recognised automatically, so there´s no Internet.

By making sudo lshw, the Network Controller is: BCM43142 802.11b/g/n - Broadcom Corporation

I would need to download into a USB drive from other computer and then run into the HP Stream. What do I need to download and execute to make it work into Ubuntu?

Thanks,

The simplest and easy way to install Wi-Fi driver is to use Ndiswrapper

Install Ndiswrapper

download your Wi-Fi driver (windows version)
Launch Ndiswrapper tool.
Click on Install new driver brows to you Wi-Fi driver
your are done.


Is there a list of all files that affect PATH? There's a path in the $PATH environment variable I'd like to change, though I can't find the script that adds it.

I've looked in ~/.profile and ~/.bashrc but it's not there.

What's a good way of finding who adds a path to my $PATH?

help.ubuntu.com has a comprehensive page about environment variables, of which PATH is just one.

The files mentioned there are

for the session of one user

~/.pam_environment
~/.profile
bash only

~/.bashrc
~/.bash_profile
~/.bash_login

for all users on the sytem

/etc/environment
/etc/profile.d/*.sh
for bash only

/etc/bash.bashrc

You can find the scripts which change the PATH variable in /etc/profile.d/

/home/a>echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin
/home/a>ls -l /etc/profile.d/
total 24
-rw-r--r-- 1 root root   40 Jan 21  2015 appmenu-qt5.sh
-rw-r--r-- 1 root root  663 Nov  6  2014 bash_completion.sh
-rw-r--r-- 1 root root  857 Apr 10 19:29 cedilla-brazil.sh
-rwxr-xr-x 1 root root  301 Feb 20  2013 jdk.csh
-rwxr-xr-x 1 root root  299 Feb 20  2013 jdk.sh
-rw-r--r-- 1 root root 1940 Dec 16  2014 vte-2.91.sh
/home/a>cat /etc/profile.d/jdk.sh
export J2SDKDIR=/usr/lib/jvm/java-8-oracle
export J2REDIR=/usr/lib/jvm/java-8-oracle/jre
export PATH=$PATH:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin
export JAVA_HOME=/usr/lib/jvm/java-8-oracle
export DERBY_HOME=/usr/lib/jvm/java-8-oracle/db
/home/a>

Refer this link which helped me to find "If bash is used with name sh instead of the name bash, it emulates original Bourne shell initialization: it sources just files /etc/profile and ~/.profile and just for login shells."


I can't play mp3's with Rhythmbox from my Dropbox folder When I try to import or open mp3's from my Dropbox folder using Rhythmbox nothing happens. I'm using Rhythmbox 3.2.1 and Ubuntu 15.04 64 bit. If I copy them to the desktop then they play, but my playlists are inside Dropbox, so I can share them between my devices. OGG files seem to work just fine.

Check the permission on your Dropbox folder.  More than likely the do not have the execute permission enabled.

Cntrl + Alt + T to open Terminal

Enter

chmod ug+rwx ~/Dropbox

This will enable execution of files in the folder for your application.

Then, close Terminal and re-try your files with Rhythmbox.

Alternatively, you can open Nautilus and navigate to your Dropbox foler.

Right-click the mp3 file, click Properties, the select the Permissions tab.  Be sure all users and groups have Read and Write
Access.


Any way to change bluetooth folder? I'm looking to change the default bluetooth received files directory in /home/user/Public.

Is there a dconf key or some other way to change it?

You can't change it if your device/laptop already have default bluetooth program. Only bluetooth that come with usb adapter can be changed.


Ended up with 5 primary partitions after installing Ubuntu 20.04 and Ubuntu is still nowhere to be found For context see here.
I knew that I have 4 primary partitions, hence I went into Disk Management in Windows 10, and deleted E drive (140GB). Then I went into diskpart from the command line and created an extended partition in place of that. In that extended  partition I created a logical drive E with 90GB space, hence 50GB was unallocated in the extended partition, so now I had 3 primary  partitions (System, C, and D) and 1 extended partition (logical E + unallocated disk space).
My thinking was that I would install Ubuntu 20.04 in the logical unallocated 50GB space in the new extended partition.
While booting I selected the USB storage device option under Legacy BIOS (as my Windows 10 is in legacy mode) instead of the option under UEFI (although it had the name of my USB flash drive).
This problem occurred.

partition #7 of SCSI 1 (0,0,0) (sda) as ext4
What happened was it detected Windows 10 this time and also offered to install Ubuntu alongside it, but the option was to directly install Ubuntu (rather than continue and customize the partitioning as seen in online tutorials). The options after selecting Something else showed the unallocated space, but I went on with the default install alongside option, and installed it.
After that the laptop booted up into Windows 10, and the partitions now look like this in Windows Disk Management.

How did I end up with 5 primary partitions? In the photo of Disk Management 3 partitions are labelled as primary partitions on Disk 0 and there is also a System Reserved partition at the beginning of Disk 0. It looks like both E: and F: are located in the same extended partition that was created in the same 140 GB space that was formerly occupied by the old E: drive which was deleted to make room for Ubuntu 20.04 according to the 2nd paragraph of this question. It also looks like the 4 original primary partitions in the 2nd paragraph were originally named System Reserved, C:, D: and E: before you deleted E: in diskpart and created a new extended partition in place of that.
How did my extended partition of 140GB (90GB E and 50GB free space) get converted to an extended partition of 90.5GB (90GB E and 500MB F) and a primary partition of 48GB (which is shown as unoccupied in Windows Disk Management)?
Where is Ubuntu 20.04 installed exactly? Windows Disk Management does not show an ext4 partition in sda. This 500MB drive F is also showing in Windows Explorer. What should I do? Should I have gone with the Something else option and selected free space myself? I can still do that, but do I also need to create a swap partition as seen in online tutorials (new installations of Ubuntu 20.04 create a swap file in the / partition by default instead of a swap partition)?

Have you looked into just using Windows Subsystems for Linux (WSL2) instead of going through all that trouble? WSL2 makes Windows fully integrated with Linux? You could enable Hyper-V and install needed Hyper-V dependency packages from Microsoft in setting up a Virtual Machine. In so doing, you would be running a Linux Distro such as Ubuntu 20.04 LTS on top of your Windows 10 Operating System as a Virtual Machine, which would totally be independent of your Windows 10 OS environment. You could even easily install Visual Studio code editor if you need a development IDE that is fully compatible with WSL2 (Linux) and Windows.


Installing Skype on 12.10 64 bit causes errors I have installed Ubuntu 12.10 64bit (clean install) and updated it.

After that i tried to install skype, and i get error that skype depends skype-bin, but it could not install it, and that there are some broken packages!?

In Ubuntu software center there is no skype. And when I try to download it from skype website it installs it via software center and it displays the error that it is not supported because it's i386...

So, how this is possible on clean install of Ubuntu 64bit?
And how to fix it?
And will someone fix it in next update?

Thanks in advance,
Predrag

This is more of a comment than an answer (because it doesn't provide a solution, since there isn't one at the time) but: there is no functional 64-bit .deb Skype package for Ubuntu 12.10 64-bit. Source: Skype forums.

The package http://download.skype.com/linux/skype-ubuntu_4.0.0.7-1_amd64.deb is "fake" (source: http://www.mindwerks.net/2012/06/skype-4-0-on-ubuntu-precise-12-04-64-bit-2/). Trying to install it will ultimately fail with E: Package 'ia32-libs-multiarch' has no installation candidate

https://help.ubuntu.com/community/Skype is outdated and incorrect - the Canonical partner repo doesn't list Skype.

Summary: you're SOL

Why don't you try removing it first.

  sudo apt-get autoremove skype

Try reinstalling it.

  sudo apt-get update && sudo apt-get install skype

What do you get?

EDIT

Try doing

  sudo apt-get install skype-bin

before doing the earlier part.


Installation not giving option to install along side Windows 8? I'm trying to install (from DVD) Ubuntu 14.04 LTS on my desktop computer along side Windows 8.1.

I am never given the option to do so.

I never get this screen:

After installing Windows 7 or 8, you need to have a logical partition to install Ubuntu alongside it. If you don't have a logical partition then the option Install Ubuntu alongside Windows is missing.

To get it back, do the following.

Install EASEUS Partition Master Professional Edition (NB: Quite Expensive) or free trial download here
Run EASEUS Partition Master then click Go to main screen option.
Here, select the partition which you want to install Ubuntu in, and right-click on it and select Delete Partition. Now it's unallocated (Free space).
If you don't have this partition you can shrink another one other partition. Just right-click on other partition and select Resize/Move Partition (20GB is enough). Don't format the free space.
Now right-click on * unallocated and select Create Partition. Under the Create as drop down, select Logical and click OK.
Click the Apply button at the top of EASEUS window (under view menu) then click Yes. This operation needs to restart your computer to completing
Finish

If you insert the Ubuntu installation media (USB/DVD) you will see Install Ubuntu alongside Windows 7/8.

I've found a problem like that.

Turn off Fast boot on Win8.
Disable UEFI in Bios.
Load Ubuntu From Ubuntu Website.

I've tested on Acer Aspire IZ.


Ugly fonts in Netbeans - How can i make it use the system font? I'm having problems getting the Netbeans font to look nice, this has been a problem ever since I tried Ubuntu ~8. For some reason fonts look like they're not getting subpixel smoothing in Netbeans only, for the rest of the applications they look perfect.

Look at how ugly the screenshot is:

It's not just the code area but every font in the application looks this way. I was looking around and apparently adding the following line to the .bashrc file should fix the issue but in my case it didn't:

export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=lcd'

It think it might only affect Java based applications, but I haven't been able to test another Java app to check the fonts out.

Does anyone know what can I do to fix this? How can I make Netbeans use the system font?

As has been stated in the comments, this is a problem with Java Swing apps on Linux. Swing does use Gnome's font smoothing settings (deactivated, greyscale or subpixel) - it disregards the hinting settings though. It always uses full hinting, and if you're running Ubuntu with little or no font hinting (as most people do since little hinting is the default setting) this will make the font appear significantly different than in other applications. SWT applications like Eclipse are fine, but if you like Netbeans this isn't gonna help you.

Caveat: For the following workaround I'm only talking about the editor font, because in an IDE that's what's important to me. You could also apply it to the menu fonts etc, but that might be a little over the top.

The only usable solution I found here : use Fontforge to edit your editor font of choice and remove all hinting information from the font itself, then save it as a new font and use that in Netbeans.

sudo apt-get install fontforge
Launch Fontforge
Open your font of choice
Ctrl+A or edit -> Select -> Select all to select all characters
Hints ⇒ Clear instructions
Ctrl+Shift+F or element -> font info to open the font info
Rename font (e.g. to original name + '_nohints')
Save edited font in the .fonts directory in your home, through file -> generate fonts, making sure to use a format that Ubuntu reads (see next step)
Clear font cache fc-cache -rv - following its output to make sure your new font file was picked up (e.g. .sfd doesn't but .ttf does).
Run Netbeans and use the font you created as editor font

No, not perfect and yes, a bit of a hassle, but still a world of difference. Hope that helps.

I was having the same issue on Mint 12. I solved it by entering the "Advanced Settings"->"Fonts" and reducing the default font from 11 to 10. I lowered all the fonts in the list to consistency.

There must be some problem with the Cantarell 11 font.


Running Xubuntu without panels I'm running Xubuntu with AWN and I would like to turn off all the XFCE panels, but it does not allow me to do so with the last one. Is there any way to do it?

In /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml

Just comment the xfce-panel section.

You can remove the xfce4-panel from your start up applications. That way, when your system logs you in, xfce4-panel will never be started.


Multisystem Script won't work! "Syntax error:redirection unexpected" Worked 2 days ago? this is my first question.

I use Multisystem all of the time and have installed it on both Kubuntu and Ubuntu and have used it with no issues. I wiped my hard drive to try some new OSs I'm now using the exact same OS (Ubuntu 12.05) I used to load my USB stick to begin with and now I'm getting this ridiculous syntax error. I know the script is correct, I'm following the exact same steps I used to get to this point and I'm getting different results ?!?! I'm very confused by this.

I have no clue how to begin addressing this issue. I get the same syntax error on Kubuntu now too, which did have multisystem installed.

I run "sh install-depot-multisystem.sh" and get "Syntax error:redirection unexpected", this worked literally 2 days ago. The only thing that has changed is my face has grown some more facial hair and my head hurts from bangin it against the wall over this issue.

The OS is exactly the same, the script is the same; but now it won't install. I'm lost and really hoping someone can help.

Append

Just to append to this a bit

https://lists.ubuntu.com/archives/ub...er/000264.html

I needed to do a chmod 777 on the script, I'm still getting a syntax error on Kubuntu...but it did install successfully. I'll mark this as resovled!

Thanks anyway, I'll try to spruse up on my Linux skills.

The script was effective even with the syntax error, so it seems that this question really boils down to how to run a script.

Running as an Executable File

To run a script that is in the current directory without explicitly invoking the shell, you must preface its name with ./. It must also be executable.

chmod u+x install-depot-multisystem.sh
./install-depot-multisystem.sh

That will only work if the script starts with a hashbang line specifying what shell is supposed to run it.

If you ran chmod 777 on the script, and that helped, then the reason it helped was almost certainly that it gave you, as the owner of the script, execute permissions on the script. You also gave yourself and all other users read and write permissions, as well as execute permission to all other users. This is unnecessary, potentially a serious security problem. chmod u+x is just as good, and much safer.

Invoking the Shell

Alternatively you can run the script by explicitly invoking the shell, like you had tried initially:

sh install-depot-multisystem.sh

The script has a .sh extension, so it should be runnable with sh. But in case the script author named it badly, and it's really a bash script, you can try running with bash (as geirha suggested):

bash install-depot-multisystem.sh

Running in the Current Shell

This is included for completeness only--unless you wrote the script and know this will work properly, or the instructions that accompany the script say to run it this way, you should use one of the previous two methods instead. Many scripts will only work right if they have their own shell in which to run (which is accomplished by either of the above two methods).

With that said, you can attempt to run the script in the current shell, with the current shell's environment, with either of the following commands:

. install-depot-multisystem.sh

source install-depot-multisystem.sh

Running as root

If the script is installing a systemwide program or service, it might need to be run as root. Do not run a script (or anything) as root unless you know you need to do so.

To run it as root, put sudo in front of the command that runs it. Any of these three commands will work (though the first still requires execute permissions):

sudo ./install-depot-multisystem.sh

sudo sh install-depot-multisystem.sh

sudo bash install-depot-multisystem.sh

this is not sh
it's bash
Not use "sh install-depot-multisystem.sh"
just use: install-depot-multisystem.sh


Loudness equalizer for ubuntu 16.04 LTS I have recently switched from windows to ubuntu and i like to listen music while work but in ubuntu i have to consistently change the volume due to no option for loudness equalizer is there any program available for it.I am using vlc media player

you can try PulseAudio Equilizer.

Down load it here https://www.ubuntuupdates.org/package/webupd8/zesty/main/base/pulseaudio-equalizer

Then open a terminal, and type:

cd /downloads
sudo dpkg -i pulseaudio-equilizer_2.7.0-5-webupd8-xenial0_all.deb


Why is Ubuntu sticking with Plymouth despite the fact that it doesn't work with proprietary drivers? I know the background, just want to know why such decision by Canonical.

Plymouth does work with the proprietary drivers - or at least it should.  You generally won't get the same native resolution bootsplash that you'll get with a kms driver, but the bootsplash should work.  You can even get a higher-resolution bootsplash with answers from this question.  We could conceivably detect that sort of thing by default, but it's fiddly and likely to break.

Regardless of the prettiness of the bootsplash, plymouth is necessary to multiplex the boot messages that happen in parallel during the event-based boot.

I haven't experienced any problems with it using proprietary drivers. But even if there are a few problems with very old VGAs from manufacturers who doesn't provide proper drivers for their hardware, that cannot hold everyone else back. We wouldn't accept a user interface that was designed for 320x200 just because that was once a common resolution, for instance. The show must go on. :)


Can't install the ATI fglrx driver, using a ATI RV635 - Mobility Radeon HD 3650 I'm having problems with the ATI driver. It says that the system is not using the Proprietary Controller. I can't activate it and there aren't any suggestions on how to solve this.

I saw on another post an answer that recommends installing 'linux ati catalyst driver'from http://support.amd.com/fr/gpudownload/linux/Pages/radeon_linux.aspx

Should I do that? Or is there a way around this.

Thank you!

As you can see from the ATI drivers Wiki you card is no longer supported by the ATI fglrx drivers, you can still use the open source available with Ubuntu.

I recommend that you remove the fglrx packages and remove your /etc/X11/xorg.conf file. That will revert to the open source drivers.

You may want to install the binary driver manually from https://help.ubuntu.com/community/BinaryDriverHowto/ATI


Texmaker Shortcuts not working on Ubuntu 16.10 Texmaker does not recognize shortcuts such as Ctrl+F for Find or Ctrl+O for Open. This was a known problem in previous Ubuntu releases, but the common solution for those versions does not work for Ubuntu 16.10.

Attempted solution:

Running texmaker with the UBUNTU_MENUPROXY disabled.

env UBUNTU_MENUPROXY= texmaker

Running

    sudo env UBUNTU_MENUPROXY= texmaker

worked for me!


Problem with IDM integration I have installed the IDM in Ubuntu through Wine. When I integrate IDM with chrome I had select the "use advanced browser integration" in option. When I select that, a new window opens that have a problem. But I did right about the three problems.

IDM cannot engage advanced browser integration because of any of the following reasons:

You don't have admin rights or you didn't allow IDM helper program to execute  as admin.
You pressed "Cancel" button during IDM network driver installation.
You blocked IDM network driver startup or installation by means of the third party security or antivirus.

Set the windows version to windows 98 in the winecfg window.


NVIDIA Graphics - resolution problems with new 12.04 LTS installation I've been trying to install Ubuntu 12.04 LTS on my desktop most of the day.
The desktop uses a NVIDIA GEFORCE 9800 (GT I think) graphics card.
I am unable to set the correct resolution (1680 x 1050) for the display.

The first problem I had was that of the "Black Screen" during install.
I overcame this by utilising the "nomodeset" switch on the install options (once I'd found how to do that).
The second problem of course was the "Black screen" following the first reboot.
Once again this was overcome by using "nomodeset", this time by "editing" the GRUB.

This gave me a resolution of 1280x768 which, the Displays GUI allowed me to change to 1280x720 (appears to fit on screen).

I then tried to install the NVIDIA drivers.
1) using additional drivers
2) manually by downloading driver and installing in root

As soon as NVIDIA drivers are installed - resolution become restricted to 640x480 (max).
At this resolution Ubuntu GUI is not usable as most screens are larger than the display. Removing the NVIDIA driver and removing the XORG.CONF file does not lift this restriction.

I have tried most things that I have found and that were vaguely intelligible, but nothing appears to get me closer to a resolution of 1680x1050.

UPDATE: reinstalled Ubuntu 12-04 and used the "NoModeSet" in the Grub to restore the resolution to 1280x720, which is at least usable. Will live with this for now.

I have been having resolution problems with my brand new Ubuntu 12.04 LTS installation and I couldn' t even see the choice of the 1680x1050 resolution. But then  it was so easily and user-friendly solved: Just went to Additional Drivers in the System Settings tab and activated the NVIDIA accelerated graphics driver(post-release updates)(version current-updates) and it worked for me. Good luck!

UPDATE: Ubuntu 12.04 upgrade: Use Nvidia X server config app to adjust resolution, picking one ** close resolves issue after upgrade. Actual didn't work.

nVidia GeForce 6150 GPU onboard chipset

Purpose of this post is to assist in activating proprietary driver for onboard 6150 DVI connection to LCD with HDMI connect.

  Maverick 10.10

  Linux version 2.6.35-28-generic, NVIDIA GLX Module  260.19.06

  The nouveau driver installed by default recognizes LCD monitors connected by DVI/HDMI. This default driver cannot fully utilize the 3D potential of NVIDIA graphics chips or provide 2D acceleration for newer cards. The default resolution choices tend to be below the capabilities of monitor/tv and chipset.

  If you are considering the installation of the proprietary drivers found under System, Administration, Additional Drivers some preliminary work will ease the process.

  Without some changes to the xorg.conf file many people have experienced over-scan issues and blank or black screen on reboot post driver install.

  Before choosing install look in Log File Viewer under System Administration for Xorg log. The Nouveau driver logs some useful information about your graphics system. Look for chipset info: "NVIDIA NV4e" and the lines after "Supported standard timings".

  Example:

  17.661] (II) NOUVEAU(0): #0: hsize: 1280  vsize 1024  refresh: 60  vid: 32897
  17.661] (II) NOUVEAU(0): #1: hsize: 1360  vsize 765   refresh: 60  vid: 49291

  You can read more about EDID.

  The hsize and vsize should be close to resolutions supported by your monitor. Verify these by looking in the manual for the monitor or online at manufacturers website. The supported resolutions have to be manually added to xorg.conf.

  Look for the xorg.conf file under /etc/X11/xorg.conf. You can add, if not there or edit, by opening the terminal application found under accessories and typing

  $ sudo gedit /etc/X11/xorg.conf

  Add or edit the Screen section of xorg.conf. This example applies to 720p 32" widescreen lcd tv.

Section "Screen"
Identifier  "Default Screen"
DefaultDepth    24
Option  "UseDisplayDevice" "DFP"
Subsection  "Display"
   Modes    "1360x768" "1280x720" "720x480"
EndSubSection
EndSection

  Substitute the display Modes shown above for the resolutions supported by your LCD monitor. The first mode "1360x768" will be the default read by nVidia driver upon installation.

  The option "UseDisplayDevice" "DFP" will select the dvi connected LCD. This should prevent the black screen upon reboot.

  After you've saved the file, activate the driver.

  Additional information for nVidia with XOrg commands.


USB Keybord does not work I am running Ubuntu 20.4.keyboard is not responding. How do I reset the USB Ports. the ports located t the back of the computer re not working. keyboard. Please help.There re so many solutions which one should I follow?
I apologize for the delay. Its a Dell 3646 desktop.
The output of uname -a:
Linux seshagiri-Inspiron-3646 5.4.0-65-generic #73-Ubuntu SMP Mon Jan 18 17:25:17 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
I have two external keyboards. and I have checked in all 4 USB ports. I was checking yesterday and found that some of the ports are not working.All the 4 failed yesterday at the same time.Both the keyboards are in perfectly working conditions.I just wanted to make sure there was bit delay in replying to your questions.
Here is the output:
seshagiri@seshagiri-Inspiron-3646:~$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 007: ID 0cf3:0036 Qualcomm Atheros Communications Dell USB Wired Entry Keyboard
Bus 001 Device 005: ID 0bda:0157 Realtek Semiconductor Corp. Mass Storage Device
Bus 001 Device 004: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 001 Device 003: ID 0461:4e22 Primax Electronics, Ltd USB Optical Mouse
Bus 001 Device 002: ID 413c:2111 Dell Computer Corp. Dell USB Wired Entry Keyboard
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Settings -> Universal access -> Typing -> Screen Keyboard
sudo apt update && sudo apt upgrade

Maybe this will work?


cannot unlock login screen 14.04 When my computer boots, entering the correct password won't start my session. I found out the problem is /home/user/.Xauthority ownership. root owns this folder and giving the ownership to the user will solve the problem... for a while. I don't know how or when, but the ownership will go back to root pretty often; It can happen just after one boot or ten.

Is there a definitive solution to this problem?

The solution is to change your behaviour. Don't run GUI apps (like nautilus for instance) by calling them from terminal with sudo ....


Error in devstack installing on ubuntu I'm getting following error while installing devstack on Ubuntu 14.04:

ERROR: openstack Error finding address for http://10.16.37.215:9292/v1/images: [Errno 32] Broken pipe

where 10.16.37.215 is my static IP address.

I was following the thread Open Stack Installation On Ubuntu 14.04? to install devstack...

I'm guessing this problem is because I'm behind a proxy. But how to solve this problem? http_proxy/s is set everywhere in my system.

Try to set:

no_proxy=10.16.37.215

this should help


Wireless not working/ Wireless enabling dysfunction I am currently running Ubuntu 12.1, though I am continuously running into the same networking error. Whenever I boot Ubuntu, it takes me to the desktop perfectly, but when the wireless connection says its connected, it does not allow me to surf firefox due to a lack of connection though the icon on the top right says it is connected. Also, when rebooting, the wireless icon will at times have trouble enabling to turn on, even when it says its already enabled, hence continuing the problem in more depth with the connection error. How can I fix my wireless connection to work properly?

Get rid off from the Network manager on Ubuntu. Before doing it, first, install Wicd Network manager by sudo apt-get install wicd, then remove the connection manager sudo apt-get remove --purge network-manager-gnome network-manager. check if you have any settings on /etc/network/interfaces just keep

   auto lo
iface lo inet loopback

then Wicd should give you what you want


Holding Super Key doesn't show Unity shortcuts in 14.04? When I hold down the superkey the list of keyboard shortcuts no longer appears? How do I enable again?

Unity Tweak Tool

Unity / Additional / Hold Super for keyboard shortcuts

or via compizconfig-settings-manager:

CompizConfig Settings Manager

Ubuntu Unity Plugin / General / Enable Shortcut Hints Overlay

Check the settings for Unity:

How can I configure Unity?

And double check that the keyboard shortcut for Unity is set:

source


PHP upgrades from 5.3.2 to 5.3.6 I am using Ubuntu 10.04. And I want to upgraded my php version.
When i am upgrading my PHP version(5.3.2 to 5.3.6) but After every updation Its show PHP version 5.3.2..

Edit:: I have checked "Ubuntu repository", PHP 5.3.6 is not avalable. :(

First add the following lines to the /etc/apt/sources.list.d/php5-ppa.list file using your favourite editor.

deb http://ppa.launchpad.net/nginx/php5/ubuntu maverick main
deb-src http://ppa.launchpad.net/nginx/php5/ubuntu maverick main

Then run the following command to add a key for the newly added repositories:

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 00A6F0A3C300EE8C

After that you can update Ubuntu's software and upgrade PHP:

aptitude update
aptitude full-upgrade

Unfortunately I believe you have to install PHP from source in order to get the latest version. You can get the file from php.net, and essentially follow their installation guide from their manual.


How do I install Moodle? I have downloaded the package available on the project website.

What steps do I have to follow now?

There are plenty of installation guides on the website; I think you should take a look at those.

Besides, it looks like the package is available in the repository, so you can install it with

sudo apt-get install moodle

Take a look at this Step-by-step Installation Guide for Ubuntu. Still, if you insist on installing from source, their own documentation for Installing Moodle may help. Try those and comment/ask for help with any problems you encounter following the instructions.

Follow the instructions

http://docs.moodle.org/26/en/Step-by-step_Installation_Guide_for_Ubuntu

26 is the Version Number, which you have downloaded and wish to Install.  In my case, it has worked nicely.


How to make ZSH the default shell? I am trying to set ZSH as my default shell, however it keeps reverting back to bash.

I have tried this code:

sudo chsh -s $(which zsh)

I've also tried:

sudo chsh -s /bin/zsh

Also tried these commands without sudo.  Any ideas on what else I need to do.  When running ZSH from within bash it loads up and works fine but I'd like to set it as the default shell.

Just using chsh:

chsh -s $(which zsh)

without sudo should work. If you use sudo it will change the shell not for your working user but for root

Finally, log out of your computer and log back in.

Troubleshooting:

Do you have zsh installed (ii)? dpkg -l zsh
Is your shell set to zsh? Last field of grep $USER /etc/passwd
Is Zsh a valid login shell? grep zsh /etc/shells

Strange, the "accepted" answer didn't work for me as I got

chsh: PAM: Authentication failure

To solve this issue edit your /etc/passwd and make sure it points to the zsh location. (You can find this by running "which zsh")  In my case my user called "webmaster" looked like this:

webmaster:x:1001:1001:webmaster,,,:/var/www/webmaster:/usr/bin/zsh


How to download a youtube playlist with numbered prefix via youtube-dl? I have a Youtube playlist, I want to download it but I want youtube-dl to name the files like 1-{name}, 2-{name}, ... n-{name} in order to be able to watch them in the same sequence as original Youtube playlist. In other words I need my downloaded videos to be prefixed with numbers. How can I do that?

The best solution I found is:

youtube-dl -o "%(playlist_index)s-%(title)s.%(ext)s" <playlist_link>

excellent! but it leaves you with a file  called 00001nameoffile
so run:

  rename 's/000//g' *

afterwards
to get 01,02,03 etc
For this line below

  youtube-dl -cio '%(autonumber)s-%(title)s.%(ext)s' 'Paste your playlist link'

or as one line:

  youtube-dl -cio '%(autonumber)s-%(title)s.%(ext)s' url ;  rename 's/000//g' *