BLOG
30 August 2019

Linux Notes

TTTThis

The Ableton problem:


Notes on installing Ubuntu Studio

  1. Create USB boot device (5 minutes)
  1. Use USB boot device to install on a hard drive (5 minutes or 30 minutes or so)
  1. Now you have the OS and have to finish configuring it (several hours)
sudo apt-get purge audacity ; sudo apt-get autoremove ; sudo apt-get autoclean ; shred -rf ~/.audacity-data/ ; rm -rf ~/.audacity-data/

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.

WINE

You don't need Wine for Veracrypt. It has a Linux app, see below.

https://wiki.winehq.org/Ubuntu

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)

FREECAD

$ sudo add-apt-repository ppa:freecad-maintainers/freecad-stable

$ sudo apt-get update

$ sudo apt-get install freecad

OBS

Loud hum. Apply an audio filter by clicking on the gearwheel beside the audio input meter and do 'settings' > + > Noise suppression, and drag it all the way down to -60fB.

(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

https://obsproject.com/wiki/install-instructions#linux-install-directions

Old instructions:

uninstalled virtualbox purged it, deleted urs/share/virtualbox

Teamviewer

GEDIT simple text editor

(Note: you have to update first, so maybe sudo apt update && sudo apt install gedit)

Thunar file manager (although Studio comes with it)

Photorec - Data recovery tool

Disks (actually called udisks I guess)

Kolourpaint

(Didn't work for me most recent time)

MIXXX dj program

sudo add-apt-repository ppa:mixxx/mixxx
sudo apt-get update
sudo apt-get install mixxx

Veracrypt - install the GUI after the other one

Libre Office

Bitwig

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.

Record System Audio with Audacity

Kdenlive

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:

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

How to:


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 clean .cache and other folders on linux:

sudo apt install secure-delete

shred a file with

srm -rfll filname.extension

or a folder with

srm -rfll foldername

rfll does one pass of 0s. You can use srm -r filename.extension to do 38 overwrites
ctrl-h toggles hidden folders
.cache starts wasting hd space. You can put all it's contents into a newly created folder and srm rfll or r newlyfolder.

to make it faster and less secure, you can do only 2 passes with -l. If you do srm regular 38 passes, I think it takes about overnight to do 1gb. -l does 1gb in like 30 minutes I think.

srm -rlvz *

or srm -rlvz /home/yourPCsname/directoriesyouwanttooverwrite

In this command,

You can do similar things with sfill, such as sudo sfill -lvz /home

which does 2 passes on everything in your home directory

If you want, you can stop thumbnailing with sudo apt-get install dconf-tools: https://askubuntu.com/questions/518889/how-to-disable-thumbnail-generation

In Windows, how they overwrite unused disk space is:

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

Sometimes in Linux sound starts to only play with one side of your headphones:

Go to Volume Control and Output Devices tab and slide the volume to full. It worked.


Convert images or resize images

Convert all or pngs to jpgs

How to use a Cameo Silouette plotter cutter with Linux:

Usually you use their software on Windows.

You can use Inkscape on Linux, but have to add an extension to Inskcape.

You have to add python-USB, but that might not be found even after updating, so you have to 'sudo add-apt-repository universe'

Then you can download the .deb file from here https://github.com/fablabnbg/inkscape-silhouette/releases

And you'll have10: https://libertyseeds.ca/2017/12/08/A-better-open-source-extension-for-Silhouette-Cameo-Inkscape-and-Ubuntu/


Export Firefox bookmarks to an HTML file to back up or transfer bookmarks

This article explains how to export your bookmarks to an HTML file, which can be used as a backup or for importing into another web browser.

For instructions specific to these other browsers, see Export bookmarks to Internet Explorer, Export bookmarks to Opera and Export bookmarks to Safari. 

Click the Library button 57 library icon on your toolbar. (If you don't see it there, click the menu button fx57menu then click Library.) Click Bookmarks and then click the Show All Bookmarks bar at the bottom.

From the toolbar on the Library window, click Import and Backup and choose Export Bookmarks to HTML....

Youtube-dl

https://www.tecmint.com/download-mp3-song-from-youtube-videos/

sudo apt-get install youtube-dl

but that didn't work so:

sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl

then restart the Terminal otherwise it won't work

default folder for downloads is home folder

to download mp3, do:


youtube-dl -x --audio-format mp3 <http...>
youtube-dl -x --audio-format mp3 
youtube-dl -x --audio-format mp3 
youtube-dl -x --audio-format mp3 
youtube-dl -x --audio-format mp3 
youtube-dl -x --audio-format mp3 

PLAYLISTS:

youtube-dl --ignore-errors --format bestaudio --extract-audio --audio-format mp3 --audio-quality 160K --output "%(title)s.%(ext)s" --yes-playlist 'https://www.youtube.com/watch?stuffstuffstuff'
youtube-dl -x --audio-format mp3 --playlist-start 1 --playlist-end 5 https://www.youtube.com/playlist?list=xxx555xxx


#Blogs #Computers #Linux
NewerOn my list Older90s Rave Scene