Intelligence is simply talking to many people

Linux Notes

Notes on installing Ubuntu Studio

  1. Create USB boot device (5 minutes)
  • On an already-running computer, format USB with Disks
  • Right-click the OS iso file you downloaded and pick "Open with Disk Image Writer" and it should work fine (this program doesn't work for Windows 7 though). If you don't have "Disk Image Writer" I used to use "Etcher." Dismount the drive properly in Thunar or whatever file manager.
  1. Use USB boot device to install on a hard drive (5 minutes or 30 minutes or so)
  • Set BIOS to UEFI (It will not install on Legacy)
  • During install, obvious things are obvious. I generally don't do the "install updates during installation" thing, so I don't need to connect to wifi during installation.
  • Check Encryption and LVM (https://security.stackexchange.com/questions/39080/ubuntu-lvm-encryption)
  • Set encryption password. Then you'll set ANOTHER password for Login. You can pick "log in automatically" for this one because otherwise you'll have to enter two passwords every time you boot up. Now you'll wait 5 minutes on a good system or 30 minutes on a weak one (processor) while it installs.
  1. Now you have the OS and have to finish configuring it (several hours)
  • Unplug USB and reboot into OS
  • Now it will probably immediately say you don't have correct language support. IDK what this is.
  • Now I sudo apt-get update. It will take 5 or 10 minutes. (And upgrade if you want - this might take a while, like 1 hour.)
  • Move the panel to the bottom of the screen by right-clicking it, "Preferences," unlock the panel, and close the Preferences. Click on the dots thing on the far left and move it to the bottom.
  • Go to "Language Support" and ignore the error message and add any extra languages. Add your extra languages, which might take 5 minutes to download. There will probably be no language selector icon though. After this is all updated, I had to right-click the language icon (which was a flag at first), then "Keyboard settings" > "Layout" > "Keyboard layout" section and add a language. Then I right-click "Properties" on it to get it to say EN instead of a flag. It worked with dual imput though.
  • Go to "Power" and set things like how long / if you want system to sleep, what closing the lid does, etc.
  • Copy any existing files over to the new OS. Do this before the next "Install programs" step because some programs are in the "Programs" folder already. Some programs are best done this way anyway because not all download locations are trusted and these are versions that have already been used without noticeable problems.
  • Install programs (may as well do this before the next ("Launchers") step because most of these get put there: Kolourpaint, VC, Thunar, VM. Think about whether you want to install from existing files or if you want to try to install fresh from the internet. For example, last time VMs didn't work because there was no Guest Additions adjustment possible for 19.04 (Ubuntu in Ubuntu I mean; Windows7 in Ubuntu did work for a shared folder), so you want to try a new VM install. However, for VC finding a safe download source is less easy so you want to install from the file you already have. Kolourpaint and Bitwig have install files and don't install from Terminal anyway).
  • Create "Launchers" by finding the program icons in the menu and dragging them beside the "Menu Button." Ones that are already on Studio: Task Manager, Screenshot, Firefox, Audacity. Others: Bitwig, Kolourpaint, Text Editor, VM, VC.
  • Add to "Language Support" any extra languages (Do this after updating and upgrading, because it can be finicky). This takes a long time, like 30 minutes, although it might take less if you do it early, so it doesn't want to install language support for every program, which is unnecessary).
  • Log in to TV

Things to do to a Linux machine. Notes for the next set up:

Virtualbox by Oracle

Note: sometimes when you install, VirtualBox will be broken. One note, the 'guest additions' number must be the same as the version of VirtualBox, according to some people. Just double check them if you have issues. Also, 6.0.8 tried to install 6.0.0's guest additions, and there's no way to tell it where to find the correct thing.

Old instructions:

  • -Update
  • Do those updates for VirtualBox (for Ubuntu after 19.04),
  • then:
  • Install VirtualBox
  • Created Lubuntu_Nubes and resizing screen works.
  • Create VM for Win7 and disable networking.
  • Install Win7 REMEMBER TO PICK 64 BIT and HOME PREMIUM for 16gb RAM
  • Windows7 also resizing works.
  • Go to Computer in files in Windows, and there should be Devices and Removables and the Additions.iso there. Double click it and install everything. It will ask to reboot and then you should be able to drag and drop
  • the 2 exe files that have to be installed for Ableton to run: vs_redist.x64.exe (both same name).
  • Ableton into the VM (or maybe before the reboot).
  • Ableton should now work, and you have to register it.
  • HOW TO MAKE A SHARED FOLDER:
  • Windows Guest, Ubuntu Host:
  • Go to top menu > Devices > Shared Folders > Shared Folder Settings
  • In "Machine Folders" pick a folder (or create one) - this is making one on your Ubuntu Host. Check 'Auto-mount' and 'Make Permanent' (I don't know which of these is required but I have both checked and its working).
  • OK. Now in the Windows Guest "Computer" directory, you should see a Network Location with your folders name (the folder you selected or made on your Ubuntu host). This folder exists on your Ubuntu host where you put it.
  • MONITOR - to make the monitor right (at least on my 12.5 inch x230:
  • (make shure youve discarded any save state). Settings (from the Vbox program) > Display > VboxVGA. Then restart. Should have a nice stretched screen same size as the monitor

uninstalled virtualbox purged it, deleted urs/share/virtualbox

Teamviewer

  • You might not need it if you put it or already have it in a VM and just use it that way

GEDIT simple text editor

  • just sudo apt-get install gedit

Thunar file manager (although Studio comes with it)

  • sudo apt-get install thunar

Photorec - Data recovery tool

  • (Photorec and Testdisk (2 names, dont worry about it).)
  • sudo apt-get install testdisk (or photorec I forget which one, but you just install one).
  • make a folder you want all your recoverd files to go in
  • then to do a scan, type
  • photorec
  • as explained here: https://www.cgsecurity.org/wiki/PhotoRec_Step_By_Step
  • to delete your files later, open thunar as admin by going to terminal and typing sudo thunar

Disks (actually called udisks I guess)

  • sudo apt-get install gnome-disk-utility

Kolourpaint

Veracrypt

  • cd to directory
  • tar jxf nameoffile.tar.bz2
  • (NOTE: different letters for non-bz2 files)
  • ./nameofthefilethatwasputhereafterlastcommand-x64
  • Installation should begin.

  • For tar.gz:

  • tar -xzf archive.tar.gz
  • Ubuntu stops asking for password at boot.
  • cd etc/lightdm
  • sudo gedit lightdm.conf
  • edit out the user line with a # at the start of it. save.

Bitwig

  • installs when you double-click the file (about 250mb). It will ask for login when it boots up.

Ableton

installs (on Windows inside VM) when you double click it, of course, and you take the number from it when it boots up, give that to the audacity website in your account, download their file, and drag-and-drop that file into audacity.

WHAT IS SAVED ON THIS COMPUTER:

  • Bitwig drums with volume levels I like
  • Kdenlive settings for processing photos
  • Some bookmarks and social media accounts logged in in Firefox on this machine and inside VMs
  • Teamviewer logged in on VM

MIDI KEYBOARD (launch control worked when plugged in. Korg nanokey didnt because it doesn't work with Bitwig)

How to:

  • sudo apt install a2jmidid
  • Put a2jmidid -e & in Setup > Options > execute script after startup
  • Go to connect on qjackctl
  • MIDI tab
  • start Hydrogen H2
  • connect nanoPAD2 on left side to Hydrogen on right side

  • USBs automount. Do disable this, instlal dconf-editor

  • sudo apt-get install dconf-editor
  • (not completed yet)

Notes on deleting hard drives and data

I have read that there has been no case of a drive being recovered after it has been overwritten with 0's.

How to dispose of an HDD - These can actually be securely overwritten. I use "Disks" and just format the drive again, using "Erase." It takes less than 1 hour per 100mb.

How to dispose of an SSD that has been encrypted - (I don't know yet)

How to dispose an SSD that has not been encrypted - Generally, this is impossible, according to people. Because SSD stores data in weird ways, you can't simply overwrite the data the way you can overwrite an HHD. For security, you have to destroy it physically, or if you don't need that level of security you can just run several passes of 0's over it and hope that works.

How to clean "empty" disk space on a drive you're still using - This is for when you want to wipe over the stuff you've already deleted, so you can still use the hard drive, but so the files you deleted won't be recoverable.

Remember: If you're going to do this, delete your "Trash" folder too, first.

https://superuser.com/questions/19326/how-to-wipe-free-disk-space-in-linux

sudo apt-get install secure-delete

Commands:

srm - securely delete an existing file
smem - securely delete traces of a file from ram
sfill - wipe all the space marked as empty on your hard drive
sswap - wipe all the data from you swap space.

Options

    -f  fast (and insecure mode): no /dev/urandom, no synchronize mode.
    -i  wipe only inodes in the directory specified
    -I  just wipe space, not inodes
    -l  lessens the security (use twice for total insecure mode).
    -v  is verbose mode.
    -z  last wipe writes zeros, not random data.

Example

sudo sfill -f /home

After that command, your Terminal will just look like it's timed out for a long time.

When I ran it, I think I had about 550gb free of a 1tb HDD. After about 6 or 7 hours I think, Ubuntu gave me a warning that there was 0 mb of free space remaining. It looked frozen like that for a while. It had created a file in the /home/ folder called "oooooooo.ooo" which was the size of the free space. You can watch this file grow in size as the program runs. You can also see how much free space you have left by the "df -h" command in Terminal.

When its as big as it will get (you can also see this is complete using "df -h" and seeing its now 0 disk space remaining, nothing will happen (except the warning from Ubuntu that you have 0 disk space remaining. What I do is restart now, and when I restart, that oooooooo.ooo file is gone, and you have your empty space again. You can probably also just delete the file if you don't want to restart.

HOW TO ROTATE PHOTOS (all files in a folder in this example):

terminal
go to folder:
cd /home/COMPUTERNAME/Pictures/Photography/rotate   (rotate is the name of the folder)
then:
mogrify -rotate 90 *png

Comments: 0

Interested to discuss? Leave a comment.

Image




Your email will not be published nor shared with anyone. In your text you can use markdown for marking up *italic*, links <http://example.org> and other elements. These comments are moderated and published manually as soon as possible.