Posts

Installing Speach Recognition in Kdenlive on Linux Mint 22

After struggling to get the the dependencies needed for speech recognition within Kdenlive on Linux Mint, here is a brief tutorial of what I did:  First, I couldn't get the debian package working, so I installed the Flatpak of Kdenlive instead. Then you will need to install the required dependencies for speech recognition: $ sudo apt install python3-srt $ sudo apt install python3-venv $ sudo apt install python3-pip (Although pip3 doesn't work the way it previously did in Linux Mint, I do believe you will need to install it). Then, in order to get Whisper and Torch installed, you do it within the Flatpak itself: $ flatpak run --command=/bin/bash org.kde.kdenlive $ python -m ensurepip $ python -m pip install -U openai-whisper torch $ exit That is it! Open Kdenlive and see if it works. Thanks to the following source .

Sharing files from Linux Mint 20 on a Home Network

 I'm annoyed over the difficulty of sharing files in Linux Mint 20 over a home network. Here is what you would expect you would have to do:  Right-click and select "Share this Folder" Done! It works.   Except that it doesn't work. :( Here is what you actually appear to have to do (note that not even all the required packages are installed by default): 1. In the terminal: $ sudo apt-get install samba 2. Right-click and select "Share this Folder" 3. In a terminal, type (to set your samba username password): sudo smbpasswd -a yourUserName 4. Edit /etc/samba/smb.conf and right under the workgroup = WORKGROUP line add these:  client min protocol = NT1  server min protocol = NT1 5. Reboot 6. Done! It works (finally).  

Converting pdf files to black and white

I recently downloaded a book from archive.org, and it was off-color and not easily printable (they used to provide black/white pdf files for books, but apparently they stopped doing so). I needed to convert it to a monochrome file so I could print it. This lead me down a number of dead-ends, and so I want to explain the best way I found to do this. First, convert each page to a separate PNG file. Here is the command I used: pdftoppm Hutchings.pdf file_prefix -png Note that you can make the file_prefix anything you would like. Next, you will need to determine the "threshold" at which point these pictures become black and white. Play around with it using this command: convert file_prefix-1.png -threshold 35% testing-1.png When you have determined the threshold, now it is time to batch processes all your PNG files (any files that need a different threshold can be individually adjusted using the above convert command. I use mogrify to do this, and I also make sure to...

Quick MIDI Synth Guide

Plug your MIDI controller into a USB port. Run aconnect -o , and look for your MIDI controller in the output: 1 2 3 4 5 $ aconnect -o client 14: 'Midi Through' [ type = kernel ] 0 'Midi Through Port-0' client 20: 'AKM322' [ type = kernel ] 0 'AKM322 MIDI 1 ' The controller’s client number here is: 20 Run aseqdump -p 20 (replace 20 with the client number) to verify it is working Then: 1 2 3 $ sudo apt-get update $ sudo apt-get install fluidsynth fluid-soundfont-gm $ aplay /usr/share/sounds/alsa/Noise.wav This last command should make a noise through your speakers. Then, for my computer, the following setup seems to run best: $ fluidsynth --audio-driver=alsa --gain 3 -r=22050 -c=16 -z=64 /usr/share/sounds/sf2/FluidR3_GM.sf2 In a second terminal, run: 1 2 3 4 5 6 7 8 $ aconnect -o client 14: 'Midi Through' [ type = kernel ] 0 'Midi Through Port-0' clie...

Setting Up Syncthink by Command Line on a Server

Props to this site for the info I based the following on! First, install syncthing: $ sudo apt-get update  $ sudo apt-get install syncthing $ syncthing You will need to change the address of the web gui by editing the syncthing config.xml. $ sudo nano ~/.config/syncthing/config.xml  <gui enabled="true" tls="false"> <address>127.0.0.0:8384</address> [to]: <gui enabled="true" tls="false"> <address>192.168.1.119:8384</address> s ystemd is a system and service manager for Linux that runs as PID 1 (Process ID 1) and starts the rest of the system. It uses a script file called a Unit for each service, they are located in  /etc/systemd/system/multi-user.target.wants/ to get this to work you need to put this file into that directory. This is the Unit text *********************************************************************** [Unit] Description=Syncthing - Open Source Continuous Fi...

Samba Setup

Installation and Setup: First install the following: apt-get install samba-common smbclient samba-common-bin smbclient cifs-utils Next, authorize users to access samba shares: sudo smbpasswd -a Make a safe backup copy of the original smb.conf file. sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.bkup Edit the file "/etc/samba/smb.conf" sudo nano /etc/samba/smb.conf Add this to the end of the file: [folder_name] path = /home/user_name>/folder_name valid users = read only = no Restart samba: sudo service smbd restart Use this command to check your smb.conf for any syntax errors. testparm Determine the LAN address of the computer: sudo ifconfig List all shares: smbclient -L // / -U Connect: smbclient // / -U Mounting Local Shares: smbclient -L XXX.XXX.X.X -U username Then, create a local directory and mount the remote share: mkdir /mnt/abc mount -t cifs //server/share /mnt/abc Depending on the access you give to your...

Testing Moodle on Debian 9

So I bought a Raspberry Pie and put Debian 9 on it so that I can play around with it as a home server. Currently I am configuring Moodle on it, so here are my notes: Debian 9 (stretch) has 2.7.17 in the repositories. This is fairly old, so I will be installing the git version instead. First: sudo apt-get update Second: sudo apt-get install apache2 mysql-client mysql-server php7.0 libapache2-mod-php7.0 Third: sudo apt-get install graphviz aspell php7.0-pspell php7.0-curl php7.0-gd php7.0-intl php7.0-mysql php7.0-xml php7.0-xmlrpc php7.0-ldap php7.0-zip php7.0-soap php7.0-mbstring Forth: sudo service apache2 restart Fifth: sudo apt-get install git-core Sixth: cd /opt Seventh: sudo git clone git://git.moodle.org/moodle.git Eighth: cd moodle Ninth: sudo git branch -a Since the guide I'm following is installing Moodle 3.1, and I don't want any incompatibilities, this is what I will be installing as well. 10th: sudo git branch --track MO...

Setting Up Mopidy, Ncmpcpp, and Spotify on Debian Buster (Updated)

  In Debian Buster, the main thing that caused me problems was that I had mpd installed, and it caused havic with, but once I uninstalled it, things started working. Here is the breakdown of what I did: Add the archive’s GPG key:   wget - q - O - https : // apt . mopidy . com / mopidy . gpg | sudo apt - key add -   Add the APT repo to your package sources:   sudo wget - q - O / etc / apt / sources . list . d / mopidy . list https : // apt . mopidy . com /buster . list   Install Mopidy and all dependencies:     sudo apt-get update sudo apt-get install mopidy ncmpcpp mopidy-mpd mopidy-spotify There are two configuration files that need to be adjusted.  First, there is the Mopidy configuration file : ~ /.config/mopidy/mopidy.conf Here is my configuration file: [logging] color = true console_format = %(levelname)-8s %(message)s debug_format = %(levelname)-8s %(asctime)s [%(process)d:%(threadName)s] %(name)s\n...

booklet creation and imposition in linux

in this post, i will go over how to create "signatures" from pdf files in linux so that you can print them out for your bookbinding projects. these booklets are the result of "imposition" - rearranging pages so that when printed and folded together - produces a series of signatures (booklets) that can then be bound together in books. there does not seem to be very good documentation on how to do this in linux, as far as i can tell. the sizes here i will only be focusing on booklets of eight printout pages - meaning that the signatures are 32 pages long (two pages on each side of the paper multiplied by eight), but the same reasoning can be applied to signatures of different sizes. since the minimal signature is four pages long, the length of signatures need to be in multiples of four. i prefer 32 pages signatures generally (eight pages), but others may prefer shorter signatures. if total book you are printing is 247 pages, and you have 32 page signatures, then...

ubuntu vs xubuntu

in this post i am basically going to explain why i am unhappy with the direction of ubuntu, and why xubuntu - and the xfce way - appeals to me so much more. ubuntu, unity, and xubuntu for the past few releases (basically since maverick), the company behind ubuntu has tried to redefine how we interact with our desktop through the development of unity. i've been very supportive of these efforts overall. making design decisions is tough and treacherous, and if anyone has a vision to improve the desktop linux experience, then i applaud their efforts. now i want to evaluate these efforts. does unity improve the desktop experience? meh. definitely a mixed bag. the main problem is that everything feels half baked right now, and the improvements in the next version of ubuntu (quantal) don't really fix most of the issues i have. when analyzed from a user experience point of view, the changes canonical has brought to ubuntu can be largely divided into the following categories (i...

why ubuntu has soured on me, and my move to xubuntu

a couple of weeks back, there was a huge community backlash to the news that the newest version of ubuntu (quantal 12.10) would send ALL queries made in the dash, via the shopping lens, to canonical as a way to help build revenue. that's right, EVERYTHING you type into the dash (when you search for programs or files or anything) will be sent to canonical for the purpose of advertising directly on your desktop. i protested as loud as anyone. canonical's response (besides defending their position) has been to include a program that can disable all internet activity from the dash. unfortunately, i find this solution unsatisfactory for the following reasons: it is opt-out vs. opt in this angers me. it works to build revenue by relying on people's ignorance of what canonical is doing with their queries. not everyone pays as much attention to the development of ubuntu as i do, and most will be ignorant of what canonical is up to. this is shitty. and unethical. it is not ...

the easiest way to get aircack-ng and reaver working on ubuntu 12.04

neither aircack-ng nor reaver is in the repos in ubuntu 12.04. aircrack was dropped in the precise cycle because it was dropped by debian temporarily in order to sort out some licensing and maintenance issues, and reaver is fairly new and just didn't make it in time. fortunately both packages are in 12.10. by far the easiest way to get these packages to work in 12.04 is to download the quantal versions and install them in precise. i've done so, and i haven't run into any problems. :) the packages can be found here: http://packages.ubuntu.com/quantal/aircrack-ng http://packages.ubuntu.com/quantal/reaver once installed, run: ifconfig to figure out your wifi interface. then put it in monitor mode: sudo airmon start wlan1 next, run 'airodump' to figure out the BSSID of the network you are aiming to penetrate: sudo airodump mon0 when you have found it, cntr-c to exit. then run 'wash' on it to see if reaver is possibly going to be successful....

making a high quality djvu file/ebook from somewhat crappy pdf scans

i am assuming you either you have a hard copy of an article/book/etc., or else a pdf file of a scanned in document that you wish you clean up and make into a high quality djvu file. also, i am a linux user, i have no idea (and couldn't care less) how to do it on windows/mac. here is how i do it. tools gscan2pdf (my fav scanning program presently) scan tailor (brilliant piece of software) steps if you have a hardcopy, i recommend using gscan2pdf (the name is deceiving, it also outputs djvu). it may, in fact, do almost everything you need to get your documents cleaned up. play with it; it is a powerful tool.  if you have a pdf file, the first thing you need to do is to convert it to a multipage tiff file. the highest quality way to convert it that I have found is by using the following ghostscript command: gs -SDEVICE=tiffg3 -r600x600 -sPAPERSIZE=a4 -sOutputFile="output.tif" -dNOPAUSE -dBATCH -- "input.pdf" this seems to output a much higher quali...

t-moble short prompt vs. standard prompt?

anyone know the difference between the two? does it cut out all the rubbish before someone can actually leave a message?

overview of your legal rights with the websites you use

http://tos-dr.info/

Thinking ahead to the next LTS ubuntu release (after Lucid)

This post is purely speculative, but I like to speculate. I'm thinking ahead to the next LTS release. If the past reflects the future, then the next one should be 12.04. Of coures Lucid isn't out yet, so its hard to judge exactly how it will turn out. But besides some social networking stuff, the usual application updates, and hopefully more stability and hardware support, its not going to be a very exciting release. I'll probably use it though for a year or two while some really big changes come to the Ubuntu distro. It is my thinking about this that leads me speculate about the next LTS. One of the biggest changes will beGnome 3.0, which, from the screenshots I've seen, seems to incorporate a number of fairly radical usability changes. It will be interesting to see exactly the shape it will take - esp the shell part. Which applications will likely gain more prominence in the distro? I'm sure Banshee will finally become the default music player, and maybe the defau...

What I want from 10.04

Only two things really: More bug fixing and more hardware regression testing. I think the Ubuntu community at large would take very kindly to pushing the release back to 10.06 so that there would be a couple of solid months of doing nothing else besides testing and fixing. I really want Ubuntu to succeed. 9.10 was way to buggy to be a proper release, and I'm afraid that Canonicals commitment to a regular schedule will trump making it as solid and bug-free as possible. Consider that Windows 7 had what seemed like almost a full year of beta testing, a couple of extra months to make Lucid the best Linux distro release to date would be a refreshing and appreciated change. Consider it, please.

Demagogue

Image
From Merriam-Webster : demagogue : a leader who makes use of popular prejudices and false claims and promises in order to gain power There is probably no better description for what it is that Rush Limbaugh does.

The Afghanistan Decision

I don't know what Obama has decided, but I'm very very worried. Its a terrible decision to have to make, and it will haunt his presidency either way. War is a horrific thing, and I can never really truly support a war, even if I think it is necessary. But I don't know if what is about to happen is necessary. I don't believe its largely about combat missions (though I'm sure its implied), but more about patrolling, providing security, and building a strong army/police force to combat the Taliban. Nonetheless if he increases troop levels, it will become a defining moment of his presidency. Not only he is going to have a very hard time with the base of his party, but it might taint all the good that he is trying to do (and prevent much of it if - and when - we get mired in a long, violent struggle). The Republicans will continue to lie about him - relying on the stupidly inane memes that Democrats don't support our troops, that he's cutting the military budget,...

Brief Review of Karmic and Hopes of Lucid

Karmic Koala is out! I've been using it though the beta release, and overall I'm really impressed. There are a LOT of changes under the hood, which has given rise to some unfortunate instability, but the direction the distribution is going in seems to be good. There are the beginnings of a visual refresh going on as well - I hope for more in the future! The main annoyance I have is the large number of serious bugs that came in Karmic. For example, I couldn't burn a CD from Rhythmbox (it has subsequently been fixed, but for a couple of weeks was an annoying regression). There are also reports of data loss do to the switch to the new ext4 filesystem (bug report here ) - this makes me very worried about switching to ext4. For the rest of this post, though, I want to discuss what I hope for in the next version of Ubuntu, codenamed Lucid Lynx. Given that this is an LTS release, I think that, along with the normal package/application updates, the main foci of this release should ...