Notes on installing Ubuntu Studio
- 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.
- Use USB boot device to install on a hard drive (5 minutes or 30 minutes or so)
- (NOTE: if it doesn't work, maybe you get an error message like "No Bootable Device." Last time it was the OS I had burned to the flash drive. I burned a different OS and it worked. That was detected but failed to install. I tried a third OS and it worked. Another solution might be re-downloading the OS.)
- 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.
- 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.
- Remove snapd backdoor with
sudo apt autoremove --purge snapd
- Remove VLC spyware with a few commands, because there's lots of related files:
sudo apt-get autoremove vlc-nox
sudo apt-get purge vlc
sudo apt-get autoremove
sudo apt-get purge vlc-data
sudo apt-get autoremove --purge vlc
sudo apt-get remove browser-plugin-vlc
sudo apt-get autoremove
- 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
- Fonts: There is a program called "Font Manager" and you can load ttfs through this
- If the screen keeps shutting off after 5 minutes of inactivity, even though you try to set everything in Power, try turning it of in Screensaver.
- nethogs monitors internet activity
- Go to Software and Updates and turn off all auto-downloads and auto-updates.
sudo nethogs -v 3
for total ,
sudo nethogs -a
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.
Note: 2020 tried installing from the deb file in my programs folder, but didn't work ('dependencies'). Downloaded again and same. I had to sudo update then it installed from sudo apt install virtualbox easily.
You don't need Wine for Veracrypt. It has a Linux app, see below.
If you need it, but it requires installing a few things, including i386 architecture.
sudo dpkg --add-architecture i386
wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key
for an 18.04 system: sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
sudo apt install --install-recommends winehq-stable
To REMOVE Wine adn ass:
sudo apt-get remove --autoremove wine-*
but this wiki might not spell stuff correctly. Also, it might still not be added to the program launcher (when you right click and 'Open with other program') until you do this:
sudo cp /usr/share/doc/wine-stable/examples/wine.desktop /usr/share/applications/
sudo ln -s /usr/share/doc/wine-stable/examples/wine.desktop /usr/share/applications/
(as detailed here: https://ubuntuforums.org/showthread.php?t=2392017)
$ sudo add-apt-repository ppa:freecad-maintainers/freecad-stable
$ sudo apt-get update
$ sudo apt-get install freecad
(requires ffmpeg, which is free and opensource)
sudo apt-get install ffmpeg
sudo add-apt-repository ppa:obsproject/obs-studio
sudo apt-get update
sudo apt-get install obs-studio
- Do those updates for VirtualBox (for Ubuntu after 19.04),
- 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
- 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
(Note: you have to update first, so maybe sudo apt update && sudo apt install gedit)
- 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
- 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
(Didn't work for me most recent time)
- installs when you double-click the file (about 250mb). It will ask for login when it boots up.
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.
NOTE: Crashes when mixing images and videos. However, rendering just videos seems to be OK.
Installs with sudo apt install kdenlive.
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)
- 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.
sudo apt-get install secure-delete
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.
-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.
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):
go to folder:
cd /home/COMPUTERNAME/Pictures/Photography/rotate (rotate is the name of the folder)
mogrify -rotate 90 *png